@lcap/nasl 3.8.2-beta.2 → 3.8.2-beta.4
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/.mocharc.js +1 -0
- package/out/common/BaseNode.d.ts +19 -3
- package/out/common/BaseNode.js +85 -7
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/AbstractInterface__.js.map +1 -1
- package/out/concepts/Annotation__.js +1 -1
- package/out/concepts/Annotation__.js.map +1 -1
- package/out/concepts/App__.d.ts +3 -0
- package/out/concepts/App__.js +964 -4
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/Argument__.js +3 -3
- package/out/concepts/Argument__.js.map +1 -1
- package/out/concepts/BatchAssignment__.d.ts +1 -1
- package/out/concepts/BatchAssignment__.js +3 -3
- package/out/concepts/BatchAssignment__.js.map +1 -1
- package/out/concepts/BindAttribute__.js +5 -6
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.js +3 -4
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BusinessComponent__.d.ts +2 -0
- package/out/concepts/BusinessComponent__.js +48 -0
- package/out/concepts/BusinessComponent__.js.map +1 -1
- package/out/concepts/BusinessLogic__.d.ts +1 -0
- package/out/concepts/BusinessLogic__.js +10 -0
- package/out/concepts/BusinessLogic__.js.map +1 -1
- package/out/concepts/CallEvent__.d.ts +2 -0
- package/out/concepts/CallEvent__.js +75 -0
- package/out/concepts/CallEvent__.js.map +1 -1
- package/out/concepts/CallInterface__.d.ts +1 -0
- package/out/concepts/CallInterface__.js +26 -15
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +4 -0
- package/out/concepts/CallLogic__.js +61 -5
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/Entity__.d.ts +3 -3
- package/out/concepts/Entity__.js +4 -0
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/Event__.d.ts +2 -0
- package/out/concepts/Event__.js +30 -0
- package/out/concepts/Event__.js.map +1 -1
- package/out/concepts/FrontendType__.d.ts +2 -0
- package/out/concepts/FrontendType__.js +32 -0
- package/out/concepts/FrontendType__.js.map +1 -1
- package/out/concepts/Frontend__.d.ts +2 -0
- package/out/concepts/Frontend__.js +48 -0
- package/out/concepts/Frontend__.js.map +1 -1
- package/out/concepts/IfStatement__.js +6 -6
- package/out/concepts/IfStatement__.js.map +1 -1
- package/out/concepts/InterfaceParam__.d.ts +1 -0
- package/out/concepts/InterfaceParam__.js +23 -4
- package/out/concepts/InterfaceParam__.js.map +1 -1
- package/out/concepts/Interface__.d.ts +2 -1
- package/out/concepts/Interface__.js +29 -5
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/JSBlock__.d.ts +1 -0
- package/out/concepts/JSBlock__.js +6 -0
- package/out/concepts/JSBlock__.js.map +1 -1
- package/out/concepts/LogicDeclaration__.d.ts +1 -0
- package/out/concepts/LogicDeclaration__.js +58 -7
- package/out/concepts/LogicDeclaration__.js.map +1 -1
- package/out/concepts/Logic__.js +43 -24
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MatchCase__.js +1 -2
- package/out/concepts/MatchCase__.js.map +1 -1
- package/out/concepts/Match__.js +3 -18
- package/out/concepts/Match__.js.map +1 -1
- package/out/concepts/MemberExpression__.js +1 -1
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/Module__.d.ts +2 -0
- package/out/concepts/Module__.js +64 -0
- package/out/concepts/Module__.js.map +1 -1
- package/out/concepts/NewComposite__.d.ts +1 -1
- package/out/concepts/NewComposite__.js +3 -3
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/NullLiteral__.js +6 -0
- package/out/concepts/NullLiteral__.js.map +1 -1
- package/out/concepts/Paginate__.d.ts +1 -0
- package/out/concepts/Paginate__.js +15 -7
- package/out/concepts/Paginate__.js.map +1 -1
- package/out/concepts/QueryFromExpression__.js +2 -2
- package/out/concepts/QueryFromExpression__.js.map +1 -1
- package/out/concepts/StringLiteral__.js +3 -4
- package/out/concepts/StringLiteral__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.js +1 -0
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/ViewElement__.d.ts +2 -0
- package/out/concepts/ViewElement__.js +10 -7
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.d.ts +1 -0
- package/out/concepts/View__.js +55 -1
- package/out/concepts/View__.js.map +1 -1
- package/out/generator/genBundleFiles.js +61 -51
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/genHash.d.ts +2 -2
- package/out/generator/genHash.js +30 -30
- package/out/generator/genHash.js.map +1 -1
- package/out/generator/permission.d.ts +8 -1
- package/out/generator/permission.js +321 -23
- package/out/generator/permission.js.map +1 -1
- package/out/generator/release-body/body.d.ts +4 -0
- package/out/generator/release-body/body.js +20 -6
- package/out/generator/release-body/body.js.map +1 -1
- package/out/generator/release-body/data.js +6 -2
- package/out/generator/release-body/data.js.map +1 -1
- package/out/generator/release-body/index.d.ts +1 -0
- package/out/generator/release-body/index.js +1 -0
- package/out/generator/release-body/index.js.map +1 -1
- package/out/generator/release-body/utils.js +3 -3
- package/out/generator/release-body/utils.js.map +1 -1
- package/out/generator/release-body/validation.js +2 -2
- package/out/generator/release-body/validation.js.map +1 -1
- package/out/index.d.ts +1 -1
- package/out/index.js.map +1 -1
- package/out/natural/genNaturalTS.d.ts +2 -2
- package/out/natural/genNaturalTS.js +5 -5
- package/out/natural/genNaturalTS.js.map +1 -1
- package/out/natural/getContext/index.d.ts +1 -1
- package/out/natural/getContext/index.js +15 -9
- package/out/natural/getContext/index.js.map +1 -1
- package/out/natural/transformTS2UI.js +26 -10
- package/out/natural/transformTS2UI.js.map +1 -1
- package/out/natural/transformTSCode.js +26 -10
- package/out/natural/transformTSCode.js.map +1 -1
- package/out/server/entity2LogicNamespace.d.ts +2 -2
- package/out/server/entity2LogicNamespace.js +321 -310
- package/out/server/entity2LogicNamespace.js.map +1 -1
- package/out/server/extendBaseNode.js +29 -18
- package/out/server/extendBaseNode.js.map +1 -1
- package/out/server/naslServer.d.ts +1 -1
- package/out/server/naslServer.js +35 -21
- package/out/server/naslServer.js.map +1 -1
- package/out/server/translator.js +12 -0
- package/out/server/translator.js.map +1 -1
- package/out/service/storage/init.d.ts +2 -0
- package/out/service/storage/init.js +20 -1
- package/out/service/storage/init.js.map +1 -1
- package/out/templator/genCreateBlock.js +3 -3
- package/out/templator/genCreateBlock.js.map +1 -1
- package/out/templator/genCurdEditMultipleKeyBlock.js +2 -2
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
- package/out/templator/genCurdMultipleKeyBlock.js +4 -4
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
- package/out/templator/genEditTableBlock.js +1 -1
- package/out/templator/genEditTableBlock.js.map +1 -1
- package/out/templator/genGetBlock.js.map +1 -1
- package/out/templator/genGridViewBlock.js.map +1 -1
- package/out/templator/genSelectBlock.js.map +1 -1
- package/out/templator/genTableBlock.js.map +1 -1
- package/out/templator/genUpdateBlock.js +3 -3
- package/out/templator/genUpdateBlock.js.map +1 -1
- package/out/templator/utils.js +1 -1
- package/out/templator/utils.js.map +1 -1
- package/package.json +5 -5
- package/sandbox/stdlib/nasl.util.ts +4 -1
- package/src/common/BaseNode.ts +91 -11
- package/src/concepts/AbstractInterface__.ts +1 -0
- package/src/concepts/Annotation__.ts +1 -1
- package/src/concepts/App__.ts +104 -4
- package/src/concepts/Argument__.ts +3 -3
- package/src/concepts/BatchAssignment__.ts +3 -3
- package/src/concepts/BindAttribute__.ts +5 -6
- package/src/concepts/BindDirective__.ts +3 -4
- package/src/concepts/BusinessComponent__.ts +54 -1
- package/src/concepts/BusinessLogic__.ts +10 -1
- package/src/concepts/CallEvent__.ts +66 -0
- package/src/concepts/CallInterface__.ts +21 -9
- package/src/concepts/CallLogic__.ts +61 -5
- package/src/concepts/Entity__.ts +7 -1
- package/src/concepts/Event__.ts +32 -0
- package/src/concepts/FrontendType__.ts +34 -1
- package/src/concepts/Frontend__.ts +51 -0
- package/src/concepts/IfStatement__.ts +6 -6
- package/src/concepts/InterfaceParam__.ts +23 -4
- package/src/concepts/Interface__.ts +29 -5
- package/src/concepts/JSBlock__.ts +5 -0
- package/src/concepts/LogicDeclaration__.ts +65 -7
- package/src/concepts/Logic__.ts +45 -27
- package/src/concepts/MatchCase__.ts +1 -2
- package/src/concepts/Match__.ts +3 -21
- package/src/concepts/MemberExpression__.ts +1 -1
- package/src/concepts/Module__.ts +75 -0
- package/src/concepts/NewComposite__.ts +3 -3
- package/src/concepts/NullLiteral__.ts +7 -0
- package/src/concepts/Paginate__.ts +14 -7
- package/src/concepts/QueryFromExpression__.ts +2 -2
- package/src/concepts/StringLiteral__.ts +3 -4
- package/src/concepts/TypeAnnotation__.ts +1 -0
- package/src/concepts/ViewElement__.ts +11 -7
- package/src/concepts/View__.ts +56 -1
- package/src/generator/genBundleFiles.ts +67 -54
- package/src/generator/genHash.ts +32 -6
- package/src/generator/permission.ts +333 -23
- package/src/generator/release-body/body.ts +31 -12
- package/src/generator/release-body/data.ts +7 -2
- package/src/generator/release-body/index.ts +1 -0
- package/src/generator/release-body/utils.ts +3 -3
- package/src/generator/release-body/validation.ts +1 -1
- package/src/index.ts +13 -1
- package/src/natural/genNaturalTS.ts +5 -2
- package/src/natural/getContext/index.ts +17 -11
- package/src/natural/transformTS2UI.ts +25 -10
- package/src/natural/transformTSCode.ts +25 -10
- package/src/server/entity2LogicNamespace.ts +13 -1
- package/src/server/extendBaseNode.ts +32 -22
- package/src/server/naslServer.ts +45 -28
- package/src/server/translator.ts +15 -0
- package/src/service/storage/init.ts +26 -0
- package/src/templator/genCreateBlock.ts +4 -4
- package/src/templator/genCurdEditMultipleKeyBlock.ts +2 -2
- package/src/templator/genCurdMultipleKeyBlock.ts +7 -7
- package/src/templator/genEditTableBlock.ts +4 -4
- package/src/templator/genGetBlock.ts +1 -1
- package/src/templator/genGridViewBlock.ts +2 -2
- package/src/templator/genSelectBlock.ts +3 -3
- package/src/templator/genTableBlock.ts +2 -2
- package/src/templator/genUpdateBlock.ts +6 -6
- package/src/templator/utils.ts +1 -1
- package/test/concepts/call-logic/__snapshots__/getQuickInfoOffset.spec.ts.snap +1 -1
- package/test/concepts/call-logic/__snapshots__/toEmbeddedTS.spec.ts.snap +1 -1
- package/test/concepts/string-literal/__snapshots__/toVue.spec.ts.snap +1 -1
- package/test/concepts/view-element/__snapshots__/toEmbeddedTS.spec.ts.snap +75 -75
- package/test/concepts/view-element/__snapshots__/toVue.spec.ts.snap +6 -2
|
@@ -12,7 +12,7 @@ exports[`view-element:toEmbeddedTS default-login 1`] = `
|
|
|
12
12
|
slotDefault: () => [
|
|
13
13
|
new nasl.ui.UText({
|
|
14
14
|
_name: __elements.uText1,
|
|
15
|
-
text: nasl.util.
|
|
15
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
16
16
|
return new nasl.core.StringLiteral<\`登录\`>();
|
|
17
17
|
}, false),
|
|
18
18
|
}),
|
|
@@ -48,10 +48,10 @@ exports[`view-element:toEmbeddedTS default-not-found 1`] = `
|
|
|
48
48
|
slotDefault: () => [
|
|
49
49
|
new nasl.ui.Img({
|
|
50
50
|
_name: __elements.img1,
|
|
51
|
-
width: nasl.util.
|
|
51
|
+
width: nasl.util._bindAttrWrap(() => {
|
|
52
52
|
return new nasl.core.StringLiteral<\`240\`>();
|
|
53
53
|
}, false),
|
|
54
|
-
src: nasl.util.
|
|
54
|
+
src: nasl.util._bindAttrWrap(() => {
|
|
55
55
|
return new nasl.core.StringLiteral<\`/assets/error-code.svg\`>();
|
|
56
56
|
}, false),
|
|
57
57
|
}),
|
|
@@ -61,7 +61,7 @@ exports[`view-element:toEmbeddedTS default-not-found 1`] = `
|
|
|
61
61
|
slotDefault: () => [
|
|
62
62
|
new nasl.ui.UText({
|
|
63
63
|
_name: __elements.uText1,
|
|
64
|
-
text: nasl.util.
|
|
64
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
65
65
|
return new nasl.core.StringLiteral<\`404\`>();
|
|
66
66
|
}, false),
|
|
67
67
|
}),
|
|
@@ -73,7 +73,7 @@ exports[`view-element:toEmbeddedTS default-not-found 1`] = `
|
|
|
73
73
|
slotDefault: () => [
|
|
74
74
|
new nasl.ui.UText({
|
|
75
75
|
_name: __elements.uText2,
|
|
76
|
-
text: nasl.util.
|
|
76
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
77
77
|
return new nasl.core.StringLiteral<\`抱歉,你访问的页面不存在\`>();
|
|
78
78
|
}, false),
|
|
79
79
|
}),
|
|
@@ -82,16 +82,16 @@ exports[`view-element:toEmbeddedTS default-not-found 1`] = `
|
|
|
82
82
|
|
|
83
83
|
new nasl.ui.UButton({
|
|
84
84
|
_name: __elements.uButton1,
|
|
85
|
-
text: nasl.util.
|
|
85
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
86
86
|
return new nasl.core.StringLiteral<\`返回首页\`>();
|
|
87
87
|
}, false),
|
|
88
|
-
color: nasl.util.
|
|
88
|
+
color: nasl.util._bindAttrWrap(() => {
|
|
89
89
|
return new nasl.core.StringLiteral<\`primary\`>();
|
|
90
90
|
}, false),
|
|
91
|
-
href: nasl.util.
|
|
91
|
+
href: nasl.util._bindAttrWrap(() => {
|
|
92
92
|
return new nasl.core.StringLiteral<\`/\`>();
|
|
93
93
|
}, false),
|
|
94
|
-
shape: nasl.util.
|
|
94
|
+
shape: nasl.util._bindAttrWrap(() => {
|
|
95
95
|
return new nasl.core.StringLiteral<\`round\`>();
|
|
96
96
|
}, false),
|
|
97
97
|
}),
|
|
@@ -111,12 +111,12 @@ exports[`view-element:toEmbeddedTS table-data-source-calllogic-with-server-valid
|
|
|
111
111
|
slotDefault: () => [
|
|
112
112
|
new nasl.ui.UTableView({
|
|
113
113
|
_name: __elements.tableView_1,
|
|
114
|
-
dataSource: nasl.util.
|
|
114
|
+
dataSource: nasl.util._bindAttrWrap(() => {
|
|
115
115
|
return (() => {
|
|
116
116
|
const __wrapper = nasl.util.callLogicWithChecker(
|
|
117
117
|
app.logics.loadTestTableView_1,
|
|
118
118
|
(page, size, sort, order, filter) => {
|
|
119
|
-
nasl.util.
|
|
119
|
+
nasl.util._bindAttrWrap(() => {
|
|
120
120
|
return;
|
|
121
121
|
}, true);
|
|
122
122
|
}
|
|
@@ -130,34 +130,34 @@ exports[`view-element:toEmbeddedTS table-data-source-calllogic-with-server-valid
|
|
|
130
130
|
);
|
|
131
131
|
})();
|
|
132
132
|
}, true),
|
|
133
|
-
valueField: nasl.util.
|
|
133
|
+
valueField: nasl.util._bindAttrWrap(() => {
|
|
134
134
|
return new nasl.core.StringLiteral<\`entity1.id\`>();
|
|
135
135
|
}, false),
|
|
136
|
-
pagination: nasl.util.
|
|
136
|
+
pagination: nasl.util._bindAttrWrap(() => {
|
|
137
137
|
return new nasl.core.BooleanTrue();
|
|
138
138
|
}, false),
|
|
139
|
-
showSizer: nasl.util.
|
|
139
|
+
showSizer: nasl.util._bindAttrWrap(() => {
|
|
140
140
|
return new nasl.core.BooleanTrue();
|
|
141
141
|
}, false),
|
|
142
|
-
pageSize: nasl.util.
|
|
142
|
+
pageSize: nasl.util._bindAttrWrap(() => {
|
|
143
143
|
return new nasl.core.Long(20);
|
|
144
144
|
}, false),
|
|
145
|
-
pageNumber: nasl.util.
|
|
145
|
+
pageNumber: nasl.util._bindAttrWrap(() => {
|
|
146
146
|
return new nasl.core.Long(1);
|
|
147
147
|
}, false),
|
|
148
148
|
slotDefault: () => [
|
|
149
149
|
new nasl.ui.UTableViewColumn({
|
|
150
150
|
_name: __elements.table_view_column_1,
|
|
151
|
-
type: nasl.util.
|
|
151
|
+
type: nasl.util._bindAttrWrap(() => {
|
|
152
152
|
return new nasl.core.StringLiteral<\`index\`>();
|
|
153
153
|
}, false),
|
|
154
|
-
width: nasl.util.
|
|
154
|
+
width: nasl.util._bindAttrWrap(() => {
|
|
155
155
|
return new nasl.core.StringLiteral<\`60\`>();
|
|
156
156
|
}, false),
|
|
157
157
|
slotExpander: (current) => [
|
|
158
158
|
new nasl.ui.UTableViewExpander({
|
|
159
159
|
_name: __elements.table_view_expander_1,
|
|
160
|
-
item: nasl.util.
|
|
160
|
+
item: nasl.util._bindAttrWrap(() => {
|
|
161
161
|
return current.item;
|
|
162
162
|
}, false),
|
|
163
163
|
}),
|
|
@@ -166,7 +166,7 @@ exports[`view-element:toEmbeddedTS table-data-source-calllogic-with-server-valid
|
|
|
166
166
|
slotTitle: () => [
|
|
167
167
|
new nasl.ui.UText({
|
|
168
168
|
_name: __elements.text_9,
|
|
169
|
-
text: nasl.util.
|
|
169
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
170
170
|
return new nasl.core.StringLiteral<\`序号\`>();
|
|
171
171
|
}, false),
|
|
172
172
|
}),
|
|
@@ -175,13 +175,13 @@ exports[`view-element:toEmbeddedTS table-data-source-calllogic-with-server-valid
|
|
|
175
175
|
|
|
176
176
|
new nasl.ui.UTableViewColumn({
|
|
177
177
|
_name: __elements.table_view_column_2,
|
|
178
|
-
field: nasl.util.
|
|
178
|
+
field: nasl.util._bindAttrWrap(() => {
|
|
179
179
|
return new nasl.core.StringLiteral<\`entity1.createdTime\`>();
|
|
180
180
|
}, false),
|
|
181
181
|
slotExpander: (current) => [
|
|
182
182
|
new nasl.ui.UTableViewExpander({
|
|
183
183
|
_name: __elements.table_view_expander_2,
|
|
184
|
-
item: nasl.util.
|
|
184
|
+
item: nasl.util._bindAttrWrap(() => {
|
|
185
185
|
return current.item;
|
|
186
186
|
}, false),
|
|
187
187
|
}),
|
|
@@ -192,7 +192,7 @@ exports[`view-element:toEmbeddedTS table-data-source-calllogic-with-server-valid
|
|
|
192
192
|
slotDefault: () => [
|
|
193
193
|
new nasl.ui.UText({
|
|
194
194
|
_name: __elements.text_10,
|
|
195
|
-
text: nasl.util.
|
|
195
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
196
196
|
return current.item.entity1.createdTime;
|
|
197
197
|
}, false),
|
|
198
198
|
}),
|
|
@@ -202,7 +202,7 @@ exports[`view-element:toEmbeddedTS table-data-source-calllogic-with-server-valid
|
|
|
202
202
|
slotTitle: () => [
|
|
203
203
|
new nasl.ui.UText({
|
|
204
204
|
_name: __elements.text_11,
|
|
205
|
-
text: nasl.util.
|
|
205
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
206
206
|
return new nasl.core.StringLiteral<\`创建时间\`>();
|
|
207
207
|
}, false),
|
|
208
208
|
}),
|
|
@@ -211,13 +211,13 @@ exports[`view-element:toEmbeddedTS table-data-source-calllogic-with-server-valid
|
|
|
211
211
|
|
|
212
212
|
new nasl.ui.UTableViewColumn({
|
|
213
213
|
_name: __elements.table_view_column_3,
|
|
214
|
-
field: nasl.util.
|
|
214
|
+
field: nasl.util._bindAttrWrap(() => {
|
|
215
215
|
return new nasl.core.StringLiteral<\`entity1.updatedTime\`>();
|
|
216
216
|
}, false),
|
|
217
217
|
slotExpander: (current) => [
|
|
218
218
|
new nasl.ui.UTableViewExpander({
|
|
219
219
|
_name: __elements.table_view_expander_3,
|
|
220
|
-
item: nasl.util.
|
|
220
|
+
item: nasl.util._bindAttrWrap(() => {
|
|
221
221
|
return current.item;
|
|
222
222
|
}, false),
|
|
223
223
|
}),
|
|
@@ -228,7 +228,7 @@ exports[`view-element:toEmbeddedTS table-data-source-calllogic-with-server-valid
|
|
|
228
228
|
slotDefault: () => [
|
|
229
229
|
new nasl.ui.UText({
|
|
230
230
|
_name: __elements.text_12,
|
|
231
|
-
text: nasl.util.
|
|
231
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
232
232
|
return current.item.entity1.updatedTime;
|
|
233
233
|
}, false),
|
|
234
234
|
}),
|
|
@@ -238,7 +238,7 @@ exports[`view-element:toEmbeddedTS table-data-source-calllogic-with-server-valid
|
|
|
238
238
|
slotTitle: () => [
|
|
239
239
|
new nasl.ui.UText({
|
|
240
240
|
_name: __elements.text_13,
|
|
241
|
-
text: nasl.util.
|
|
241
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
242
242
|
return new nasl.core.StringLiteral<\`更新时间\`>();
|
|
243
243
|
}, false),
|
|
244
244
|
}),
|
|
@@ -277,19 +277,19 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
|
|
|
277
277
|
slotDefault: () => [
|
|
278
278
|
new nasl.ui.UForm({
|
|
279
279
|
_name: __elements.form1,
|
|
280
|
-
layout: nasl.util.
|
|
280
|
+
layout: nasl.util._bindAttrWrap(() => {
|
|
281
281
|
return new nasl.core.StringLiteral<\`inline\`>();
|
|
282
282
|
}, false),
|
|
283
283
|
slotDefault: () => [
|
|
284
284
|
new nasl.ui.UFormItem({
|
|
285
285
|
_name: __elements.form_item1,
|
|
286
|
-
layout: nasl.util.
|
|
286
|
+
layout: nasl.util._bindAttrWrap(() => {
|
|
287
287
|
return new nasl.core.StringLiteral<\`center\`>();
|
|
288
288
|
}, false),
|
|
289
289
|
slotLabel: () => [
|
|
290
290
|
new nasl.ui.UText({
|
|
291
291
|
_name: __elements.text1,
|
|
292
|
-
text: nasl.util.
|
|
292
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
293
293
|
return new nasl.core.StringLiteral<\`property1\`>();
|
|
294
294
|
}, false),
|
|
295
295
|
}),
|
|
@@ -297,16 +297,16 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
|
|
|
297
297
|
slotDefault: () => [
|
|
298
298
|
new nasl.ui.UNumberInput({
|
|
299
299
|
_name: __elements.number_input1,
|
|
300
|
-
precision: nasl.util.
|
|
300
|
+
precision: nasl.util._bindAttrWrap(() => {
|
|
301
301
|
return new nasl.core.Long(0);
|
|
302
302
|
}, false),
|
|
303
|
-
step: nasl.util.
|
|
303
|
+
step: nasl.util._bindAttrWrap(() => {
|
|
304
304
|
return new nasl.core.Long(0);
|
|
305
305
|
}, false),
|
|
306
|
-
placeholder: nasl.util.
|
|
306
|
+
placeholder: nasl.util._bindAttrWrap(() => {
|
|
307
307
|
return new nasl.core.StringLiteral<\`请输入property1\`>();
|
|
308
308
|
}, false),
|
|
309
|
-
value: nasl.util.
|
|
309
|
+
value: nasl.util._bindAttrWrap(() => {
|
|
310
310
|
return filter1.property1;
|
|
311
311
|
}, false),
|
|
312
312
|
}),
|
|
@@ -315,10 +315,10 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
|
|
|
315
315
|
|
|
316
316
|
new nasl.ui.UFormItem({
|
|
317
317
|
_name: __elements.form_item2,
|
|
318
|
-
layout: nasl.util.
|
|
318
|
+
layout: nasl.util._bindAttrWrap(() => {
|
|
319
319
|
return new nasl.core.StringLiteral<\`center\`>();
|
|
320
320
|
}, false),
|
|
321
|
-
labelSize: nasl.util.
|
|
321
|
+
labelSize: nasl.util._bindAttrWrap(() => {
|
|
322
322
|
return new nasl.core.StringLiteral<\`auto\`>();
|
|
323
323
|
}, false),
|
|
324
324
|
slotDefault: () => [
|
|
@@ -334,10 +334,10 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
|
|
|
334
334
|
},
|
|
335
335
|
],
|
|
336
336
|
|
|
337
|
-
color: nasl.util.
|
|
337
|
+
color: nasl.util._bindAttrWrap(() => {
|
|
338
338
|
return new nasl.core.StringLiteral<\`primary\`>();
|
|
339
339
|
}, false),
|
|
340
|
-
text: nasl.util.
|
|
340
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
341
341
|
return new nasl.core.StringLiteral<\`查 询\`>();
|
|
342
342
|
}, false),
|
|
343
343
|
}),
|
|
@@ -360,10 +360,10 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
|
|
|
360
360
|
},
|
|
361
361
|
],
|
|
362
362
|
|
|
363
|
-
color: nasl.util.
|
|
363
|
+
color: nasl.util._bindAttrWrap(() => {
|
|
364
364
|
return new nasl.core.StringLiteral<\`primary\`>();
|
|
365
365
|
}, false),
|
|
366
|
-
text: nasl.util.
|
|
366
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
367
367
|
return new nasl.core.StringLiteral<\`创 建\`>();
|
|
368
368
|
}, false),
|
|
369
369
|
}),
|
|
@@ -374,7 +374,7 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
|
|
|
374
374
|
|
|
375
375
|
new nasl.ui.UTableView({
|
|
376
376
|
_name: __elements.tableView,
|
|
377
|
-
dataSource: nasl.util.
|
|
377
|
+
dataSource: nasl.util._bindAttrWrap(() => {
|
|
378
378
|
return app.logics.loadTestTableView2(
|
|
379
379
|
__elements[\\"tableView\\"].page,
|
|
380
380
|
__elements[\\"tableView\\"].size,
|
|
@@ -383,35 +383,35 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
|
|
|
383
383
|
filter1
|
|
384
384
|
);
|
|
385
385
|
}, true),
|
|
386
|
-
valueField: nasl.util.
|
|
386
|
+
valueField: nasl.util._bindAttrWrap(() => {
|
|
387
387
|
return new nasl.core.StringLiteral<\`entity2.id\`>();
|
|
388
388
|
}, false),
|
|
389
|
-
pagination: nasl.util.
|
|
389
|
+
pagination: nasl.util._bindAttrWrap(() => {
|
|
390
390
|
return new nasl.core.BooleanTrue();
|
|
391
391
|
}, false),
|
|
392
|
-
showSizer: nasl.util.
|
|
392
|
+
showSizer: nasl.util._bindAttrWrap(() => {
|
|
393
393
|
return new nasl.core.BooleanTrue();
|
|
394
394
|
}, false),
|
|
395
|
-
pageSize: nasl.util.
|
|
395
|
+
pageSize: nasl.util._bindAttrWrap(() => {
|
|
396
396
|
return new nasl.core.Long(20);
|
|
397
397
|
}, false),
|
|
398
|
-
pageNumber: nasl.util.
|
|
398
|
+
pageNumber: nasl.util._bindAttrWrap(() => {
|
|
399
399
|
return new nasl.core.Long(1);
|
|
400
400
|
}, false),
|
|
401
401
|
slotDefault: () => [
|
|
402
402
|
new nasl.ui.UTableViewColumn({
|
|
403
403
|
_name: __elements.table_view_column1,
|
|
404
|
-
type: nasl.util.
|
|
404
|
+
type: nasl.util._bindAttrWrap(() => {
|
|
405
405
|
return new nasl.core.StringLiteral<\`index\`>();
|
|
406
406
|
}, false),
|
|
407
|
-
width: nasl.util.
|
|
407
|
+
width: nasl.util._bindAttrWrap(() => {
|
|
408
408
|
return new nasl.core.StringLiteral<\`60\`>();
|
|
409
409
|
}, false),
|
|
410
410
|
slotCell: (current) => [],
|
|
411
411
|
slotTitle: () => [
|
|
412
412
|
new nasl.ui.UText({
|
|
413
413
|
_name: __elements.text2,
|
|
414
|
-
text: nasl.util.
|
|
414
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
415
415
|
return new nasl.core.StringLiteral<\`序号\`>();
|
|
416
416
|
}, false),
|
|
417
417
|
}),
|
|
@@ -420,7 +420,7 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
|
|
|
420
420
|
|
|
421
421
|
new nasl.ui.UTableViewColumn({
|
|
422
422
|
_name: __elements.table_view_column2,
|
|
423
|
-
field: nasl.util.
|
|
423
|
+
field: nasl.util._bindAttrWrap(() => {
|
|
424
424
|
return new nasl.core.StringLiteral<\`entity1.createdTime\`>();
|
|
425
425
|
}, false),
|
|
426
426
|
slotCell: (current) => [
|
|
@@ -429,7 +429,7 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
|
|
|
429
429
|
slotDefault: () => [
|
|
430
430
|
new nasl.ui.UText({
|
|
431
431
|
_name: __elements.text3,
|
|
432
|
-
text: nasl.util.
|
|
432
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
433
433
|
return current.item.entity1.createdTime;
|
|
434
434
|
}, false),
|
|
435
435
|
}),
|
|
@@ -439,7 +439,7 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
|
|
|
439
439
|
slotTitle: () => [
|
|
440
440
|
new nasl.ui.UText({
|
|
441
441
|
_name: __elements.text4,
|
|
442
|
-
text: nasl.util.
|
|
442
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
443
443
|
return new nasl.core.StringLiteral<\`创建时间\`>();
|
|
444
444
|
}, false),
|
|
445
445
|
}),
|
|
@@ -448,7 +448,7 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
|
|
|
448
448
|
|
|
449
449
|
new nasl.ui.UTableViewColumn({
|
|
450
450
|
_name: __elements.table_view_column3,
|
|
451
|
-
field: nasl.util.
|
|
451
|
+
field: nasl.util._bindAttrWrap(() => {
|
|
452
452
|
return new nasl.core.StringLiteral<\`entity1.updatedTime\`>();
|
|
453
453
|
}, false),
|
|
454
454
|
slotCell: (current) => [
|
|
@@ -457,7 +457,7 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
|
|
|
457
457
|
slotDefault: () => [
|
|
458
458
|
new nasl.ui.UText({
|
|
459
459
|
_name: __elements.text5,
|
|
460
|
-
text: nasl.util.
|
|
460
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
461
461
|
return current.item.entity1.updatedTime;
|
|
462
462
|
}, false),
|
|
463
463
|
}),
|
|
@@ -467,7 +467,7 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
|
|
|
467
467
|
slotTitle: () => [
|
|
468
468
|
new nasl.ui.UText({
|
|
469
469
|
_name: __elements.text6,
|
|
470
|
-
text: nasl.util.
|
|
470
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
471
471
|
return new nasl.core.StringLiteral<\`更新时间\`>();
|
|
472
472
|
}, false),
|
|
473
473
|
}),
|
|
@@ -476,7 +476,7 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
|
|
|
476
476
|
|
|
477
477
|
new nasl.ui.UTableViewColumn({
|
|
478
478
|
_name: __elements.table_view_column4,
|
|
479
|
-
field: nasl.util.
|
|
479
|
+
field: nasl.util._bindAttrWrap(() => {
|
|
480
480
|
return new nasl.core.StringLiteral<\`entity1.property1\`>();
|
|
481
481
|
}, false),
|
|
482
482
|
slotCell: (current) => [
|
|
@@ -485,7 +485,7 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
|
|
|
485
485
|
slotDefault: () => [
|
|
486
486
|
new nasl.ui.UText({
|
|
487
487
|
_name: __elements.text7,
|
|
488
|
-
text: nasl.util.
|
|
488
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
489
489
|
return current.item.entity1.property1;
|
|
490
490
|
}, false),
|
|
491
491
|
}),
|
|
@@ -495,7 +495,7 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
|
|
|
495
495
|
slotTitle: () => [
|
|
496
496
|
new nasl.ui.UText({
|
|
497
497
|
_name: __elements.text8,
|
|
498
|
-
text: nasl.util.
|
|
498
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
499
499
|
return new nasl.core.StringLiteral<\`property1\`>();
|
|
500
500
|
}, false),
|
|
501
501
|
}),
|
|
@@ -504,7 +504,7 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
|
|
|
504
504
|
|
|
505
505
|
new nasl.ui.UTableViewColumn({
|
|
506
506
|
_name: __elements.table_view_column5,
|
|
507
|
-
title: nasl.util.
|
|
507
|
+
title: nasl.util._bindAttrWrap(() => {
|
|
508
508
|
return new nasl.core.StringLiteral<\`操作\`>();
|
|
509
509
|
}, false),
|
|
510
510
|
slotCell: (current) => [
|
|
@@ -525,7 +525,7 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
|
|
|
525
525
|
},
|
|
526
526
|
],
|
|
527
527
|
|
|
528
|
-
text: nasl.util.
|
|
528
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
529
529
|
return new nasl.core.StringLiteral<\`修改\`>();
|
|
530
530
|
}, false),
|
|
531
531
|
}),
|
|
@@ -542,7 +542,7 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
|
|
|
542
542
|
},
|
|
543
543
|
],
|
|
544
544
|
|
|
545
|
-
text: nasl.util.
|
|
545
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
546
546
|
return new nasl.core.StringLiteral<\`删除\`>();
|
|
547
547
|
}, false),
|
|
548
548
|
}),
|
|
@@ -552,7 +552,7 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
|
|
|
552
552
|
slotTitle: () => [
|
|
553
553
|
new nasl.ui.UText({
|
|
554
554
|
_name: __elements.text9,
|
|
555
|
-
text: nasl.util.
|
|
555
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
556
556
|
return new nasl.core.StringLiteral<\`操作\`>();
|
|
557
557
|
}, false),
|
|
558
558
|
}),
|
|
@@ -590,10 +590,10 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
|
|
|
590
590
|
},
|
|
591
591
|
],
|
|
592
592
|
|
|
593
|
-
color: nasl.util.
|
|
593
|
+
color: nasl.util._bindAttrWrap(() => {
|
|
594
594
|
return new nasl.core.StringLiteral<\`primary\`>();
|
|
595
595
|
}, false),
|
|
596
|
-
text: nasl.util.
|
|
596
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
597
597
|
return new nasl.core.StringLiteral<\`提交修改\`>();
|
|
598
598
|
}, false),
|
|
599
599
|
_if: ((): any => {
|
|
@@ -624,10 +624,10 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
|
|
|
624
624
|
},
|
|
625
625
|
],
|
|
626
626
|
|
|
627
|
-
color: nasl.util.
|
|
627
|
+
color: nasl.util._bindAttrWrap(() => {
|
|
628
628
|
return new nasl.core.StringLiteral<\`primary\`>();
|
|
629
629
|
}, false),
|
|
630
|
-
text: nasl.util.
|
|
630
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
631
631
|
return new nasl.core.StringLiteral<\`立即创建\`>();
|
|
632
632
|
}, false),
|
|
633
633
|
_if: ((): any => {
|
|
@@ -643,13 +643,13 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
|
|
|
643
643
|
slotDefault: () => [
|
|
644
644
|
new nasl.ui.UFormItem({
|
|
645
645
|
_name: __elements.form_item3,
|
|
646
|
-
layout: nasl.util.
|
|
646
|
+
layout: nasl.util._bindAttrWrap(() => {
|
|
647
647
|
return new nasl.core.StringLiteral<\`center\`>();
|
|
648
648
|
}, false),
|
|
649
649
|
slotLabel: () => [
|
|
650
650
|
new nasl.ui.UText({
|
|
651
651
|
_name: __elements.text10,
|
|
652
|
-
text: nasl.util.
|
|
652
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
653
653
|
return new nasl.core.StringLiteral<\`property1\`>();
|
|
654
654
|
}, false),
|
|
655
655
|
}),
|
|
@@ -657,16 +657,16 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
|
|
|
657
657
|
slotDefault: () => [
|
|
658
658
|
new nasl.ui.UNumberInput({
|
|
659
659
|
_name: __elements.number_input2,
|
|
660
|
-
precision: nasl.util.
|
|
660
|
+
precision: nasl.util._bindAttrWrap(() => {
|
|
661
661
|
return new nasl.core.Long(0);
|
|
662
662
|
}, false),
|
|
663
|
-
step: nasl.util.
|
|
663
|
+
step: nasl.util._bindAttrWrap(() => {
|
|
664
664
|
return new nasl.core.Long(0);
|
|
665
665
|
}, false),
|
|
666
|
-
placeholder: nasl.util.
|
|
666
|
+
placeholder: nasl.util._bindAttrWrap(() => {
|
|
667
667
|
return new nasl.core.StringLiteral<\`请输入property1\`>();
|
|
668
668
|
}, false),
|
|
669
|
-
value: nasl.util.
|
|
669
|
+
value: nasl.util._bindAttrWrap(() => {
|
|
670
670
|
return input1.property1;
|
|
671
671
|
}, false),
|
|
672
672
|
}),
|
|
@@ -684,7 +684,7 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
|
|
|
684
684
|
slotDefault: () => [
|
|
685
685
|
new nasl.ui.UText({
|
|
686
686
|
_name: __elements.text11,
|
|
687
|
-
text: nasl.util.
|
|
687
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
688
688
|
return new nasl.core.StringLiteral<\`修改\`>();
|
|
689
689
|
}, false),
|
|
690
690
|
}),
|
|
@@ -698,7 +698,7 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
|
|
|
698
698
|
slotDefault: () => [
|
|
699
699
|
new nasl.ui.UText({
|
|
700
700
|
_name: __elements.text12,
|
|
701
|
-
text: nasl.util.
|
|
701
|
+
text: nasl.util._bindAttrWrap(() => {
|
|
702
702
|
return new nasl.core.StringLiteral<\`创建\`>();
|
|
703
703
|
}, false),
|
|
704
704
|
}),
|
|
@@ -103,7 +103,9 @@ exports[`view-element:toVue table-data-source-calllogic-with-server-validation 1
|
|
|
103
103
|
>
|
|
104
104
|
<u-table-view
|
|
105
105
|
:ref=\\"\`tableView_1\`\\"
|
|
106
|
-
:data-source=\\"
|
|
106
|
+
:data-source=\\"
|
|
107
|
+
$global.useDatabaseCallback()(__tableView_1_handleDataSourceLoad)
|
|
108
|
+
\\"
|
|
107
109
|
:data-schema=\\"\`LoadTestTableView_1Structure\`\\"
|
|
108
110
|
:value-field=\\"\`entity1.id\`\\"
|
|
109
111
|
:pagination=\\"true\\"
|
|
@@ -271,7 +273,9 @@ exports[`view-element:toVue with-table 1`] = `
|
|
|
271
273
|
</u-linear-layout>
|
|
272
274
|
<u-table-view
|
|
273
275
|
:ref=\\"\`tableView\`\\"
|
|
274
|
-
:data-source=\\"
|
|
276
|
+
:data-source=\\"
|
|
277
|
+
$global.useDatabaseCallback()(__tableView_handleDataSourceLoad)
|
|
278
|
+
\\"
|
|
275
279
|
:data-schema=\\"\`LoadTestTableView2Structure\`\\"
|
|
276
280
|
:value-field=\\"\`entity2.id\`\\"
|
|
277
281
|
:pagination=\\"true\\"
|