@lcap/nasl 3.8.0-beta.3 → 3.8.0-beta.5

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 (320) hide show
  1. package/out/automate/engine/utils.js +1 -2
  2. package/out/automate/engine/utils.js.map +1 -1
  3. package/out/bak/translator.js +1 -1
  4. package/out/bak/translator.js.map +1 -1
  5. package/out/common/BaseNode.js +7 -2
  6. package/out/common/BaseNode.js.map +1 -1
  7. package/out/concepts/App__.js +6 -1
  8. package/out/concepts/App__.js.map +1 -1
  9. package/out/concepts/Argument__.js +11 -5
  10. package/out/concepts/Argument__.js.map +1 -1
  11. package/out/concepts/AuthLogicForCallInterface__.js +3 -0
  12. package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
  13. package/out/concepts/BinaryExpression__.js +49 -2
  14. package/out/concepts/BinaryExpression__.js.map +1 -1
  15. package/out/concepts/BindAttribute__.d.ts +4 -3
  16. package/out/concepts/BindAttribute__.js +121 -42
  17. package/out/concepts/BindAttribute__.js.map +1 -1
  18. package/out/concepts/BindEvent__.js +5 -42
  19. package/out/concepts/BindEvent__.js.map +1 -1
  20. package/out/concepts/BusinessComponent__.d.ts +1 -0
  21. package/out/concepts/BusinessComponent__.js +16 -0
  22. package/out/concepts/BusinessComponent__.js.map +1 -1
  23. package/out/concepts/BusinessLogic__.js +3 -0
  24. package/out/concepts/BusinessLogic__.js.map +1 -1
  25. package/out/concepts/CallConnector__.js +1 -1
  26. package/out/concepts/CallConnector__.js.map +1 -1
  27. package/out/concepts/CallFunction__.js +1 -1
  28. package/out/concepts/CallFunction__.js.map +1 -1
  29. package/out/concepts/CallLogic__.d.ts +6 -1
  30. package/out/concepts/CallLogic__.js +58 -17
  31. package/out/concepts/CallLogic__.js.map +1 -1
  32. package/out/concepts/Connection__.d.ts +4 -0
  33. package/out/concepts/Connection__.js +15 -0
  34. package/out/concepts/Connection__.js.map +1 -1
  35. package/out/concepts/DatabaseTypeAnnotation__.d.ts +2 -0
  36. package/out/concepts/DatabaseTypeAnnotation__.js +20 -0
  37. package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -1
  38. package/out/concepts/End__.js +5 -1
  39. package/out/concepts/End__.js.map +1 -1
  40. package/out/concepts/EntityProperty__.js +2 -0
  41. package/out/concepts/EntityProperty__.js.map +1 -1
  42. package/out/concepts/Entity__.d.ts +1 -0
  43. package/out/concepts/Entity__.js +24 -1
  44. package/out/concepts/Entity__.js.map +1 -1
  45. package/out/concepts/EnumItem__.d.ts +12 -0
  46. package/out/concepts/EnumItem__.js +49 -5
  47. package/out/concepts/EnumItem__.js.map +1 -1
  48. package/out/concepts/Enum__.js +4 -1
  49. package/out/concepts/Enum__.js.map +1 -1
  50. package/out/concepts/ForEachStatement__.js +1 -1
  51. package/out/concepts/ForEachStatement__.js.map +1 -1
  52. package/out/concepts/FrontendLibrary__.d.ts +46 -46
  53. package/out/concepts/FrontendLibrary__.js +34 -36
  54. package/out/concepts/FrontendLibrary__.js.map +1 -1
  55. package/out/concepts/I18nInfo__.d.ts +1 -0
  56. package/out/concepts/I18nInfo__.js +7 -0
  57. package/out/concepts/I18nInfo__.js.map +1 -1
  58. package/out/concepts/IfStatement__.js +2 -2
  59. package/out/concepts/IfStatement__.js.map +1 -1
  60. package/out/concepts/Interface__.js +4 -1
  61. package/out/concepts/Interface__.js.map +1 -1
  62. package/out/concepts/Logic__.d.ts +2 -3
  63. package/out/concepts/Logic__.js +33 -8
  64. package/out/concepts/Logic__.js.map +1 -1
  65. package/out/concepts/MatchCase__.d.ts +2 -2
  66. package/out/concepts/MatchCase__.js +7 -7
  67. package/out/concepts/MatchCase__.js.map +1 -1
  68. package/out/concepts/NewComposite__.js +2 -1
  69. package/out/concepts/NewComposite__.js.map +1 -1
  70. package/out/concepts/NewList__.js +2 -1
  71. package/out/concepts/NewList__.js.map +1 -1
  72. package/out/concepts/NewMap__.js +2 -1
  73. package/out/concepts/NewMap__.js.map +1 -1
  74. package/out/concepts/OqlQueryComponent__.js +3 -11
  75. package/out/concepts/OqlQueryComponent__.js.map +1 -1
  76. package/out/concepts/OverriddenLogic__.js +7 -0
  77. package/out/concepts/OverriddenLogic__.js.map +1 -1
  78. package/out/concepts/Param__.js +2 -1
  79. package/out/concepts/Param__.js.map +1 -1
  80. package/out/concepts/ProcessElementV2__.d.ts +4 -5
  81. package/out/concepts/ProcessElementV2__.js +12 -17
  82. package/out/concepts/ProcessElementV2__.js.map +1 -1
  83. package/out/concepts/ProcessElement__.d.ts +3 -4
  84. package/out/concepts/ProcessElement__.js +44 -46
  85. package/out/concepts/ProcessElement__.js.map +1 -1
  86. package/out/concepts/ProcessV2__.d.ts +5 -0
  87. package/out/concepts/ProcessV2__.js +30 -2
  88. package/out/concepts/ProcessV2__.js.map +1 -1
  89. package/out/concepts/Process__.d.ts +5 -0
  90. package/out/concepts/Process__.js +28 -0
  91. package/out/concepts/Process__.js.map +1 -1
  92. package/out/concepts/QueryFromExpression__.js +2 -2
  93. package/out/concepts/QueryFromExpression__.js.map +1 -1
  94. package/out/concepts/QueryJoinExpression__.js +2 -2
  95. package/out/concepts/QueryJoinExpression__.js.map +1 -1
  96. package/out/concepts/Return__.d.ts +1 -1
  97. package/out/concepts/Return__.js +2 -1
  98. package/out/concepts/Return__.js.map +1 -1
  99. package/out/concepts/StaticString__.d.ts +4 -0
  100. package/out/concepts/StaticString__.js +11 -0
  101. package/out/concepts/StaticString__.js.map +1 -1
  102. package/out/concepts/StructureProperty__.js +5 -2
  103. package/out/concepts/StructureProperty__.js.map +1 -1
  104. package/out/concepts/Structure__.js +9 -3
  105. package/out/concepts/Structure__.js.map +1 -1
  106. package/out/concepts/SubLogic__.d.ts +1 -3
  107. package/out/concepts/SubLogic__.js +14 -8
  108. package/out/concepts/SubLogic__.js.map +1 -1
  109. package/out/concepts/Transactional__.d.ts +1 -0
  110. package/out/concepts/Transactional__.js +7 -0
  111. package/out/concepts/Transactional__.js.map +1 -1
  112. package/out/concepts/TypeParam__.d.ts +4 -0
  113. package/out/concepts/TypeParam__.js +3 -0
  114. package/out/concepts/TypeParam__.js.map +1 -1
  115. package/out/concepts/ValidationRule__.d.ts +1 -6
  116. package/out/concepts/ValidationRule__.js +9 -6
  117. package/out/concepts/ValidationRule__.js.map +1 -1
  118. package/out/concepts/Variable__.d.ts +1 -1
  119. package/out/concepts/Variable__.js +7 -2
  120. package/out/concepts/Variable__.js.map +1 -1
  121. package/out/concepts/ViewElement__.d.ts +2 -0
  122. package/out/concepts/ViewElement__.js +130 -47
  123. package/out/concepts/ViewElement__.js.map +1 -1
  124. package/out/concepts/View__.d.ts +8 -0
  125. package/out/concepts/View__.js +123 -7
  126. package/out/concepts/View__.js.map +1 -1
  127. package/out/concepts/basics/stdlib/nasl.processV2.js +2 -2
  128. package/out/concepts/basics/stdlib/nasl.processV2.js.map +1 -1
  129. package/out/concepts/basics/stdlib/nasl.ui.js +1 -1
  130. package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -1
  131. package/out/concepts/basics/stdlib/nasl.validation.js +110 -4
  132. package/out/concepts/basics/stdlib/nasl.validation.js.map +1 -1
  133. package/out/generator/genBundleFiles.d.ts +2 -0
  134. package/out/generator/genBundleFiles.js +51 -37
  135. package/out/generator/genBundleFiles.js.map +1 -1
  136. package/out/generator/genMetaData.js +20 -26
  137. package/out/generator/genMetaData.js.map +1 -1
  138. package/out/generator/release-body/body.js +8 -6
  139. package/out/generator/release-body/body.js.map +1 -1
  140. package/out/generator/release-body/index.d.ts +1 -0
  141. package/out/generator/release-body/index.js +1 -0
  142. package/out/generator/release-body/index.js.map +1 -1
  143. package/out/generator/release-body/utils.js +1 -1
  144. package/out/generator/release-body/utils.js.map +1 -1
  145. package/out/natural/genNaturalTS.d.ts +56 -24
  146. package/out/natural/genNaturalTS.js +182 -112
  147. package/out/natural/genNaturalTS.js.map +1 -1
  148. package/out/natural/getContext/getUILib.js +4 -2
  149. package/out/natural/getContext/getUILib.js.map +1 -1
  150. package/out/natural/getContext/index.d.ts +34 -25
  151. package/out/natural/getContext/index.js +304 -157
  152. package/out/natural/getContext/index.js.map +1 -1
  153. package/out/natural/index.d.ts +1 -0
  154. package/out/natural/index.js +1 -0
  155. package/out/natural/index.js.map +1 -1
  156. package/out/natural/tools.d.ts +11 -0
  157. package/out/natural/tools.js +155 -0
  158. package/out/natural/tools.js.map +1 -0
  159. package/out/natural/transformTS2UI.js +84 -22
  160. package/out/natural/transformTS2UI.js.map +1 -1
  161. package/out/natural/transformTSCode.js +83 -22
  162. package/out/natural/transformTSCode.js.map +1 -1
  163. package/out/server/formatTsUtils.js +17 -1
  164. package/out/server/formatTsUtils.js.map +1 -1
  165. package/out/server/getLogics.js +1 -4
  166. package/out/server/getLogics.js.map +1 -1
  167. package/out/server/naslServer.js +285 -32
  168. package/out/server/naslServer.js.map +1 -1
  169. package/out/server/translator.js +5 -1
  170. package/out/server/translator.js.map +1 -1
  171. package/out/templator/genCreateBlock.js +5 -18
  172. package/out/templator/genCreateBlock.js.map +1 -1
  173. package/out/templator/genCurdMultipleKeyBlock.js +11 -32
  174. package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
  175. package/out/templator/genGetBlock.js +1 -2
  176. package/out/templator/genGetBlock.js.map +1 -1
  177. package/out/templator/genListViewBlock.js +6 -4
  178. package/out/templator/genListViewBlock.js.map +1 -1
  179. package/out/templator/genSelectBlock.js +82 -59
  180. package/out/templator/genSelectBlock.js.map +1 -1
  181. package/out/templator/genTableBlock.js +4 -4
  182. package/out/templator/genTableBlock.js.map +1 -1
  183. package/out/templator/genUpdateBlock.js +2 -15
  184. package/out/templator/genUpdateBlock.js.map +1 -1
  185. package/out/templator/utils.d.ts +1 -1
  186. package/out/templator/utils.js +1 -1
  187. package/out/templator/utils.js.map +1 -1
  188. package/out/translator/types.d.ts +4 -0
  189. package/out/translator/utils.d.ts +1 -0
  190. package/out/translator/utils.js +6 -1
  191. package/out/translator/utils.js.map +1 -1
  192. package/out/utils/env.d.ts +4 -0
  193. package/out/utils/env.js +6 -3
  194. package/out/utils/env.js.map +1 -1
  195. package/out/utils/index.d.ts +19 -0
  196. package/out/utils/index.js +61 -1
  197. package/out/utils/index.js.map +1 -1
  198. package/out/utils/language-cache/constant.d.ts +18 -0
  199. package/out/utils/language-cache/constant.js +35 -0
  200. package/out/utils/language-cache/constant.js.map +1 -0
  201. package/out/utils/language-cache/index.d.ts +2 -0
  202. package/out/utils/language-cache/index.js +19 -0
  203. package/out/utils/language-cache/index.js.map +1 -0
  204. package/out/utils/language-cache/nasl.d.ts +10 -0
  205. package/out/utils/language-cache/nasl.js +98 -0
  206. package/out/utils/language-cache/nasl.js.map +1 -0
  207. package/out/utils/language-cache/types.d.ts +44 -0
  208. package/out/utils/language-cache/types.js +4 -0
  209. package/out/utils/language-cache/types.js.map +1 -0
  210. package/out/utils/time-slicing/controller.js.map +1 -1
  211. package/out/utils/types.d.ts +17 -0
  212. package/package.json +3 -2
  213. package/sandbox/stdlib/nasl.core.ts +15 -11
  214. package/sandbox/stdlib/nasl.oql.ts +5 -1
  215. package/sandbox/stdlib/nasl.processV2.ts +5 -4
  216. package/sandbox/stdlib/nasl.ui.components.pc.ts +225 -225
  217. package/sandbox/stdlib/nasl.ui.ts +10 -0
  218. package/sandbox/stdlib/nasl.util.ts +11 -0
  219. package/sandbox/stdlib/nasl.validation.ts +3 -2
  220. package/sandbox-natural/stdlib/nasl.ui.pre.d.ts +1 -1
  221. package/sandbox-natural/stdlib/nasl.ui.ts +2 -2
  222. package/sandbox-natural/stdlib/nasl.util.ts +2 -2
  223. package/src/automate/engine/utils.js +1 -2
  224. package/src/bak/translator.js +1 -1
  225. package/src/common/BaseNode.ts +7 -3
  226. package/src/concepts/App__.ts +9 -1
  227. package/src/concepts/Argument__.ts +10 -5
  228. package/src/concepts/AuthLogicForCallInterface__.ts +3 -0
  229. package/src/concepts/BinaryExpression__.ts +46 -2
  230. package/src/concepts/BindAttribute__.ts +144 -46
  231. package/src/concepts/BindEvent__.ts +8 -47
  232. package/src/concepts/BusinessComponent__.ts +17 -0
  233. package/src/concepts/BusinessLogic__.ts +3 -0
  234. package/src/concepts/CallConnector__.ts +1 -1
  235. package/src/concepts/CallFunction__.ts +1 -1
  236. package/src/concepts/CallLogic__.ts +63 -17
  237. package/src/concepts/Connection__.ts +16 -0
  238. package/src/concepts/DatabaseTypeAnnotation__.ts +11 -0
  239. package/src/concepts/End__.ts +5 -1
  240. package/src/concepts/EntityProperty__.ts +5 -0
  241. package/src/concepts/Entity__.ts +29 -1
  242. package/src/concepts/EnumItem__.ts +64 -1
  243. package/src/concepts/Enum__.ts +6 -1
  244. package/src/concepts/ForEachStatement__.ts +1 -1
  245. package/src/concepts/FrontendLibrary__.ts +78 -80
  246. package/src/concepts/I18nInfo__.ts +5 -0
  247. package/src/concepts/IfStatement__.ts +2 -2
  248. package/src/concepts/Interface__.ts +6 -1
  249. package/src/concepts/Logic__.ts +39 -10
  250. package/src/concepts/MatchCase__.ts +8 -9
  251. package/src/concepts/NewComposite__.ts +2 -1
  252. package/src/concepts/NewList__.ts +2 -1
  253. package/src/concepts/NewMap__.ts +2 -1
  254. package/src/concepts/OqlQueryComponent__.ts +3 -11
  255. package/src/concepts/OverriddenLogic__.ts +7 -0
  256. package/src/concepts/Param__.ts +1 -0
  257. package/src/concepts/ProcessElementV2__.ts +14 -16
  258. package/src/concepts/ProcessElement__.ts +16 -16
  259. package/src/concepts/ProcessV2__.ts +39 -3
  260. package/src/concepts/Process__.ts +36 -0
  261. package/src/concepts/QueryFromExpression__.ts +2 -2
  262. package/src/concepts/QueryJoinExpression__.ts +2 -2
  263. package/src/concepts/Return__.ts +2 -1
  264. package/src/concepts/StaticString__.ts +12 -0
  265. package/src/concepts/StructureProperty__.ts +7 -2
  266. package/src/concepts/Structure__.ts +11 -3
  267. package/src/concepts/SubLogic__.ts +15 -9
  268. package/src/concepts/Transactional__.ts +5 -0
  269. package/src/concepts/TypeParam__.ts +6 -0
  270. package/src/concepts/ValidationRule__.ts +7 -6
  271. package/src/concepts/Variable__.ts +7 -2
  272. package/src/concepts/ViewElement__.ts +130 -47
  273. package/src/concepts/View__.ts +157 -8
  274. package/src/concepts/basics/stdlib/nasl.processV2.ts +2 -2
  275. package/src/concepts/basics/stdlib/nasl.ui.ts +1 -1
  276. package/src/concepts/basics/stdlib/nasl.validation.ts +111 -4
  277. package/src/generator/genBundleFiles.ts +53 -39
  278. package/src/generator/genMetaData.ts +21 -26
  279. package/src/generator/release-body/body.ts +9 -6
  280. package/src/generator/release-body/index.ts +1 -0
  281. package/src/generator/release-body/utils.ts +4 -2
  282. package/src/natural/genNaturalTS.ts +327 -141
  283. package/src/natural/getContext/getUILib.ts +4 -2
  284. package/src/natural/getContext/index.ts +348 -171
  285. package/src/natural/index.ts +1 -0
  286. package/src/natural/tools.ts +130 -0
  287. package/src/natural/transformTS2UI.ts +84 -22
  288. package/src/natural/transformTSCode.ts +83 -22
  289. package/src/server/formatTsUtils.ts +21 -1
  290. package/src/server/getLogics.ts +1 -4
  291. package/src/server/naslServer.ts +302 -33
  292. package/src/server/translator.ts +5 -1
  293. package/src/templator/genCreateBlock.ts +5 -18
  294. package/src/templator/genCurdMultipleKeyBlock.ts +14 -32
  295. package/src/templator/genGetBlock.ts +2 -4
  296. package/src/templator/genListViewBlock.ts +6 -4
  297. package/src/templator/genSelectBlock.ts +88 -61
  298. package/src/templator/genTableBlock.ts +4 -4
  299. package/src/templator/genUpdateBlock.ts +2 -15
  300. package/src/templator/utils.ts +1 -1
  301. package/src/translator/types.ts +4 -0
  302. package/src/translator/utils.ts +6 -0
  303. package/src/utils/env.ts +5 -4
  304. package/src/utils/index.ts +50 -1
  305. package/src/utils/language-cache/constant.ts +37 -0
  306. package/src/utils/language-cache/index.ts +2 -0
  307. package/src/utils/language-cache/nasl.ts +83 -0
  308. package/src/utils/language-cache/types.ts +48 -0
  309. package/src/utils/time-slicing/controller.ts +0 -1
  310. package/src/utils/types.ts +20 -0
  311. package/test/concepts/call-logic/__snapshots__/getQuickInfoOffset.spec.ts.snap +13 -13
  312. package/test/concepts/call-logic/__snapshots__/toEmbeddedTS.spec.ts.snap +12 -12
  313. package/test/concepts/validation-rule/__snapshots__/toEmbeddedTS.spec.ts.snap +1 -2
  314. package/test/concepts/view-element/__snapshots__/toEmbeddedTS.spec.ts.snap +221 -217
  315. package/ts-worker/bundle.js +1 -1
  316. package/ts-worker/src/index.js +0 -1
  317. package/out/utils/delay/index.d.ts +0 -0
  318. package/out/utils/delay/index.js +0 -1
  319. package/out/utils/delay/index.js.map +0 -1
  320. package/src/utils/delay/index.ts +0 -0
