@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.
Files changed (222) hide show
  1. package/.mocharc.js +1 -0
  2. package/out/common/BaseNode.d.ts +19 -3
  3. package/out/common/BaseNode.js +85 -7
  4. package/out/common/BaseNode.js.map +1 -1
  5. package/out/concepts/AbstractInterface__.js.map +1 -1
  6. package/out/concepts/Annotation__.js +1 -1
  7. package/out/concepts/Annotation__.js.map +1 -1
  8. package/out/concepts/App__.d.ts +3 -0
  9. package/out/concepts/App__.js +964 -4
  10. package/out/concepts/App__.js.map +1 -1
  11. package/out/concepts/Argument__.js +3 -3
  12. package/out/concepts/Argument__.js.map +1 -1
  13. package/out/concepts/BatchAssignment__.d.ts +1 -1
  14. package/out/concepts/BatchAssignment__.js +3 -3
  15. package/out/concepts/BatchAssignment__.js.map +1 -1
  16. package/out/concepts/BindAttribute__.js +5 -6
  17. package/out/concepts/BindAttribute__.js.map +1 -1
  18. package/out/concepts/BindDirective__.js +3 -4
  19. package/out/concepts/BindDirective__.js.map +1 -1
  20. package/out/concepts/BusinessComponent__.d.ts +2 -0
  21. package/out/concepts/BusinessComponent__.js +48 -0
  22. package/out/concepts/BusinessComponent__.js.map +1 -1
  23. package/out/concepts/BusinessLogic__.d.ts +1 -0
  24. package/out/concepts/BusinessLogic__.js +10 -0
  25. package/out/concepts/BusinessLogic__.js.map +1 -1
  26. package/out/concepts/CallEvent__.d.ts +2 -0
  27. package/out/concepts/CallEvent__.js +75 -0
  28. package/out/concepts/CallEvent__.js.map +1 -1
  29. package/out/concepts/CallInterface__.d.ts +1 -0
  30. package/out/concepts/CallInterface__.js +26 -15
  31. package/out/concepts/CallInterface__.js.map +1 -1
  32. package/out/concepts/CallLogic__.d.ts +4 -0
  33. package/out/concepts/CallLogic__.js +61 -5
  34. package/out/concepts/CallLogic__.js.map +1 -1
  35. package/out/concepts/Entity__.d.ts +3 -3
  36. package/out/concepts/Entity__.js +4 -0
  37. package/out/concepts/Entity__.js.map +1 -1
  38. package/out/concepts/Event__.d.ts +2 -0
  39. package/out/concepts/Event__.js +30 -0
  40. package/out/concepts/Event__.js.map +1 -1
  41. package/out/concepts/FrontendType__.d.ts +2 -0
  42. package/out/concepts/FrontendType__.js +32 -0
  43. package/out/concepts/FrontendType__.js.map +1 -1
  44. package/out/concepts/Frontend__.d.ts +2 -0
  45. package/out/concepts/Frontend__.js +48 -0
  46. package/out/concepts/Frontend__.js.map +1 -1
  47. package/out/concepts/IfStatement__.js +6 -6
  48. package/out/concepts/IfStatement__.js.map +1 -1
  49. package/out/concepts/InterfaceParam__.d.ts +1 -0
  50. package/out/concepts/InterfaceParam__.js +23 -4
  51. package/out/concepts/InterfaceParam__.js.map +1 -1
  52. package/out/concepts/Interface__.d.ts +2 -1
  53. package/out/concepts/Interface__.js +29 -5
  54. package/out/concepts/Interface__.js.map +1 -1
  55. package/out/concepts/JSBlock__.d.ts +1 -0
  56. package/out/concepts/JSBlock__.js +6 -0
  57. package/out/concepts/JSBlock__.js.map +1 -1
  58. package/out/concepts/LogicDeclaration__.d.ts +1 -0
  59. package/out/concepts/LogicDeclaration__.js +58 -7
  60. package/out/concepts/LogicDeclaration__.js.map +1 -1
  61. package/out/concepts/Logic__.js +43 -24
  62. package/out/concepts/Logic__.js.map +1 -1
  63. package/out/concepts/MatchCase__.js +1 -2
  64. package/out/concepts/MatchCase__.js.map +1 -1
  65. package/out/concepts/Match__.js +3 -18
  66. package/out/concepts/Match__.js.map +1 -1
  67. package/out/concepts/MemberExpression__.js +1 -1
  68. package/out/concepts/MemberExpression__.js.map +1 -1
  69. package/out/concepts/Module__.d.ts +2 -0
  70. package/out/concepts/Module__.js +64 -0
  71. package/out/concepts/Module__.js.map +1 -1
  72. package/out/concepts/NewComposite__.d.ts +1 -1
  73. package/out/concepts/NewComposite__.js +3 -3
  74. package/out/concepts/NewComposite__.js.map +1 -1
  75. package/out/concepts/NullLiteral__.js +6 -0
  76. package/out/concepts/NullLiteral__.js.map +1 -1
  77. package/out/concepts/Paginate__.d.ts +1 -0
  78. package/out/concepts/Paginate__.js +15 -7
  79. package/out/concepts/Paginate__.js.map +1 -1
  80. package/out/concepts/QueryFromExpression__.js +2 -2
  81. package/out/concepts/QueryFromExpression__.js.map +1 -1
  82. package/out/concepts/StringLiteral__.js +3 -4
  83. package/out/concepts/StringLiteral__.js.map +1 -1
  84. package/out/concepts/TypeAnnotation__.js +1 -0
  85. package/out/concepts/TypeAnnotation__.js.map +1 -1
  86. package/out/concepts/ViewElement__.d.ts +2 -0
  87. package/out/concepts/ViewElement__.js +10 -7
  88. package/out/concepts/ViewElement__.js.map +1 -1
  89. package/out/concepts/View__.d.ts +1 -0
  90. package/out/concepts/View__.js +55 -1
  91. package/out/concepts/View__.js.map +1 -1
  92. package/out/generator/genBundleFiles.js +61 -51
  93. package/out/generator/genBundleFiles.js.map +1 -1
  94. package/out/generator/genHash.d.ts +2 -2
  95. package/out/generator/genHash.js +30 -30
  96. package/out/generator/genHash.js.map +1 -1
  97. package/out/generator/permission.d.ts +8 -1
  98. package/out/generator/permission.js +321 -23
  99. package/out/generator/permission.js.map +1 -1
  100. package/out/generator/release-body/body.d.ts +4 -0
  101. package/out/generator/release-body/body.js +20 -6
  102. package/out/generator/release-body/body.js.map +1 -1
  103. package/out/generator/release-body/data.js +6 -2
  104. package/out/generator/release-body/data.js.map +1 -1
  105. package/out/generator/release-body/index.d.ts +1 -0
  106. package/out/generator/release-body/index.js +1 -0
  107. package/out/generator/release-body/index.js.map +1 -1
  108. package/out/generator/release-body/utils.js +3 -3
  109. package/out/generator/release-body/utils.js.map +1 -1
  110. package/out/generator/release-body/validation.js +2 -2
  111. package/out/generator/release-body/validation.js.map +1 -1
  112. package/out/index.d.ts +1 -1
  113. package/out/index.js.map +1 -1
  114. package/out/natural/genNaturalTS.d.ts +2 -2
  115. package/out/natural/genNaturalTS.js +5 -5
  116. package/out/natural/genNaturalTS.js.map +1 -1
  117. package/out/natural/getContext/index.d.ts +1 -1
  118. package/out/natural/getContext/index.js +15 -9
  119. package/out/natural/getContext/index.js.map +1 -1
  120. package/out/natural/transformTS2UI.js +26 -10
  121. package/out/natural/transformTS2UI.js.map +1 -1
  122. package/out/natural/transformTSCode.js +26 -10
  123. package/out/natural/transformTSCode.js.map +1 -1
  124. package/out/server/entity2LogicNamespace.d.ts +2 -2
  125. package/out/server/entity2LogicNamespace.js +321 -310
  126. package/out/server/entity2LogicNamespace.js.map +1 -1
  127. package/out/server/extendBaseNode.js +29 -18
  128. package/out/server/extendBaseNode.js.map +1 -1
  129. package/out/server/naslServer.d.ts +1 -1
  130. package/out/server/naslServer.js +35 -21
  131. package/out/server/naslServer.js.map +1 -1
  132. package/out/server/translator.js +12 -0
  133. package/out/server/translator.js.map +1 -1
  134. package/out/service/storage/init.d.ts +2 -0
  135. package/out/service/storage/init.js +20 -1
  136. package/out/service/storage/init.js.map +1 -1
  137. package/out/templator/genCreateBlock.js +3 -3
  138. package/out/templator/genCreateBlock.js.map +1 -1
  139. package/out/templator/genCurdEditMultipleKeyBlock.js +2 -2
  140. package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
  141. package/out/templator/genCurdMultipleKeyBlock.js +4 -4
  142. package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
  143. package/out/templator/genEditTableBlock.js +1 -1
  144. package/out/templator/genEditTableBlock.js.map +1 -1
  145. package/out/templator/genGetBlock.js.map +1 -1
  146. package/out/templator/genGridViewBlock.js.map +1 -1
  147. package/out/templator/genSelectBlock.js.map +1 -1
  148. package/out/templator/genTableBlock.js.map +1 -1
  149. package/out/templator/genUpdateBlock.js +3 -3
  150. package/out/templator/genUpdateBlock.js.map +1 -1
  151. package/out/templator/utils.js +1 -1
  152. package/out/templator/utils.js.map +1 -1
  153. package/package.json +5 -5
  154. package/sandbox/stdlib/nasl.util.ts +4 -1
  155. package/src/common/BaseNode.ts +91 -11
  156. package/src/concepts/AbstractInterface__.ts +1 -0
  157. package/src/concepts/Annotation__.ts +1 -1
  158. package/src/concepts/App__.ts +104 -4
  159. package/src/concepts/Argument__.ts +3 -3
  160. package/src/concepts/BatchAssignment__.ts +3 -3
  161. package/src/concepts/BindAttribute__.ts +5 -6
  162. package/src/concepts/BindDirective__.ts +3 -4
  163. package/src/concepts/BusinessComponent__.ts +54 -1
  164. package/src/concepts/BusinessLogic__.ts +10 -1
  165. package/src/concepts/CallEvent__.ts +66 -0
  166. package/src/concepts/CallInterface__.ts +21 -9
  167. package/src/concepts/CallLogic__.ts +61 -5
  168. package/src/concepts/Entity__.ts +7 -1
  169. package/src/concepts/Event__.ts +32 -0
  170. package/src/concepts/FrontendType__.ts +34 -1
  171. package/src/concepts/Frontend__.ts +51 -0
  172. package/src/concepts/IfStatement__.ts +6 -6
  173. package/src/concepts/InterfaceParam__.ts +23 -4
  174. package/src/concepts/Interface__.ts +29 -5
  175. package/src/concepts/JSBlock__.ts +5 -0
  176. package/src/concepts/LogicDeclaration__.ts +65 -7
  177. package/src/concepts/Logic__.ts +45 -27
  178. package/src/concepts/MatchCase__.ts +1 -2
  179. package/src/concepts/Match__.ts +3 -21
  180. package/src/concepts/MemberExpression__.ts +1 -1
  181. package/src/concepts/Module__.ts +75 -0
  182. package/src/concepts/NewComposite__.ts +3 -3
  183. package/src/concepts/NullLiteral__.ts +7 -0
  184. package/src/concepts/Paginate__.ts +14 -7
  185. package/src/concepts/QueryFromExpression__.ts +2 -2
  186. package/src/concepts/StringLiteral__.ts +3 -4
  187. package/src/concepts/TypeAnnotation__.ts +1 -0
  188. package/src/concepts/ViewElement__.ts +11 -7
  189. package/src/concepts/View__.ts +56 -1
  190. package/src/generator/genBundleFiles.ts +67 -54
  191. package/src/generator/genHash.ts +32 -6
  192. package/src/generator/permission.ts +333 -23
  193. package/src/generator/release-body/body.ts +31 -12
  194. package/src/generator/release-body/data.ts +7 -2
  195. package/src/generator/release-body/index.ts +1 -0
  196. package/src/generator/release-body/utils.ts +3 -3
  197. package/src/generator/release-body/validation.ts +1 -1
  198. package/src/index.ts +13 -1
  199. package/src/natural/genNaturalTS.ts +5 -2
  200. package/src/natural/getContext/index.ts +17 -11
  201. package/src/natural/transformTS2UI.ts +25 -10
  202. package/src/natural/transformTSCode.ts +25 -10
  203. package/src/server/entity2LogicNamespace.ts +13 -1
  204. package/src/server/extendBaseNode.ts +32 -22
  205. package/src/server/naslServer.ts +45 -28
  206. package/src/server/translator.ts +15 -0
  207. package/src/service/storage/init.ts +26 -0
  208. package/src/templator/genCreateBlock.ts +4 -4
  209. package/src/templator/genCurdEditMultipleKeyBlock.ts +2 -2
  210. package/src/templator/genCurdMultipleKeyBlock.ts +7 -7
  211. package/src/templator/genEditTableBlock.ts +4 -4
  212. package/src/templator/genGetBlock.ts +1 -1
  213. package/src/templator/genGridViewBlock.ts +2 -2
  214. package/src/templator/genSelectBlock.ts +3 -3
  215. package/src/templator/genTableBlock.ts +2 -2
  216. package/src/templator/genUpdateBlock.ts +6 -6
  217. package/src/templator/utils.ts +1 -1
  218. package/test/concepts/call-logic/__snapshots__/getQuickInfoOffset.spec.ts.snap +1 -1
  219. package/test/concepts/call-logic/__snapshots__/toEmbeddedTS.spec.ts.snap +1 -1
  220. package/test/concepts/string-literal/__snapshots__/toVue.spec.ts.snap +1 -1
  221. package/test/concepts/view-element/__snapshots__/toEmbeddedTS.spec.ts.snap +75 -75
  222. 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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
