@lcap/nasl 3.3.0-alpha.1 → 3.3.0-alpha.3
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/upgrader/2.20.js.map +1 -1
- package/out/bak/translator.js +52 -1
- package/out/bak/translator.js.map +1 -1
- package/out/breakpoint/shared/utils.js +0 -2
- package/out/breakpoint/shared/utils.js.map +1 -1
- package/out/common/Command.d.ts +1 -0
- package/out/common/Command.js +9 -1
- package/out/common/Command.js.map +1 -1
- package/out/concepts/Abort__.js +2 -1
- package/out/concepts/Abort__.js.map +1 -1
- package/out/concepts/Anchor__.js +1 -1
- package/out/concepts/Anchor__.js.map +1 -1
- package/out/concepts/AnonymousFunction__.js +2 -2
- package/out/concepts/AnonymousFunction__.js.map +1 -1
- package/out/concepts/Argument__.js +1 -1
- package/out/concepts/Argument__.js.map +1 -1
- package/out/concepts/Assignee__.js.map +1 -1
- package/out/concepts/AssignmentLine__.js +1 -1
- package/out/concepts/AssignmentLine__.js.map +1 -1
- package/out/concepts/Assignment__.js +2 -2
- package/out/concepts/Assignment__.js.map +1 -1
- package/out/concepts/BackendVariable__.js +1 -1
- package/out/concepts/BackendVariable__.js.map +1 -1
- package/out/concepts/Backend__.js +1 -1
- package/out/concepts/Backend__.js.map +1 -1
- package/out/concepts/BatchAssignment__.js +2 -2
- package/out/concepts/BatchAssignment__.js.map +1 -1
- package/out/concepts/BinaryExpression__.js +2 -2
- package/out/concepts/BinaryExpression__.js.map +1 -1
- package/out/concepts/BindAttribute__.d.ts +2 -0
- package/out/concepts/BindAttribute__.js +79 -4
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.js +1 -1
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BindEvent__.d.ts +2 -1
- package/out/concepts/BindEvent__.js +44 -37
- package/out/concepts/BindEvent__.js.map +1 -1
- package/out/concepts/BindStyle__.js +1 -1
- package/out/concepts/BindStyle__.js.map +1 -1
- package/out/concepts/BooleanLiteral__.js +1 -1
- package/out/concepts/BooleanLiteral__.js.map +1 -1
- package/out/concepts/CallAuthInterface__.js +1 -1
- package/out/concepts/CallAuthInterface__.js.map +1 -1
- package/out/concepts/CallConnector__.js +1 -1
- package/out/concepts/CallConnector__.js.map +1 -1
- package/out/concepts/CallFunction__.js +2 -2
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallInterface__.js +2 -2
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.js +69 -12
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/CallQueryComponent__.d.ts +1 -1
- package/out/concepts/CallQueryComponent__.js +1 -1
- package/out/concepts/CallQueryComponent__.js.map +1 -1
- package/out/concepts/Comment__.js +1 -1
- package/out/concepts/Comment__.js.map +1 -1
- package/out/concepts/ConfigProperty__.js +1 -1
- package/out/concepts/ConfigProperty__.js.map +1 -1
- package/out/concepts/Connection__.js +9 -10
- package/out/concepts/Connection__.js.map +1 -1
- package/out/concepts/Constant__.js +1 -1
- package/out/concepts/Constant__.js.map +1 -1
- package/out/concepts/DataSource__.js +1 -1
- package/out/concepts/DataSource__.js.map +1 -1
- package/out/concepts/Destination__.js +2 -2
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/End__.js +1 -1
- package/out/concepts/End__.js.map +1 -1
- package/out/concepts/EntityIndex__.js +1 -1
- package/out/concepts/EntityIndex__.js.map +1 -1
- package/out/concepts/EntityProperty__.js +2 -2
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.js +2 -2
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/EnumItem__.js +2 -2
- package/out/concepts/EnumItem__.js.map +1 -1
- package/out/concepts/Enum__.js +2 -2
- package/out/concepts/Enum__.js.map +1 -1
- package/out/concepts/ForEachStatement__.js +27 -37
- package/out/concepts/ForEachStatement__.js.map +1 -1
- package/out/concepts/Frontend__.js +1 -1
- package/out/concepts/Frontend__.js.map +1 -1
- package/out/concepts/Function__.js +2 -2
- package/out/concepts/Function__.js.map +1 -1
- package/out/concepts/Identifier__.js +1 -1
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/IfStatement__.js +2 -2
- package/out/concepts/IfStatement__.js.map +1 -1
- package/out/concepts/Interface__.js +1 -1
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/JSBlock__.js +1 -1
- package/out/concepts/JSBlock__.js.map +1 -1
- package/out/concepts/JavaLogic__.js +1 -1
- package/out/concepts/JavaLogic__.js.map +1 -1
- package/out/concepts/LogicItem__.js +3 -2
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.js +2 -1
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MatchCase__.js +1 -1
- package/out/concepts/MatchCase__.js.map +1 -1
- package/out/concepts/Match__.js +2 -2
- package/out/concepts/Match__.js.map +1 -1
- package/out/concepts/MemberExpression__.d.ts +1 -0
- package/out/concepts/MemberExpression__.js +117 -2
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/Module__.d.ts +1 -1
- package/out/concepts/Module__.js +34 -35
- package/out/concepts/Module__.js.map +1 -1
- package/out/concepts/NewComposite__.js +2 -2
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/NewList__.js +2 -2
- package/out/concepts/NewList__.js.map +1 -1
- package/out/concepts/NewMap__.js +2 -2
- package/out/concepts/NewMap__.js.map +1 -1
- package/out/concepts/New__.js +1 -1
- package/out/concepts/New__.js.map +1 -1
- package/out/concepts/NullLiteral__.js +1 -1
- package/out/concepts/NullLiteral__.js.map +1 -1
- package/out/concepts/NumericLiteral__.js +1 -1
- package/out/concepts/NumericLiteral__.js.map +1 -1
- package/out/concepts/OqlQueryComponent__.js +2 -2
- package/out/concepts/OqlQueryComponent__.js.map +1 -1
- package/out/concepts/Param__.js +1 -1
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/ProcessElement__.js +1 -1
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessOutcome__.js +1 -1
- package/out/concepts/ProcessOutcome__.js.map +1 -1
- package/out/concepts/ProcessOutcomes__.js +1 -1
- package/out/concepts/ProcessOutcomes__.js.map +1 -1
- package/out/concepts/Process__.js +1 -1
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/QueryAggregateExpression__.js +1 -1
- package/out/concepts/QueryAggregateExpression__.js.map +1 -1
- package/out/concepts/QueryFieldExpression__.js +1 -1
- package/out/concepts/QueryFieldExpression__.js.map +1 -1
- package/out/concepts/QueryFromExpression__.js +1 -1
- package/out/concepts/QueryFromExpression__.js.map +1 -1
- package/out/concepts/QueryJoinExpression__.js +1 -1
- package/out/concepts/QueryJoinExpression__.js.map +1 -1
- package/out/concepts/QueryLimitExpression__.js +1 -1
- package/out/concepts/QueryLimitExpression__.js.map +1 -1
- package/out/concepts/QueryOrderByExpression__.js +1 -1
- package/out/concepts/QueryOrderByExpression__.js.map +1 -1
- package/out/concepts/Return__.js +2 -2
- package/out/concepts/Return__.js.map +1 -1
- package/out/concepts/Role__.js +1 -1
- package/out/concepts/Role__.js.map +1 -1
- package/out/concepts/SelectMembers__.js +1 -1
- package/out/concepts/SelectMembers__.js.map +1 -1
- package/out/concepts/SqlQueryComponent__.js +2 -2
- package/out/concepts/SqlQueryComponent__.js.map +1 -1
- package/out/concepts/Start__.js +1 -1
- package/out/concepts/Start__.js.map +1 -1
- package/out/concepts/StringInterpolation__.js +2 -2
- package/out/concepts/StringInterpolation__.js.map +1 -1
- package/out/concepts/StringLiteral__.js +1 -1
- package/out/concepts/StringLiteral__.js.map +1 -1
- package/out/concepts/StructureProperty__.js +2 -2
- package/out/concepts/StructureProperty__.js.map +1 -1
- package/out/concepts/Structure__.js +2 -2
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/SwitchCase__.js +1 -1
- package/out/concepts/SwitchCase__.js.map +1 -1
- package/out/concepts/SwitchStatement__.js +2 -2
- package/out/concepts/SwitchStatement__.js.map +1 -1
- package/out/concepts/TriggerLauncher__.js +1 -1
- package/out/concepts/TriggerLauncher__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.d.ts +4 -3
- package/out/concepts/TypeAnnotation__.js +116 -75
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/TypeParam__.js +1 -1
- package/out/concepts/TypeParam__.js.map +1 -1
- package/out/concepts/UnaryExpression__.js +2 -2
- package/out/concepts/UnaryExpression__.js.map +1 -1
- package/out/concepts/ValidationRule__.d.ts +14 -14
- package/out/concepts/ValidationRule__.js +28 -24
- package/out/concepts/ValidationRule__.js.map +1 -1
- package/out/concepts/Variable__.js +2 -2
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewElement__.d.ts +88 -87
- package/out/concepts/ViewElement__.js +268 -204
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.d.ts +6 -0
- package/out/concepts/View__.js +254 -11
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/WhileStatement__.js +2 -2
- package/out/concepts/WhileStatement__.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.browser.js +1 -0
- package/out/concepts/basics/stdlib/nasl.browser.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.event.js +2 -0
- package/out/concepts/basics/stdlib/nasl.event.js.map +1 -1
- package/out/generator/genBundleFiles.js +90 -1
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/genReleaseBody.js +1 -1
- package/out/generator/genReleaseBody.js.map +1 -1
- package/out/generator/permission.js +3 -3
- package/out/generator/permission.js.map +1 -1
- package/out/index.d.ts +1 -0
- package/out/index.js +1 -0
- package/out/index.js.map +1 -1
- package/out/natural/genNaturalTS.js +7 -3
- package/out/natural/genNaturalTS.js.map +1 -1
- package/out/natural/knowledgeMap.js +12 -12
- package/out/natural/knowledgeMap.js.map +1 -1
- package/out/natural/transformTSCode.d.ts +1 -1
- package/out/natural/transformTSCode.js +115 -141
- package/out/natural/transformTSCode.js.map +1 -1
- package/out/server/extendBaseNode.js +69 -44
- package/out/server/extendBaseNode.js.map +1 -1
- package/out/server/formatTsUtils.js +72 -63
- package/out/server/formatTsUtils.js.map +1 -1
- package/out/server/getLogics.js +20 -23
- package/out/server/getLogics.js.map +1 -1
- package/out/server/getMemberIdentifier.d.ts +1 -0
- package/out/server/getMemberIdentifier.js +149 -1
- package/out/server/getMemberIdentifier.js.map +1 -1
- package/out/server/naslServer.d.ts +3 -3
- package/out/server/naslServer.js +182 -132
- package/out/server/naslServer.js.map +1 -1
- package/out/server/translator.js +43 -33
- package/out/server/translator.js.map +1 -1
- package/out/service/defaultErrorMessage.json +6 -6
- package/out/service/storage/init.js +16 -0
- package/out/service/storage/init.js.map +1 -1
- package/out/templator/genCreateBlock.js +5 -3
- package/out/templator/genCreateBlock.js.map +1 -1
- package/out/templator/genCurdEditMultipleKeyBlock.js +12 -8
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
- package/out/templator/genCurdMultipleKeyBlock.js +8 -7
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
- package/out/templator/genEditTableBlock.d.ts +1 -1
- package/out/templator/genEditTableBlock.js +12 -6
- package/out/templator/genEditTableBlock.js.map +1 -1
- package/out/templator/genEnumSelectBlock.js +2 -2
- package/out/templator/genEnumSelectBlock.js.map +1 -1
- package/out/templator/genGetBlock.js +1 -1
- package/out/templator/genGetBlock.js.map +1 -1
- package/out/templator/genGridViewBlock.d.ts +2 -2
- package/out/templator/genGridViewBlock.js +20 -7
- package/out/templator/genGridViewBlock.js.map +1 -1
- package/out/templator/genListViewBlock.d.ts +2 -2
- package/out/templator/genListViewBlock.js +13 -5
- package/out/templator/genListViewBlock.js.map +1 -1
- package/out/templator/genSelectBlock.d.ts +2 -2
- package/out/templator/genSelectBlock.js +8 -6
- package/out/templator/genSelectBlock.js.map +1 -1
- package/out/templator/genTableBlock.d.ts +1 -1
- package/out/templator/genTableBlock.js +10 -5
- package/out/templator/genTableBlock.js.map +1 -1
- package/out/templator/genUpdateBlock.js +5 -3
- package/out/templator/genUpdateBlock.js.map +1 -1
- package/package.json +3 -1
- package/sandbox/stdlib/nasl.auth.ts +40 -44
- package/sandbox/stdlib/nasl.core.ts +8 -1
- package/sandbox/stdlib/nasl.http.ts +22 -22
- package/sandbox-natural/stdlib/nasl.util.ts +74 -15
- package/src/automate/upgrader/2.20.js +17 -13
- package/src/bak/translator.js +50 -1
- package/src/breakpoint/shared/utils.ts +0 -2
- package/src/common/Command.ts +8 -0
- package/src/concepts/Abort__.ts +2 -2
- package/src/concepts/Anchor__.ts +2 -2
- package/src/concepts/AnonymousFunction__.ts +3 -3
- package/src/concepts/Argument__.ts +2 -2
- package/src/concepts/Assignee__.ts +1 -1
- package/src/concepts/AssignmentLine__.ts +2 -2
- package/src/concepts/Assignment__.ts +3 -3
- package/src/concepts/BackendVariable__.ts +2 -2
- package/src/concepts/Backend__.ts +1 -1
- package/src/concepts/BatchAssignment__.ts +3 -3
- package/src/concepts/BinaryExpression__.ts +3 -3
- package/src/concepts/BindAttribute__.ts +69 -4
- package/src/concepts/BindDirective__.ts +2 -2
- package/src/concepts/BindEvent__.ts +44 -64
- package/src/concepts/BindStyle__.ts +2 -2
- package/src/concepts/BooleanLiteral__.ts +2 -2
- package/src/concepts/CallAuthInterface__.ts +2 -2
- package/src/concepts/CallConnector__.ts +2 -2
- package/src/concepts/CallFunction__.ts +3 -3
- package/src/concepts/CallInterface__.ts +3 -3
- package/src/concepts/CallLogic__.ts +69 -13
- package/src/concepts/CallQueryComponent__.ts +2 -2
- package/src/concepts/Comment__.ts +2 -2
- package/src/concepts/ConfigProperty__.ts +2 -2
- package/src/concepts/Connection__.ts +15 -21
- package/src/concepts/Constant__.ts +2 -2
- package/src/concepts/DataSource__.ts +1 -1
- package/src/concepts/Destination__.ts +3 -3
- package/src/concepts/End__.ts +2 -2
- package/src/concepts/EntityIndex__.ts +2 -2
- package/src/concepts/EntityProperty__.ts +3 -3
- package/src/concepts/Entity__.ts +2 -2
- package/src/concepts/EnumItem__.ts +3 -3
- package/src/concepts/Enum__.ts +2 -2
- package/src/concepts/ForEachStatement__.ts +35 -46
- package/src/concepts/Frontend__.ts +1 -1
- package/src/concepts/Function__.ts +3 -3
- package/src/concepts/Identifier__.ts +2 -2
- package/src/concepts/IfStatement__.ts +3 -3
- package/src/concepts/Interface__.ts +1 -1
- package/src/concepts/JSBlock__.ts +2 -2
- package/src/concepts/JavaLogic__.ts +2 -2
- package/src/concepts/LogicItem__.ts +3 -3
- package/src/concepts/Logic__.ts +2 -1
- package/src/concepts/MatchCase__.ts +2 -2
- package/src/concepts/Match__.ts +3 -3
- package/src/concepts/MemberExpression__.ts +112 -4
- package/src/concepts/Module__.ts +41 -58
- package/src/concepts/NewComposite__.ts +3 -3
- package/src/concepts/NewList__.ts +3 -3
- package/src/concepts/NewMap__.ts +3 -3
- package/src/concepts/New__.ts +2 -2
- package/src/concepts/NullLiteral__.ts +2 -2
- package/src/concepts/NumericLiteral__.ts +2 -2
- package/src/concepts/OqlQueryComponent__.ts +3 -3
- package/src/concepts/Param__.ts +2 -2
- package/src/concepts/ProcessElement__.ts +2 -2
- package/src/concepts/ProcessOutcome__.ts +2 -2
- package/src/concepts/ProcessOutcomes__.ts +2 -2
- package/src/concepts/Process__.ts +1 -1
- package/src/concepts/QueryAggregateExpression__.ts +2 -2
- package/src/concepts/QueryFieldExpression__.ts +2 -2
- package/src/concepts/QueryFromExpression__.ts +2 -2
- package/src/concepts/QueryJoinExpression__.ts +2 -2
- package/src/concepts/QueryLimitExpression__.ts +2 -2
- package/src/concepts/QueryOrderByExpression__.ts +2 -2
- package/src/concepts/Return__.ts +3 -3
- package/src/concepts/Role__.ts +1 -1
- package/src/concepts/SelectMembers__.ts +2 -2
- package/src/concepts/SqlQueryComponent__.ts +3 -3
- package/src/concepts/Start__.ts +2 -2
- package/src/concepts/StringInterpolation__.ts +3 -3
- package/src/concepts/StringLiteral__.ts +2 -2
- package/src/concepts/StructureProperty__.ts +3 -3
- package/src/concepts/Structure__.ts +2 -2
- package/src/concepts/SwitchCase__.ts +2 -2
- package/src/concepts/SwitchStatement__.ts +3 -3
- package/src/concepts/TriggerLauncher__.ts +1 -1
- package/src/concepts/TypeAnnotation__.ts +145 -125
- package/src/concepts/TypeParam__.ts +2 -2
- package/src/concepts/UnaryExpression__.ts +3 -3
- package/src/concepts/ValidationRule__.ts +554 -524
- package/src/concepts/Variable__.ts +3 -3
- package/src/concepts/ViewElement__.ts +2445 -2498
- package/src/concepts/View__.ts +258 -10
- package/src/concepts/WhileStatement__.ts +3 -3
- package/src/concepts/basics/stdlib/nasl.browser.ts +1 -0
- package/src/concepts/basics/stdlib/nasl.event.ts +2 -0
- package/src/generator/genBundleFiles.ts +91 -1
- package/src/generator/genReleaseBody.ts +1 -1
- package/src/generator/permission.ts +3 -3
- package/src/index.ts +1 -0
- package/src/natural/genNaturalTS.ts +8 -4
- package/src/natural/knowledgeMap.ts +12 -12
- package/src/natural/transformTSCode.ts +139 -151
- package/src/server/extendBaseNode.ts +71 -45
- package/src/server/formatTsUtils.ts +64 -64
- package/src/server/getLogics.ts +23 -30
- package/src/server/getMemberIdentifier.ts +143 -0
- package/src/server/naslServer.ts +174 -148
- package/src/server/translator.ts +40 -39
- package/src/service/defaultErrorMessage.json +6 -6
- package/src/service/storage/init.ts +17 -0
- package/src/templator/genCreateBlock.ts +5 -3
- package/src/templator/genCurdEditMultipleKeyBlock.ts +12 -8
- package/src/templator/genCurdMultipleKeyBlock.ts +8 -7
- package/src/templator/genEditTableBlock.ts +12 -7
- package/src/templator/genEnumSelectBlock.ts +2 -2
- package/src/templator/genGetBlock.ts +6 -6
- package/src/templator/genGridViewBlock.ts +22 -9
- package/src/templator/genListViewBlock.ts +14 -5
- package/src/templator/genSelectBlock.ts +8 -6
- package/src/templator/genTableBlock.ts +10 -9
- package/src/templator/genUpdateBlock.ts +5 -3
- package/test/concepts/validation-rule/__snapshots__/toEmbeddedTS.spec.ts.snap +11 -0
- package/test/concepts/validation-rule/__snapshots__/toJS.spec.ts.snap +10 -0
- package/test/concepts/validation-rule/fixtures/argument-without-keyword.json +34 -0
- package/test/concepts/validation-rule/fixtures/empty-rule.json +9 -0
- package/test/concepts/validation-rule/validation-rule.spec.ts +15 -0
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
import { TranslatorState } from '../translator';
|
|
2
|
-
import { Params } from '../common/EventEmitter';
|
|
3
|
-
import BaseNode from '../common/BaseNode';
|
|
4
|
-
import BindAttribute from './BindAttribute__';
|
|
5
|
-
import BindEvent from './BindEvent__';
|
|
6
|
-
import BindDirective from './BindDirective__';
|
|
7
|
-
import BindStyle from './BindStyle__';
|
|
8
|
-
import View from './View__';
|
|
9
|
-
import Module from './Module__';
|
|
10
|
-
import App from './App__';
|
|
11
|
-
import Frontend from './Frontend__';
|
|
12
2
|
export interface ParseContext {
|
|
13
3
|
[key: string]: any;
|
|
14
4
|
}
|
|
@@ -24,6 +14,16 @@ export interface ElementToVueOptions {
|
|
|
24
14
|
finalCode?: boolean;
|
|
25
15
|
currentList?: string[];
|
|
26
16
|
}
|
|
17
|
+
import { Params } from '../common/EventEmitter';
|
|
18
|
+
import BaseNode from '../common/BaseNode';
|
|
19
|
+
import BindAttribute from './BindAttribute__';
|
|
20
|
+
import BindEvent from './BindEvent__';
|
|
21
|
+
import BindDirective from './BindDirective__';
|
|
22
|
+
import BindStyle from './BindStyle__';
|
|
23
|
+
import View from './View__';
|
|
24
|
+
import Module from './Module__';
|
|
25
|
+
import App from './App__';
|
|
26
|
+
import Frontend from './Frontend__';
|
|
27
27
|
/**
|
|
28
28
|
* 页面元素
|
|
29
29
|
*/
|
|
@@ -129,22 +129,22 @@ export declare class ViewElement extends BaseNode {
|
|
|
129
129
|
getBindAttributeExistingNames(excludedList?: Array<BindAttribute>): string[];
|
|
130
130
|
getBindAttributeUniqueName(name?: string): string;
|
|
131
131
|
/**
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
132
|
+
* 插入元素绑定属性
|
|
133
|
+
* @internal
|
|
134
|
+
* @param name 元素绑定属性名称,如果不填会自动生成一个唯一名称
|
|
135
|
+
*/
|
|
136
136
|
_insertBindAttributeAt(name: string, index: number): BindAttribute;
|
|
137
137
|
/**
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
138
|
+
* 插入元素绑定属性
|
|
139
|
+
* @internal
|
|
140
|
+
* @param bindAttributeOptions 元素绑定属性参数
|
|
141
|
+
*/
|
|
142
142
|
_insertBindAttributeAt(bindAttributeOptions: Partial<BindAttribute>, index: number): BindAttribute;
|
|
143
143
|
/**
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
144
|
+
* 插入元素绑定属性
|
|
145
|
+
* @internal
|
|
146
|
+
* @param bindAttribute 已有的元素绑定属性实例
|
|
147
|
+
*/
|
|
148
148
|
_insertBindAttributeAt(bindAttribute: BindAttribute, index: number): BindAttribute;
|
|
149
149
|
/**
|
|
150
150
|
* 插入元素绑定属性
|
|
@@ -198,22 +198,22 @@ export declare class ViewElement extends BaseNode {
|
|
|
198
198
|
getBindEventExistingNames(excludedList?: Array<BindEvent>): string[];
|
|
199
199
|
getBindEventUniqueName(name?: string): string;
|
|
200
200
|
/**
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
201
|
+
* 插入元素绑定事件
|
|
202
|
+
* @internal
|
|
203
|
+
* @param name 元素绑定事件名称,如果不填会自动生成一个唯一名称
|
|
204
|
+
*/
|
|
205
205
|
_insertBindEventAt(name: string, index: number): BindEvent;
|
|
206
206
|
/**
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
207
|
+
* 插入元素绑定事件
|
|
208
|
+
* @internal
|
|
209
|
+
* @param bindEventOptions 元素绑定事件参数
|
|
210
|
+
*/
|
|
211
211
|
_insertBindEventAt(bindEventOptions: Partial<BindEvent>, index: number): BindEvent;
|
|
212
212
|
/**
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
213
|
+
* 插入元素绑定事件
|
|
214
|
+
* @internal
|
|
215
|
+
* @param bindEvent 已有的元素绑定事件实例
|
|
216
|
+
*/
|
|
217
217
|
_insertBindEventAt(bindEvent: BindEvent, index: number): BindEvent;
|
|
218
218
|
/**
|
|
219
219
|
* 插入元素绑定事件
|
|
@@ -267,22 +267,22 @@ export declare class ViewElement extends BaseNode {
|
|
|
267
267
|
getBindDirectiveExistingNames(excludedList?: Array<BindDirective>): string[];
|
|
268
268
|
getBindDirectiveUniqueName(name?: string): string;
|
|
269
269
|
/**
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
270
|
+
* 插入元素指令
|
|
271
|
+
* @internal
|
|
272
|
+
* @param name 元素指令名称,如果不填会自动生成一个唯一名称
|
|
273
|
+
*/
|
|
274
274
|
_insertBindDirectiveAt(name: string, index: number): BindDirective;
|
|
275
275
|
/**
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
276
|
+
* 插入元素指令
|
|
277
|
+
* @internal
|
|
278
|
+
* @param bindDirectiveOptions 元素指令参数
|
|
279
|
+
*/
|
|
280
280
|
_insertBindDirectiveAt(bindDirectiveOptions: Partial<BindDirective>, index: number): BindDirective;
|
|
281
281
|
/**
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
282
|
+
* 插入元素指令
|
|
283
|
+
* @internal
|
|
284
|
+
* @param bindDirective 已有的元素指令实例
|
|
285
|
+
*/
|
|
286
286
|
_insertBindDirectiveAt(bindDirective: BindDirective, index: number): BindDirective;
|
|
287
287
|
/**
|
|
288
288
|
* 插入元素指令
|
|
@@ -336,22 +336,22 @@ export declare class ViewElement extends BaseNode {
|
|
|
336
336
|
getBindStyleExistingNames(excludedList?: Array<BindStyle>): string[];
|
|
337
337
|
getBindStyleUniqueName(name?: string): string;
|
|
338
338
|
/**
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
339
|
+
* 插入元素绑定样式
|
|
340
|
+
* @internal
|
|
341
|
+
* @param name 元素绑定样式名称,如果不填会自动生成一个唯一名称
|
|
342
|
+
*/
|
|
343
343
|
_insertBindStyleAt(name: string, index: number): BindStyle;
|
|
344
344
|
/**
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
345
|
+
* 插入元素绑定样式
|
|
346
|
+
* @internal
|
|
347
|
+
* @param bindStyleOptions 元素绑定样式参数
|
|
348
|
+
*/
|
|
349
349
|
_insertBindStyleAt(bindStyleOptions: Partial<BindStyle>, index: number): BindStyle;
|
|
350
350
|
/**
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
351
|
+
* 插入元素绑定样式
|
|
352
|
+
* @internal
|
|
353
|
+
* @param bindStyle 已有的元素绑定样式实例
|
|
354
|
+
*/
|
|
355
355
|
_insertBindStyleAt(bindStyle: BindStyle, index: number): BindStyle;
|
|
356
356
|
/**
|
|
357
357
|
* 插入元素绑定样式
|
|
@@ -403,22 +403,22 @@ export declare class ViewElement extends BaseNode {
|
|
|
403
403
|
*/
|
|
404
404
|
addBindStyle(bindStyle: BindStyle): BindStyle;
|
|
405
405
|
/**
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
406
|
+
* 插入页面元素
|
|
407
|
+
* @internal
|
|
408
|
+
* @param name 页面元素名称,如果不填会自动生成一个唯一名称
|
|
409
|
+
*/
|
|
410
410
|
_insertViewElementAt(name: string, index: number): ViewElement;
|
|
411
411
|
/**
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
412
|
+
* 插入页面元素
|
|
413
|
+
* @internal
|
|
414
|
+
* @param viewElementOptions 页面元素参数
|
|
415
|
+
*/
|
|
416
416
|
_insertViewElementAt(viewElementOptions: Partial<ViewElement>, index: number): ViewElement;
|
|
417
417
|
/**
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
418
|
+
* 插入页面元素
|
|
419
|
+
* @internal
|
|
420
|
+
* @param viewElement 已有的页面元素实例
|
|
421
|
+
*/
|
|
422
422
|
_insertViewElementAt(viewElement: ViewElement, index: number): ViewElement;
|
|
423
423
|
/**
|
|
424
424
|
* 插入页面元素
|
|
@@ -470,9 +470,9 @@ export declare class ViewElement extends BaseNode {
|
|
|
470
470
|
*/
|
|
471
471
|
addViewElement(viewElement: ViewElement): ViewElement;
|
|
472
472
|
/**
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
473
|
+
* 删除元素绑定属性
|
|
474
|
+
* @param name 元素绑定属性名称
|
|
475
|
+
*/
|
|
476
476
|
removeBindAttribute(name: string): void;
|
|
477
477
|
/**
|
|
478
478
|
* 删除元素绑定属性
|
|
@@ -481,9 +481,9 @@ export declare class ViewElement extends BaseNode {
|
|
|
481
481
|
removeBindAttribute(bindAttribute: BindAttribute): void;
|
|
482
482
|
__removeBindAttribute(bindAttribute: BindAttribute): Params;
|
|
483
483
|
/**
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
484
|
+
* 删除元素绑定事件
|
|
485
|
+
* @param name 元素绑定事件名称
|
|
486
|
+
*/
|
|
487
487
|
removeBindEvent(name: string): void;
|
|
488
488
|
/**
|
|
489
489
|
* 删除元素绑定事件
|
|
@@ -492,9 +492,9 @@ export declare class ViewElement extends BaseNode {
|
|
|
492
492
|
removeBindEvent(bindEvent: BindEvent): void;
|
|
493
493
|
__removeBindEvent(bindEvent: BindEvent): Params;
|
|
494
494
|
/**
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
495
|
+
* 删除元素指令
|
|
496
|
+
* @param name 元素指令名称
|
|
497
|
+
*/
|
|
498
498
|
removeBindDirective(name: string): void;
|
|
499
499
|
/**
|
|
500
500
|
* 删除元素指令
|
|
@@ -503,9 +503,9 @@ export declare class ViewElement extends BaseNode {
|
|
|
503
503
|
removeBindDirective(bindDirective: BindDirective): void;
|
|
504
504
|
__removeBindDirective(bindDirective: BindDirective): Params;
|
|
505
505
|
/**
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
506
|
+
* 删除元素绑定样式
|
|
507
|
+
* @param name 元素绑定样式名称
|
|
508
|
+
*/
|
|
509
509
|
removeBindStyle(name: string): void;
|
|
510
510
|
/**
|
|
511
511
|
* 删除元素绑定样式
|
|
@@ -514,9 +514,9 @@ export declare class ViewElement extends BaseNode {
|
|
|
514
514
|
removeBindStyle(bindStyle: BindStyle): void;
|
|
515
515
|
__removeBindStyle(bindStyle: BindStyle): Params;
|
|
516
516
|
/**
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
517
|
+
* 删除页面元素
|
|
518
|
+
* @param name 页面元素名称
|
|
519
|
+
*/
|
|
520
520
|
removeViewElement(name: string): void;
|
|
521
521
|
/**
|
|
522
522
|
* 删除页面元素
|
|
@@ -543,11 +543,12 @@ export declare class ViewElement extends BaseNode {
|
|
|
543
543
|
toFirstUpper(name: string): string;
|
|
544
544
|
haveScope(): boolean;
|
|
545
545
|
toEmbeddedTSDefinition(state?: TranslatorState): string;
|
|
546
|
+
toEmbeddedTSVariableDefinition(state?: TranslatorState, variableList?: string[]): string;
|
|
547
|
+
toNaturalTS(state?: TranslatorState, parentLevel?: number): string;
|
|
548
|
+
toNaturalTSDefinition(state?: TranslatorState): string;
|
|
546
549
|
getTypeArgmentsStr(state?: TranslatorState): string;
|
|
547
550
|
getDatasourceTypeCodeStr(state?: TranslatorState, eleArr?: Array<ViewElement>): string;
|
|
548
551
|
toEmbeddedTS(state?: TranslatorState, parentLevel?: number): string;
|
|
549
|
-
toNaturalTS(state?: TranslatorState, parentLevel?: number): string;
|
|
550
|
-
toNaturalTSDefinition(state?: TranslatorState): string;
|
|
551
552
|
_duplicate(): ViewElement;
|
|
552
553
|
traverseChildren(cb: (ele: ViewElement) => void): void;
|
|
553
554
|
deepRenameElements(node: ViewElement): Map<string, string>;
|