@lcap/nasl 3.3.3-beta.2 → 3.3.3-beta.3
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/out/automate/template/myProcess.d.ts +1 -1
- package/out/automate/template/myProcess.js +3 -2
- package/out/automate/template/myProcess.js.map +1 -1
- package/out/common/BaseNode.d.ts +4 -5
- package/out/common/BaseNode.js +15 -11
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/Anchor__.js +2 -1
- package/out/concepts/Anchor__.js.map +1 -1
- package/out/concepts/AnonymousFunction__.js +6 -3
- package/out/concepts/AnonymousFunction__.js.map +1 -1
- package/out/concepts/Argument__.js +4 -3
- package/out/concepts/Argument__.js.map +1 -1
- package/out/concepts/Assignment__.js +3 -2
- package/out/concepts/Assignment__.js.map +1 -1
- package/out/concepts/Attribute__.js +2 -1
- package/out/concepts/Attribute__.js.map +1 -1
- package/out/concepts/AuthLogicForCallInterface__.js +3 -2
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
- package/out/concepts/BackendVariable__.js +4 -3
- package/out/concepts/BackendVariable__.js.map +1 -1
- package/out/concepts/BatchAssignment__.js +7 -5
- package/out/concepts/BatchAssignment__.js.map +1 -1
- package/out/concepts/BinaryExpression__.js +7 -7
- package/out/concepts/BinaryExpression__.js.map +1 -1
- package/out/concepts/BindAttribute__.js +9 -14
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.js +2 -1
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BindEvent__.js +5 -3
- package/out/concepts/BindEvent__.js.map +1 -1
- package/out/concepts/BindStyle__.js +2 -1
- package/out/concepts/BindStyle__.js.map +1 -1
- package/out/concepts/CallAuthInterface__.js +5 -2
- package/out/concepts/CallAuthInterface__.js.map +1 -1
- package/out/concepts/CallFunction__.js +6 -2
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallInterface__.js +2 -1
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.js +10 -5
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/CallQueryComponent__.js +4 -2
- package/out/concepts/CallQueryComponent__.js.map +1 -1
- package/out/concepts/CompletionProperty__.js +2 -1
- package/out/concepts/CompletionProperty__.js.map +1 -1
- package/out/concepts/ConfigGroup__.js +3 -2
- package/out/concepts/ConfigGroup__.js.map +1 -1
- package/out/concepts/ConfigProperty__.js +3 -2
- package/out/concepts/ConfigProperty__.js.map +1 -1
- package/out/concepts/Configuration__.js +3 -2
- package/out/concepts/Configuration__.js.map +1 -1
- package/out/concepts/Connection__.js +3 -2
- package/out/concepts/Connection__.js.map +1 -1
- package/out/concepts/Connector__.js +15 -10
- package/out/concepts/Connector__.js.map +1 -1
- package/out/concepts/Constant__.js +2 -1
- package/out/concepts/Constant__.js.map +1 -1
- package/out/concepts/DataSource__.js +3 -2
- package/out/concepts/DataSource__.js.map +1 -1
- package/out/concepts/Destination__.js +2 -1
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/EntityProperty__.js +6 -3
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.js +6 -4
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/Enum__.js +2 -1
- package/out/concepts/Enum__.js.map +1 -1
- package/out/concepts/Event__.js +3 -2
- package/out/concepts/Event__.js.map +1 -1
- package/out/concepts/ExternalDestination__.js +2 -1
- package/out/concepts/ExternalDestination__.js.map +1 -1
- package/out/concepts/ForEachStatement__.js +4 -2
- package/out/concepts/ForEachStatement__.js.map +1 -1
- package/out/concepts/Frontend__.js +14 -9
- package/out/concepts/Frontend__.js.map +1 -1
- package/out/concepts/Function__.js +11 -6
- package/out/concepts/Function__.js.map +1 -1
- package/out/concepts/Identifier__.js +3 -0
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/IfStatement__.js +2 -1
- package/out/concepts/IfStatement__.js.map +1 -1
- package/out/concepts/InterfaceParam__.js +2 -1
- package/out/concepts/InterfaceParam__.js.map +1 -1
- package/out/concepts/Interface__.js +6 -3
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/JSBlock__.js +5 -5
- package/out/concepts/JSBlock__.js.map +1 -1
- package/out/concepts/Logic__.js +25 -19
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MatchCase__.js +6 -4
- package/out/concepts/MatchCase__.js.map +1 -1
- package/out/concepts/Match__.js +2 -1
- package/out/concepts/Match__.js.map +1 -1
- package/out/concepts/MemberExpression__.js +2 -1
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/MetadataType__.d.ts +1 -1
- package/out/concepts/MetadataType__.js +8 -6
- package/out/concepts/MetadataType__.js.map +1 -1
- package/out/concepts/MsgTriggerEvent__.js +3 -2
- package/out/concepts/MsgTriggerEvent__.js.map +1 -1
- package/out/concepts/MsgTriggerLauncher__.js +3 -2
- package/out/concepts/MsgTriggerLauncher__.js.map +1 -1
- package/out/concepts/Namespace__.js +33 -22
- package/out/concepts/Namespace__.js.map +1 -1
- package/out/concepts/NewComposite__.js +24 -13
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/NewList__.js +5 -3
- package/out/concepts/NewList__.js.map +1 -1
- package/out/concepts/NewMap__.js +5 -3
- package/out/concepts/NewMap__.js.map +1 -1
- package/out/concepts/NumericLiteral__.js +2 -1
- package/out/concepts/NumericLiteral__.js.map +1 -1
- package/out/concepts/OqlQueryComponent__.js +4 -3
- package/out/concepts/OqlQueryComponent__.js.map +1 -1
- package/out/concepts/OverriddenLogic__.js +13 -7
- package/out/concepts/OverriddenLogic__.js.map +1 -1
- package/out/concepts/Param__.js +4 -3
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/ProcessComponent__.js +6 -4
- package/out/concepts/ProcessComponent__.js.map +1 -1
- package/out/concepts/ProcessElement__.js +22 -14
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessOutcome__.d.ts +1 -2
- package/out/concepts/ProcessOutcome__.js +16 -1
- package/out/concepts/ProcessOutcome__.js.map +1 -1
- package/out/concepts/ProcessOutcomes__.d.ts +1 -2
- package/out/concepts/ProcessOutcomes__.js +16 -1
- package/out/concepts/ProcessOutcomes__.js.map +1 -1
- package/out/concepts/Process__.js +15 -10
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/QueryAggregateExpression__.js +2 -1
- package/out/concepts/QueryAggregateExpression__.js.map +1 -1
- package/out/concepts/QueryFromExpression__.js +2 -1
- package/out/concepts/QueryFromExpression__.js.map +1 -1
- package/out/concepts/QueryGroupByExpression__.js +2 -1
- package/out/concepts/QueryGroupByExpression__.js.map +1 -1
- package/out/concepts/QueryJoinExpression__.js +3 -2
- package/out/concepts/QueryJoinExpression__.js.map +1 -1
- package/out/concepts/QueryLimitExpression__.js +2 -1
- package/out/concepts/QueryLimitExpression__.js.map +1 -1
- package/out/concepts/QueryOrderByExpression__.js +2 -1
- package/out/concepts/QueryOrderByExpression__.js.map +1 -1
- package/out/concepts/QuerySelectExpression__.js +3 -2
- package/out/concepts/QuerySelectExpression__.js.map +1 -1
- package/out/concepts/Return__.js +4 -3
- package/out/concepts/Return__.js.map +1 -1
- package/out/concepts/SelectMembers__.js +3 -2
- package/out/concepts/SelectMembers__.js.map +1 -1
- package/out/concepts/Slot__.js +2 -1
- package/out/concepts/Slot__.js.map +1 -1
- package/out/concepts/SqlQueryComponent__.js +2 -1
- package/out/concepts/SqlQueryComponent__.js.map +1 -1
- package/out/concepts/StringInterpolation__.js +5 -2
- package/out/concepts/StringInterpolation__.js.map +1 -1
- package/out/concepts/StructureProperty__.js +2 -1
- package/out/concepts/StructureProperty__.js.map +1 -1
- package/out/concepts/Structure__.js +6 -4
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/SwitchCase__.js +2 -1
- package/out/concepts/SwitchCase__.js.map +1 -1
- package/out/concepts/SwitchStatement__.js +2 -1
- package/out/concepts/SwitchStatement__.js.map +1 -1
- package/out/concepts/TriggerEvent__.js +3 -2
- package/out/concepts/TriggerEvent__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.js +9 -4
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/UnaryExpression__.js +2 -1
- package/out/concepts/UnaryExpression__.js.map +1 -1
- package/out/concepts/ValidationRule__.js +2 -1
- package/out/concepts/ValidationRule__.js.map +1 -1
- package/out/concepts/Variable__.js +4 -3
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewElement__.js +26 -5
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/WhileStatement__.js +2 -1
- package/out/concepts/WhileStatement__.js.map +1 -1
- package/out/generator/genBundleFiles.js +4 -4
- package/out/generator/icestark.d.ts +1 -1
- package/out/generator/icestark.js +4 -2
- package/out/generator/icestark.js.map +1 -1
- package/out/generator/qiankun.d.ts +1 -1
- package/out/generator/qiankun.js +3 -1
- package/out/generator/qiankun.js.map +1 -1
- package/out/server/translator.js +11 -0
- package/out/server/translator.js.map +1 -1
- package/out/service/storage/jsoner.js +20 -1
- package/out/service/storage/jsoner.js.map +1 -1
- package/out/translator/utils.d.ts +1 -0
- package/out/translator/utils.js +16 -2
- package/out/translator/utils.js.map +1 -1
- package/package.json +1 -1
- package/sandbox/stdlib/nasl.oql.ts +6 -1
- package/src/automate/template/myProcess.js +3 -2
- package/src/common/BaseNode.ts +19 -10
- package/src/concepts/Anchor__.ts +2 -1
- package/src/concepts/AnonymousFunction__.ts +6 -3
- package/src/concepts/Argument__.ts +7 -6
- package/src/concepts/Assignment__.ts +17 -17
- package/src/concepts/Attribute__.ts +2 -1
- package/src/concepts/AuthLogicForCallInterface__.ts +3 -2
- package/src/concepts/BackendVariable__.ts +7 -6
- package/src/concepts/BatchAssignment__.ts +7 -5
- package/src/concepts/BinaryExpression__.ts +10 -12
- package/src/concepts/BindAttribute__.ts +18 -15
- package/src/concepts/BindDirective__.ts +15 -14
- package/src/concepts/BindEvent__.ts +5 -3
- package/src/concepts/BindStyle__.ts +2 -1
- package/src/concepts/CallAuthInterface__.ts +5 -2
- package/src/concepts/CallFunction__.ts +17 -5
- package/src/concepts/CallInterface__.ts +2 -1
- package/src/concepts/CallLogic__.ts +22 -9
- package/src/concepts/CallQueryComponent__.ts +4 -2
- package/src/concepts/CompletionProperty__.ts +2 -1
- package/src/concepts/ConfigGroup__.ts +3 -2
- package/src/concepts/ConfigProperty__.ts +3 -2
- package/src/concepts/Configuration__.ts +3 -2
- package/src/concepts/Connection__.ts +3 -2
- package/src/concepts/Connector__.ts +15 -10
- package/src/concepts/Constant__.ts +2 -1
- package/src/concepts/DataSource__.ts +3 -2
- package/src/concepts/Destination__.ts +2 -1
- package/src/concepts/EntityProperty__.ts +7 -3
- package/src/concepts/Entity__.ts +6 -4
- package/src/concepts/Enum__.ts +2 -1
- package/src/concepts/Event__.ts +3 -2
- package/src/concepts/ExternalDestination__.ts +2 -1
- package/src/concepts/ForEachStatement__.ts +4 -2
- package/src/concepts/Frontend__.ts +14 -9
- package/src/concepts/Function__.ts +11 -6
- package/src/concepts/Identifier__.ts +7 -4
- package/src/concepts/IfStatement__.ts +2 -1
- package/src/concepts/InterfaceParam__.ts +2 -1
- package/src/concepts/Interface__.ts +6 -3
- package/src/concepts/JSBlock__.ts +24 -25
- package/src/concepts/Logic__.ts +26 -20
- package/src/concepts/MatchCase__.ts +6 -4
- package/src/concepts/Match__.ts +2 -1
- package/src/concepts/MemberExpression__.ts +2 -1
- package/src/concepts/MetadataType__.ts +18 -17
- package/src/concepts/MsgTriggerEvent__.ts +3 -2
- package/src/concepts/MsgTriggerLauncher__.ts +3 -2
- package/src/concepts/Namespace__.ts +33 -22
- package/src/concepts/NewComposite__.ts +23 -13
- package/src/concepts/NewList__.ts +13 -11
- package/src/concepts/NewMap__.ts +11 -9
- package/src/concepts/NumericLiteral__.ts +2 -1
- package/src/concepts/OqlQueryComponent__.ts +9 -8
- package/src/concepts/OverriddenLogic__.ts +13 -7
- package/src/concepts/Param__.ts +15 -14
- package/src/concepts/ProcessComponent__.ts +6 -4
- package/src/concepts/ProcessElement__.ts +22 -14
- package/src/concepts/ProcessOutcome__.ts +17 -2
- package/src/concepts/ProcessOutcomes__.ts +17 -2
- package/src/concepts/Process__.ts +15 -10
- package/src/concepts/QueryAggregateExpression__.ts +2 -1
- package/src/concepts/QueryFromExpression__.ts +2 -1
- package/src/concepts/QueryGroupByExpression__.ts +2 -1
- package/src/concepts/QueryJoinExpression__.ts +3 -2
- package/src/concepts/QueryLimitExpression__.ts +2 -1
- package/src/concepts/QueryOrderByExpression__.ts +2 -1
- package/src/concepts/QuerySelectExpression__.ts +3 -2
- package/src/concepts/Return__.ts +7 -6
- package/src/concepts/SelectMembers__.ts +3 -2
- package/src/concepts/Slot__.ts +2 -1
- package/src/concepts/SqlQueryComponent__.ts +2 -1
- package/src/concepts/StringInterpolation__.ts +13 -3
- package/src/concepts/StructureProperty__.ts +2 -1
- package/src/concepts/Structure__.ts +6 -4
- package/src/concepts/SwitchCase__.ts +2 -1
- package/src/concepts/SwitchStatement__.ts +2 -1
- package/src/concepts/TriggerEvent__.ts +3 -2
- package/src/concepts/TypeAnnotation__.ts +35 -28
- package/src/concepts/UnaryExpression__.ts +2 -1
- package/src/concepts/ValidationRule__.ts +2 -1
- package/src/concepts/Variable__.ts +7 -6
- package/src/concepts/ViewElement__.ts +27 -8
- package/src/concepts/WhileStatement__.ts +2 -1
- package/src/generator/genBundleFiles.ts +4 -4
- package/src/generator/icestark.ts +4 -2
- package/src/generator/qiankun.ts +3 -1
- package/src/server/translator.ts +10 -1
- package/src/service/storage/jsoner.ts +24 -3
- package/src/translator/utils.ts +15 -1
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -87
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +0 -461
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -196
- package/coverage/src/automate/engine/index.html +0 -116
- package/coverage/src/automate/engine/utils.js.html +0 -1414
- package/coverage/src/bak/index.html +0 -116
- package/coverage/src/bak/translator.js.html +0 -745
- package/coverage/src/breakpoint/generator/AfterStartNode.ts.html +0 -175
- package/coverage/src/breakpoint/generator/BeforeEndNode.ts.html +0 -169
- package/coverage/src/breakpoint/generator/BreakpointNode.ts.html +0 -1246
- package/coverage/src/breakpoint/generator/CallbackNode.ts.html +0 -145
- package/coverage/src/breakpoint/generator/index.html +0 -176
- package/coverage/src/breakpoint/generator/index.ts.html +0 -508
- package/coverage/src/breakpoint/index.html +0 -116
- package/coverage/src/breakpoint/index.ts.html +0 -94
- package/coverage/src/breakpoint/shared/constants.ts.html +0 -436
- package/coverage/src/breakpoint/shared/index.html +0 -176
- package/coverage/src/breakpoint/shared/index.ts.html +0 -94
- package/coverage/src/breakpoint/shared/operations.ts.html +0 -160
- package/coverage/src/breakpoint/shared/socket.ts.html +0 -1297
- package/coverage/src/breakpoint/shared/utils.ts.html +0 -1087
- package/coverage/src/breakpoint/store/core.ts.html +0 -1600
- package/coverage/src/breakpoint/store/dock.ts.html +0 -733
- package/coverage/src/breakpoint/store/index.html +0 -146
- package/coverage/src/breakpoint/store/index.ts.html +0 -91
- package/coverage/src/common/BaseNode.ts.html +0 -3904
- package/coverage/src/common/Command.ts.html +0 -310
- package/coverage/src/common/EventEmitter.ts.html +0 -370
- package/coverage/src/common/Messager.ts.html +0 -820
- package/coverage/src/common/asyncFuncMap.ts.html +0 -127
- package/coverage/src/common/index.html +0 -191
- package/coverage/src/common/index.ts.html +0 -94
- package/coverage/src/concepts/Abort__.ts.html +0 -331
- package/coverage/src/concepts/Anchor__.ts.html +0 -661
- package/coverage/src/concepts/AnonymousFunction__.ts.html +0 -2071
- package/coverage/src/concepts/App__.ts.html +0 -14095
- package/coverage/src/concepts/Argument__.ts.html +0 -979
- package/coverage/src/concepts/Assignee__.ts.html +0 -2263
- package/coverage/src/concepts/AssignmentLine__.ts.html +0 -412
- package/coverage/src/concepts/Assignment__.ts.html +0 -1162
- package/coverage/src/concepts/Attribute__.ts.html +0 -748
- package/coverage/src/concepts/AuthInterface__.ts.html +0 -370
- package/coverage/src/concepts/AuthLogicForCallInterface__.ts.html +0 -1999
- package/coverage/src/concepts/AuthLogic__.ts.html +0 -793
- package/coverage/src/concepts/BackendVariable__.ts.html +0 -1498
- package/coverage/src/concepts/Backend__.ts.html +0 -1180
- package/coverage/src/concepts/BatchAssignment__.ts.html +0 -3346
- package/coverage/src/concepts/BinaryExpression__.ts.html +0 -1543
- package/coverage/src/concepts/BindAttribute__.ts.html +0 -3928
- package/coverage/src/concepts/BindDirective__.ts.html +0 -1984
- package/coverage/src/concepts/BindEvent__.ts.html +0 -3463
- package/coverage/src/concepts/BindStyle__.ts.html +0 -1627
- package/coverage/src/concepts/BooleanLiteral__.ts.html +0 -421
- package/coverage/src/concepts/CallAuthInterface__.ts.html +0 -1630
- package/coverage/src/concepts/CallConnector__.ts.html +0 -925
- package/coverage/src/concepts/CallFunction__.ts.html +0 -2140
- package/coverage/src/concepts/CallInterface__.ts.html +0 -2764
- package/coverage/src/concepts/CallLogic__.ts.html +0 -4738
- package/coverage/src/concepts/CallQueryComponent__.ts.html +0 -5335
- package/coverage/src/concepts/Comment__.ts.html +0 -397
- package/coverage/src/concepts/CompletionProperty__.ts.html +0 -940
- package/coverage/src/concepts/ConfigGroup__.ts.html +0 -1120
- package/coverage/src/concepts/ConfigPropertyValue__.ts.html +0 -427
- package/coverage/src/concepts/ConfigProperty__.ts.html +0 -1363
- package/coverage/src/concepts/Configuration__.ts.html +0 -1042
- package/coverage/src/concepts/Connection__.ts.html +0 -1375
- package/coverage/src/concepts/ConnectorTrigger__.ts.html +0 -598
- package/coverage/src/concepts/Connector__.ts.html +0 -4318
- package/coverage/src/concepts/Constant__.ts.html +0 -928
- package/coverage/src/concepts/DataSource__.ts.html +0 -1786
- package/coverage/src/concepts/DatabaseTypeAnnotation__.ts.html +0 -334
- package/coverage/src/concepts/Destination__.ts.html +0 -2743
- package/coverage/src/concepts/End__.ts.html +0 -436
- package/coverage/src/concepts/EntityIndex__.ts.html +0 -790
- package/coverage/src/concepts/EntityProperty__.ts.html +0 -2716
- package/coverage/src/concepts/Entity__.ts.html +0 -2977
- package/coverage/src/concepts/EnumItem__.ts.html +0 -553
- package/coverage/src/concepts/Enum__.ts.html +0 -1246
- package/coverage/src/concepts/Event__.ts.html +0 -1099
- package/coverage/src/concepts/ExternalDestination__.ts.html +0 -1048
- package/coverage/src/concepts/ForEachStatement__.ts.html +0 -1978
- package/coverage/src/concepts/FrontendLibrary__.ts.html +0 -1738
- package/coverage/src/concepts/FrontendVariable__.ts.html +0 -292
- package/coverage/src/concepts/Frontend__.ts.html +0 -4024
- package/coverage/src/concepts/Function__.ts.html +0 -3664
- package/coverage/src/concepts/Identifier__.ts.html +0 -1060
- package/coverage/src/concepts/IfStatement__.ts.html +0 -1621
- package/coverage/src/concepts/Integration__.ts.html +0 -1255
- package/coverage/src/concepts/InterfaceParam__.ts.html +0 -1102
- package/coverage/src/concepts/Interface__.ts.html +0 -3433
- package/coverage/src/concepts/JSBlock__.ts.html +0 -601
- package/coverage/src/concepts/JavaLogic__.ts.html +0 -463
- package/coverage/src/concepts/LogicItem__.ts.html +0 -1174
- package/coverage/src/concepts/Logic__.ts.html +0 -7444
- package/coverage/src/concepts/MatchCase__.ts.html +0 -2968
- package/coverage/src/concepts/Match__.ts.html +0 -2476
- package/coverage/src/concepts/MemberExpression__.ts.html +0 -1732
- package/coverage/src/concepts/MetadataType__.ts.html +0 -1996
- package/coverage/src/concepts/MicroApp__.ts.html +0 -439
- package/coverage/src/concepts/Module__.ts.html +0 -9874
- package/coverage/src/concepts/MsgTriggerEvent__.ts.html +0 -1060
- package/coverage/src/concepts/MsgTriggerLauncher__.ts.html +0 -1033
- package/coverage/src/concepts/Namespace__.ts.html +0 -8077
- package/coverage/src/concepts/NewComposite__.ts.html +0 -4795
- package/coverage/src/concepts/NewList__.ts.html +0 -1648
- package/coverage/src/concepts/NewMap__.ts.html +0 -2356
- package/coverage/src/concepts/New__.ts.html +0 -289
- package/coverage/src/concepts/NullLiteral__.ts.html +0 -352
- package/coverage/src/concepts/NumericLiteral__.ts.html +0 -691
- package/coverage/src/concepts/OqlQueryComponent__.ts.html +0 -1231
- package/coverage/src/concepts/OverriddenLogic__.ts.html +0 -6892
- package/coverage/src/concepts/Param__.ts.html +0 -1735
- package/coverage/src/concepts/Point__.ts.html +0 -334
- package/coverage/src/concepts/ProcessComponent__.ts.html +0 -1693
- package/coverage/src/concepts/ProcessElement__.ts.html +0 -5983
- package/coverage/src/concepts/ProcessOutcome__.ts.html +0 -355
- package/coverage/src/concepts/ProcessOutcomes__.ts.html +0 -346
- package/coverage/src/concepts/Process__.ts.html +0 -4831
- package/coverage/src/concepts/QueryAggregateExpression__.ts.html +0 -583
- package/coverage/src/concepts/QueryFieldExpression__.ts.html +0 -586
- package/coverage/src/concepts/QueryFromExpression__.ts.html +0 -925
- package/coverage/src/concepts/QueryGroupByExpression__.ts.html +0 -574
- package/coverage/src/concepts/QueryJoinExpression__.ts.html +0 -1582
- package/coverage/src/concepts/QueryLimitExpression__.ts.html +0 -652
- package/coverage/src/concepts/QueryOrderByExpression__.ts.html +0 -694
- package/coverage/src/concepts/QuerySelectExpression__.ts.html +0 -1729
- package/coverage/src/concepts/Rect__.ts.html +0 -376
- package/coverage/src/concepts/Return__.ts.html +0 -1327
- package/coverage/src/concepts/Role__.ts.html +0 -604
- package/coverage/src/concepts/SelectMembers__.ts.html +0 -1261
- package/coverage/src/concepts/Slot__.ts.html +0 -643
- package/coverage/src/concepts/SqlQueryComponent__.ts.html +0 -997
- package/coverage/src/concepts/Start__.ts.html +0 -307
- package/coverage/src/concepts/StringInterpolation__.ts.html +0 -1150
- package/coverage/src/concepts/StringLiteral__.ts.html +0 -508
- package/coverage/src/concepts/StructureProperty__.ts.html +0 -1147
- package/coverage/src/concepts/Structure__.ts.html +0 -2119
- package/coverage/src/concepts/SwitchCase__.ts.html +0 -1189
- package/coverage/src/concepts/SwitchStatement__.ts.html +0 -892
- package/coverage/src/concepts/Theme__.ts.html +0 -361
- package/coverage/src/concepts/Transactional__.ts.html +0 -631
- package/coverage/src/concepts/TriggerEvent__.ts.html +0 -1027
- package/coverage/src/concepts/TriggerLauncher__.ts.html +0 -778
- package/coverage/src/concepts/TypeAnnotation__.ts.html +0 -3880
- package/coverage/src/concepts/TypeParam__.ts.html +0 -322
- package/coverage/src/concepts/UnaryExpression__.ts.html +0 -724
- package/coverage/src/concepts/Unparsed__.ts.html +0 -397
- package/coverage/src/concepts/UseComponent__.ts.html +0 -334
- package/coverage/src/concepts/ValidationRule__.ts.html +0 -1855
- package/coverage/src/concepts/Variable__.ts.html +0 -1534
- package/coverage/src/concepts/ViewBlock__.ts.html +0 -355
- package/coverage/src/concepts/ViewComponent__.ts.html +0 -4255
- package/coverage/src/concepts/ViewElement__.ts.html +0 -8956
- package/coverage/src/concepts/View__.ts.html +0 -8875
- package/coverage/src/concepts/WhileStatement__.ts.html +0 -1096
- package/coverage/src/concepts/basics/stdlib/index.html +0 -356
- package/coverage/src/concepts/basics/stdlib/index.ts.html +0 -208
- package/coverage/src/concepts/basics/stdlib/nasl.auth.ts.html +0 -565
- package/coverage/src/concepts/basics/stdlib/nasl.browser.ts.html +0 -517
- package/coverage/src/concepts/basics/stdlib/nasl.collection.ts.html +0 -226
- package/coverage/src/concepts/basics/stdlib/nasl.configuration.ts.html +0 -172
- package/coverage/src/concepts/basics/stdlib/nasl.core.ts.html +0 -214
- package/coverage/src/concepts/basics/stdlib/nasl.event.ts.html +0 -145
- package/coverage/src/concepts/basics/stdlib/nasl.http.ts.html +0 -589
- package/coverage/src/concepts/basics/stdlib/nasl.interface.ts.html +0 -214
- package/coverage/src/concepts/basics/stdlib/nasl.io.ts.html +0 -229
- package/coverage/src/concepts/basics/stdlib/nasl.logging.ts.html +0 -268
- package/coverage/src/concepts/basics/stdlib/nasl.process.ts.html +0 -1999
- package/coverage/src/concepts/basics/stdlib/nasl.ui.ts.html +0 -3259
- package/coverage/src/concepts/basics/stdlib/nasl.util.ts.html +0 -6844
- package/coverage/src/concepts/basics/stdlib/nasl.validation.ts.html +0 -1768
- package/coverage/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts.html +0 -163
- package/coverage/src/concepts/basics/stdlib/timeZone.ts.html +0 -664
- package/coverage/src/concepts/basics/types/coreTypeList.ts.html +0 -121
- package/coverage/src/concepts/basics/types/index.html +0 -131
- package/coverage/src/concepts/basics/types/index.ts.html +0 -160
- package/coverage/src/concepts/index.html +0 -1976
- package/coverage/src/concepts/index.ts.html +0 -103
- package/coverage/src/concepts/index__.ts.html +0 -454
- package/coverage/src/config.ts.html +0 -325
- package/coverage/src/decorators/index.html +0 -131
- package/coverage/src/decorators/index.ts.html +0 -574
- package/coverage/src/decorators/promise.ts.html +0 -169
- package/coverage/src/eventBus.ts.html +0 -100
- package/coverage/src/generator/compileComponent.ts.html +0 -142
- package/coverage/src/generator/genBundleFiles.ts.html +0 -1822
- package/coverage/src/generator/genHash.ts.html +0 -124
- package/coverage/src/generator/genMetaData.ts.html +0 -1129
- package/coverage/src/generator/genReleaseBody.ts.html +0 -1282
- package/coverage/src/generator/icestark.ts.html +0 -220
- package/coverage/src/generator/index.html +0 -266
- package/coverage/src/generator/index.ts.html +0 -106
- package/coverage/src/generator/microApp.ts.html +0 -172
- package/coverage/src/generator/permission.ts.html +0 -1036
- package/coverage/src/generator/qiankun.ts.html +0 -232
- package/coverage/src/generator/styleReplacer.ts.html +0 -199
- package/coverage/src/index.html +0 -146
- package/coverage/src/index.ts.html +0 -121
- package/coverage/src/manager/diagnostic.ts.html +0 -442
- package/coverage/src/manager/index.html +0 -131
- package/coverage/src/manager/stepRecorder.ts.html +0 -457
- package/coverage/src/natural/genNaturalTS.ts.html +0 -355
- package/coverage/src/natural/index.html +0 -161
- package/coverage/src/natural/index.ts.html +0 -91
- package/coverage/src/natural/naslStdlibMap.ts.html +0 -157
- package/coverage/src/natural/transformTSCode.ts.html +0 -2707
- package/coverage/src/sentry/index.html +0 -116
- package/coverage/src/sentry/index.ts.html +0 -676
- package/coverage/src/server/createUiTs.ts.html +0 -919
- package/coverage/src/server/entity2LogicNamespace.ts.html +0 -1294
- package/coverage/src/server/event.js.html +0 -526
- package/coverage/src/server/extendBaseNode.ts.html +0 -1765
- package/coverage/src/server/formatTsUtils.ts.html +0 -2689
- package/coverage/src/server/getConnector.ts.html +0 -316
- package/coverage/src/server/getExtensionModules.ts.html +0 -178
- package/coverage/src/server/getFunctions.ts.html +0 -133
- package/coverage/src/server/getInterfaces.ts.html +0 -229
- package/coverage/src/server/getLogging.ts.html +0 -100
- package/coverage/src/server/getLogics.ts.html +0 -1363
- package/coverage/src/server/getMemberIdentifier.ts.html +0 -1609
- package/coverage/src/server/getProcessComponents.ts.html +0 -112
- package/coverage/src/server/getProcesses.ts.html +0 -2023
- package/coverage/src/server/getValidates.ts.html +0 -115
- package/coverage/src/server/index.html +0 -401
- package/coverage/src/server/index.ts.html +0 -229
- package/coverage/src/server/naslServer.ts.html +0 -14812
- package/coverage/src/server/naslStdlibMap.ts.html +0 -241
- package/coverage/src/server/process2LogicNamespace.ts.html +0 -454
- package/coverage/src/server/translator.ts.html +0 -2566
- package/coverage/src/service/creator/add.configs.js.html +0 -397
- package/coverage/src/service/creator/errHandles.js.html +0 -304
- package/coverage/src/service/creator/index.html +0 -146
- package/coverage/src/service/creator/index.js.html +0 -352
- package/coverage/src/service/datasource/api.js.html +0 -118
- package/coverage/src/service/datasource/index.html +0 -131
- package/coverage/src/service/datasource/index.js.html +0 -103
- package/coverage/src/service/logic/api.js.html +0 -109
- package/coverage/src/service/logic/index.html +0 -131
- package/coverage/src/service/logic/index.js.html +0 -103
- package/coverage/src/service/storage/api.js.html +0 -202
- package/coverage/src/service/storage/index.html +0 -206
- package/coverage/src/service/storage/index.ts.html +0 -103
- package/coverage/src/service/storage/init.ts.html +0 -3661
- package/coverage/src/service/storage/jsoner.ts.html +0 -502
- package/coverage/src/service/storage/map.ts.html +0 -256
- package/coverage/src/service/storage/service.ts.html +0 -331
- package/coverage/src/service/storage/storagePoint.ts.html +0 -304
- package/coverage/src/templator/genCallComponentLogic.ts.html +0 -163
- package/coverage/src/templator/genCreateBlock.ts.html +0 -1084
- package/coverage/src/templator/genCurdEditMultipleKeyBlock.ts.html +0 -1627
- package/coverage/src/templator/genCurdMultipleKeyBlock.ts.html +0 -2242
- package/coverage/src/templator/genEditTableBlock.ts.html +0 -1024
- package/coverage/src/templator/genEnumSelectBlock.ts.html +0 -178
- package/coverage/src/templator/genGetBlock.ts.html +0 -451
- package/coverage/src/templator/genGridViewBlock.ts.html +0 -1114
- package/coverage/src/templator/genListViewBlock.ts.html +0 -475
- package/coverage/src/templator/genQueryComponent.ts.html +0 -1207
- package/coverage/src/templator/genSelectBlock.ts.html +0 -1243
- package/coverage/src/templator/genTableBlock.ts.html +0 -973
- package/coverage/src/templator/genUpdateBlock.ts.html +0 -1204
- package/coverage/src/templator/index.html +0 -326
- package/coverage/src/templator/index.ts.html +0 -154
- package/coverage/src/templator/utils.ts.html +0 -1927
- package/coverage/src/translator/constant.ts.html +0 -106
- package/coverage/src/translator/index.html +0 -146
- package/coverage/src/translator/index.ts.html +0 -94
- package/coverage/src/translator/utils.ts.html +0 -493
- package/coverage/src/utils/cookie.ts.html +0 -265
- package/coverage/src/utils/env.ts.html +0 -91
- package/coverage/src/utils/index.html +0 -236
- package/coverage/src/utils/index.ts.html +0 -748
- package/coverage/src/utils/logger.ts.html +0 -145
- package/coverage/src/utils/sortTsString.ts.html +0 -187
- package/coverage/src/utils/string.ts.html +0 -502
- package/coverage/src/utils/time-slicing.ts.html +0 -418
- package/coverage/src/utils/traverse.ts.html +0 -568
- package/coverage/src/utils/window.ts.html +0 -112
package/src/concepts/Logic__.ts
CHANGED
|
@@ -305,7 +305,7 @@ export class Logic extends BaseNode {
|
|
|
305
305
|
|
|
306
306
|
getTypeParamExistingNames(excludedList: Array<TypeParam> = []) {
|
|
307
307
|
const excludedSet = new Set(excludedList);
|
|
308
|
-
return ((this.typeParams as TypeParam[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
308
|
+
return ((this.typeParams as TypeParam[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
309
309
|
}
|
|
310
310
|
getTypeParamUniqueName(name = 'typeParam1') {
|
|
311
311
|
return utils.unique(name, this.getTypeParamExistingNames(), undefined, false);
|
|
@@ -1120,7 +1120,7 @@ export class Logic extends BaseNode {
|
|
|
1120
1120
|
if (typeof options === 'string') {
|
|
1121
1121
|
transactional = this.transactional;
|
|
1122
1122
|
if (!transactional) {
|
|
1123
|
-
throw new Error(
|
|
1123
|
+
throw new Error('找不到事务 ' + options);
|
|
1124
1124
|
}
|
|
1125
1125
|
} else {
|
|
1126
1126
|
transactional = options;
|
|
@@ -1129,7 +1129,7 @@ export class Logic extends BaseNode {
|
|
|
1129
1129
|
}
|
|
1130
1130
|
|
|
1131
1131
|
__removeTransactional(transactional: Transactional) {
|
|
1132
|
-
const
|
|
1132
|
+
const parentKey = transactional.parentKey;
|
|
1133
1133
|
const params: Params = {
|
|
1134
1134
|
parentNode: this,
|
|
1135
1135
|
parentKey,
|
|
@@ -1144,7 +1144,8 @@ export class Logic extends BaseNode {
|
|
|
1144
1144
|
// @ts-ignore
|
|
1145
1145
|
const n = transactional.__v_raw || transactional;
|
|
1146
1146
|
if (Array.isArray((t as any)[parentKey])) {
|
|
1147
|
-
|
|
1147
|
+
// @ts-ignore
|
|
1148
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
1148
1149
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
1149
1150
|
params.index = index;
|
|
1150
1151
|
} else if ((t as any)[parentKey] === n) {
|
|
@@ -1172,7 +1173,7 @@ export class Logic extends BaseNode {
|
|
|
1172
1173
|
if (typeof options === 'string') {
|
|
1173
1174
|
typeParam = (this.typeParams as TypeParam[]).find((item) => item.name === options);
|
|
1174
1175
|
if (!typeParam) {
|
|
1175
|
-
throw new Error(
|
|
1176
|
+
throw new Error('找不到类型参数 ' + options);
|
|
1176
1177
|
}
|
|
1177
1178
|
} else {
|
|
1178
1179
|
typeParam = options;
|
|
@@ -1181,7 +1182,7 @@ export class Logic extends BaseNode {
|
|
|
1181
1182
|
}
|
|
1182
1183
|
|
|
1183
1184
|
__removeTypeParam(typeParam: TypeParam) {
|
|
1184
|
-
const
|
|
1185
|
+
const parentKey = typeParam.parentKey;
|
|
1185
1186
|
const params: Params = {
|
|
1186
1187
|
parentNode: this,
|
|
1187
1188
|
parentKey,
|
|
@@ -1196,7 +1197,8 @@ export class Logic extends BaseNode {
|
|
|
1196
1197
|
// @ts-ignore
|
|
1197
1198
|
const n = typeParam.__v_raw || typeParam;
|
|
1198
1199
|
if (Array.isArray((t as any)[parentKey])) {
|
|
1199
|
-
|
|
1200
|
+
// @ts-ignore
|
|
1201
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
1200
1202
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
1201
1203
|
params.index = index;
|
|
1202
1204
|
} else if ((t as any)[parentKey] === n) {
|
|
@@ -1224,7 +1226,7 @@ export class Logic extends BaseNode {
|
|
|
1224
1226
|
if (typeof options === 'string') {
|
|
1225
1227
|
param = (this.params as Param[]).find((item) => item.name === options);
|
|
1226
1228
|
if (!param) {
|
|
1227
|
-
throw new Error(
|
|
1229
|
+
throw new Error('找不到输入参数 ' + options);
|
|
1228
1230
|
}
|
|
1229
1231
|
} else {
|
|
1230
1232
|
param = options;
|
|
@@ -1233,7 +1235,7 @@ export class Logic extends BaseNode {
|
|
|
1233
1235
|
}
|
|
1234
1236
|
|
|
1235
1237
|
__removeParam(param: Param) {
|
|
1236
|
-
const
|
|
1238
|
+
const parentKey = param.parentKey;
|
|
1237
1239
|
const params: Params = {
|
|
1238
1240
|
parentNode: this,
|
|
1239
1241
|
parentKey,
|
|
@@ -1248,7 +1250,8 @@ export class Logic extends BaseNode {
|
|
|
1248
1250
|
// @ts-ignore
|
|
1249
1251
|
const n = param.__v_raw || param;
|
|
1250
1252
|
if (Array.isArray((t as any)[parentKey])) {
|
|
1251
|
-
|
|
1253
|
+
// @ts-ignore
|
|
1254
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
1252
1255
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
1253
1256
|
params.index = index;
|
|
1254
1257
|
} else if ((t as any)[parentKey] === n) {
|
|
@@ -1276,7 +1279,7 @@ export class Logic extends BaseNode {
|
|
|
1276
1279
|
if (typeof options === 'string') {
|
|
1277
1280
|
ret = (this.returns as Return[]).find((item) => item.name === options);
|
|
1278
1281
|
if (!ret) {
|
|
1279
|
-
throw new Error(
|
|
1282
|
+
throw new Error('找不到输出参数 ' + options);
|
|
1280
1283
|
}
|
|
1281
1284
|
} else {
|
|
1282
1285
|
ret = options;
|
|
@@ -1285,7 +1288,7 @@ export class Logic extends BaseNode {
|
|
|
1285
1288
|
}
|
|
1286
1289
|
|
|
1287
1290
|
__removeReturn(ret: Return) {
|
|
1288
|
-
const
|
|
1291
|
+
const parentKey = ret.parentKey;
|
|
1289
1292
|
const params: Params = {
|
|
1290
1293
|
parentNode: this,
|
|
1291
1294
|
parentKey,
|
|
@@ -1300,7 +1303,8 @@ export class Logic extends BaseNode {
|
|
|
1300
1303
|
// @ts-ignore
|
|
1301
1304
|
const n = ret.__v_raw || ret;
|
|
1302
1305
|
if (Array.isArray((t as any)[parentKey])) {
|
|
1303
|
-
|
|
1306
|
+
// @ts-ignore
|
|
1307
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
1304
1308
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
1305
1309
|
params.index = index;
|
|
1306
1310
|
} else if ((t as any)[parentKey] === n) {
|
|
@@ -1328,7 +1332,7 @@ export class Logic extends BaseNode {
|
|
|
1328
1332
|
if (typeof options === 'string') {
|
|
1329
1333
|
variable = (this.variables as Variable[]).find((item) => item.name === options);
|
|
1330
1334
|
if (!variable) {
|
|
1331
|
-
throw new Error(
|
|
1335
|
+
throw new Error('找不到变量 ' + options);
|
|
1332
1336
|
}
|
|
1333
1337
|
} else {
|
|
1334
1338
|
variable = options;
|
|
@@ -1337,7 +1341,7 @@ export class Logic extends BaseNode {
|
|
|
1337
1341
|
}
|
|
1338
1342
|
|
|
1339
1343
|
__removeVariable(variable: Variable) {
|
|
1340
|
-
const
|
|
1344
|
+
const parentKey = variable.parentKey;
|
|
1341
1345
|
const params: Params = {
|
|
1342
1346
|
parentNode: this,
|
|
1343
1347
|
parentKey,
|
|
@@ -1352,7 +1356,8 @@ export class Logic extends BaseNode {
|
|
|
1352
1356
|
// @ts-ignore
|
|
1353
1357
|
const n = variable.__v_raw || variable;
|
|
1354
1358
|
if (Array.isArray((t as any)[parentKey])) {
|
|
1355
|
-
|
|
1359
|
+
// @ts-ignore
|
|
1360
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
1356
1361
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
1357
1362
|
params.index = index;
|
|
1358
1363
|
} else if ((t as any)[parentKey] === n) {
|
|
@@ -1386,7 +1391,7 @@ export class Logic extends BaseNode {
|
|
|
1386
1391
|
}
|
|
1387
1392
|
|
|
1388
1393
|
__removeLogicItem(logicItem: LogicItem) {
|
|
1389
|
-
const
|
|
1394
|
+
const parentKey = logicItem.parentKey;
|
|
1390
1395
|
const params: Params = {
|
|
1391
1396
|
parentNode: this,
|
|
1392
1397
|
parentKey,
|
|
@@ -1401,7 +1406,8 @@ export class Logic extends BaseNode {
|
|
|
1401
1406
|
// @ts-ignore
|
|
1402
1407
|
const n = logicItem.__v_raw || logicItem;
|
|
1403
1408
|
if (Array.isArray((t as any)[parentKey])) {
|
|
1404
|
-
|
|
1409
|
+
// @ts-ignore
|
|
1410
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
1405
1411
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
1406
1412
|
params.index = index;
|
|
1407
1413
|
} else if ((t as any)[parentKey] === n) {
|
|
@@ -1968,7 +1974,7 @@ ${indent(state.tabSize)} */\n`;
|
|
|
1968
1974
|
if (parentNode?.concept === 'View') {
|
|
1969
1975
|
logicName = `viewLogic_${name}`;
|
|
1970
1976
|
} else if (parentNode?.concept === 'BindEvent') {
|
|
1971
|
-
logicName = `on_${
|
|
1977
|
+
logicName = `on_${parentNode?.parentNode?.name}_${name}`;
|
|
1972
1978
|
} else {
|
|
1973
1979
|
logicName = this.name;
|
|
1974
1980
|
}
|
|
@@ -2320,7 +2326,7 @@ ${indent(state.tabSize)} */\n`;
|
|
|
2320
2326
|
delete() {
|
|
2321
2327
|
let actionMsg = '删除逻辑项';
|
|
2322
2328
|
if (this.name) actionMsg += `“${this.name}”`;
|
|
2323
|
-
this.app?.emit('logicDeleted', { actionMsg: this.nodePath })
|
|
2329
|
+
this.app?.emit('logicDeleted', { actionMsg: this.nodePath });
|
|
2324
2330
|
this.app?.emit('collect:start', {
|
|
2325
2331
|
actionMsg,
|
|
2326
2332
|
});
|
|
@@ -91,7 +91,7 @@ export class MatchCase extends LogicItem {
|
|
|
91
91
|
|
|
92
92
|
getLogicItemExistingNames(excludedList: Array<LogicItem> = []) {
|
|
93
93
|
const excludedSet = new Set(excludedList);
|
|
94
|
-
return ((this.patterns as LogicItem[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
94
|
+
return ((this.patterns as LogicItem[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
95
95
|
}
|
|
96
96
|
getLogicItemUniqueName(name = 'logicItem1') {
|
|
97
97
|
return utils.unique(name, this.getLogicItemExistingNames(), undefined, false);
|
|
@@ -346,7 +346,7 @@ export class MatchCase extends LogicItem {
|
|
|
346
346
|
const excludedSet = new Set(excludedList);
|
|
347
347
|
return ((this.patterns as TypeAnnotation[]) || [])
|
|
348
348
|
.filter((item) => !excludedSet.has(item))
|
|
349
|
-
.map((item) => item
|
|
349
|
+
.map((item) => item?.name);
|
|
350
350
|
}
|
|
351
351
|
getTypeAnnotationUniqueName(name = 'typeAnnotation1') {
|
|
352
352
|
return utils.unique(name, this.getTypeAnnotationExistingNames(), undefined, false);
|
|
@@ -549,7 +549,8 @@ export class MatchCase extends LogicItem {
|
|
|
549
549
|
// @ts-ignore
|
|
550
550
|
const n = logicItem.__v_raw || logicItem;
|
|
551
551
|
if (Array.isArray((t as any)[parentKey])) {
|
|
552
|
-
|
|
552
|
+
// @ts-ignore
|
|
553
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
553
554
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
554
555
|
params.index = index;
|
|
555
556
|
} else if ((t as any)[parentKey] === n) {
|
|
@@ -601,7 +602,8 @@ export class MatchCase extends LogicItem {
|
|
|
601
602
|
// @ts-ignore
|
|
602
603
|
const n = typeAnnotation.__v_raw || typeAnnotation;
|
|
603
604
|
if (Array.isArray((t as any)[parentKey])) {
|
|
604
|
-
|
|
605
|
+
// @ts-ignore
|
|
606
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
605
607
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
606
608
|
params.index = index;
|
|
607
609
|
} else if ((t as any)[parentKey] === n) {
|
package/src/concepts/Match__.ts
CHANGED
|
@@ -220,7 +220,8 @@ export class Match extends LogicItem {
|
|
|
220
220
|
// @ts-ignore
|
|
221
221
|
const n = logicItem.__v_raw || logicItem;
|
|
222
222
|
if (Array.isArray((t as any)[parentKey])) {
|
|
223
|
-
|
|
223
|
+
// @ts-ignore
|
|
224
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
224
225
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
225
226
|
params.index = index;
|
|
226
227
|
} else if ((t as any)[parentKey] === n) {
|
|
@@ -137,7 +137,8 @@ export class MemberExpression extends LogicItem {
|
|
|
137
137
|
// @ts-ignore
|
|
138
138
|
const n = logicItem.__v_raw || logicItem;
|
|
139
139
|
if (Array.isArray((t as any)[parentKey])) {
|
|
140
|
-
|
|
140
|
+
// @ts-ignore
|
|
141
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
141
142
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
142
143
|
params.index = index;
|
|
143
144
|
} else if ((t as any)[parentKey] === n) {
|
|
@@ -137,7 +137,7 @@ export class MetadataType extends BaseNode {
|
|
|
137
137
|
|
|
138
138
|
getValidationRuleExistingNames(excludedList: Array<ValidationRule> = []) {
|
|
139
139
|
const excludedSet = new Set(excludedList);
|
|
140
|
-
return ((this.rules as ValidationRule[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
140
|
+
return ((this.rules as ValidationRule[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
141
141
|
}
|
|
142
142
|
getValidationRuleUniqueName(name = 'validationRule1') {
|
|
143
143
|
return utils.unique(name, this.getValidationRuleExistingNames(), undefined, false);
|
|
@@ -429,7 +429,8 @@ export class MetadataType extends BaseNode {
|
|
|
429
429
|
// @ts-ignore
|
|
430
430
|
const n = typeAnnotation.__v_raw || typeAnnotation;
|
|
431
431
|
if (Array.isArray((t as any)[parentKey])) {
|
|
432
|
-
|
|
432
|
+
// @ts-ignore
|
|
433
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
433
434
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
434
435
|
params.index = index;
|
|
435
436
|
} else if ((t as any)[parentKey] === n) {
|
|
@@ -492,7 +493,8 @@ export class MetadataType extends BaseNode {
|
|
|
492
493
|
// @ts-ignore
|
|
493
494
|
const n = logicItem.__v_raw || logicItem;
|
|
494
495
|
if (Array.isArray((t as any)[parentKey])) {
|
|
495
|
-
|
|
496
|
+
// @ts-ignore
|
|
497
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
496
498
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
497
499
|
params.index = index;
|
|
498
500
|
} else if ((t as any)[parentKey] === n) {
|
|
@@ -509,8 +511,8 @@ export class MetadataType extends BaseNode {
|
|
|
509
511
|
//================================================================================
|
|
510
512
|
/**
|
|
511
513
|
* 是否可编辑
|
|
512
|
-
*
|
|
513
|
-
|
|
514
|
+
*
|
|
515
|
+
*/
|
|
514
516
|
get readonly() {
|
|
515
517
|
return !!this.module;
|
|
516
518
|
}
|
|
@@ -541,7 +543,7 @@ export class MetadataType extends BaseNode {
|
|
|
541
543
|
label,
|
|
542
544
|
};
|
|
543
545
|
this.update({
|
|
544
|
-
|
|
546
|
+
...object,
|
|
545
547
|
});
|
|
546
548
|
}
|
|
547
549
|
/**
|
|
@@ -557,18 +559,18 @@ export class MetadataType extends BaseNode {
|
|
|
557
559
|
}
|
|
558
560
|
@withSourceMap()
|
|
559
561
|
toEmbeddedTS(state?: TranslatorState): string {
|
|
560
|
-
const {typeNamespace,
|
|
562
|
+
const { typeNamespace, typeName } = this.typeAnnotation || {};
|
|
561
563
|
let code = `export class ${this.tsName} extends ${typeNamespace}.${typeName} {\n`;
|
|
562
564
|
code += indent((state?.tabSize || 0) + 2);
|
|
563
565
|
if (this.rules.length) {
|
|
564
|
-
code += 'function rule() {'
|
|
565
|
-
this.rules.forEach(item => {
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
})
|
|
566
|
+
code += 'function rule() {';
|
|
567
|
+
this.rules.forEach((item) => {
|
|
568
|
+
code += item.toEmbeddedTS(shiftState(state, code));
|
|
569
|
+
code += ';\n';
|
|
570
|
+
});
|
|
569
571
|
code += '}\n';
|
|
570
572
|
}
|
|
571
|
-
code += indent(
|
|
573
|
+
code += indent(state?.tabSize || 0) + '}\n';
|
|
572
574
|
return code;
|
|
573
575
|
}
|
|
574
576
|
|
|
@@ -578,13 +580,12 @@ export class MetadataType extends BaseNode {
|
|
|
578
580
|
const parentName = this.parentNode.name;
|
|
579
581
|
const arr = [parentNamespace];
|
|
580
582
|
if (this.parentNode.concept !== 'App' && parentName) {
|
|
581
|
-
|
|
583
|
+
arr.push(parentName);
|
|
582
584
|
}
|
|
583
585
|
return `${arr.join('.')}.metadataTypes`;
|
|
584
|
-
} else
|
|
585
|
-
throw new Error('无法获取命名空间,请设置 parentNode!');
|
|
586
|
+
} else throw new Error('无法获取命名空间,请设置 parentNode!');
|
|
586
587
|
}
|
|
587
|
-
|
|
588
|
+
|
|
588
589
|
getTsNamespace() {
|
|
589
590
|
if (this.parentNode && (this.parentNode as Namespace).getTsNamespace) {
|
|
590
591
|
const parentNamespace = (this.parentNode as Namespace).getTsNamespace();
|
|
@@ -104,7 +104,7 @@ export class MsgTriggerEvent extends TriggerEvent {
|
|
|
104
104
|
|
|
105
105
|
getParamExistingNames(excludedList: Array<Param> = []) {
|
|
106
106
|
const excludedSet = new Set(excludedList);
|
|
107
|
-
return ((this.properties as Param[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
107
|
+
return ((this.properties as Param[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
108
108
|
}
|
|
109
109
|
getParamUniqueName(name = 'param1') {
|
|
110
110
|
return utils.unique(name, this.getParamExistingNames(), undefined, false);
|
|
@@ -296,7 +296,8 @@ export class MsgTriggerEvent extends TriggerEvent {
|
|
|
296
296
|
// @ts-ignore
|
|
297
297
|
const n = param.__v_raw || param;
|
|
298
298
|
if (Array.isArray((t as any)[parentKey])) {
|
|
299
|
-
|
|
299
|
+
// @ts-ignore
|
|
300
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
300
301
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
301
302
|
params.index = index;
|
|
302
303
|
} else if ((t as any)[parentKey] === n) {
|
|
@@ -96,7 +96,7 @@ export class MsgTriggerLauncher extends TriggerLauncher {
|
|
|
96
96
|
|
|
97
97
|
getArgumentExistingNames(excludedList: Array<Argument> = []) {
|
|
98
98
|
const excludedSet = new Set(excludedList);
|
|
99
|
-
return ((this.properties as Argument[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
99
|
+
return ((this.properties as Argument[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
100
100
|
}
|
|
101
101
|
getArgumentUniqueName(name = 'argument1') {
|
|
102
102
|
return utils.unique(name, this.getArgumentExistingNames(), undefined, false);
|
|
@@ -288,7 +288,8 @@ export class MsgTriggerLauncher extends TriggerLauncher {
|
|
|
288
288
|
// @ts-ignore
|
|
289
289
|
const n = logicItem.__v_raw || logicItem;
|
|
290
290
|
if (Array.isArray((t as any)[parentKey])) {
|
|
291
|
-
|
|
291
|
+
// @ts-ignore
|
|
292
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
292
293
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
293
294
|
params.index = index;
|
|
294
295
|
} else if ((t as any)[parentKey] === n) {
|
|
@@ -163,7 +163,7 @@ export class Namespace extends BaseNode {
|
|
|
163
163
|
|
|
164
164
|
getNamespaceExistingNames(excludedList: Array<Namespace> = []) {
|
|
165
165
|
const excludedSet = new Set(excludedList);
|
|
166
|
-
return ((this.children as Namespace[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
166
|
+
return ((this.children as Namespace[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
167
167
|
}
|
|
168
168
|
getNamespaceUniqueName(name = 'namespace1') {
|
|
169
169
|
return utils.unique(name, this.getNamespaceExistingNames(), undefined, false);
|
|
@@ -316,7 +316,7 @@ export class Namespace extends BaseNode {
|
|
|
316
316
|
|
|
317
317
|
getProcessExistingNames(excludedList: Array<Process> = []) {
|
|
318
318
|
const excludedSet = new Set(excludedList);
|
|
319
|
-
return ((this.processes as Process[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
319
|
+
return ((this.processes as Process[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
320
320
|
}
|
|
321
321
|
getProcessUniqueName(name = 'Process1') {
|
|
322
322
|
return utils.unique(name, this.getProcessExistingNames(), undefined, false);
|
|
@@ -469,7 +469,7 @@ export class Namespace extends BaseNode {
|
|
|
469
469
|
|
|
470
470
|
getStructureExistingNames(excludedList: Array<Structure> = []) {
|
|
471
471
|
const excludedSet = new Set(excludedList);
|
|
472
|
-
return ((this.structures as Structure[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
472
|
+
return ((this.structures as Structure[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
473
473
|
}
|
|
474
474
|
getStructureUniqueName(name = 'Structure1') {
|
|
475
475
|
return utils.unique(name, this.getStructureExistingNames(), undefined, false);
|
|
@@ -622,7 +622,7 @@ export class Namespace extends BaseNode {
|
|
|
622
622
|
|
|
623
623
|
getEnumExistingNames(excludedList: Array<Enum> = []) {
|
|
624
624
|
const excludedSet = new Set(excludedList);
|
|
625
|
-
return ((this.enums as Enum[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
625
|
+
return ((this.enums as Enum[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
626
626
|
}
|
|
627
627
|
getEnumUniqueName(name = 'Enum1') {
|
|
628
628
|
return utils.unique(name, this.getEnumExistingNames(), undefined, false);
|
|
@@ -775,7 +775,7 @@ export class Namespace extends BaseNode {
|
|
|
775
775
|
|
|
776
776
|
getLogicExistingNames(excludedList: Array<Logic> = []) {
|
|
777
777
|
const excludedSet = new Set(excludedList);
|
|
778
|
-
return ((this.logics as Logic[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
778
|
+
return ((this.logics as Logic[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
779
779
|
}
|
|
780
780
|
getLogicUniqueName(name = 'logic1') {
|
|
781
781
|
return utils.unique(name, this.getLogicExistingNames(), undefined, false);
|
|
@@ -928,7 +928,7 @@ export class Namespace extends BaseNode {
|
|
|
928
928
|
|
|
929
929
|
getFunctionExistingNames(excludedList: Array<Function> = []) {
|
|
930
930
|
const excludedSet = new Set(excludedList);
|
|
931
|
-
return ((this.functions as Function[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
931
|
+
return ((this.functions as Function[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
932
932
|
}
|
|
933
933
|
getFunctionUniqueName(name = 'func1') {
|
|
934
934
|
return utils.unique(name, this.getFunctionExistingNames(), undefined, false);
|
|
@@ -1081,7 +1081,7 @@ export class Namespace extends BaseNode {
|
|
|
1081
1081
|
|
|
1082
1082
|
getInterfaceExistingNames(excludedList: Array<Interface> = []) {
|
|
1083
1083
|
const excludedSet = new Set(excludedList);
|
|
1084
|
-
return ((this.interfaces as Interface[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
1084
|
+
return ((this.interfaces as Interface[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
1085
1085
|
}
|
|
1086
1086
|
getInterfaceUniqueName(name = 'Interface1') {
|
|
1087
1087
|
return utils.unique(name, this.getInterfaceExistingNames(), undefined, false);
|
|
@@ -1234,7 +1234,7 @@ export class Namespace extends BaseNode {
|
|
|
1234
1234
|
|
|
1235
1235
|
getViewExistingNames(excludedList: Array<View> = []) {
|
|
1236
1236
|
const excludedSet = new Set(excludedList);
|
|
1237
|
-
return ((this.views as View[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item
|
|
1237
|
+
return ((this.views as View[]) || []).filter((item) => !excludedSet.has(item)).map((item) => item?.name);
|
|
1238
1238
|
}
|
|
1239
1239
|
getViewUniqueName(name = 'view1') {
|
|
1240
1240
|
return utils.unique(name, this.getViewExistingNames(), undefined, false);
|
|
@@ -1389,7 +1389,7 @@ export class Namespace extends BaseNode {
|
|
|
1389
1389
|
const excludedSet = new Set(excludedList);
|
|
1390
1390
|
return ((this.frontendVariables as Variable[]) || [])
|
|
1391
1391
|
.filter((item) => !excludedSet.has(item))
|
|
1392
|
-
.map((item) => item
|
|
1392
|
+
.map((item) => item?.name);
|
|
1393
1393
|
}
|
|
1394
1394
|
getVariableUniqueName(name = 'variable1') {
|
|
1395
1395
|
return utils.unique(name, this.getVarExistingNames(), undefined, true);
|
|
@@ -1689,7 +1689,7 @@ export class Namespace extends BaseNode {
|
|
|
1689
1689
|
const excludedSet = new Set(excludedList);
|
|
1690
1690
|
return ((this.viewComponents as ViewComponent[]) || [])
|
|
1691
1691
|
.filter((item) => !excludedSet.has(item))
|
|
1692
|
-
.map((item) => item
|
|
1692
|
+
.map((item) => item?.name);
|
|
1693
1693
|
}
|
|
1694
1694
|
getViewComponentUniqueName(name = 'viewComponent1') {
|
|
1695
1695
|
return utils.unique(name, this.getViewComponentExistingNames(), undefined, false);
|
|
@@ -1844,7 +1844,7 @@ export class Namespace extends BaseNode {
|
|
|
1844
1844
|
const excludedSet = new Set(excludedList);
|
|
1845
1845
|
return ((this.processComponents as ProcessComponent[]) || [])
|
|
1846
1846
|
.filter((item) => !excludedSet.has(item))
|
|
1847
|
-
.map((item) => item
|
|
1847
|
+
.map((item) => item?.name);
|
|
1848
1848
|
}
|
|
1849
1849
|
getProcessComponentUniqueName(name = 'processComponent1') {
|
|
1850
1850
|
return utils.unique(name, this.getProcessComponentExistingNames(), undefined, false);
|
|
@@ -2036,7 +2036,8 @@ export class Namespace extends BaseNode {
|
|
|
2036
2036
|
// @ts-ignore
|
|
2037
2037
|
const n = namespace.__v_raw || namespace;
|
|
2038
2038
|
if (Array.isArray((t as any)[parentKey])) {
|
|
2039
|
-
|
|
2039
|
+
// @ts-ignore
|
|
2040
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
2040
2041
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
2041
2042
|
params.index = index;
|
|
2042
2043
|
} else if ((t as any)[parentKey] === n) {
|
|
@@ -2088,7 +2089,8 @@ export class Namespace extends BaseNode {
|
|
|
2088
2089
|
// @ts-ignore
|
|
2089
2090
|
const n = process.__v_raw || process;
|
|
2090
2091
|
if (Array.isArray((t as any)[parentKey])) {
|
|
2091
|
-
|
|
2092
|
+
// @ts-ignore
|
|
2093
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
2092
2094
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
2093
2095
|
params.index = index;
|
|
2094
2096
|
} else if ((t as any)[parentKey] === n) {
|
|
@@ -2140,7 +2142,8 @@ export class Namespace extends BaseNode {
|
|
|
2140
2142
|
// @ts-ignore
|
|
2141
2143
|
const n = structure.__v_raw || structure;
|
|
2142
2144
|
if (Array.isArray((t as any)[parentKey])) {
|
|
2143
|
-
|
|
2145
|
+
// @ts-ignore
|
|
2146
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
2144
2147
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
2145
2148
|
params.index = index;
|
|
2146
2149
|
} else if ((t as any)[parentKey] === n) {
|
|
@@ -2192,7 +2195,8 @@ export class Namespace extends BaseNode {
|
|
|
2192
2195
|
// @ts-ignore
|
|
2193
2196
|
const n = enumeration.__v_raw || enumeration;
|
|
2194
2197
|
if (Array.isArray((t as any)[parentKey])) {
|
|
2195
|
-
|
|
2198
|
+
// @ts-ignore
|
|
2199
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
2196
2200
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
2197
2201
|
params.index = index;
|
|
2198
2202
|
} else if ((t as any)[parentKey] === n) {
|
|
@@ -2244,7 +2248,8 @@ export class Namespace extends BaseNode {
|
|
|
2244
2248
|
// @ts-ignore
|
|
2245
2249
|
const n = logic.__v_raw || logic;
|
|
2246
2250
|
if (Array.isArray((t as any)[parentKey])) {
|
|
2247
|
-
|
|
2251
|
+
// @ts-ignore
|
|
2252
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
2248
2253
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
2249
2254
|
params.index = index;
|
|
2250
2255
|
} else if ((t as any)[parentKey] === n) {
|
|
@@ -2296,7 +2301,8 @@ export class Namespace extends BaseNode {
|
|
|
2296
2301
|
// @ts-ignore
|
|
2297
2302
|
const n = func.__v_raw || func;
|
|
2298
2303
|
if (Array.isArray((t as any)[parentKey])) {
|
|
2299
|
-
|
|
2304
|
+
// @ts-ignore
|
|
2305
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
2300
2306
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
2301
2307
|
params.index = index;
|
|
2302
2308
|
} else if ((t as any)[parentKey] === n) {
|
|
@@ -2348,7 +2354,8 @@ export class Namespace extends BaseNode {
|
|
|
2348
2354
|
// @ts-ignore
|
|
2349
2355
|
const n = itface.__v_raw || itface;
|
|
2350
2356
|
if (Array.isArray((t as any)[parentKey])) {
|
|
2351
|
-
|
|
2357
|
+
// @ts-ignore
|
|
2358
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
2352
2359
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
2353
2360
|
params.index = index;
|
|
2354
2361
|
} else if ((t as any)[parentKey] === n) {
|
|
@@ -2400,7 +2407,8 @@ export class Namespace extends BaseNode {
|
|
|
2400
2407
|
// @ts-ignore
|
|
2401
2408
|
const n = view.__v_raw || view;
|
|
2402
2409
|
if (Array.isArray((t as any)[parentKey])) {
|
|
2403
|
-
|
|
2410
|
+
// @ts-ignore
|
|
2411
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
2404
2412
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
2405
2413
|
params.index = index;
|
|
2406
2414
|
} else if ((t as any)[parentKey] === n) {
|
|
@@ -2477,7 +2485,8 @@ export class Namespace extends BaseNode {
|
|
|
2477
2485
|
// @ts-ignore
|
|
2478
2486
|
const n = variable.__v_raw || variable;
|
|
2479
2487
|
if (Array.isArray((t as any)[parentKey])) {
|
|
2480
|
-
|
|
2488
|
+
// @ts-ignore
|
|
2489
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
2481
2490
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
2482
2491
|
params.index = index;
|
|
2483
2492
|
} else if ((t as any)[parentKey] === n) {
|
|
@@ -2529,7 +2538,8 @@ export class Namespace extends BaseNode {
|
|
|
2529
2538
|
// @ts-ignore
|
|
2530
2539
|
const n = viewComponent.__v_raw || viewComponent;
|
|
2531
2540
|
if (Array.isArray((t as any)[parentKey])) {
|
|
2532
|
-
|
|
2541
|
+
// @ts-ignore
|
|
2542
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
2533
2543
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
2534
2544
|
params.index = index;
|
|
2535
2545
|
} else if ((t as any)[parentKey] === n) {
|
|
@@ -2581,7 +2591,8 @@ export class Namespace extends BaseNode {
|
|
|
2581
2591
|
// @ts-ignore
|
|
2582
2592
|
const n = processComponent.__v_raw || processComponent;
|
|
2583
2593
|
if (Array.isArray((t as any)[parentKey])) {
|
|
2584
|
-
|
|
2594
|
+
// @ts-ignore
|
|
2595
|
+
const index = (t as any)[parentKey].findIndex((el) => (el.__v_raw || el) === n);
|
|
2585
2596
|
~index && (this as any)[parentKey].splice(index, 1);
|
|
2586
2597
|
params.index = index;
|
|
2587
2598
|
} else if ((t as any)[parentKey] === n) {
|