@@ -12,9 +12,9 @@ exports[`view-element:toEmbeddedTS default-login 1`] = `
12
12
  slotDefault: () => [
13
13
  new nasl.ui.UText({
14
14
  _name: __elements.uText1,
15
- text: ((): any => {
16
- return \\"登录\\";
17
- })(),
15
+ text: nasl.util.bindAttrWrap(() => {
16
+ return new nasl.core.StringLiteral<\`登录\`>();
17
+ }, false),
18
18
  }),
19
19
  ],
20
20
  }),
@@ -22,7 +22,7 @@ exports[`view-element:toEmbeddedTS default-login 1`] = `
22
22
  new nasl.ui.Div({
23
23
  _name: __elements.lcap_login1,
24
24
  onSuccess: (event) => [
25
- function __loginlcap_login1success() {
25
+ function $$_view_element_lcap_login1_bind_event_success() {
26
26
  nasl.util.consoleLog(
27
27
  nasl.util.stringInterpolation(
28
28
  new nasl.core.String(\\"StringLiteral\\")
@@ -48,12 +48,12 @@ exports[`view-element:toEmbeddedTS default-not-found 1`] = `
48
48
  slotDefault: () => [
49
49
  new nasl.ui.Img({
50
50
  _name: __elements.img1,
51
- width: ((): any => {
52
- return \\"240\\";
53
- })(),
54
- src: ((): any => {
55
- return \\"/assets/error-code.svg\\";
56
- })(),
51
+ width: nasl.util.bindAttrWrap(() => {
52
+ return new nasl.core.StringLiteral<\`240\`>();
53
+ }, false),
54
+ src: nasl.util.bindAttrWrap(() => {
55
+ return new nasl.core.StringLiteral<\`/assets/error-code.svg\`>();
56
+ }, false),
57
57
  }),
58
58
 
59
59
  new nasl.ui.H1({
@@ -61,9 +61,9 @@ exports[`view-element:toEmbeddedTS default-not-found 1`] = `
61
61
  slotDefault: () => [
62
62
  new nasl.ui.UText({
63
63
  _name: __elements.uText1,
64
- text: ((): any => {
65
- return \\"404\\";
66
- })(),
64
+ text: nasl.util.bindAttrWrap(() => {
65
+ return new nasl.core.StringLiteral<\`404\`>();
66
+ }, false),
67
67
  }),
68
68
  ],
69
69
  }),
@@ -73,27 +73,27 @@ exports[`view-element:toEmbeddedTS default-not-found 1`] = `
73
73
  slotDefault: () => [
74
74
  new nasl.ui.UText({
75
75
  _name: __elements.uText2,
76
- text: ((): any => {
77
- return \\"抱歉,你访问的页面不存在\\";
78
- })(),
76
+ text: nasl.util.bindAttrWrap(() => {
77
+ return new nasl.core.StringLiteral<\`抱歉,你访问的页面不存在\`>();
78
+ }, false),
79
79
  }),
80
80
  ],
81
81
  }),
82
82
 
83
83
  new nasl.ui.UButton({
84
84
  _name: __elements.uButton1,
85
- text: ((): any => {
86
- return \\"返回首页\\";
87
- })(),
88
- color: ((): any => {
89
- return \\"primary\\";
90
- })(),
91
- href: ((): any => {
92
- return \\"/\\";
93
- })(),
94
- shape: ((): any => {
95
- return \\"round\\";
96
- })(),
85
+ text: nasl.util.bindAttrWrap(() => {
86
+ return new nasl.core.StringLiteral<\`返回首页\`>();
87
+ }, false),
88
+ color: nasl.util.bindAttrWrap(() => {
89
+ return new nasl.core.StringLiteral<\`primary\`>();
90
+ }, false),
91
+ href: nasl.util.bindAttrWrap(() => {
92
+ return new nasl.core.StringLiteral<\`/\`>();
93
+ }, false),
94
+ shape: nasl.util.bindAttrWrap(() => {
95
+ return new nasl.core.StringLiteral<\`round\`>();
96
+ }, false),
97
97
  }),
98
98
  ],
99
99
  }),
@@ -111,17 +111,17 @@ 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: ((): any => {
114
+ dataSource: nasl.util.bindAttrWrap(() => {
115
115
  return (() => {
116
- const wrapper = nasl.util.callLogicWithChecker(
116
+ const __wrapper = nasl.util.callLogicWithChecker(
117
117
  app.logics.loadTestTableView_1,
118
118
  (page, size, sort, order, filter) => {
119
- ((): any => {
119
+ nasl.util.bindAttrWrap(() => {
120
120
  return;
121
- })();
121
+ }, true);
122
122
  }
123
123
  );
124
- return wrapper(
124
+ return __wrapper(
125
125
  __elements[\\"tableView_1\\"].page,
126
126
  __elements[\\"tableView_1\\"].size,
127
127
  __elements[\\"tableView_1\\"].sort,
@@ -129,59 +129,61 @@ exports[`view-element:toEmbeddedTS table-data-source-calllogic-with-server-valid
129
129
  filter
130
130
  );
131
131
  })();
132
- })(),
133
- valueField: (item) => item.entity1.id,
134
- pagination: ((): any => {
135
- return true;
136
- })(),
137
- showSizer: ((): any => {
138
- return true;
139
- })(),
140
- pageSize: ((): any => {
141
- return 20;
142
- })(),
143
- pageNumber: ((): any => {
144
- return 1;
145
- })(),
132
+ }, true),
133
+ valueField: nasl.util.bindAttrWrap(() => {
134
+ return new nasl.core.StringLiteral<\`entity1.id\`>();
135
+ }, false),
136
+ pagination: nasl.util.bindAttrWrap(() => {
137
+ return new nasl.core.BooleanTrue();
138
+ }, false),
139
+ showSizer: nasl.util.bindAttrWrap(() => {
140
+ return new nasl.core.BooleanTrue();
141
+ }, false),
142
+ pageSize: nasl.util.bindAttrWrap(() => {
143
+ return new nasl.core.Long(20);
144
+ }, false),
145
+ pageNumber: nasl.util.bindAttrWrap(() => {
146
+ return new nasl.core.Long(1);
147
+ }, false),
146
148
  slotDefault: () => [
147
149
  new nasl.ui.UTableViewColumn({
148
150
  _name: __elements.table_view_column_1,
149
- type: ((): any => {
150
- return \\"index\\";
151
- })(),
152
- width: ((): any => {
153
- return \\"60\\";
154
- })(),
151
+ type: nasl.util.bindAttrWrap(() => {
152
+ return new nasl.core.StringLiteral<\`index\`>();
153
+ }, false),
154
+ width: nasl.util.bindAttrWrap(() => {
155
+ return new nasl.core.StringLiteral<\`60\`>();
156
+ }, false),
155
157
  slotExpander: (current) => [
156
158
  new nasl.ui.UTableViewExpander({
157
159
  _name: __elements.table_view_expander_1,
158
- item: ((): any => {
160
+ item: nasl.util.bindAttrWrap(() => {
159
161
  return current.item;
160
- })(),
162
+ }, false),
161
163
  }),
162
164
  ],
163
165
  slotCell: (current) => [],
164
166
  slotTitle: () => [
165
167
  new nasl.ui.UText({
166
168
  _name: __elements.text_9,
167
- text: ((): any => {
168
- return \\"序号\\";
169
- })(),
169
+ text: nasl.util.bindAttrWrap(() => {
170
+ return new nasl.core.StringLiteral<\`序号\`>();
171
+ }, false),
170
172
  }),
171
173
  ],
172
174
  }),
173
175
 
174
176
  new nasl.ui.UTableViewColumn({
175
177
  _name: __elements.table_view_column_2,
176
- field: ((): any => {
177
- return \\"entity1.createdTime\\";
178
- })(),
178
+ field: nasl.util.bindAttrWrap(() => {
179
+ return new nasl.core.StringLiteral<\`entity1.createdTime\`>();
180
+ }, false),
179
181
  slotExpander: (current) => [
180
182
  new nasl.ui.UTableViewExpander({
181
183
  _name: __elements.table_view_expander_2,
182
- item: ((): any => {
184
+ item: nasl.util.bindAttrWrap(() => {
183
185
  return current.item;
184
- })(),
186
+ }, false),
185
187
  }),
186
188
  ],
187
189
  slotCell: (current) => [
@@ -190,9 +192,9 @@ exports[`view-element:toEmbeddedTS table-data-source-calllogic-with-server-valid
190
192
  slotDefault: () => [
191
193
  new nasl.ui.UText({
192
194
  _name: __elements.text_10,
193
- text: ((): any => {
195
+ text: nasl.util.bindAttrWrap(() => {
194
196
  return current.item.entity1.createdTime;
195
- })(),
197
+ }, false),
196
198
  }),
197
199
  ],
198
200
  }),
@@ -200,24 +202,24 @@ exports[`view-element:toEmbeddedTS table-data-source-calllogic-with-server-valid
200
202
  slotTitle: () => [
201
203
  new nasl.ui.UText({
202
204
  _name: __elements.text_11,
203
- text: ((): any => {
204
- return \\"创建时间\\";
205
- })(),
205
+ text: nasl.util.bindAttrWrap(() => {
206
+ return new nasl.core.StringLiteral<\`创建时间\`>();
207
+ }, false),
206
208
  }),
207
209
  ],
208
210
  }),
209
211
 
210
212
  new nasl.ui.UTableViewColumn({
211
213
  _name: __elements.table_view_column_3,
212
- field: ((): any => {
213
- return \\"entity1.updatedTime\\";
214
- })(),
214
+ field: nasl.util.bindAttrWrap(() => {
215
+ return new nasl.core.StringLiteral<\`entity1.updatedTime\`>();
216
+ }, false),
215
217
  slotExpander: (current) => [
216
218
  new nasl.ui.UTableViewExpander({
217
219
  _name: __elements.table_view_expander_3,
218
- item: ((): any => {
220
+ item: nasl.util.bindAttrWrap(() => {
219
221
  return current.item;
220
- })(),
222
+ }, false),
221
223
  }),
222
224
  ],
223
225
  slotCell: (current) => [
@@ -226,9 +228,9 @@ exports[`view-element:toEmbeddedTS table-data-source-calllogic-with-server-valid
226
228
  slotDefault: () => [
227
229
  new nasl.ui.UText({
228
230
  _name: __elements.text_12,
229
- text: ((): any => {
231
+ text: nasl.util.bindAttrWrap(() => {
230
232
  return current.item.entity1.updatedTime;
231
- })(),
233
+ }, false),
232
234
  }),
233
235
  ],
234
236
  }),
@@ -236,9 +238,9 @@ exports[`view-element:toEmbeddedTS table-data-source-calllogic-with-server-valid
236
238
  slotTitle: () => [
237
239
  new nasl.ui.UText({
238
240
  _name: __elements.text_13,
239
- text: ((): any => {
240
- return \\"更新时间\\";
241
- })(),
241
+ text: nasl.util.bindAttrWrap(() => {
242
+ return new nasl.core.StringLiteral<\`更新时间\`>();
243
+ }, false),
242
244
  }),
243
245
  ],
244
246
  }),
@@ -275,55 +277,55 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
275
277
  slotDefault: () => [
276
278
  new nasl.ui.UForm({
277
279
  _name: __elements.form1,
278
- layout: ((): any => {
279
- return \\"inline\\";
280
- })(),
280
+ layout: nasl.util.bindAttrWrap(() => {
281
+ return new nasl.core.StringLiteral<\`inline\`>();
282
+ }, false),
281
283
  slotDefault: () => [
282
284
  new nasl.ui.UFormItem({
283
285
  _name: __elements.form_item1,
284
- layout: ((): any => {
285
- return \\"center\\";
286
- })(),
286
+ layout: nasl.util.bindAttrWrap(() => {
287
+ return new nasl.core.StringLiteral<\`center\`>();
288
+ }, false),
287
289
  slotLabel: () => [
288
290
  new nasl.ui.UText({
289
291
  _name: __elements.text1,
290
- text: ((): any => {
291
- return \\"property1\\";
292
- })(),
292
+ text: nasl.util.bindAttrWrap(() => {
293
+ return new nasl.core.StringLiteral<\`property1\`>();
294
+ }, false),
293
295
  }),
294
296
  ],
295
297
  slotDefault: () => [
296
298
  new nasl.ui.UNumberInput({
297
299
  _name: __elements.number_input1,
298
- precision: ((): any => {
299
- return \\"0\\";
300
- })(),
301
- step: ((): any => {
302
- return \\"0\\";
303
- })(),
304
- placeholder: ((): any => {
305
- return \\"请输入property1\\";
306
- })(),
307
- value: ((): any => {
300
+ precision: nasl.util.bindAttrWrap(() => {
301
+ return new nasl.core.Long(0);
302
+ }, false),
303
+ step: nasl.util.bindAttrWrap(() => {
304
+ return new nasl.core.Long(0);
305
+ }, false),
306
+ placeholder: nasl.util.bindAttrWrap(() => {
307
+ return new nasl.core.StringLiteral<\`请输入property1\`>();
308
+ }, false),
309
+ value: nasl.util.bindAttrWrap(() => {
308
310
  return filter1.property1;
309
- })(),
311
+ }, false),
310
312
  }),
311
313
  ],
312
314
  }),
313
315
 
314
316
  new nasl.ui.UFormItem({
315
317
  _name: __elements.form_item2,
316
- layout: ((): any => {
317
- return \\"center\\";
318
- })(),
319
- labelSize: ((): any => {
320
- return \\"auto\\";
321
- })(),
318
+ layout: nasl.util.bindAttrWrap(() => {
319
+ return new nasl.core.StringLiteral<\`center\`>();
320
+ }, false),
321
+ labelSize: nasl.util.bindAttrWrap(() => {
322
+ return new nasl.core.StringLiteral<\`auto\`>();
323
+ }, false),
322
324
  slotDefault: () => [
323
325
  new nasl.ui.UButton({
324
326
  _name: __elements.button1,
325
327
  onClick: (event) => [
326
- function __testbutton1reload() {
328
+ function $$_view_element_button1_bind_event_reload() {
327
329
  let validateResult: nasl.ui.ValidateEvent;
328
330
 
329
331
  (() => __elements.tableView.reload())();
@@ -332,12 +334,12 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
332
334
  },
333
335
  ],
334
336
 
335
- color: ((): any => {
336
- return \\"primary\\";
337
- })(),
338
- text: ((): any => {
339
- return \\"查 询\\";
340
- })(),
337
+ color: nasl.util.bindAttrWrap(() => {
338
+ return new nasl.core.StringLiteral<\`primary\`>();
339
+ }, false),
340
+ text: nasl.util.bindAttrWrap(() => {
341
+ return new nasl.core.StringLiteral<\`查 询\`>();
342
+ }, false),
341
343
  }),
342
344
  ],
343
345
  }),
@@ -350,7 +352,7 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
350
352
  new nasl.ui.UButton({
351
353
  _name: __elements.button2,
352
354
  onClick: (event) => [
353
- function __testbutton2create() {
355
+ function $$_view_element_button2_bind_event_create() {
354
356
  nasl.core.assign(isUpdate1, false);
355
357
  nasl.core.assign(input1, nasl.util.Clone(entity2));
356
358
  (() => __elements.saveModal.open())();
@@ -358,12 +360,12 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
358
360
  },
359
361
  ],
360
362
 
361
- color: ((): any => {
362
- return \\"primary\\";
363
- })(),
364
- text: ((): any => {
365
- return \\"创 建\\";
366
- })(),
363
+ color: nasl.util.bindAttrWrap(() => {
364
+ return new nasl.core.StringLiteral<\`primary\`>();
365
+ }, false),
366
+ text: nasl.util.bindAttrWrap(() => {
367
+ return new nasl.core.StringLiteral<\`创 建\`>();
368
+ }, false),
367
369
  }),
368
370
  ],
369
371
  }),
@@ -372,7 +374,7 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
372
374
 
373
375
  new nasl.ui.UTableView({
374
376
  _name: __elements.tableView,
375
- dataSource: ((): any => {
377
+ dataSource: nasl.util.bindAttrWrap(() => {
376
378
  return app.logics.loadTestTableView2(
377
379
  __elements[\\"tableView\\"].page,
378
380
  __elements[\\"tableView\\"].size,
@@ -380,54 +382,56 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
380
382
  __elements[\\"tableView\\"].order,
381
383
  filter1
382
384
  );
383
- })(),
384
- valueField: (item) => item.entity2.id,
385
- pagination: ((): any => {
386
- return true;
387
- })(),
388
- showSizer: ((): any => {
389
- return true;
390
- })(),
391
- pageSize: ((): any => {
392
- return 20;
393
- })(),
394
- pageNumber: ((): any => {
395
- return 1;
396
- })(),
385
+ }, true),
386
+ valueField: nasl.util.bindAttrWrap(() => {
387
+ return new nasl.core.StringLiteral<\`entity2.id\`>();
388
+ }, false),
389
+ pagination: nasl.util.bindAttrWrap(() => {
390
+ return new nasl.core.BooleanTrue();
391
+ }, false),
392
+ showSizer: nasl.util.bindAttrWrap(() => {
393
+ return new nasl.core.BooleanTrue();
394
+ }, false),
395
+ pageSize: nasl.util.bindAttrWrap(() => {
396
+ return new nasl.core.Long(20);
397
+ }, false),
398
+ pageNumber: nasl.util.bindAttrWrap(() => {
399
+ return new nasl.core.Long(1);
400
+ }, false),
397
401
  slotDefault: () => [
398
402
  new nasl.ui.UTableViewColumn({
399
403
  _name: __elements.table_view_column1,
400
- type: ((): any => {
401
- return \\"index\\";
402
- })(),
403
- width: ((): any => {
404
- return \\"60\\";
405
- })(),
404
+ type: nasl.util.bindAttrWrap(() => {
405
+ return new nasl.core.StringLiteral<\`index\`>();
406
+ }, false),
407
+ width: nasl.util.bindAttrWrap(() => {
408
+ return new nasl.core.StringLiteral<\`60\`>();
409
+ }, false),
406
410
  slotCell: (current) => [],
407
411
  slotTitle: () => [
408
412
  new nasl.ui.UText({
409
413
  _name: __elements.text2,
410
- text: ((): any => {
411
- return \\"序号\\";
412
- })(),
414
+ text: nasl.util.bindAttrWrap(() => {
415
+ return new nasl.core.StringLiteral<\`序号\`>();
416
+ }, false),
413
417
  }),
414
418
  ],
415
419
  }),
416
420
 
417
421
  new nasl.ui.UTableViewColumn({
418
422
  _name: __elements.table_view_column2,
419
- field: ((): any => {
420
- return \\"entity1.createdTime\\";
421
- })(),
423
+ field: nasl.util.bindAttrWrap(() => {
424
+ return new nasl.core.StringLiteral<\`entity1.createdTime\`>();
425
+ }, false),
422
426
  slotCell: (current) => [
423
427
  new nasl.ui.ULinearLayout({
424
428
  _name: __elements.linear_layout4,
425
429
  slotDefault: () => [
426
430
  new nasl.ui.UText({
427
431
  _name: __elements.text3,
428
- text: ((): any => {
432
+ text: nasl.util.bindAttrWrap(() => {
429
433
  return current.item.entity1.createdTime;
430
- })(),
434
+ }, false),
431
435
  }),
432
436
  ],
433
437
  }),
@@ -435,27 +439,27 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
435
439
  slotTitle: () => [
436
440
  new nasl.ui.UText({
437
441
  _name: __elements.text4,
438
- text: ((): any => {
439
- return \\"创建时间\\";
440
- })(),
442
+ text: nasl.util.bindAttrWrap(() => {
443
+ return new nasl.core.StringLiteral<\`创建时间\`>();
444
+ }, false),
441
445
  }),
442
446
  ],
443
447
  }),
444
448
 
445
449
  new nasl.ui.UTableViewColumn({
446
450
  _name: __elements.table_view_column3,
447
- field: ((): any => {
448
- return \\"entity1.updatedTime\\";
449
- })(),
451
+ field: nasl.util.bindAttrWrap(() => {
452
+ return new nasl.core.StringLiteral<\`entity1.updatedTime\`>();
453
+ }, false),
450
454
  slotCell: (current) => [
451
455
  new nasl.ui.ULinearLayout({
452
456
  _name: __elements.linear_layout5,
453
457
  slotDefault: () => [
454
458
  new nasl.ui.UText({
455
459
  _name: __elements.text5,
456
- text: ((): any => {
460
+ text: nasl.util.bindAttrWrap(() => {
457
461
  return current.item.entity1.updatedTime;
458
- })(),
462
+ }, false),
459
463
  }),
460
464
  ],
461
465
  }),
@@ -463,27 +467,27 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
463
467
  slotTitle: () => [
464
468
  new nasl.ui.UText({
465
469
  _name: __elements.text6,
466
- text: ((): any => {
467
- return \\"更新时间\\";
468
- })(),
470
+ text: nasl.util.bindAttrWrap(() => {
471
+ return new nasl.core.StringLiteral<\`更新时间\`>();
472
+ }, false),
469
473
  }),
470
474
  ],
471
475
  }),
472
476
 
473
477
  new nasl.ui.UTableViewColumn({
474
478
  _name: __elements.table_view_column4,
475
- field: ((): any => {
476
- return \\"entity1.property1\\";
477
- })(),
479
+ field: nasl.util.bindAttrWrap(() => {
480
+ return new nasl.core.StringLiteral<\`entity1.property1\`>();
481
+ }, false),
478
482
  slotCell: (current) => [
479
483
  new nasl.ui.ULinearLayout({
480
484
  _name: __elements.linear_layout6,
481
485
  slotDefault: () => [
482
486
  new nasl.ui.UText({
483
487
  _name: __elements.text7,
484
- text: ((): any => {
488
+ text: nasl.util.bindAttrWrap(() => {
485
489
  return current.item.entity1.property1;
486
- })(),
490
+ }, false),
487
491
  }),
488
492
  ],
489
493
  }),
@@ -491,18 +495,18 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
491
495
  slotTitle: () => [
492
496
  new nasl.ui.UText({
493
497
  _name: __elements.text8,
494
- text: ((): any => {
495
- return \\"property1\\";
496
- })(),
498
+ text: nasl.util.bindAttrWrap(() => {
499
+ return new nasl.core.StringLiteral<\`property1\`>();
500
+ }, false),
497
501
  }),
498
502
  ],
499
503
  }),
500
504
 
501
505
  new nasl.ui.UTableViewColumn({
502
506
  _name: __elements.table_view_column5,
503
- title: ((): any => {
504
- return \\"操作\\";
505
- })(),
507
+ title: nasl.util.bindAttrWrap(() => {
508
+ return new nasl.core.StringLiteral<\`操作\`>();
509
+ }, false),
506
510
  slotCell: (current) => [
507
511
  new nasl.ui.ULinearLayout({
508
512
  _name: __elements.linear_layout7,
@@ -510,7 +514,7 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
510
514
  new nasl.ui.ULink({
511
515
  _name: __elements.link1,
512
516
  onClick: (event) => [
513
- function __testlink1modify() {
517
+ function $$_view_element_link1_bind_event_modify() {
514
518
  nasl.core.assign(isUpdate1, true);
515
519
  nasl.core.assign(
516
520
  input1,
@@ -521,15 +525,15 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
521
525
  },
522
526
  ],
523
527
 
524
- text: ((): any => {
525
- return \\"修改\\";
526
- })(),
528
+ text: nasl.util.bindAttrWrap(() => {
529
+ return new nasl.core.StringLiteral<\`修改\`>();
530
+ }, false),
527
531
  }),
528
532
 
529
533
  new nasl.ui.ULink({
530
534
  _name: __elements.link2,
531
535
  onClick: (event) => [
532
- function __testlink2remove() {
536
+ function $$_view_element_link2_bind_event_remove() {
533
537
  app.dataSources.defaultDS.entities.Entity1.logics.delete(
534
538
  current.item.entity1.id
535
539
  );
@@ -538,9 +542,9 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
538
542
  },
539
543
  ],
540
544
 
541
- text: ((): any => {
542
- return \\"删除\\";
543
- })(),
545
+ text: nasl.util.bindAttrWrap(() => {
546
+ return new nasl.core.StringLiteral<\`删除\`>();
547
+ }, false),
544
548
  }),
545
549
  ],
546
550
  }),
@@ -548,9 +552,9 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
548
552
  slotTitle: () => [
549
553
  new nasl.ui.UText({
550
554
  _name: __elements.text9,
551
- text: ((): any => {
552
- return \\"操作\\";
553
- })(),
555
+ text: nasl.util.bindAttrWrap(() => {
556
+ return new nasl.core.StringLiteral<\`操作\`>();
557
+ }, false),
554
558
  }),
555
559
  ],
556
560
  }),
@@ -566,7 +570,7 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
566
570
  new nasl.ui.UButton({
567
571
  _name: __elements.button3,
568
572
  onClick: (event) => [
569
- function __testbutton3updateSubmit() {
573
+ function $$_view_element_button3_bind_event_updateSubmit() {
570
574
  let validateResult: nasl.ui.ValidateEvent;
571
575
 
572
576
  nasl.core.assign(
@@ -586,12 +590,12 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
586
590
  },
587
591
  ],
588
592
 
589
- color: ((): any => {
590
- return \\"primary\\";
591
- })(),
592
- text: ((): any => {
593
- return \\"提交修改\\";
594
- })(),
593
+ color: nasl.util.bindAttrWrap(() => {
594
+ return new nasl.core.StringLiteral<\`primary\`>();
595
+ }, false),
596
+ text: nasl.util.bindAttrWrap(() => {
597
+ return new nasl.core.StringLiteral<\`提交修改\`>();
598
+ }, false),
595
599
  _if: ((): any => {
596
600
  return isUpdate1;
597
601
  })(),
@@ -600,7 +604,7 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
600
604
  new nasl.ui.UButton({
601
605
  _name: __elements.button4,
602
606
  onClick: (event) => [
603
- function __testbutton4submit() {
607
+ function $$_view_element_button4_bind_event_submit() {
604
608
  let validateResult: nasl.ui.ValidateEvent;
605
609
 
606
610
  nasl.core.assign(
@@ -620,12 +624,12 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
620
624
  },
621
625
  ],
622
626
 
623
- color: ((): any => {
624
- return \\"primary\\";
625
- })(),
626
- text: ((): any => {
627
- return \\"立即创建\\";
628
- })(),
627
+ color: nasl.util.bindAttrWrap(() => {
628
+ return new nasl.core.StringLiteral<\`primary\`>();
629
+ }, false),
630
+ text: nasl.util.bindAttrWrap(() => {
631
+ return new nasl.core.StringLiteral<\`立即创建\`>();
632
+ }, false),
629
633
  _if: ((): any => {
630
634
  return nasl.langUtil.NOT(isUpdate1);
631
635
  })(),
@@ -639,32 +643,32 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
639
643
  slotDefault: () => [
640
644
  new nasl.ui.UFormItem({
641
645
  _name: __elements.form_item3,
642
- layout: ((): any => {
643
- return \\"center\\";
644
- })(),
646
+ layout: nasl.util.bindAttrWrap(() => {
647
+ return new nasl.core.StringLiteral<\`center\`>();
648
+ }, false),
645
649
  slotLabel: () => [
646
650
  new nasl.ui.UText({
647
651
  _name: __elements.text10,
648
- text: ((): any => {
649
- return \\"property1\\";
650
- })(),
652
+ text: nasl.util.bindAttrWrap(() => {
653
+ return new nasl.core.StringLiteral<\`property1\`>();
654
+ }, false),
651
655
  }),
652
656
  ],
653
657
  slotDefault: () => [
654
658
  new nasl.ui.UNumberInput({
655
659
  _name: __elements.number_input2,
656
- precision: ((): any => {
657
- return \\"0\\";
658
- })(),
659
- step: ((): any => {
660
- return \\"0\\";
661
- })(),
662
- placeholder: ((): any => {
663
- return \\"请输入property1\\";
664
- })(),
665
- value: ((): any => {
660
+ precision: nasl.util.bindAttrWrap(() => {
661
+ return new nasl.core.Long(0);
662
+ }, false),
663
+ step: nasl.util.bindAttrWrap(() => {
664
+ return new nasl.core.Long(0);
665
+ }, false),
666
+ placeholder: nasl.util.bindAttrWrap(() => {
667
+ return new nasl.core.StringLiteral<\`请输入property1\`>();
668
+ }, false),
669
+ value: nasl.util.bindAttrWrap(() => {
666
670
  return input1.property1;
667
- })(),
671
+ }, false),
668
672
  }),
669
673
  ],
670
674
  }),
@@ -680,9 +684,9 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
680
684
  slotDefault: () => [
681
685
  new nasl.ui.UText({
682
686
  _name: __elements.text11,
683
- text: ((): any => {
684
- return \\"修改\\";
685
- })(),
687
+ text: nasl.util.bindAttrWrap(() => {
688
+ return new nasl.core.StringLiteral<\`修改\`>();
689
+ }, false),
686
690
  }),
687
691
  ],
688
692
  }),
@@ -694,9 +698,9 @@ exports[`view-element:toEmbeddedTS with-table 1`] = `
694
698
  slotDefault: () => [
695
699
  new nasl.ui.UText({
696
700
  _name: __elements.text12,
697
- text: ((): any => {
698
- return \\"创建\\";
699
- })(),
701
+ text: nasl.util.bindAttrWrap(() => {
702
+ return new nasl.core.StringLiteral<\`创建\`>();
703
+ }, false),
700
704
  }),
701
705
  ],
702
706
  }),