@lcap/nasl 3.4.0-alpha.2 → 3.4.0-beta.1
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/common/BaseNode.d.ts +14 -11
- package/out/common/BaseNode.js +72 -52
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/Anchor__.js +3 -1
- package/out/concepts/Anchor__.js.map +1 -1
- package/out/concepts/AnonymousFunction__.js +10 -3
- package/out/concepts/AnonymousFunction__.js.map +1 -1
- package/out/concepts/App__.js +69 -18
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/Argument__.js +3 -1
- package/out/concepts/Argument__.js.map +1 -1
- package/out/concepts/Assignee__.js +18 -5
- package/out/concepts/Assignee__.js.map +1 -1
- package/out/concepts/AssignmentLine__.js +6 -2
- package/out/concepts/AssignmentLine__.js.map +1 -1
- package/out/concepts/Assignment__.js +6 -2
- package/out/concepts/Assignment__.js.map +1 -1
- package/out/concepts/Attribute__.js +3 -1
- package/out/concepts/Attribute__.js.map +1 -1
- package/out/concepts/AuthLogicForCallInterface__.js +4 -1
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
- package/out/concepts/AuthLogic__.js.map +1 -1
- package/out/concepts/BackendVariable__.js +3 -1
- package/out/concepts/BackendVariable__.js.map +1 -1
- package/out/concepts/Backend__.js +4 -1
- package/out/concepts/Backend__.js.map +1 -1
- package/out/concepts/BatchAssignment__.js +11 -3
- package/out/concepts/BatchAssignment__.js.map +1 -1
- package/out/concepts/BinaryExpression__.js +6 -2
- package/out/concepts/BinaryExpression__.js.map +1 -1
- package/out/concepts/BindAttribute__.js +20 -6
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.js +7 -2
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BindEvent__.js +8 -2
- package/out/concepts/BindEvent__.js.map +1 -1
- package/out/concepts/BindStyle__.js +7 -2
- package/out/concepts/BindStyle__.js.map +1 -1
- package/out/concepts/CallAuthInterface__.js +4 -1
- package/out/concepts/CallAuthInterface__.js.map +1 -1
- package/out/concepts/CallFunction__.js +8 -2
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallInterface__.d.ts +2 -1
- package/out/concepts/CallInterface__.js +51 -13
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.js +11 -3
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/CallQueryComponent__.js +34 -10
- package/out/concepts/CallQueryComponent__.js.map +1 -1
- package/out/concepts/CompletionProperty__.js +3 -1
- package/out/concepts/CompletionProperty__.js.map +1 -1
- package/out/concepts/ConfigGroup__.js +4 -1
- package/out/concepts/ConfigGroup__.js.map +1 -1
- package/out/concepts/ConfigProperty__.js +4 -1
- package/out/concepts/ConfigProperty__.js.map +1 -1
- package/out/concepts/Configuration__.js +4 -1
- package/out/concepts/Configuration__.js.map +1 -1
- package/out/concepts/Connection__.js +4 -1
- package/out/concepts/Connection__.js.map +1 -1
- package/out/concepts/Connector__.js +26 -7
- package/out/concepts/Connector__.js.map +1 -1
- package/out/concepts/Constant__.js +3 -1
- package/out/concepts/Constant__.js.map +1 -1
- package/out/concepts/DataSource__.js +4 -1
- package/out/concepts/DataSource__.js.map +1 -1
- package/out/concepts/Destination__.js +7 -2
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/EntityIndex__.js +3 -1
- package/out/concepts/EntityIndex__.js.map +1 -1
- package/out/concepts/EntityProperty__.js +9 -3
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.js +8 -2
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/Enum__.js +4 -1
- package/out/concepts/Enum__.js.map +1 -1
- package/out/concepts/Event__.js +4 -1
- package/out/concepts/Event__.js.map +1 -1
- package/out/concepts/ExternalDestination__.js +6 -2
- package/out/concepts/ExternalDestination__.js.map +1 -1
- package/out/concepts/ForEachStatement__.js +19 -6
- package/out/concepts/ForEachStatement__.js.map +1 -1
- package/out/concepts/FrontendLibrary__.js +8 -2
- package/out/concepts/FrontendLibrary__.js.map +1 -1
- package/out/concepts/Frontend__.js +19 -5
- package/out/concepts/Frontend__.js.map +1 -1
- package/out/concepts/Function__.js +19 -5
- package/out/concepts/Function__.js.map +1 -1
- package/out/concepts/IfStatement__.js +11 -3
- package/out/concepts/IfStatement__.js.map +1 -1
- package/out/concepts/Integration__.js +7 -2
- package/out/concepts/Integration__.js.map +1 -1
- package/out/concepts/InterfaceParam__.js +3 -1
- package/out/concepts/InterfaceParam__.js.map +1 -1
- package/out/concepts/Interface__.js +11 -3
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/Logic__.js +46 -46
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MatchCase__.js +8 -2
- package/out/concepts/MatchCase__.js.map +1 -1
- package/out/concepts/Match__.js +7 -2
- package/out/concepts/Match__.js.map +1 -1
- package/out/concepts/MemberExpression__.js +6 -2
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/Module__.js +55 -14
- package/out/concepts/Module__.js.map +1 -1
- package/out/concepts/MsgTriggerEvent__.js +4 -1
- package/out/concepts/MsgTriggerEvent__.js.map +1 -1
- package/out/concepts/MsgTriggerLauncher__.js +4 -1
- package/out/concepts/MsgTriggerLauncher__.js.map +1 -1
- package/out/concepts/Namespace__.js +48 -12
- package/out/concepts/Namespace__.js.map +1 -1
- package/out/concepts/NewComposite__.js +15 -4
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/NewList__.js +7 -2
- package/out/concepts/NewList__.js.map +1 -1
- package/out/concepts/NewMap__.js +11 -3
- package/out/concepts/NewMap__.js.map +1 -1
- package/out/concepts/NumericLiteral__.js +3 -1
- package/out/concepts/NumericLiteral__.js.map +1 -1
- package/out/concepts/OqlQueryComponent__.js +3 -1
- package/out/concepts/OqlQueryComponent__.js.map +1 -1
- package/out/concepts/OverriddenLogic__.js +28 -8
- package/out/concepts/OverriddenLogic__.js.map +1 -1
- package/out/concepts/Param__.js +3 -1
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/ProcessComponent__.js +8 -2
- package/out/concepts/ProcessComponent__.js.map +1 -1
- package/out/concepts/ProcessElement__.js +30 -8
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessOutcomes__.js +3 -1
- package/out/concepts/ProcessOutcomes__.js.map +1 -1
- package/out/concepts/Process__.js +20 -5
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/QueryAggregateExpression__.js +3 -1
- package/out/concepts/QueryAggregateExpression__.js.map +1 -1
- package/out/concepts/QueryFromExpression__.js +4 -1
- package/out/concepts/QueryFromExpression__.js.map +1 -1
- package/out/concepts/QueryGroupByExpression__.js +3 -1
- package/out/concepts/QueryGroupByExpression__.js.map +1 -1
- package/out/concepts/QueryJoinExpression__.js +8 -2
- package/out/concepts/QueryJoinExpression__.js.map +1 -1
- package/out/concepts/QueryLimitExpression__.js +6 -2
- package/out/concepts/QueryLimitExpression__.js.map +1 -1
- package/out/concepts/QueryOrderByExpression__.js +6 -2
- package/out/concepts/QueryOrderByExpression__.js.map +1 -1
- package/out/concepts/QuerySelectExpression__.js +4 -1
- package/out/concepts/QuerySelectExpression__.js.map +1 -1
- package/out/concepts/Return__.js +3 -1
- package/out/concepts/Return__.js.map +1 -1
- package/out/concepts/SelectMembers__.js +7 -2
- package/out/concepts/SelectMembers__.js.map +1 -1
- package/out/concepts/Slot__.js +3 -1
- package/out/concepts/Slot__.js.map +1 -1
- package/out/concepts/SqlQueryComponent__.js +3 -1
- package/out/concepts/SqlQueryComponent__.js.map +1 -1
- package/out/concepts/StringInterpolation__.js +4 -1
- package/out/concepts/StringInterpolation__.js.map +1 -1
- package/out/concepts/StructureProperty__.js +3 -1
- package/out/concepts/StructureProperty__.js.map +1 -1
- package/out/concepts/Structure__.js +8 -2
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/SwitchCase__.js +7 -2
- package/out/concepts/SwitchCase__.js.map +1 -1
- package/out/concepts/SwitchStatement__.js +4 -1
- package/out/concepts/SwitchStatement__.js.map +1 -1
- package/out/concepts/TriggerEvent__.js +4 -1
- package/out/concepts/TriggerEvent__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.js +12 -3
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/UnaryExpression__.js +3 -1
- package/out/concepts/UnaryExpression__.js.map +1 -1
- package/out/concepts/ValidationRule__.js +10 -3
- package/out/concepts/ValidationRule__.js.map +1 -1
- package/out/concepts/Variable__.js +3 -1
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewComponent__.js +24 -6
- package/out/concepts/ViewComponent__.js.map +1 -1
- package/out/concepts/ViewElement__.js +24 -7
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.js +27 -7
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/WhileStatement__.js +7 -2
- package/out/concepts/WhileStatement__.js.map +1 -1
- package/out/concepts/types__.d.ts +2 -3
- package/out/decorators/index.d.ts +3 -3
- package/out/decorators/index.js +3 -1
- package/out/decorators/index.js.map +1 -1
- package/out/natural/genNaturalTS.js +1 -1
- package/out/natural/genNaturalTS.js.map +1 -1
- package/out/server/formatTsUtils.d.ts +3 -3
- package/out/server/getMemberIdentifier.d.ts +4 -4
- package/out/server/naslServer.d.ts +1 -1
- package/out/server/naslServer.js +4 -2
- package/out/server/naslServer.js.map +1 -1
- package/out/translator/utils.js +24 -28
- package/out/translator/utils.js.map +1 -1
- package/package.json +1 -1
- package/src/common/BaseNode.ts +92 -68
- package/src/concepts/Anchor__.ts +3 -1
- package/src/concepts/AnonymousFunction__.ts +10 -3
- package/src/concepts/App__.ts +69 -18
- package/src/concepts/Argument__.ts +3 -1
- package/src/concepts/Assignee__.ts +18 -5
- package/src/concepts/AssignmentLine__.ts +6 -2
- package/src/concepts/Assignment__.ts +6 -2
- package/src/concepts/Attribute__.ts +3 -1
- package/src/concepts/AuthLogicForCallInterface__.ts +4 -1
- package/src/concepts/AuthLogic__.ts +3 -0
- package/src/concepts/BackendVariable__.ts +3 -1
- package/src/concepts/Backend__.ts +4 -1
- package/src/concepts/BatchAssignment__.ts +11 -3
- package/src/concepts/BinaryExpression__.ts +6 -2
- package/src/concepts/BindAttribute__.ts +20 -7
- package/src/concepts/BindDirective__.ts +7 -2
- package/src/concepts/BindEvent__.ts +8 -2
- package/src/concepts/BindStyle__.ts +7 -2
- package/src/concepts/CallAuthInterface__.ts +4 -1
- package/src/concepts/CallFunction__.ts +8 -2
- package/src/concepts/CallInterface__.ts +49 -14
- package/src/concepts/CallLogic__.ts +11 -3
- package/src/concepts/CallQueryComponent__.ts +34 -10
- package/src/concepts/CompletionProperty__.ts +3 -1
- package/src/concepts/ConfigGroup__.ts +4 -1
- package/src/concepts/ConfigProperty__.ts +4 -1
- package/src/concepts/Configuration__.ts +4 -1
- package/src/concepts/Connection__.ts +4 -1
- package/src/concepts/Connector__.ts +26 -7
- package/src/concepts/Constant__.ts +3 -1
- package/src/concepts/DataSource__.ts +4 -1
- package/src/concepts/Destination__.ts +7 -2
- package/src/concepts/EntityIndex__.ts +3 -1
- package/src/concepts/EntityProperty__.ts +9 -3
- package/src/concepts/Entity__.ts +8 -2
- package/src/concepts/Enum__.ts +4 -1
- package/src/concepts/Event__.ts +4 -1
- package/src/concepts/ExternalDestination__.ts +6 -2
- package/src/concepts/ForEachStatement__.ts +19 -6
- package/src/concepts/FrontendLibrary__.ts +8 -2
- package/src/concepts/Frontend__.ts +19 -5
- package/src/concepts/Function__.ts +19 -5
- package/src/concepts/IfStatement__.ts +11 -3
- package/src/concepts/Integration__.ts +7 -2
- package/src/concepts/InterfaceParam__.ts +3 -1
- package/src/concepts/Interface__.ts +11 -3
- package/src/concepts/Logic__.ts +62 -57
- package/src/concepts/MatchCase__.ts +8 -2
- package/src/concepts/Match__.ts +7 -2
- package/src/concepts/MemberExpression__.ts +6 -2
- package/src/concepts/Module__.ts +55 -14
- package/src/concepts/MsgTriggerEvent__.ts +4 -1
- package/src/concepts/MsgTriggerLauncher__.ts +4 -1
- package/src/concepts/Namespace__.ts +48 -12
- package/src/concepts/NewComposite__.ts +15 -4
- package/src/concepts/NewList__.ts +7 -2
- package/src/concepts/NewMap__.ts +11 -3
- package/src/concepts/NumericLiteral__.ts +3 -1
- package/src/concepts/OqlQueryComponent__.ts +3 -1
- package/src/concepts/OverriddenLogic__.ts +28 -8
- package/src/concepts/Param__.ts +3 -1
- package/src/concepts/ProcessComponent__.ts +8 -2
- package/src/concepts/ProcessElement__.ts +30 -8
- package/src/concepts/ProcessOutcomes__.ts +3 -1
- package/src/concepts/Process__.ts +20 -5
- package/src/concepts/QueryAggregateExpression__.ts +3 -1
- package/src/concepts/QueryFromExpression__.ts +4 -1
- package/src/concepts/QueryGroupByExpression__.ts +3 -1
- package/src/concepts/QueryJoinExpression__.ts +8 -2
- package/src/concepts/QueryLimitExpression__.ts +6 -2
- package/src/concepts/QueryOrderByExpression__.ts +6 -2
- package/src/concepts/QuerySelectExpression__.ts +4 -1
- package/src/concepts/Return__.ts +3 -1
- package/src/concepts/SelectMembers__.ts +7 -2
- package/src/concepts/Slot__.ts +3 -1
- package/src/concepts/SqlQueryComponent__.ts +3 -1
- package/src/concepts/StringInterpolation__.ts +4 -1
- package/src/concepts/StructureProperty__.ts +3 -1
- package/src/concepts/Structure__.ts +8 -2
- package/src/concepts/SwitchCase__.ts +7 -2
- package/src/concepts/SwitchStatement__.ts +4 -1
- package/src/concepts/TriggerEvent__.ts +4 -1
- package/src/concepts/TypeAnnotation__.ts +13 -4
- package/src/concepts/UnaryExpression__.ts +3 -1
- package/src/concepts/ValidationRule__.ts +10 -3
- package/src/concepts/Variable__.ts +3 -1
- package/src/concepts/ViewComponent__.ts +24 -6
- package/src/concepts/ViewElement__.ts +92 -72
- package/src/concepts/View__.ts +27 -7
- package/src/concepts/WhileStatement__.ts +7 -2
- package/src/concepts/types__.ts +2 -4
- package/src/decorators/index.ts +7 -5
- package/src/natural/genNaturalTS.ts +1 -1
- package/src/server/formatTsUtils.ts +8 -8
- package/src/server/getMemberIdentifier.ts +4 -4
- package/src/server/naslServer.ts +4 -4
- package/src/service/storage/init.ts +2 -2
- package/src/translator/utils.ts +7 -9
|
@@ -53,25 +53,37 @@ export class Connector extends Module {
|
|
|
53
53
|
/**
|
|
54
54
|
* 输入参数列表
|
|
55
55
|
*/
|
|
56
|
-
@property(
|
|
56
|
+
@property({
|
|
57
|
+
objectRef: 'Param',
|
|
58
|
+
isArray: true,
|
|
59
|
+
})
|
|
57
60
|
properties: Array<Param> = [];
|
|
58
61
|
|
|
59
62
|
/**
|
|
60
63
|
* 逻辑列表
|
|
61
64
|
*/
|
|
62
|
-
@property(
|
|
65
|
+
@property({
|
|
66
|
+
objectRef: 'Logic',
|
|
67
|
+
isArray: true,
|
|
68
|
+
})
|
|
63
69
|
logics: Array<Logic> = [];
|
|
64
70
|
|
|
65
71
|
/**
|
|
66
72
|
* 连接器触发器列表
|
|
67
73
|
*/
|
|
68
|
-
@property(
|
|
74
|
+
@property({
|
|
75
|
+
objectRef: 'ConnectorTrigger',
|
|
76
|
+
isArray: true,
|
|
77
|
+
})
|
|
69
78
|
triggers: Array<ConnectorTrigger> = [];
|
|
70
79
|
|
|
71
80
|
/**
|
|
72
81
|
* 数据结构列表
|
|
73
82
|
*/
|
|
74
|
-
@property(
|
|
83
|
+
@property({
|
|
84
|
+
objectRef: 'Structure',
|
|
85
|
+
isArray: true,
|
|
86
|
+
})
|
|
75
87
|
structures: Array<Structure> = [];
|
|
76
88
|
|
|
77
89
|
/**
|
|
@@ -84,14 +96,18 @@ export class Connector extends Module {
|
|
|
84
96
|
/**
|
|
85
97
|
* createLogic
|
|
86
98
|
*/
|
|
87
|
-
@property(
|
|
99
|
+
@property({
|
|
100
|
+
objectRef: 'Logic',
|
|
101
|
+
})
|
|
88
102
|
// @ts-ignore
|
|
89
103
|
createLogic!: undefined;
|
|
90
104
|
|
|
91
105
|
/**
|
|
92
106
|
* testConnectorLogic
|
|
93
107
|
*/
|
|
94
|
-
@property(
|
|
108
|
+
@property({
|
|
109
|
+
objectRef: 'Logic',
|
|
110
|
+
})
|
|
95
111
|
// @ts-ignore
|
|
96
112
|
testConnectorLogic!: undefined;
|
|
97
113
|
|
|
@@ -105,7 +121,10 @@ export class Connector extends Module {
|
|
|
105
121
|
/**
|
|
106
122
|
* 命名空间列表
|
|
107
123
|
*/
|
|
108
|
-
@property(
|
|
124
|
+
@property({
|
|
125
|
+
objectRef: 'Namespace',
|
|
126
|
+
isArray: true,
|
|
127
|
+
})
|
|
109
128
|
namespaces: Array<Namespace> = [];
|
|
110
129
|
|
|
111
130
|
/**
|
|
@@ -57,7 +57,10 @@ export class Destination extends LogicItem {
|
|
|
57
57
|
/**
|
|
58
58
|
* 实际参数
|
|
59
59
|
*/
|
|
60
|
-
@property(
|
|
60
|
+
@property({
|
|
61
|
+
objectRef: 'Argument',
|
|
62
|
+
isArray: true,
|
|
63
|
+
})
|
|
61
64
|
arguments: Array<Argument> = [];
|
|
62
65
|
|
|
63
66
|
/**
|
|
@@ -69,7 +72,9 @@ export class Destination extends LogicItem {
|
|
|
69
72
|
/**
|
|
70
73
|
* 锚点参数
|
|
71
74
|
*/
|
|
72
|
-
@property(
|
|
75
|
+
@property({
|
|
76
|
+
objectRef: 'Anchor',
|
|
77
|
+
})
|
|
73
78
|
// @ts-ignore
|
|
74
79
|
anchor!: Anchor;
|
|
75
80
|
|
|
@@ -74,14 +74,18 @@ export class EntityProperty extends BaseNode {
|
|
|
74
74
|
/**
|
|
75
75
|
* 类型
|
|
76
76
|
*/
|
|
77
|
-
@property(
|
|
77
|
+
@property({
|
|
78
|
+
objectRef: 'TypeAnnotation',
|
|
79
|
+
})
|
|
78
80
|
// @ts-ignore
|
|
79
81
|
typeAnnotation!: TypeAnnotation;
|
|
80
82
|
|
|
81
83
|
/**
|
|
82
84
|
* 数据库存储类型
|
|
83
85
|
*/
|
|
84
|
-
@property(
|
|
86
|
+
@property({
|
|
87
|
+
objectRef: 'DatabaseTypeAnnotation',
|
|
88
|
+
})
|
|
85
89
|
// @ts-ignore
|
|
86
90
|
databaseTypeAnnotation!: DatabaseTypeAnnotation;
|
|
87
91
|
|
|
@@ -148,7 +152,9 @@ export class EntityProperty extends BaseNode {
|
|
|
148
152
|
/**
|
|
149
153
|
* 验证规则
|
|
150
154
|
*/
|
|
151
|
-
@property(
|
|
155
|
+
@property({
|
|
156
|
+
isArray: true,
|
|
157
|
+
})
|
|
152
158
|
rules: Array<string> = [];
|
|
153
159
|
|
|
154
160
|
/**
|
package/src/concepts/Entity__.ts
CHANGED
|
@@ -70,13 +70,19 @@ export class Entity extends BaseNode {
|
|
|
70
70
|
/**
|
|
71
71
|
* 实体属性列表
|
|
72
72
|
*/
|
|
73
|
-
@property(
|
|
73
|
+
@property({
|
|
74
|
+
objectRef: 'EntityProperty',
|
|
75
|
+
isArray: true,
|
|
76
|
+
})
|
|
74
77
|
properties: Array<EntityProperty> = [];
|
|
75
78
|
|
|
76
79
|
/**
|
|
77
80
|
* 实体索引列表
|
|
78
81
|
*/
|
|
79
|
-
@property(
|
|
82
|
+
@property({
|
|
83
|
+
objectRef: 'EntityIndex',
|
|
84
|
+
isArray: true,
|
|
85
|
+
})
|
|
80
86
|
indexes: Array<EntityIndex> = [];
|
|
81
87
|
|
|
82
88
|
/**
|
package/src/concepts/Enum__.ts
CHANGED
package/src/concepts/Event__.ts
CHANGED
|
@@ -35,7 +35,9 @@ export class ExternalDestination extends LogicItem {
|
|
|
35
35
|
/**
|
|
36
36
|
* 外部链接
|
|
37
37
|
*/
|
|
38
|
-
@property(
|
|
38
|
+
@property({
|
|
39
|
+
objectRef: 'LogicItem',
|
|
40
|
+
})
|
|
39
41
|
// @ts-ignore
|
|
40
42
|
link!: LogicItem;
|
|
41
43
|
|
|
@@ -48,7 +50,9 @@ export class ExternalDestination extends LogicItem {
|
|
|
48
50
|
/**
|
|
49
51
|
* 锚点参数
|
|
50
52
|
*/
|
|
51
|
-
@property(
|
|
53
|
+
@property({
|
|
54
|
+
objectRef: 'Anchor',
|
|
55
|
+
})
|
|
52
56
|
// @ts-ignore
|
|
53
57
|
anchor!: Anchor;
|
|
54
58
|
|
|
@@ -35,42 +35,55 @@ export class ForEachStatement extends LogicItem {
|
|
|
35
35
|
/**
|
|
36
36
|
* 循环列表
|
|
37
37
|
*/
|
|
38
|
-
@property(
|
|
38
|
+
@property({
|
|
39
|
+
objectRef: 'LogicItem',
|
|
40
|
+
})
|
|
39
41
|
// @ts-ignore
|
|
40
42
|
each!: LogicItem;
|
|
41
43
|
|
|
42
44
|
/**
|
|
43
45
|
* 循环项参数
|
|
44
46
|
*/
|
|
45
|
-
@property(
|
|
47
|
+
@property({
|
|
48
|
+
objectRef: 'Param',
|
|
49
|
+
})
|
|
46
50
|
// @ts-ignore
|
|
47
51
|
item!: Param;
|
|
48
52
|
|
|
49
53
|
/**
|
|
50
54
|
* 循环项索引
|
|
51
55
|
*/
|
|
52
|
-
@property(
|
|
56
|
+
@property({
|
|
57
|
+
objectRef: 'Param',
|
|
58
|
+
})
|
|
53
59
|
// @ts-ignore
|
|
54
60
|
index!: Param;
|
|
55
61
|
|
|
56
62
|
/**
|
|
57
63
|
* 循环开始值
|
|
58
64
|
*/
|
|
59
|
-
@property(
|
|
65
|
+
@property({
|
|
66
|
+
objectRef: 'LogicItem',
|
|
67
|
+
})
|
|
60
68
|
// @ts-ignore
|
|
61
69
|
start!: LogicItem;
|
|
62
70
|
|
|
63
71
|
/**
|
|
64
72
|
* 循环结束值
|
|
65
73
|
*/
|
|
66
|
-
@property(
|
|
74
|
+
@property({
|
|
75
|
+
objectRef: 'LogicItem',
|
|
76
|
+
})
|
|
67
77
|
// @ts-ignore
|
|
68
78
|
end!: LogicItem;
|
|
69
79
|
|
|
70
80
|
/**
|
|
71
81
|
* 循环体
|
|
72
82
|
*/
|
|
73
|
-
@property(
|
|
83
|
+
@property({
|
|
84
|
+
objectRef: 'LogicItem',
|
|
85
|
+
isArray: true,
|
|
86
|
+
})
|
|
74
87
|
body: Array<LogicItem> = [];
|
|
75
88
|
|
|
76
89
|
/**
|
|
@@ -48,13 +48,19 @@ export class FrontendLibrary extends BaseNode {
|
|
|
48
48
|
/**
|
|
49
49
|
* 逻辑列表
|
|
50
50
|
*/
|
|
51
|
-
@property(
|
|
51
|
+
@property({
|
|
52
|
+
objectRef: 'Logic',
|
|
53
|
+
isArray: true,
|
|
54
|
+
})
|
|
52
55
|
logics: Array<Logic> = [];
|
|
53
56
|
|
|
54
57
|
/**
|
|
55
58
|
* 页面组件列表
|
|
56
59
|
*/
|
|
57
|
-
@property(
|
|
60
|
+
@property({
|
|
61
|
+
objectRef: 'ViewComponent',
|
|
62
|
+
isArray: true,
|
|
63
|
+
})
|
|
58
64
|
viewComponents: Array<ViewComponent> = [];
|
|
59
65
|
|
|
60
66
|
/**
|
|
@@ -80,31 +80,45 @@ export class Frontend extends BaseNode {
|
|
|
80
80
|
/**
|
|
81
81
|
* 元素绑定事件列表
|
|
82
82
|
*/
|
|
83
|
-
@property(
|
|
83
|
+
@property({
|
|
84
|
+
objectRef: 'BindEvent',
|
|
85
|
+
isArray: true,
|
|
86
|
+
})
|
|
84
87
|
bindEvents: Array<BindEvent> = [];
|
|
85
88
|
|
|
86
89
|
/**
|
|
87
90
|
* 页面列表
|
|
88
91
|
*/
|
|
89
|
-
@property(
|
|
92
|
+
@property({
|
|
93
|
+
objectRef: 'View',
|
|
94
|
+
isArray: true,
|
|
95
|
+
})
|
|
90
96
|
views: Array<View> = [];
|
|
91
97
|
|
|
92
98
|
/**
|
|
93
99
|
* 前端全局变量列表
|
|
94
100
|
*/
|
|
95
|
-
@property(
|
|
101
|
+
@property({
|
|
102
|
+
objectRef: 'FrontendVariable',
|
|
103
|
+
isArray: true,
|
|
104
|
+
})
|
|
96
105
|
variables: Array<FrontendVariable> = [];
|
|
97
106
|
|
|
98
107
|
/**
|
|
99
108
|
* 主题配置
|
|
100
109
|
*/
|
|
101
|
-
@property(
|
|
110
|
+
@property({
|
|
111
|
+
objectRef: 'Theme',
|
|
112
|
+
})
|
|
102
113
|
theme: Theme = new Theme();
|
|
103
114
|
|
|
104
115
|
/**
|
|
105
116
|
* 扩展组件列表(兼容老版)
|
|
106
117
|
*/
|
|
107
|
-
@property(
|
|
118
|
+
@property({
|
|
119
|
+
objectRef: 'Module',
|
|
120
|
+
isArray: true,
|
|
121
|
+
})
|
|
108
122
|
componentDependencies: Array<Module> = [];
|
|
109
123
|
|
|
110
124
|
/**
|
|
@@ -54,31 +54,45 @@ export class Function extends BaseNode {
|
|
|
54
54
|
/**
|
|
55
55
|
* 类型参数列表
|
|
56
56
|
*/
|
|
57
|
-
@property(
|
|
57
|
+
@property({
|
|
58
|
+
objectRef: 'TypeParam',
|
|
59
|
+
isArray: true,
|
|
60
|
+
})
|
|
58
61
|
typeParams: Array<TypeParam> = [];
|
|
59
62
|
|
|
60
63
|
/**
|
|
61
64
|
* 输入参数列表
|
|
62
65
|
*/
|
|
63
|
-
@property(
|
|
66
|
+
@property({
|
|
67
|
+
objectRef: 'Param',
|
|
68
|
+
isArray: true,
|
|
69
|
+
})
|
|
64
70
|
params: Array<Param> = [];
|
|
65
71
|
|
|
66
72
|
/**
|
|
67
73
|
* 输出参数列表
|
|
68
74
|
*/
|
|
69
|
-
@property(
|
|
75
|
+
@property({
|
|
76
|
+
objectRef: 'Return',
|
|
77
|
+
isArray: true,
|
|
78
|
+
})
|
|
70
79
|
returns: Array<Return> = [];
|
|
71
80
|
|
|
72
81
|
/**
|
|
73
82
|
* 变量列表
|
|
74
83
|
*/
|
|
75
|
-
@property(
|
|
84
|
+
@property({
|
|
85
|
+
objectRef: 'Variable',
|
|
86
|
+
isArray: true,
|
|
87
|
+
})
|
|
76
88
|
variables: Array<Variable> = [];
|
|
77
89
|
|
|
78
90
|
/**
|
|
79
91
|
* 逻辑项
|
|
80
92
|
*/
|
|
81
|
-
@property(
|
|
93
|
+
@property({
|
|
94
|
+
objectRef: 'LogicItem',
|
|
95
|
+
})
|
|
82
96
|
// @ts-ignore
|
|
83
97
|
returnExpression!: LogicItem;
|
|
84
98
|
|
|
@@ -31,20 +31,28 @@ export class IfStatement extends LogicItem {
|
|
|
31
31
|
/**
|
|
32
32
|
* 条件表达式
|
|
33
33
|
*/
|
|
34
|
-
@property(
|
|
34
|
+
@property({
|
|
35
|
+
objectRef: 'LogicItem',
|
|
36
|
+
})
|
|
35
37
|
// @ts-ignore
|
|
36
38
|
test!: LogicItem;
|
|
37
39
|
|
|
38
40
|
/**
|
|
39
41
|
* then
|
|
40
42
|
*/
|
|
41
|
-
@property(
|
|
43
|
+
@property({
|
|
44
|
+
objectRef: 'LogicItem',
|
|
45
|
+
isArray: true,
|
|
46
|
+
})
|
|
42
47
|
consequent: Array<LogicItem> = [];
|
|
43
48
|
|
|
44
49
|
/**
|
|
45
50
|
* else
|
|
46
51
|
*/
|
|
47
|
-
@property(
|
|
52
|
+
@property({
|
|
53
|
+
objectRef: 'LogicItem',
|
|
54
|
+
isArray: true,
|
|
55
|
+
})
|
|
48
56
|
alternate: Array<LogicItem> = [];
|
|
49
57
|
|
|
50
58
|
/**
|
|
@@ -33,14 +33,19 @@ export class Integration extends BaseNode {
|
|
|
33
33
|
/**
|
|
34
34
|
* 微应用
|
|
35
35
|
*/
|
|
36
|
-
@property(
|
|
36
|
+
@property({
|
|
37
|
+
objectRef: 'MicroApp',
|
|
38
|
+
})
|
|
37
39
|
// @ts-ignore
|
|
38
40
|
microApp!: MicroApp;
|
|
39
41
|
|
|
40
42
|
/**
|
|
41
43
|
* 连接器
|
|
42
44
|
*/
|
|
43
|
-
@property(
|
|
45
|
+
@property({
|
|
46
|
+
objectRef: 'Connector',
|
|
47
|
+
isArray: true,
|
|
48
|
+
})
|
|
44
49
|
connectors: Array<Connector> = [];
|
|
45
50
|
|
|
46
51
|
/**
|
|
@@ -78,19 +78,27 @@ export class Interface extends BaseNode {
|
|
|
78
78
|
/**
|
|
79
79
|
* 接口参数列表
|
|
80
80
|
*/
|
|
81
|
-
@property(
|
|
81
|
+
@property({
|
|
82
|
+
objectRef: 'InterfaceParam',
|
|
83
|
+
isArray: true,
|
|
84
|
+
})
|
|
82
85
|
params: Array<InterfaceParam> = [];
|
|
83
86
|
|
|
84
87
|
/**
|
|
85
88
|
* 输出参数列表
|
|
86
89
|
*/
|
|
87
|
-
@property(
|
|
90
|
+
@property({
|
|
91
|
+
objectRef: 'Return',
|
|
92
|
+
isArray: true,
|
|
93
|
+
})
|
|
88
94
|
returns: Array<Return> = [];
|
|
89
95
|
|
|
90
96
|
/**
|
|
91
97
|
* 验证规则
|
|
92
98
|
*/
|
|
93
|
-
@property(
|
|
99
|
+
@property({
|
|
100
|
+
objectRef: 'BindAttribute',
|
|
101
|
+
})
|
|
94
102
|
// @ts-ignore
|
|
95
103
|
validation!: BindAttribute;
|
|
96
104
|
|