@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.
- package/out/automate/engine/utils.js +1 -2
- package/out/automate/engine/utils.js.map +1 -1
- package/out/bak/translator.js +1 -1
- package/out/bak/translator.js.map +1 -1
- package/out/common/BaseNode.js +7 -2
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/App__.js +6 -1
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/Argument__.js +11 -5
- package/out/concepts/Argument__.js.map +1 -1
- package/out/concepts/AuthLogicForCallInterface__.js +3 -0
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
- package/out/concepts/BinaryExpression__.js +49 -2
- package/out/concepts/BinaryExpression__.js.map +1 -1
- package/out/concepts/BindAttribute__.d.ts +4 -3
- package/out/concepts/BindAttribute__.js +121 -42
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindEvent__.js +5 -42
- package/out/concepts/BindEvent__.js.map +1 -1
- package/out/concepts/BusinessComponent__.d.ts +1 -0
- package/out/concepts/BusinessComponent__.js +16 -0
- package/out/concepts/BusinessComponent__.js.map +1 -1
- package/out/concepts/BusinessLogic__.js +3 -0
- package/out/concepts/BusinessLogic__.js.map +1 -1
- package/out/concepts/CallConnector__.js +1 -1
- package/out/concepts/CallConnector__.js.map +1 -1
- package/out/concepts/CallFunction__.js +1 -1
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +6 -1
- package/out/concepts/CallLogic__.js +58 -17
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/Connection__.d.ts +4 -0
- package/out/concepts/Connection__.js +15 -0
- package/out/concepts/Connection__.js.map +1 -1
- package/out/concepts/DatabaseTypeAnnotation__.d.ts +2 -0
- package/out/concepts/DatabaseTypeAnnotation__.js +20 -0
- package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -1
- package/out/concepts/End__.js +5 -1
- package/out/concepts/End__.js.map +1 -1
- package/out/concepts/EntityProperty__.js +2 -0
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.d.ts +1 -0
- package/out/concepts/Entity__.js +24 -1
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/EnumItem__.d.ts +12 -0
- package/out/concepts/EnumItem__.js +49 -5
- package/out/concepts/EnumItem__.js.map +1 -1
- package/out/concepts/Enum__.js +4 -1
- package/out/concepts/Enum__.js.map +1 -1
- package/out/concepts/ForEachStatement__.js +1 -1
- package/out/concepts/ForEachStatement__.js.map +1 -1
- package/out/concepts/FrontendLibrary__.d.ts +46 -46
- package/out/concepts/FrontendLibrary__.js +34 -36
- package/out/concepts/FrontendLibrary__.js.map +1 -1
- package/out/concepts/I18nInfo__.d.ts +1 -0
- package/out/concepts/I18nInfo__.js +7 -0
- package/out/concepts/I18nInfo__.js.map +1 -1
- package/out/concepts/IfStatement__.js +2 -2
- package/out/concepts/IfStatement__.js.map +1 -1
- package/out/concepts/Interface__.js +4 -1
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/Logic__.d.ts +2 -3
- package/out/concepts/Logic__.js +33 -8
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MatchCase__.d.ts +2 -2
- package/out/concepts/MatchCase__.js +7 -7
- package/out/concepts/MatchCase__.js.map +1 -1
- package/out/concepts/NewComposite__.js +2 -1
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/NewList__.js +2 -1
- package/out/concepts/NewList__.js.map +1 -1
- package/out/concepts/NewMap__.js +2 -1
- package/out/concepts/NewMap__.js.map +1 -1
- package/out/concepts/OqlQueryComponent__.js +3 -11
- package/out/concepts/OqlQueryComponent__.js.map +1 -1
- package/out/concepts/OverriddenLogic__.js +7 -0
- package/out/concepts/OverriddenLogic__.js.map +1 -1
- package/out/concepts/Param__.js +2 -1
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/ProcessElementV2__.d.ts +4 -5
- package/out/concepts/ProcessElementV2__.js +12 -17
- package/out/concepts/ProcessElementV2__.js.map +1 -1
- package/out/concepts/ProcessElement__.d.ts +3 -4
- package/out/concepts/ProcessElement__.js +44 -46
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessV2__.d.ts +5 -0
- package/out/concepts/ProcessV2__.js +30 -2
- package/out/concepts/ProcessV2__.js.map +1 -1
- package/out/concepts/Process__.d.ts +5 -0
- package/out/concepts/Process__.js +28 -0
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/QueryFromExpression__.js +2 -2
- package/out/concepts/QueryFromExpression__.js.map +1 -1
- package/out/concepts/QueryJoinExpression__.js +2 -2
- package/out/concepts/QueryJoinExpression__.js.map +1 -1
- package/out/concepts/Return__.d.ts +1 -1
- package/out/concepts/Return__.js +2 -1
- package/out/concepts/Return__.js.map +1 -1
- package/out/concepts/StaticString__.d.ts +4 -0
- package/out/concepts/StaticString__.js +11 -0
- package/out/concepts/StaticString__.js.map +1 -1
- package/out/concepts/StructureProperty__.js +5 -2
- package/out/concepts/StructureProperty__.js.map +1 -1
- package/out/concepts/Structure__.js +9 -3
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/SubLogic__.d.ts +1 -3
- package/out/concepts/SubLogic__.js +14 -8
- package/out/concepts/SubLogic__.js.map +1 -1
- package/out/concepts/Transactional__.d.ts +1 -0
- package/out/concepts/Transactional__.js +7 -0
- package/out/concepts/Transactional__.js.map +1 -1
- package/out/concepts/TypeParam__.d.ts +4 -0
- package/out/concepts/TypeParam__.js +3 -0
- package/out/concepts/TypeParam__.js.map +1 -1
- package/out/concepts/ValidationRule__.d.ts +1 -6
- package/out/concepts/ValidationRule__.js +9 -6
- package/out/concepts/ValidationRule__.js.map +1 -1
- package/out/concepts/Variable__.d.ts +1 -1
- package/out/concepts/Variable__.js +7 -2
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewElement__.d.ts +2 -0
- package/out/concepts/ViewElement__.js +130 -47
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.d.ts +8 -0
- package/out/concepts/View__.js +123 -7
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.processV2.js +2 -2
- package/out/concepts/basics/stdlib/nasl.processV2.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.ui.js +1 -1
- package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.validation.js +110 -4
- package/out/concepts/basics/stdlib/nasl.validation.js.map +1 -1
- package/out/generator/genBundleFiles.d.ts +2 -0
- package/out/generator/genBundleFiles.js +51 -37
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/genMetaData.js +20 -26
- package/out/generator/genMetaData.js.map +1 -1
- package/out/generator/release-body/body.js +8 -6
- package/out/generator/release-body/body.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 +1 -1
- package/out/generator/release-body/utils.js.map +1 -1
- package/out/natural/genNaturalTS.d.ts +56 -24
- package/out/natural/genNaturalTS.js +182 -112
- package/out/natural/genNaturalTS.js.map +1 -1
- package/out/natural/getContext/getUILib.js +4 -2
- package/out/natural/getContext/getUILib.js.map +1 -1
- package/out/natural/getContext/index.d.ts +34 -25
- package/out/natural/getContext/index.js +304 -157
- package/out/natural/getContext/index.js.map +1 -1
- package/out/natural/index.d.ts +1 -0
- package/out/natural/index.js +1 -0
- package/out/natural/index.js.map +1 -1
- package/out/natural/tools.d.ts +11 -0
- package/out/natural/tools.js +155 -0
- package/out/natural/tools.js.map +1 -0
- package/out/natural/transformTS2UI.js +84 -22
- package/out/natural/transformTS2UI.js.map +1 -1
- package/out/natural/transformTSCode.js +83 -22
- package/out/natural/transformTSCode.js.map +1 -1
- package/out/server/formatTsUtils.js +17 -1
- package/out/server/formatTsUtils.js.map +1 -1
- package/out/server/getLogics.js +1 -4
- package/out/server/getLogics.js.map +1 -1
- package/out/server/naslServer.js +285 -32
- package/out/server/naslServer.js.map +1 -1
- package/out/server/translator.js +5 -1
- package/out/server/translator.js.map +1 -1
- package/out/templator/genCreateBlock.js +5 -18
- package/out/templator/genCreateBlock.js.map +1 -1
- package/out/templator/genCurdMultipleKeyBlock.js +11 -32
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
- package/out/templator/genGetBlock.js +1 -2
- package/out/templator/genGetBlock.js.map +1 -1
- package/out/templator/genListViewBlock.js +6 -4
- package/out/templator/genListViewBlock.js.map +1 -1
- package/out/templator/genSelectBlock.js +82 -59
- package/out/templator/genSelectBlock.js.map +1 -1
- package/out/templator/genTableBlock.js +4 -4
- package/out/templator/genTableBlock.js.map +1 -1
- package/out/templator/genUpdateBlock.js +2 -15
- package/out/templator/genUpdateBlock.js.map +1 -1
- package/out/templator/utils.d.ts +1 -1
- package/out/templator/utils.js +1 -1
- package/out/templator/utils.js.map +1 -1
- package/out/translator/types.d.ts +4 -0
- package/out/translator/utils.d.ts +1 -0
- package/out/translator/utils.js +6 -1
- package/out/translator/utils.js.map +1 -1
- package/out/utils/env.d.ts +4 -0
- package/out/utils/env.js +6 -3
- package/out/utils/env.js.map +1 -1
- package/out/utils/index.d.ts +19 -0
- package/out/utils/index.js +61 -1
- package/out/utils/index.js.map +1 -1
- package/out/utils/language-cache/constant.d.ts +18 -0
- package/out/utils/language-cache/constant.js +35 -0
- package/out/utils/language-cache/constant.js.map +1 -0
- package/out/utils/language-cache/index.d.ts +2 -0
- package/out/utils/language-cache/index.js +19 -0
- package/out/utils/language-cache/index.js.map +1 -0
- package/out/utils/language-cache/nasl.d.ts +10 -0
- package/out/utils/language-cache/nasl.js +98 -0
- package/out/utils/language-cache/nasl.js.map +1 -0
- package/out/utils/language-cache/types.d.ts +44 -0
- package/out/utils/language-cache/types.js +4 -0
- package/out/utils/language-cache/types.js.map +1 -0
- package/out/utils/time-slicing/controller.js.map +1 -1
- package/out/utils/types.d.ts +17 -0
- package/package.json +3 -2
- package/sandbox/stdlib/nasl.core.ts +15 -11
- package/sandbox/stdlib/nasl.oql.ts +5 -1
- package/sandbox/stdlib/nasl.processV2.ts +5 -4
- package/sandbox/stdlib/nasl.ui.components.pc.ts +225 -225
- package/sandbox/stdlib/nasl.ui.ts +10 -0
- package/sandbox/stdlib/nasl.util.ts +11 -0
- package/sandbox/stdlib/nasl.validation.ts +3 -2
- package/sandbox-natural/stdlib/nasl.ui.pre.d.ts +1 -1
- package/sandbox-natural/stdlib/nasl.ui.ts +2 -2
- package/sandbox-natural/stdlib/nasl.util.ts +2 -2
- package/src/automate/engine/utils.js +1 -2
- package/src/bak/translator.js +1 -1
- package/src/common/BaseNode.ts +7 -3
- package/src/concepts/App__.ts +9 -1
- package/src/concepts/Argument__.ts +10 -5
- package/src/concepts/AuthLogicForCallInterface__.ts +3 -0
- package/src/concepts/BinaryExpression__.ts +46 -2
- package/src/concepts/BindAttribute__.ts +144 -46
- package/src/concepts/BindEvent__.ts +8 -47
- package/src/concepts/BusinessComponent__.ts +17 -0
- package/src/concepts/BusinessLogic__.ts +3 -0
- package/src/concepts/CallConnector__.ts +1 -1
- package/src/concepts/CallFunction__.ts +1 -1
- package/src/concepts/CallLogic__.ts +63 -17
- package/src/concepts/Connection__.ts +16 -0
- package/src/concepts/DatabaseTypeAnnotation__.ts +11 -0
- package/src/concepts/End__.ts +5 -1
- package/src/concepts/EntityProperty__.ts +5 -0
- package/src/concepts/Entity__.ts +29 -1
- package/src/concepts/EnumItem__.ts +64 -1
- package/src/concepts/Enum__.ts +6 -1
- package/src/concepts/ForEachStatement__.ts +1 -1
- package/src/concepts/FrontendLibrary__.ts +78 -80
- package/src/concepts/I18nInfo__.ts +5 -0
- package/src/concepts/IfStatement__.ts +2 -2
- package/src/concepts/Interface__.ts +6 -1
- package/src/concepts/Logic__.ts +39 -10
- package/src/concepts/MatchCase__.ts +8 -9
- package/src/concepts/NewComposite__.ts +2 -1
- package/src/concepts/NewList__.ts +2 -1
- package/src/concepts/NewMap__.ts +2 -1
- package/src/concepts/OqlQueryComponent__.ts +3 -11
- package/src/concepts/OverriddenLogic__.ts +7 -0
- package/src/concepts/Param__.ts +1 -0
- package/src/concepts/ProcessElementV2__.ts +14 -16
- package/src/concepts/ProcessElement__.ts +16 -16
- package/src/concepts/ProcessV2__.ts +39 -3
- package/src/concepts/Process__.ts +36 -0
- package/src/concepts/QueryFromExpression__.ts +2 -2
- package/src/concepts/QueryJoinExpression__.ts +2 -2
- package/src/concepts/Return__.ts +2 -1
- package/src/concepts/StaticString__.ts +12 -0
- package/src/concepts/StructureProperty__.ts +7 -2
- package/src/concepts/Structure__.ts +11 -3
- package/src/concepts/SubLogic__.ts +15 -9
- package/src/concepts/Transactional__.ts +5 -0
- package/src/concepts/TypeParam__.ts +6 -0
- package/src/concepts/ValidationRule__.ts +7 -6
- package/src/concepts/Variable__.ts +7 -2
- package/src/concepts/ViewElement__.ts +130 -47
- package/src/concepts/View__.ts +157 -8
- package/src/concepts/basics/stdlib/nasl.processV2.ts +2 -2
- package/src/concepts/basics/stdlib/nasl.ui.ts +1 -1
- package/src/concepts/basics/stdlib/nasl.validation.ts +111 -4
- package/src/generator/genBundleFiles.ts +53 -39
- package/src/generator/genMetaData.ts +21 -26
- package/src/generator/release-body/body.ts +9 -6
- package/src/generator/release-body/index.ts +1 -0
- package/src/generator/release-body/utils.ts +4 -2
- package/src/natural/genNaturalTS.ts +327 -141
- package/src/natural/getContext/getUILib.ts +4 -2
- package/src/natural/getContext/index.ts +348 -171
- package/src/natural/index.ts +1 -0
- package/src/natural/tools.ts +130 -0
- package/src/natural/transformTS2UI.ts +84 -22
- package/src/natural/transformTSCode.ts +83 -22
- package/src/server/formatTsUtils.ts +21 -1
- package/src/server/getLogics.ts +1 -4
- package/src/server/naslServer.ts +302 -33
- package/src/server/translator.ts +5 -1
- package/src/templator/genCreateBlock.ts +5 -18
- package/src/templator/genCurdMultipleKeyBlock.ts +14 -32
- package/src/templator/genGetBlock.ts +2 -4
- package/src/templator/genListViewBlock.ts +6 -4
- package/src/templator/genSelectBlock.ts +88 -61
- package/src/templator/genTableBlock.ts +4 -4
- package/src/templator/genUpdateBlock.ts +2 -15
- package/src/templator/utils.ts +1 -1
- package/src/translator/types.ts +4 -0
- package/src/translator/utils.ts +6 -0
- package/src/utils/env.ts +5 -4
- package/src/utils/index.ts +50 -1
- package/src/utils/language-cache/constant.ts +37 -0
- package/src/utils/language-cache/index.ts +2 -0
- package/src/utils/language-cache/nasl.ts +83 -0
- package/src/utils/language-cache/types.ts +48 -0
- package/src/utils/time-slicing/controller.ts +0 -1
- package/src/utils/types.ts +20 -0
- package/test/concepts/call-logic/__snapshots__/getQuickInfoOffset.spec.ts.snap +13 -13
- package/test/concepts/call-logic/__snapshots__/toEmbeddedTS.spec.ts.snap +12 -12
- package/test/concepts/validation-rule/__snapshots__/toEmbeddedTS.spec.ts.snap +1 -2
- package/test/concepts/view-element/__snapshots__/toEmbeddedTS.spec.ts.snap +221 -217
- package/ts-worker/bundle.js +1 -1
- package/ts-worker/src/index.js +0 -1
- package/out/utils/delay/index.d.ts +0 -0
- package/out/utils/delay/index.js +0 -1
- package/out/utils/delay/index.js.map +0 -1
- 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: (()
|
|
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
|
|
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: (()
|
|
52
|
-
return
|
|
53
|
-
})
|
|
54
|
-
src: (()
|
|
55
|
-
return
|
|
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: (()
|
|
65
|
-
return
|
|
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: (()
|
|
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: (()
|
|
86
|
-
return
|
|
87
|
-
})
|
|
88
|
-
color: (()
|
|
89
|
-
return
|
|
90
|
-
})
|
|
91
|
-
href: (()
|
|
92
|
-
return
|
|
93
|
-
})
|
|
94
|
-
shape: (()
|
|
95
|
-
return
|
|
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: (()
|
|
114
|
+
dataSource: nasl.util.bindAttrWrap(() => {
|
|
115
115
|
return (() => {
|
|
116
|
-
const
|
|
116
|
+
const __wrapper = nasl.util.callLogicWithChecker(
|
|
117
117
|
app.logics.loadTestTableView_1,
|
|
118
118
|
(page, size, sort, order, filter) => {
|
|
119
|
-
(()
|
|
119
|
+
nasl.util.bindAttrWrap(() => {
|
|
120
120
|
return;
|
|
121
|
-
})
|
|
121
|
+
}, true);
|
|
122
122
|
}
|
|
123
123
|
);
|
|
124
|
-
return
|
|
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: (
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
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: (()
|
|
150
|
-
return
|
|
151
|
-
})
|
|
152
|
-
width: (()
|
|
153
|
-
return
|
|
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: (()
|
|
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: (()
|
|
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: (()
|
|
177
|
-
return
|
|
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: (()
|
|
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: (()
|
|
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: (()
|
|
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: (()
|
|
213
|
-
return
|
|
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: (()
|
|
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: (()
|
|
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: (()
|
|
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: (()
|
|
279
|
-
return
|
|
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: (()
|
|
285
|
-
return
|
|
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: (()
|
|
291
|
-
return
|
|
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: (()
|
|
299
|
-
return
|
|
300
|
-
})
|
|
301
|
-
step: (()
|
|
302
|
-
return
|
|
303
|
-
})
|
|
304
|
-
placeholder: (()
|
|
305
|
-
return
|
|
306
|
-
})
|
|
307
|
-
value: (()
|
|
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: (()
|
|
317
|
-
return
|
|
318
|
-
})
|
|
319
|
-
labelSize: (()
|
|
320
|
-
return
|
|
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
|
|
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: (()
|
|
336
|
-
return
|
|
337
|
-
})
|
|
338
|
-
text: (()
|
|
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
|
|
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: (()
|
|
362
|
-
return
|
|
363
|
-
})
|
|
364
|
-
text: (()
|
|
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: (()
|
|
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: (
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
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: (()
|
|
401
|
-
return
|
|
402
|
-
})
|
|
403
|
-
width: (()
|
|
404
|
-
return
|
|
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: (()
|
|
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: (()
|
|
420
|
-
return
|
|
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: (()
|
|
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: (()
|
|
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: (()
|
|
448
|
-
return
|
|
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: (()
|
|
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: (()
|
|
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: (()
|
|
476
|
-
return
|
|
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: (()
|
|
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: (()
|
|
495
|
-
return
|
|
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: (()
|
|
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
|
|
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: (()
|
|
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
|
|
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: (()
|
|
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: (()
|
|
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
|
|
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: (()
|
|
590
|
-
return
|
|
591
|
-
})
|
|
592
|
-
text: (()
|
|
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
|
|
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: (()
|
|
624
|
-
return
|
|
625
|
-
})
|
|
626
|
-
text: (()
|
|
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: (()
|
|
643
|
-
return
|
|
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: (()
|
|
649
|
-
return
|
|
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: (()
|
|
657
|
-
return
|
|
658
|
-
})
|
|
659
|
-
step: (()
|
|
660
|
-
return
|
|
661
|
-
})
|
|
662
|
-
placeholder: (()
|
|
663
|
-
return
|
|
664
|
-
})
|
|
665
|
-
value: (()
|
|
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: (()
|
|
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: (()
|
|
698
|
-
return
|
|
699
|
-
})
|
|
701
|
+
text: nasl.util.bindAttrWrap(() => {
|
|
702
|
+
return new nasl.core.StringLiteral<\`创建\`>();
|
|
703
|
+
}, false),
|
|
700
704
|
}),
|
|
701
705
|
],
|
|
702
706
|
}),
|