51
+ width: nasl.util._bindAttrWrap(() => {
52
52
  return new nasl.core.StringLiteral<\`240\`>();
53
53
  }, false),
54
- src: nasl.util.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
85
+ text: nasl.util._bindAttrWrap(() => {
86
86
  return new nasl.core.StringLiteral<\`返回首页\`>();
87
87
  }, false),
88
- color: nasl.util.bindAttrWrap(() => {
88
+ color: nasl.util._bindAttrWrap(() => {
89
89
  return new nasl.core.StringLiteral<\`primary\`>();
90
90
  }, false),
91
- href: nasl.util.bindAttrWrap(() => {
91
+ href: nasl.util._bindAttrWrap(() => {
92
92
  return new nasl.core.StringLiteral<\`/\`>();
93
93
  }, false),
94
- shape: nasl.util.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
133
+ valueField: nasl.util._bindAttrWrap(() => {
134
134
  return new nasl.core.StringLiteral<\`entity1.id\`>();
135
135
  }, false),
136
- pagination: nasl.util.bindAttrWrap(() => {
136
+ pagination: nasl.util._bindAttrWrap(() => {
137
137
  return new nasl.core.BooleanTrue();
138
138
  }, false),
139
- showSizer: nasl.util.bindAttrWrap(() => {
139
+ showSizer: nasl.util._bindAttrWrap(() => {
140
140
  return new nasl.core.BooleanTrue();
141
141
  }, false),
142
- pageSize: nasl.util.bindAttrWrap(() => {
142
+ pageSize: nasl.util._bindAttrWrap(() => {
143
143
  return new nasl.core.Long(20);
144
144
  }, false),
145
- pageNumber: nasl.util.bindAttrWrap(() => {
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.bindAttrWrap(() => {
151
+ type: nasl.util._bindAttrWrap(() => {
152
152
  return new nasl.core.StringLiteral<\`index\`>();
153
153
  }, false),
154
- width: nasl.util.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
300
+ precision: nasl.util._bindAttrWrap(() => {
301
301
  return new nasl.core.Long(0);
302
302
  }, false),
303
- step: nasl.util.bindAttrWrap(() => {
303
+ step: nasl.util._bindAttrWrap(() => {
304
304
  return new nasl.core.Long(0);
305
305
  }, false),
306
- placeholder: nasl.util.bindAttrWrap(() => {
306
+ placeholder: nasl.util._bindAttrWrap(() => {
307
307
  return new nasl.core.StringLiteral<\`请输入property1\`>();
308
308
  }, false),
309
- value: nasl.util.bindAttrWrap(() => {
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.bindAttrWrap(() => {
318
+ layout: nasl.util._bindAttrWrap(() => {
319
319
  return new nasl.core.StringLiteral<\`center\`>();
320
320
  }, false),
321
- labelSize: nasl.util.bindAttrWrap(() => {
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.bindAttrWrap(() => {
337
+ color: nasl.util._bindAttrWrap(() => {
338
338
  return new nasl.core.StringLiteral<\`primary\`>();
339
339
  }, false),
340
- text: nasl.util.bindAttrWrap(() => {
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.bindAttrWrap(() => {
363
+ color: nasl.util._bindAttrWrap(() => {
364
364
  return new nasl.core.StringLiteral<\`primary\`>();
365
365
  }, false),
366
- text: nasl.util.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
386
+ valueField: nasl.util._bindAttrWrap(() => {
387
387
  return new nasl.core.StringLiteral<\`entity2.id\`>();
388
388
  }, false),
389
- pagination: nasl.util.bindAttrWrap(() => {
389
+ pagination: nasl.util._bindAttrWrap(() => {
390
390
  return new nasl.core.BooleanTrue();
391
391
  }, false),
392
- showSizer: nasl.util.bindAttrWrap(() => {
392
+ showSizer: nasl.util._bindAttrWrap(() => {
393
393
  return new nasl.core.BooleanTrue();
394
394
  }, false),
395
- pageSize: nasl.util.bindAttrWrap(() => {
395
+ pageSize: nasl.util._bindAttrWrap(() => {
396
396
  return new nasl.core.Long(20);
397
397
  }, false),
398
- pageNumber: nasl.util.bindAttrWrap(() => {
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.bindAttrWrap(() => {
404
+ type: nasl.util._bindAttrWrap(() => {
405
405
  return new nasl.core.StringLiteral<\`index\`>();
406
406
  }, false),
407
- width: nasl.util.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
593
+ color: nasl.util._bindAttrWrap(() => {
594
594
  return new nasl.core.StringLiteral<\`primary\`>();
595
595
  }, false),
596
- text: nasl.util.bindAttrWrap(() => {
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.bindAttrWrap(() => {
627
+ color: nasl.util._bindAttrWrap(() => {
628
628
  return new nasl.core.StringLiteral<\`primary\`>();
629
629
  }, false),
630
- text: nasl.util.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
660
+ precision: nasl.util._bindAttrWrap(() => {
661
661
  return new nasl.core.Long(0);
662
662
  }, false),
663
- step: nasl.util.bindAttrWrap(() => {
663
+ step: nasl.util._bindAttrWrap(() => {
664
664
  return new nasl.core.Long(0);
665
665
  }, false),
666
- placeholder: nasl.util.bindAttrWrap(() => {
666
+ placeholder: nasl.util._bindAttrWrap(() => {
667
667
  return new nasl.core.StringLiteral<\`请输入property1\`>();
668
668
  }, false),
669
- value: nasl.util.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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.bindAttrWrap(() => {
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=\\"(params) => __tableView_1_handleDataSourceLoad(params)\\"
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=\\"(params) => __tableView_handleDataSourceLoad(params)\\"
276
+ :data-source=\\"
277
+ $global.useDatabaseCallback()(__tableView_handleDataSourceLoad)
278
+ \\"
275
279
  :data-schema=\\"\`LoadTestTableView2Structure\`\\"
276
280
  :value-field=\\"\`entity2.id\`\\"
277
281
  :pagination=\\"true\\"