arkanalyzer 1.0.20 → 1.0.21
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/lib/Config.d.ts +70 -70
- package/lib/Config.js +198 -198
- package/lib/Scene.d.ts +316 -316
- package/lib/Scene.js +1316 -1316
- package/lib/callgraph/algorithm/AbstractAnalysis.d.ts +28 -28
- package/lib/callgraph/algorithm/AbstractAnalysis.js +144 -144
- package/lib/callgraph/algorithm/ClassHierarchyAnalysis.d.ts +10 -10
- package/lib/callgraph/algorithm/ClassHierarchyAnalysis.js +69 -69
- package/lib/callgraph/algorithm/RapidTypeAnalysis.d.ts +15 -15
- package/lib/callgraph/algorithm/RapidTypeAnalysis.js +146 -146
- package/lib/callgraph/common/Statistics.d.ts +57 -57
- package/lib/callgraph/common/Statistics.js +228 -228
- package/lib/callgraph/model/CallGraph.d.ts +96 -96
- package/lib/callgraph/model/CallGraph.js +354 -354
- package/lib/callgraph/model/builder/CallGraphBuilder.d.ts +15 -15
- package/lib/callgraph/model/builder/CallGraphBuilder.js +106 -106
- package/lib/callgraph/pointerAnalysis/Context.d.ts +37 -37
- package/lib/callgraph/pointerAnalysis/Context.js +155 -155
- package/lib/callgraph/pointerAnalysis/DummyCallCreator.d.ts +22 -22
- package/lib/callgraph/pointerAnalysis/DummyCallCreator.js +104 -104
- package/lib/callgraph/pointerAnalysis/PTAUtils.d.ts +5 -5
- package/lib/callgraph/pointerAnalysis/PTAUtils.js +46 -46
- package/lib/callgraph/pointerAnalysis/Pag.d.ts +261 -261
- package/lib/callgraph/pointerAnalysis/Pag.js +930 -930
- package/lib/callgraph/pointerAnalysis/PagBuilder.d.ts +157 -157
- package/lib/callgraph/pointerAnalysis/PagBuilder.js +1399 -1399
- package/lib/callgraph/pointerAnalysis/PointerAnalysis.d.ts +72 -72
- package/lib/callgraph/pointerAnalysis/PointerAnalysis.js +573 -573
- package/lib/callgraph/pointerAnalysis/PointerAnalysisConfig.d.ts +15 -15
- package/lib/callgraph/pointerAnalysis/PointerAnalysisConfig.js +81 -81
- package/lib/callgraph/pointerAnalysis/PtsDS.d.ts +80 -80
- package/lib/callgraph/pointerAnalysis/PtsDS.js +308 -308
- package/lib/core/base/Constant.d.ts +48 -48
- package/lib/core/base/Constant.js +103 -103
- package/lib/core/base/Decorator.d.ts +15 -15
- package/lib/core/base/Decorator.js +46 -46
- package/lib/core/base/DefUseChain.d.ts +8 -8
- package/lib/core/base/DefUseChain.js +25 -25
- package/lib/core/base/Expr.d.ts +340 -340
- package/lib/core/base/Expr.js +917 -917
- package/lib/core/base/Local.d.ts +104 -104
- package/lib/core/base/Local.js +176 -176
- package/lib/core/base/Position.d.ts +30 -30
- package/lib/core/base/Position.js +147 -147
- package/lib/core/base/Ref.d.ts +173 -173
- package/lib/core/base/Ref.js +374 -374
- package/lib/core/base/Stmt.d.ts +237 -237
- package/lib/core/base/Stmt.js +525 -525
- package/lib/core/base/Trap.d.ts +8 -8
- package/lib/core/base/Trap.js +30 -30
- package/lib/core/base/Type.d.ts +308 -308
- package/lib/core/base/Type.js +639 -639
- package/lib/core/base/TypeExpr.d.ts +71 -71
- package/lib/core/base/TypeExpr.js +155 -155
- package/lib/core/base/Value.d.ts +32 -32
- package/lib/core/base/Value.js +16 -16
- package/lib/core/common/ArkError.d.ts +14 -14
- package/lib/core/common/ArkError.js +28 -28
- package/lib/core/common/ArkIRTransformer.d.ts +67 -67
- package/lib/core/common/ArkIRTransformer.js +690 -690
- package/lib/core/common/ArkValueTransformer.d.ts +89 -89
- package/lib/core/common/ArkValueTransformer.js +1478 -1478
- package/lib/core/common/Builtin.d.ts +36 -36
- package/lib/core/common/Builtin.js +81 -81
- package/lib/core/common/Const.d.ts +21 -21
- package/lib/core/common/Const.js +43 -43
- package/lib/core/common/DummyMainCreater.d.ts +46 -46
- package/lib/core/common/DummyMainCreater.js +319 -319
- package/lib/core/common/EtsConst.d.ts +73 -73
- package/lib/core/common/EtsConst.js +1021 -1021
- package/lib/core/common/ExprUseReplacer.d.ts +21 -21
- package/lib/core/common/ExprUseReplacer.js +124 -124
- package/lib/core/common/IRInference.d.ts +36 -36
- package/lib/core/common/IRInference.d.ts.map +1 -1
- package/lib/core/common/IRInference.js +651 -648
- package/lib/core/common/IRUtils.d.ts +18 -18
- package/lib/core/common/IRUtils.js +141 -141
- package/lib/core/common/ModelUtils.d.ts +70 -70
- package/lib/core/common/ModelUtils.js +712 -712
- package/lib/core/common/RefUseReplacer.d.ts +13 -13
- package/lib/core/common/RefUseReplacer.js +52 -52
- package/lib/core/common/SdkUtils.d.ts +8 -8
- package/lib/core/common/SdkUtils.js +105 -105
- package/lib/core/common/StmtDefReplacer.d.ts +12 -12
- package/lib/core/common/StmtDefReplacer.js +41 -41
- package/lib/core/common/StmtUseReplacer.d.ts +16 -16
- package/lib/core/common/StmtUseReplacer.js +108 -108
- package/lib/core/common/TSConst.d.ts +18 -18
- package/lib/core/common/TSConst.js +36 -36
- package/lib/core/common/TypeInference.d.ts +102 -102
- package/lib/core/common/TypeInference.js +748 -748
- package/lib/core/common/ValueUtil.d.ts +12 -12
- package/lib/core/common/ValueUtil.js +54 -54
- package/lib/core/common/VisibleValue.d.ts +36 -36
- package/lib/core/common/VisibleValue.js +212 -212
- package/lib/core/dataflow/DataflowProblem.d.ts +20 -20
- package/lib/core/dataflow/DataflowProblem.js +20 -20
- package/lib/core/dataflow/DataflowResult.d.ts +7 -7
- package/lib/core/dataflow/DataflowResult.js +26 -26
- package/lib/core/dataflow/DataflowSolver.d.ts +43 -43
- package/lib/core/dataflow/DataflowSolver.js +307 -307
- package/lib/core/dataflow/Edge.d.ts +11 -11
- package/lib/core/dataflow/Edge.js +31 -31
- package/lib/core/dataflow/Fact.d.ts +6 -6
- package/lib/core/dataflow/Fact.js +24 -24
- package/lib/core/dataflow/GenericDataFlow.d.ts +142 -142
- package/lib/core/dataflow/GenericDataFlow.js +109 -109
- package/lib/core/dataflow/ReachingDef.d.ts +62 -62
- package/lib/core/dataflow/ReachingDef.js +168 -168
- package/lib/core/dataflow/UndefinedVariable.d.ts +45 -45
- package/lib/core/dataflow/UndefinedVariable.js +288 -288
- package/lib/core/dataflow/Util.d.ts +9 -9
- package/lib/core/dataflow/Util.js +64 -64
- package/lib/core/graph/BaseExplicitGraph.d.ts +58 -58
- package/lib/core/graph/BaseExplicitGraph.js +157 -157
- package/lib/core/graph/BaseImplicitGraph.d.ts +77 -77
- package/lib/core/graph/BaseImplicitGraph.js +78 -78
- package/lib/core/graph/BasicBlock.d.ts +104 -104
- package/lib/core/graph/BasicBlock.js +280 -280
- package/lib/core/graph/Cfg.d.ts +59 -59
- package/lib/core/graph/Cfg.js +282 -282
- package/lib/core/graph/DependsGraph.d.ts +35 -35
- package/lib/core/graph/DependsGraph.js +87 -87
- package/lib/core/graph/DominanceFinder.d.ts +15 -15
- package/lib/core/graph/DominanceFinder.js +121 -121
- package/lib/core/graph/DominanceTree.d.ts +12 -12
- package/lib/core/graph/DominanceTree.js +70 -70
- package/lib/core/graph/GraphTraits.d.ts +7 -7
- package/lib/core/graph/GraphTraits.js +16 -16
- package/lib/core/graph/Scc.d.ts +61 -61
- package/lib/core/graph/Scc.js +222 -222
- package/lib/core/graph/ViewTree.d.ts +114 -114
- package/lib/core/graph/ViewTree.js +16 -16
- package/lib/core/graph/builder/CfgBuilder.d.ts +176 -176
- package/lib/core/graph/builder/CfgBuilder.js +1139 -1139
- package/lib/core/graph/builder/ConditionBuilder.d.ts +15 -15
- package/lib/core/graph/builder/ConditionBuilder.js +252 -252
- package/lib/core/graph/builder/LoopBuilder.d.ts +20 -20
- package/lib/core/graph/builder/LoopBuilder.js +251 -251
- package/lib/core/graph/builder/SwitchBuilder.d.ts +11 -11
- package/lib/core/graph/builder/SwitchBuilder.js +152 -152
- package/lib/core/graph/builder/TrapBuilder.d.ts +16 -16
- package/lib/core/graph/builder/TrapBuilder.js +272 -272
- package/lib/core/graph/builder/ViewTreeBuilder.d.ts +203 -203
- package/lib/core/graph/builder/ViewTreeBuilder.js +1055 -1055
- package/lib/core/model/ArkBaseModel.d.ts +59 -59
- package/lib/core/model/ArkBaseModel.js +274 -274
- package/lib/core/model/ArkBody.d.ts +24 -24
- package/lib/core/model/ArkBody.js +65 -65
- package/lib/core/model/ArkClass.d.ts +206 -206
- package/lib/core/model/ArkClass.js +439 -439
- package/lib/core/model/ArkExport.d.ts +72 -72
- package/lib/core/model/ArkExport.js +147 -147
- package/lib/core/model/ArkField.d.ts +62 -62
- package/lib/core/model/ArkField.js +113 -113
- package/lib/core/model/ArkFile.d.ts +131 -131
- package/lib/core/model/ArkFile.js +267 -267
- package/lib/core/model/ArkImport.d.ts +44 -44
- package/lib/core/model/ArkImport.js +108 -108
- package/lib/core/model/ArkMetadata.d.ts +31 -31
- package/lib/core/model/ArkMetadata.js +55 -55
- package/lib/core/model/ArkMethod.d.ts +261 -261
- package/lib/core/model/ArkMethod.js +592 -592
- package/lib/core/model/ArkNamespace.d.ts +66 -66
- package/lib/core/model/ArkNamespace.js +209 -209
- package/lib/core/model/ArkSignature.d.ts +162 -162
- package/lib/core/model/ArkSignature.js +379 -379
- package/lib/core/model/builder/ArkClassBuilder.d.ts +12 -12
- package/lib/core/model/builder/ArkClassBuilder.js +454 -454
- package/lib/core/model/builder/ArkExportBuilder.d.ts +24 -24
- package/lib/core/model/builder/ArkExportBuilder.js +210 -210
- package/lib/core/model/builder/ArkFieldBuilder.d.ts +8 -8
- package/lib/core/model/builder/ArkFieldBuilder.js +193 -193
- package/lib/core/model/builder/ArkFileBuilder.d.ts +9 -9
- package/lib/core/model/builder/ArkFileBuilder.js +165 -165
- package/lib/core/model/builder/ArkImportBuilder.d.ts +4 -4
- package/lib/core/model/builder/ArkImportBuilder.js +128 -128
- package/lib/core/model/builder/ArkMethodBuilder.d.ts +63 -63
- package/lib/core/model/builder/ArkMethodBuilder.js +486 -486
- package/lib/core/model/builder/ArkNamespaceBuilder.d.ts +5 -5
- package/lib/core/model/builder/ArkNamespaceBuilder.js +205 -205
- package/lib/core/model/builder/ArkSignatureBuilder.d.ts +8 -8
- package/lib/core/model/builder/ArkSignatureBuilder.js +40 -40
- package/lib/core/model/builder/BodyBuilder.d.ts +55 -30
- package/lib/core/model/builder/BodyBuilder.d.ts.map +1 -1
- package/lib/core/model/builder/BodyBuilder.js +542 -371
- package/lib/core/model/builder/builderUtils.d.ts +18 -18
- package/lib/core/model/builder/builderUtils.js +558 -558
- package/lib/index.d.ts +82 -80
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +201 -196
- package/lib/save/ArkStream.d.ts +23 -23
- package/lib/save/ArkStream.js +83 -83
- package/lib/save/DotPrinter.d.ts +43 -43
- package/lib/save/DotPrinter.js +170 -170
- package/lib/save/GraphPrinter.d.ts +16 -16
- package/lib/save/GraphPrinter.js +134 -134
- package/lib/save/JsonPrinter.d.ts +30 -30
- package/lib/save/JsonPrinter.js +580 -580
- package/lib/save/Printer.d.ts +12 -12
- package/lib/save/Printer.js +27 -27
- package/lib/save/PrinterBuilder.d.ts +53 -53
- package/lib/save/PrinterBuilder.js +145 -145
- package/lib/save/ViewTreePrinter.d.ts +14 -14
- package/lib/save/ViewTreePrinter.js +123 -123
- package/lib/save/arkir/ArkIRClassPrinter.d.ts +13 -13
- package/lib/save/arkir/ArkIRClassPrinter.js +92 -92
- package/lib/save/arkir/ArkIRFieldPrinter.d.ts +11 -11
- package/lib/save/arkir/ArkIRFieldPrinter.js +64 -64
- package/lib/save/arkir/ArkIRFilePrinter.d.ts +12 -12
- package/lib/save/arkir/ArkIRFilePrinter.js +54 -54
- package/lib/save/arkir/ArkIRMethodPrinter.d.ts +16 -16
- package/lib/save/arkir/ArkIRMethodPrinter.js +159 -159
- package/lib/save/arkir/ArkIRNamespacePrinter.d.ts +11 -11
- package/lib/save/arkir/ArkIRNamespacePrinter.js +66 -66
- package/lib/save/base/BasePrinter.d.ts +23 -23
- package/lib/save/base/BasePrinter.js +70 -70
- package/lib/save/base/ExportPrinter.d.ts +8 -8
- package/lib/save/base/ExportPrinter.js +67 -67
- package/lib/save/base/ImportPrinter.d.ts +9 -9
- package/lib/save/base/ImportPrinter.js +92 -92
- package/lib/save/base/PrinterUtils.d.ts +24 -24
- package/lib/save/base/PrinterUtils.js +208 -208
- package/lib/save/serializeArkIR.d.ts +8 -8
- package/lib/save/serializeArkIR.js +294 -294
- package/lib/save/source/SourceBase.d.ts +22 -22
- package/lib/save/source/SourceBase.js +64 -64
- package/lib/save/source/SourceBody.d.ts +58 -58
- package/lib/save/source/SourceBody.js +296 -296
- package/lib/save/source/SourceClass.d.ts +25 -25
- package/lib/save/source/SourceClass.js +187 -187
- package/lib/save/source/SourceField.d.ts +13 -13
- package/lib/save/source/SourceField.js +73 -73
- package/lib/save/source/SourceFilePrinter.d.ts +12 -12
- package/lib/save/source/SourceFilePrinter.js +69 -69
- package/lib/save/source/SourceMethod.d.ts +22 -22
- package/lib/save/source/SourceMethod.d.ts.map +1 -1
- package/lib/save/source/SourceMethod.js +196 -193
- package/lib/save/source/SourceNamespace.d.ts +11 -11
- package/lib/save/source/SourceNamespace.js +83 -83
- package/lib/save/source/SourceStmt.d.ts +178 -178
- package/lib/save/source/SourceStmt.js +838 -838
- package/lib/save/source/SourceTransformer.d.ts +46 -46
- package/lib/save/source/SourceTransformer.js +446 -446
- package/lib/transformer/FunctionTransformer.d.ts +2 -2
- package/lib/transformer/FunctionTransformer.js +17 -17
- package/lib/transformer/SceneTransformer.d.ts +2 -2
- package/lib/transformer/SceneTransformer.js +17 -17
- package/lib/transformer/StaticSingleAssignmentFormer.d.ts +12 -12
- package/lib/transformer/StaticSingleAssignmentFormer.js +259 -259
- package/lib/transformer/Transformer.d.ts +6 -6
- package/lib/transformer/Transformer.js +22 -22
- package/lib/utils/AstTreeUtils.d.ts +4 -4
- package/lib/utils/AstTreeUtils.js +26 -26
- package/lib/utils/CfgStructualAnalysis.d.ts +110 -110
- package/lib/utils/CfgStructualAnalysis.js +1277 -1277
- package/lib/utils/FileUtils.d.ts +18 -18
- package/lib/utils/FileUtils.js +135 -135
- package/lib/utils/SparseBitVector.d.ts +100 -100
- package/lib/utils/SparseBitVector.js +445 -445
- package/lib/utils/callGraphUtils.d.ts +30 -30
- package/lib/utils/callGraphUtils.js +205 -205
- package/lib/utils/crypto_utils.d.ts +5 -5
- package/lib/utils/crypto_utils.js +57 -57
- package/lib/utils/entryMethodUtils.d.ts +13 -13
- package/lib/utils/entryMethodUtils.js +110 -110
- package/lib/utils/getAllFiles.d.ts +9 -9
- package/lib/utils/getAllFiles.js +90 -90
- package/lib/utils/json5parser.d.ts +6 -6
- package/lib/utils/json5parser.js +146 -146
- package/lib/utils/logger.d.ts +18 -18
- package/lib/utils/logger.d.ts.map +1 -1
- package/lib/utils/logger.js +97 -90
- package/lib/utils/pathTransfer.d.ts +1 -1
- package/lib/utils/pathTransfer.js +25 -25
- package/node_modules/json5/lib/cli.js +0 -0
- package/node_modules/ohos-typescript/bin/tsc +0 -0
- package/node_modules/ohos-typescript/bin/tsserver +0 -0
- package/package.json +3 -3
|
@@ -1,1021 +1,1021 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2024 Huawei Device Co., Ltd.
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.BUILD_PROFILE_JSON5 = exports.OH_PACKAGE_JSON5 = exports.ON_OFF = exports.CALL_BACK = exports.COMPONENT_ATTRIBUTE = exports.COMPONENT_INSTANCE = exports.COMPONENT_COMMON = exports.SPECIAL_CONTAINER_COMPONENT = exports.COMPONENT_BUILD_FUNCTION = exports.COMPONENT_BRANCH_FUNCTION = exports.COMPONENT_IF_BRANCH = exports.COMPONENT_IF = exports.COMPONENT_REPEAT = exports.COMPONENT_CUSTOMVIEW = exports.COMPONENT_POP_FUNCTION = exports.COMPONENT_CREATE_FUNCTION = exports.isEtsContainerComponent = exports.isEtsSystemComponent = exports.isEtsAtomicComponent = exports.BUILDER_PARAM_DECORATOR = exports.BUILDER_DECORATOR = exports.ENTRY_DECORATOR = exports.COMPONENT_DECORATOR = exports.BUILDIN_ATOMIC_COMPONENT = exports.BUILDIN_SYSTEM_COMPONENT = exports.COMPONENT_LAZY_FOR_EACH = exports.COMPONENT_FOR_EACH = exports.ETS_COMPILER_OPTIONS = void 0;
|
|
18
|
-
exports.ETS_COMPILER_OPTIONS = {
|
|
19
|
-
ets: {
|
|
20
|
-
emitDecorators: [
|
|
21
|
-
{
|
|
22
|
-
name: 'Entry',
|
|
23
|
-
emitParameters: true,
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
name: 'Component',
|
|
27
|
-
emitParameters: false,
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
name: 'Reusable',
|
|
31
|
-
emitParameters: false,
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: 'CustomDialog',
|
|
35
|
-
emitParameters: false,
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
name: 'Consume',
|
|
39
|
-
emitParameters: true,
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
name: 'Link',
|
|
43
|
-
emitParameters: false,
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
name: 'LocalStorageLink',
|
|
47
|
-
emitParameters: true,
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
name: 'LocalStorageProp',
|
|
51
|
-
emitParameters: true,
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
name: 'ObjectLink',
|
|
55
|
-
emitParameters: false,
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
name: 'Prop',
|
|
59
|
-
emitParameters: false,
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
name: 'Provide',
|
|
63
|
-
emitParameters: true,
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
name: 'State',
|
|
67
|
-
emitParameters: false,
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
name: 'StorageLink',
|
|
71
|
-
emitParameters: true,
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
name: 'StorageProp',
|
|
75
|
-
emitParameters: true,
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
name: 'Builder',
|
|
79
|
-
emitParameters: false,
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
name: 'LocalBuilder',
|
|
83
|
-
emitParameters: false,
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
name: 'BuilderParam',
|
|
87
|
-
emitParameters: false,
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
name: 'Observed',
|
|
91
|
-
emitParameters: false,
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
name: 'Require',
|
|
95
|
-
emitParameters: false,
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
name: 'Sendable',
|
|
99
|
-
emitParameters: false,
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
name: 'Track',
|
|
103
|
-
emitParameters: false,
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
name: 'ComponentV2',
|
|
107
|
-
emitParameters: true,
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
name: 'ObservedV2',
|
|
111
|
-
emitParameters: false,
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
name: 'Trace',
|
|
115
|
-
emitParameters: false,
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
name: 'Local',
|
|
119
|
-
emitParameters: false,
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
name: 'Param',
|
|
123
|
-
emitParameters: false,
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
name: 'Once',
|
|
127
|
-
emitParameters: false,
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
name: 'Event',
|
|
131
|
-
emitParameters: false,
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
name: 'Monitor',
|
|
135
|
-
emitParameters: true,
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
name: 'Provider',
|
|
139
|
-
emitParameters: true,
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
name: 'Consumer',
|
|
143
|
-
emitParameters: true,
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
name: 'Computed',
|
|
147
|
-
emitParameters: false,
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
name: 'Type',
|
|
151
|
-
emitParameters: true,
|
|
152
|
-
},
|
|
153
|
-
],
|
|
154
|
-
propertyDecorators: [
|
|
155
|
-
{
|
|
156
|
-
name: 'Link',
|
|
157
|
-
needInitialization: false,
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
name: 'Prop',
|
|
161
|
-
needInitialization: false,
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
name: 'ObjectLink',
|
|
165
|
-
needInitialization: false,
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
name: 'Consume',
|
|
169
|
-
needInitialization: false,
|
|
170
|
-
},
|
|
171
|
-
],
|
|
172
|
-
render: {
|
|
173
|
-
method: ['build', 'pageTransition'],
|
|
174
|
-
decorator: ['LocalBuilder', 'Builder'],
|
|
175
|
-
},
|
|
176
|
-
components: [
|
|
177
|
-
'AbilityComponent',
|
|
178
|
-
'AlphabetIndexer',
|
|
179
|
-
'Animator',
|
|
180
|
-
'Badge',
|
|
181
|
-
'Blank',
|
|
182
|
-
'Button',
|
|
183
|
-
'Calendar',
|
|
184
|
-
'CalendarPicker',
|
|
185
|
-
'Camera',
|
|
186
|
-
'Canvas',
|
|
187
|
-
'Checkbox',
|
|
188
|
-
'CheckboxGroup',
|
|
189
|
-
'Circle',
|
|
190
|
-
'ColorPicker',
|
|
191
|
-
'ColorPickerDialog',
|
|
192
|
-
'Column',
|
|
193
|
-
'ColumnSplit',
|
|
194
|
-
'ContentSlot',
|
|
195
|
-
'Counter',
|
|
196
|
-
'DataPanel',
|
|
197
|
-
'DatePicker',
|
|
198
|
-
'Divider',
|
|
199
|
-
'EffectComponent',
|
|
200
|
-
'Ellipse',
|
|
201
|
-
'EmbeddedComponent',
|
|
202
|
-
'Flex',
|
|
203
|
-
'FolderStack',
|
|
204
|
-
'FormComponent',
|
|
205
|
-
'FormLink',
|
|
206
|
-
'Gauge',
|
|
207
|
-
'GeometryView',
|
|
208
|
-
'Grid',
|
|
209
|
-
'GridItem',
|
|
210
|
-
'GridContainer',
|
|
211
|
-
'Hyperlink',
|
|
212
|
-
'Image',
|
|
213
|
-
'ImageAnimator',
|
|
214
|
-
'Line',
|
|
215
|
-
'List',
|
|
216
|
-
'ListItem',
|
|
217
|
-
'ListItemGroup',
|
|
218
|
-
'LoadingProgress',
|
|
219
|
-
'Marquee',
|
|
220
|
-
'MediaCachedImage',
|
|
221
|
-
'Menu',
|
|
222
|
-
'MenuItem',
|
|
223
|
-
'MenuItemGroup',
|
|
224
|
-
'MovingPhotoView',
|
|
225
|
-
'NavDestination',
|
|
226
|
-
'NavRouter',
|
|
227
|
-
'Navigation',
|
|
228
|
-
'Navigator',
|
|
229
|
-
'NodeContainer',
|
|
230
|
-
'Option',
|
|
231
|
-
'PageTransitionEnter',
|
|
232
|
-
'PageTransitionExit',
|
|
233
|
-
'Panel',
|
|
234
|
-
'Particle',
|
|
235
|
-
'Path',
|
|
236
|
-
'PatternLock',
|
|
237
|
-
'Piece',
|
|
238
|
-
'PluginComponent',
|
|
239
|
-
'Polygon',
|
|
240
|
-
'Polyline',
|
|
241
|
-
'Progress',
|
|
242
|
-
'QRCode',
|
|
243
|
-
'Radio',
|
|
244
|
-
'Rating',
|
|
245
|
-
'Rect',
|
|
246
|
-
'Refresh',
|
|
247
|
-
'RelativeContainer',
|
|
248
|
-
'RemoteWindow',
|
|
249
|
-
'RootScene',
|
|
250
|
-
'Row',
|
|
251
|
-
'RowSplit',
|
|
252
|
-
'RichText',
|
|
253
|
-
'Screen',
|
|
254
|
-
'Scroll',
|
|
255
|
-
'ScrollBar',
|
|
256
|
-
'Search',
|
|
257
|
-
'Section',
|
|
258
|
-
'Select',
|
|
259
|
-
'Shape',
|
|
260
|
-
'Sheet',
|
|
261
|
-
'SideBarContainer',
|
|
262
|
-
'Slider',
|
|
263
|
-
'Span',
|
|
264
|
-
'Stack',
|
|
265
|
-
'Stepper',
|
|
266
|
-
'StepperItem',
|
|
267
|
-
'Swiper',
|
|
268
|
-
'SymbolGlyph',
|
|
269
|
-
'SymbolSpan',
|
|
270
|
-
'TabContent',
|
|
271
|
-
'Tabs',
|
|
272
|
-
'Text',
|
|
273
|
-
'TextPicker',
|
|
274
|
-
'TextClock',
|
|
275
|
-
'TextArea',
|
|
276
|
-
'TextInput',
|
|
277
|
-
'TextTimer',
|
|
278
|
-
'TimePicker',
|
|
279
|
-
'Toggle',
|
|
280
|
-
'Video',
|
|
281
|
-
'Web',
|
|
282
|
-
'WindowScene',
|
|
283
|
-
'WithTheme',
|
|
284
|
-
'XComponent',
|
|
285
|
-
'GridRow',
|
|
286
|
-
'GridCol',
|
|
287
|
-
'WaterFlow',
|
|
288
|
-
'FlowItem',
|
|
289
|
-
'ImageSpan',
|
|
290
|
-
'LocationButton',
|
|
291
|
-
'PasteButton',
|
|
292
|
-
'SaveButton',
|
|
293
|
-
'UIExtensionComponent',
|
|
294
|
-
'IsolatedComponent',
|
|
295
|
-
'RichEditor',
|
|
296
|
-
'Component3D',
|
|
297
|
-
'ContainerSpan',
|
|
298
|
-
],
|
|
299
|
-
extend: {
|
|
300
|
-
decorator: ['Extend', 'AnimatableExtend'],
|
|
301
|
-
components: [
|
|
302
|
-
{
|
|
303
|
-
name: 'AbilityComponent',
|
|
304
|
-
type: 'AbilityComponentAttribute',
|
|
305
|
-
instance: 'AbilityComponentInstance',
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
name: 'AlphabetIndexer',
|
|
309
|
-
type: 'AlphabetIndexerAttribute',
|
|
310
|
-
instance: 'AlphabetIndexerInstance',
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
name: 'Animator',
|
|
314
|
-
type: 'AnimatorAttribute',
|
|
315
|
-
instance: 'AnimatorInstance',
|
|
316
|
-
},
|
|
317
|
-
{
|
|
318
|
-
name: 'Badge',
|
|
319
|
-
type: 'BadgeAttribute',
|
|
320
|
-
instance: 'BadgeInstance',
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
name: 'Blank',
|
|
324
|
-
type: 'BlankAttribute',
|
|
325
|
-
instance: 'BlankInstance',
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
name: 'Button',
|
|
329
|
-
type: 'ButtonAttribute',
|
|
330
|
-
instance: 'ButtonInstance',
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
name: 'Calendar',
|
|
334
|
-
type: 'CalendarAttribute',
|
|
335
|
-
instance: 'CalendarInstance',
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
name: 'CalendarPicker',
|
|
339
|
-
type: 'CalendarPickerAttribute',
|
|
340
|
-
instance: 'CalendarPickerInstance',
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
name: 'Camera',
|
|
344
|
-
type: 'CameraAttribute',
|
|
345
|
-
instance: 'CameraInstance',
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
name: 'Canvas',
|
|
349
|
-
type: 'CanvasAttribute',
|
|
350
|
-
instance: 'CanvasInstance',
|
|
351
|
-
},
|
|
352
|
-
{
|
|
353
|
-
name: 'Checkbox',
|
|
354
|
-
type: 'CheckboxAttribute',
|
|
355
|
-
instance: 'CheckboxInstance',
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
name: 'CheckboxGroup',
|
|
359
|
-
type: 'CheckboxGroupAttribute',
|
|
360
|
-
instance: 'CheckboxGroupInstance',
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
name: 'Circle',
|
|
364
|
-
type: 'CircleAttribute',
|
|
365
|
-
instance: 'CircleInstance',
|
|
366
|
-
},
|
|
367
|
-
{
|
|
368
|
-
name: 'ColorPicker',
|
|
369
|
-
type: 'ColorPickerAttribute',
|
|
370
|
-
instance: 'ColorPickerInstance',
|
|
371
|
-
},
|
|
372
|
-
{
|
|
373
|
-
name: 'ColorPickerDialog',
|
|
374
|
-
type: 'ColorPickerDialogAttribute',
|
|
375
|
-
instance: 'ColorPickerDialogInstance',
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
name: 'Column',
|
|
379
|
-
type: 'ColumnAttribute',
|
|
380
|
-
instance: 'ColumnInstance',
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
name: 'ColumnSplit',
|
|
384
|
-
type: 'ColumnSplitAttribute',
|
|
385
|
-
instance: 'ColumnSplitInstance',
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
name: 'Counter',
|
|
389
|
-
type: 'CounterAttribute',
|
|
390
|
-
instance: 'CounterInstance',
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
name: 'DataPanel',
|
|
394
|
-
type: 'DataPanelAttribute',
|
|
395
|
-
instance: 'DataPanelInstance',
|
|
396
|
-
},
|
|
397
|
-
{
|
|
398
|
-
name: 'DatePicker',
|
|
399
|
-
type: 'DatePickerAttribute',
|
|
400
|
-
instance: 'DatePickerInstance',
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
name: 'Divider',
|
|
404
|
-
type: 'DividerAttribute',
|
|
405
|
-
instance: 'DividerInstance',
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
name: 'EffectComponent',
|
|
409
|
-
type: 'EffectComponentAttribute',
|
|
410
|
-
instance: 'EffectComponentInstance',
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
name: 'Ellipse',
|
|
414
|
-
type: 'EllipseAttribute',
|
|
415
|
-
instance: 'EllipseInstance',
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
name: 'EmbeddedComponent',
|
|
419
|
-
type: 'EmbeddedComponentAttribute',
|
|
420
|
-
instance: 'EmbeddedComponentInstance',
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
name: 'Flex',
|
|
424
|
-
type: 'FlexAttribute',
|
|
425
|
-
instance: 'FlexInstance',
|
|
426
|
-
},
|
|
427
|
-
{
|
|
428
|
-
name: 'FolderStack',
|
|
429
|
-
type: 'FolderStackAttribute',
|
|
430
|
-
instance: 'FolderStackInstance',
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
name: 'FormComponent',
|
|
434
|
-
type: 'FormComponentAttribute',
|
|
435
|
-
instance: 'FormComponentInstance',
|
|
436
|
-
},
|
|
437
|
-
{
|
|
438
|
-
name: 'FormLink',
|
|
439
|
-
type: 'FormLinkAttribute',
|
|
440
|
-
instance: 'FormLinkInstance',
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
name: 'Gauge',
|
|
444
|
-
type: 'GaugeAttribute',
|
|
445
|
-
instance: 'GaugeInstance',
|
|
446
|
-
},
|
|
447
|
-
{
|
|
448
|
-
name: 'GeometryView',
|
|
449
|
-
type: 'GeometryViewAttribute',
|
|
450
|
-
instance: 'GeometryViewInstance',
|
|
451
|
-
},
|
|
452
|
-
{
|
|
453
|
-
name: 'Grid',
|
|
454
|
-
type: 'GridAttribute',
|
|
455
|
-
instance: 'GridInstance',
|
|
456
|
-
},
|
|
457
|
-
{
|
|
458
|
-
name: 'GridItem',
|
|
459
|
-
type: 'GridItemAttribute',
|
|
460
|
-
instance: 'GridItemInstance',
|
|
461
|
-
},
|
|
462
|
-
{
|
|
463
|
-
name: 'GridContainer',
|
|
464
|
-
type: 'GridContainerAttribute',
|
|
465
|
-
instance: 'GridContainerInstance',
|
|
466
|
-
},
|
|
467
|
-
{
|
|
468
|
-
name: 'Hyperlink',
|
|
469
|
-
type: 'HyperlinkAttribute',
|
|
470
|
-
instance: 'HyperlinkInstance',
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
name: 'Image',
|
|
474
|
-
type: 'ImageAttribute',
|
|
475
|
-
instance: 'ImageInstance',
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
name: 'ImageAnimator',
|
|
479
|
-
type: 'ImageAnimatorAttribute',
|
|
480
|
-
instance: 'ImageAnimatorInstance',
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
name: 'Line',
|
|
484
|
-
type: 'LineAttribute',
|
|
485
|
-
instance: 'LineInstance',
|
|
486
|
-
},
|
|
487
|
-
{
|
|
488
|
-
name: 'List',
|
|
489
|
-
type: 'ListAttribute',
|
|
490
|
-
instance: 'ListInstance',
|
|
491
|
-
},
|
|
492
|
-
{
|
|
493
|
-
name: 'ListItem',
|
|
494
|
-
type: 'ListItemAttribute',
|
|
495
|
-
instance: 'ListItemInstance',
|
|
496
|
-
},
|
|
497
|
-
{
|
|
498
|
-
name: 'ListItemGroup',
|
|
499
|
-
type: 'ListItemGroupAttribute',
|
|
500
|
-
instance: 'ListItemGroupInstance',
|
|
501
|
-
},
|
|
502
|
-
{
|
|
503
|
-
name: 'LoadingProgress',
|
|
504
|
-
type: 'LoadingProgressAttribute',
|
|
505
|
-
instance: 'LoadingProgressInstance',
|
|
506
|
-
},
|
|
507
|
-
{
|
|
508
|
-
name: 'Marquee',
|
|
509
|
-
type: 'MarqueeAttribute',
|
|
510
|
-
instance: 'MarqueeInstance',
|
|
511
|
-
},
|
|
512
|
-
{
|
|
513
|
-
name: 'MediaCachedImage',
|
|
514
|
-
type: 'MediaCachedImageAttribute',
|
|
515
|
-
instance: 'MediaCachedImageInstance',
|
|
516
|
-
},
|
|
517
|
-
{
|
|
518
|
-
name: 'Menu',
|
|
519
|
-
type: 'MenuAttribute',
|
|
520
|
-
instance: 'MenuInstance',
|
|
521
|
-
},
|
|
522
|
-
{
|
|
523
|
-
name: 'MenuItem',
|
|
524
|
-
type: 'MenuItemAttribute',
|
|
525
|
-
instance: 'MenuItemInstance',
|
|
526
|
-
},
|
|
527
|
-
{
|
|
528
|
-
name: 'MenuItemGroup',
|
|
529
|
-
type: 'MenuItemGroupAttribute',
|
|
530
|
-
instance: 'MenuItemGroupInstance',
|
|
531
|
-
},
|
|
532
|
-
{
|
|
533
|
-
name: 'MovingPhotoView',
|
|
534
|
-
type: 'MovingPhotoViewAttribute',
|
|
535
|
-
instance: 'MovingPhotoViewInstance',
|
|
536
|
-
},
|
|
537
|
-
{
|
|
538
|
-
name: 'NavDestination',
|
|
539
|
-
type: 'NavDestinationAttribute',
|
|
540
|
-
instance: 'NavDestinationInstance',
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
name: 'NavRouter',
|
|
544
|
-
type: 'NavRouterAttribute',
|
|
545
|
-
instance: 'NavRouterInstance',
|
|
546
|
-
},
|
|
547
|
-
{
|
|
548
|
-
name: 'Navigation',
|
|
549
|
-
type: 'NavigationAttribute',
|
|
550
|
-
instance: 'NavigationInstance',
|
|
551
|
-
},
|
|
552
|
-
{
|
|
553
|
-
name: 'Navigator',
|
|
554
|
-
type: 'NavigatorAttribute',
|
|
555
|
-
instance: 'NavigatorInstance',
|
|
556
|
-
},
|
|
557
|
-
{
|
|
558
|
-
name: 'NodeContainer',
|
|
559
|
-
type: 'NodeContainerAttribute',
|
|
560
|
-
instance: 'NodeContainerInstance',
|
|
561
|
-
},
|
|
562
|
-
{
|
|
563
|
-
name: 'Option',
|
|
564
|
-
type: 'OptionAttribute',
|
|
565
|
-
instance: 'OptionInstance',
|
|
566
|
-
},
|
|
567
|
-
{
|
|
568
|
-
name: 'PageTransitionEnter',
|
|
569
|
-
type: 'PageTransitionEnterAttribute',
|
|
570
|
-
instance: 'PageTransitionEnterInstance',
|
|
571
|
-
},
|
|
572
|
-
{
|
|
573
|
-
name: 'PageTransitionExit',
|
|
574
|
-
type: 'PageTransitionExitAttribute',
|
|
575
|
-
instance: 'PageTransitionExitInstance',
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
name: 'Panel',
|
|
579
|
-
type: 'PanelAttribute',
|
|
580
|
-
instance: 'PanelInstance',
|
|
581
|
-
},
|
|
582
|
-
{
|
|
583
|
-
name: 'Particle',
|
|
584
|
-
type: 'ParticleAttribute',
|
|
585
|
-
instance: 'ParticleInstance',
|
|
586
|
-
},
|
|
587
|
-
{
|
|
588
|
-
name: 'Path',
|
|
589
|
-
type: 'PathAttribute',
|
|
590
|
-
instance: 'PathInstance',
|
|
591
|
-
},
|
|
592
|
-
{
|
|
593
|
-
name: 'PatternLock',
|
|
594
|
-
type: 'PatternLockAttribute',
|
|
595
|
-
instance: 'PatternLockInstance',
|
|
596
|
-
},
|
|
597
|
-
{
|
|
598
|
-
name: 'Piece',
|
|
599
|
-
type: 'PieceAttribute',
|
|
600
|
-
instance: 'PieceInstance',
|
|
601
|
-
},
|
|
602
|
-
{
|
|
603
|
-
name: 'PluginComponent',
|
|
604
|
-
type: 'PluginComponentAttribute',
|
|
605
|
-
instance: 'PluginComponentInstance',
|
|
606
|
-
},
|
|
607
|
-
{
|
|
608
|
-
name: 'Polygon',
|
|
609
|
-
type: 'PolygonAttribute',
|
|
610
|
-
instance: 'PolygonInstance',
|
|
611
|
-
},
|
|
612
|
-
{
|
|
613
|
-
name: 'Polyline',
|
|
614
|
-
type: 'PolylineAttribute',
|
|
615
|
-
instance: 'PolylineInstance',
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
name: 'Progress',
|
|
619
|
-
type: 'ProgressAttribute',
|
|
620
|
-
instance: 'ProgressInstance',
|
|
621
|
-
},
|
|
622
|
-
{
|
|
623
|
-
name: 'QRCode',
|
|
624
|
-
type: 'QRCodeAttribute',
|
|
625
|
-
instance: 'QRCodeInstance',
|
|
626
|
-
},
|
|
627
|
-
{
|
|
628
|
-
name: 'Radio',
|
|
629
|
-
type: 'RadioAttribute',
|
|
630
|
-
instance: 'RadioInstance',
|
|
631
|
-
},
|
|
632
|
-
{
|
|
633
|
-
name: 'Rating',
|
|
634
|
-
type: 'RatingAttribute',
|
|
635
|
-
instance: 'RatingInstance',
|
|
636
|
-
},
|
|
637
|
-
{
|
|
638
|
-
name: 'Rect',
|
|
639
|
-
type: 'RectAttribute',
|
|
640
|
-
instance: 'RectInstance',
|
|
641
|
-
},
|
|
642
|
-
{
|
|
643
|
-
name: 'RelativeContainer',
|
|
644
|
-
type: 'RelativeContainerAttribute',
|
|
645
|
-
instance: 'RelativeContainerInstance',
|
|
646
|
-
},
|
|
647
|
-
{
|
|
648
|
-
name: 'Refresh',
|
|
649
|
-
type: 'RefreshAttribute',
|
|
650
|
-
instance: 'RefreshInstance',
|
|
651
|
-
},
|
|
652
|
-
{
|
|
653
|
-
name: 'RemoteWindow',
|
|
654
|
-
type: 'RemoteWindowAttribute',
|
|
655
|
-
instance: 'RemoteWindowInstance',
|
|
656
|
-
},
|
|
657
|
-
{
|
|
658
|
-
name: 'RootScene',
|
|
659
|
-
type: 'RootSceneAttribute',
|
|
660
|
-
instance: 'RootSceneInstance',
|
|
661
|
-
},
|
|
662
|
-
{
|
|
663
|
-
name: 'Row',
|
|
664
|
-
type: 'RowAttribute',
|
|
665
|
-
instance: 'RowInstance',
|
|
666
|
-
},
|
|
667
|
-
{
|
|
668
|
-
name: 'RowSplit',
|
|
669
|
-
type: 'RowSplitAttribute',
|
|
670
|
-
instance: 'RowSplitInstance',
|
|
671
|
-
},
|
|
672
|
-
{
|
|
673
|
-
name: 'RichText',
|
|
674
|
-
type: 'RichTextAttribute',
|
|
675
|
-
instance: 'RichTextInstance',
|
|
676
|
-
},
|
|
677
|
-
{
|
|
678
|
-
name: 'Screen',
|
|
679
|
-
type: 'ScreenAttribute',
|
|
680
|
-
instance: 'ScreenInstance',
|
|
681
|
-
},
|
|
682
|
-
{
|
|
683
|
-
name: 'Scroll',
|
|
684
|
-
type: 'ScrollAttribute',
|
|
685
|
-
instance: 'ScrollInstance',
|
|
686
|
-
},
|
|
687
|
-
{
|
|
688
|
-
name: 'ScrollBar',
|
|
689
|
-
type: 'ScrollBarAttribute',
|
|
690
|
-
instance: 'ScrollBarInstance',
|
|
691
|
-
},
|
|
692
|
-
{
|
|
693
|
-
name: 'Search',
|
|
694
|
-
type: 'SearchAttribute',
|
|
695
|
-
instance: 'SearchInstance',
|
|
696
|
-
},
|
|
697
|
-
{
|
|
698
|
-
name: 'Section',
|
|
699
|
-
type: 'SectionAttribute',
|
|
700
|
-
instance: 'SectionInstance',
|
|
701
|
-
},
|
|
702
|
-
{
|
|
703
|
-
name: 'Select',
|
|
704
|
-
type: 'SelectAttribute',
|
|
705
|
-
instance: 'SelectInstance',
|
|
706
|
-
},
|
|
707
|
-
{
|
|
708
|
-
name: 'Shape',
|
|
709
|
-
type: 'ShapeAttribute',
|
|
710
|
-
instance: 'ShapeInstance',
|
|
711
|
-
},
|
|
712
|
-
{
|
|
713
|
-
name: 'Sheet',
|
|
714
|
-
type: 'SheetAttribute',
|
|
715
|
-
instance: 'SheetInstance',
|
|
716
|
-
},
|
|
717
|
-
{
|
|
718
|
-
name: 'SideBarContainer',
|
|
719
|
-
type: 'SideBarContainerAttribute',
|
|
720
|
-
instance: 'SideBarContainerInstance',
|
|
721
|
-
},
|
|
722
|
-
{
|
|
723
|
-
name: 'Slider',
|
|
724
|
-
type: 'SliderAttribute',
|
|
725
|
-
instance: 'SliderInstance',
|
|
726
|
-
},
|
|
727
|
-
{
|
|
728
|
-
name: 'Span',
|
|
729
|
-
type: 'SpanAttribute',
|
|
730
|
-
instance: 'SpanInstance',
|
|
731
|
-
},
|
|
732
|
-
{
|
|
733
|
-
name: 'Stack',
|
|
734
|
-
type: 'StackAttribute',
|
|
735
|
-
instance: 'StackInstance',
|
|
736
|
-
},
|
|
737
|
-
{
|
|
738
|
-
name: 'Stepper',
|
|
739
|
-
type: 'StepperAttribute',
|
|
740
|
-
instance: 'StepperInstance',
|
|
741
|
-
},
|
|
742
|
-
{
|
|
743
|
-
name: 'StepperItem',
|
|
744
|
-
type: 'StepperItemAttribute',
|
|
745
|
-
instance: 'StepperItemInstance',
|
|
746
|
-
},
|
|
747
|
-
{
|
|
748
|
-
name: 'Swiper',
|
|
749
|
-
type: 'SwiperAttribute',
|
|
750
|
-
instance: 'SwiperInstance',
|
|
751
|
-
},
|
|
752
|
-
{
|
|
753
|
-
name: 'SymbolGlyph',
|
|
754
|
-
type: 'SymbolGlyphAttribute',
|
|
755
|
-
instance: 'SymbolGlyphInstance',
|
|
756
|
-
},
|
|
757
|
-
{
|
|
758
|
-
name: 'SymbolSpan',
|
|
759
|
-
type: 'SymbolSpanAttribute',
|
|
760
|
-
instance: 'SymbolSpanInstance',
|
|
761
|
-
},
|
|
762
|
-
{
|
|
763
|
-
name: 'TabContent',
|
|
764
|
-
type: 'TabContentAttribute',
|
|
765
|
-
instance: 'TabContentInstance',
|
|
766
|
-
},
|
|
767
|
-
{
|
|
768
|
-
name: 'Tabs',
|
|
769
|
-
type: 'TabsAttribute',
|
|
770
|
-
instance: 'TabsInstance',
|
|
771
|
-
},
|
|
772
|
-
{
|
|
773
|
-
name: 'Text',
|
|
774
|
-
type: 'TextAttribute',
|
|
775
|
-
instance: 'TextInstance',
|
|
776
|
-
},
|
|
777
|
-
{
|
|
778
|
-
name: 'TextPicker',
|
|
779
|
-
type: 'TextPickerAttribute',
|
|
780
|
-
instance: 'TextPickerInstance',
|
|
781
|
-
},
|
|
782
|
-
{
|
|
783
|
-
name: 'TextClock',
|
|
784
|
-
type: 'TextClockAttribute',
|
|
785
|
-
instance: 'TextClockInstance',
|
|
786
|
-
},
|
|
787
|
-
{
|
|
788
|
-
name: 'TextArea',
|
|
789
|
-
type: 'TextAreaAttribute',
|
|
790
|
-
instance: 'TextAreaInstance',
|
|
791
|
-
},
|
|
792
|
-
{
|
|
793
|
-
name: 'TextInput',
|
|
794
|
-
type: 'TextInputAttribute',
|
|
795
|
-
instance: 'TextInputInstance',
|
|
796
|
-
},
|
|
797
|
-
{
|
|
798
|
-
name: 'TextTimer',
|
|
799
|
-
type: 'TextTimerAttribute',
|
|
800
|
-
instance: 'TextTimerInstance',
|
|
801
|
-
},
|
|
802
|
-
{
|
|
803
|
-
name: 'TimePicker',
|
|
804
|
-
type: 'TimePickerAttribute',
|
|
805
|
-
instance: 'TimePickerInstance',
|
|
806
|
-
},
|
|
807
|
-
{
|
|
808
|
-
name: 'Toggle',
|
|
809
|
-
type: 'ToggleAttribute',
|
|
810
|
-
instance: 'ToggleInstance',
|
|
811
|
-
},
|
|
812
|
-
{
|
|
813
|
-
name: 'Video',
|
|
814
|
-
type: 'VideoAttribute',
|
|
815
|
-
instance: 'VideoInstance',
|
|
816
|
-
},
|
|
817
|
-
{
|
|
818
|
-
name: 'Web',
|
|
819
|
-
type: 'WebAttribute',
|
|
820
|
-
instance: 'WebInstance',
|
|
821
|
-
},
|
|
822
|
-
{
|
|
823
|
-
name: 'WindowScene',
|
|
824
|
-
type: 'WindowSceneAttribute',
|
|
825
|
-
instance: 'WindowSceneInstance',
|
|
826
|
-
},
|
|
827
|
-
{
|
|
828
|
-
name: 'XComponent',
|
|
829
|
-
type: 'XComponentAttribute',
|
|
830
|
-
instance: 'XComponentInstance',
|
|
831
|
-
},
|
|
832
|
-
{
|
|
833
|
-
name: 'GridRow',
|
|
834
|
-
type: 'GridRowAttribute',
|
|
835
|
-
instance: 'GridRowInstance',
|
|
836
|
-
},
|
|
837
|
-
{
|
|
838
|
-
name: 'GridCol',
|
|
839
|
-
type: 'GridColAttribute',
|
|
840
|
-
instance: 'GridColInstance',
|
|
841
|
-
},
|
|
842
|
-
{
|
|
843
|
-
name: 'WaterFlow',
|
|
844
|
-
type: 'WaterFlowAttribute',
|
|
845
|
-
instance: 'WaterFlowInstance',
|
|
846
|
-
},
|
|
847
|
-
{
|
|
848
|
-
name: 'FlowItem',
|
|
849
|
-
type: 'FlowItemAttribute',
|
|
850
|
-
instance: 'FlowItemInstance',
|
|
851
|
-
},
|
|
852
|
-
{
|
|
853
|
-
name: 'ImageSpan',
|
|
854
|
-
type: 'ImageSpanAttribute',
|
|
855
|
-
instance: 'ImageSpanInstance',
|
|
856
|
-
},
|
|
857
|
-
{
|
|
858
|
-
name: 'LocationButton',
|
|
859
|
-
type: 'LocationButtonAttribute',
|
|
860
|
-
instance: 'LocationButtonInstance',
|
|
861
|
-
},
|
|
862
|
-
{
|
|
863
|
-
name: 'PasteButton',
|
|
864
|
-
type: 'PasteButtonAttribute',
|
|
865
|
-
instance: 'PasteButtonInstance',
|
|
866
|
-
},
|
|
867
|
-
{
|
|
868
|
-
name: 'SaveButton',
|
|
869
|
-
type: 'SaveButtonAttribute',
|
|
870
|
-
instance: 'SaveButtonInstance',
|
|
871
|
-
},
|
|
872
|
-
{
|
|
873
|
-
name: 'UIExtensionComponent',
|
|
874
|
-
type: 'UIExtensionComponentAttribute',
|
|
875
|
-
instance: 'UIExtensionComponentInstance',
|
|
876
|
-
},
|
|
877
|
-
{
|
|
878
|
-
name: 'IsolatedComponent',
|
|
879
|
-
type: 'IsolatedComponentAttribute',
|
|
880
|
-
instance: 'IsolatedComponentInstance',
|
|
881
|
-
},
|
|
882
|
-
{
|
|
883
|
-
name: 'RichEditor',
|
|
884
|
-
type: 'RichEditorAttribute',
|
|
885
|
-
instance: 'RichEditorInstance',
|
|
886
|
-
},
|
|
887
|
-
{
|
|
888
|
-
name: 'Component3D',
|
|
889
|
-
type: 'Component3DAttribute',
|
|
890
|
-
instance: 'Component3DInstance',
|
|
891
|
-
},
|
|
892
|
-
{
|
|
893
|
-
name: 'ContainerSpan',
|
|
894
|
-
type: 'ContainerSpanAttribute',
|
|
895
|
-
instance: 'ContainerSpanInstance',
|
|
896
|
-
},
|
|
897
|
-
],
|
|
898
|
-
},
|
|
899
|
-
styles: {
|
|
900
|
-
decorator: 'Styles',
|
|
901
|
-
component: {
|
|
902
|
-
name: 'Common',
|
|
903
|
-
type: 'T',
|
|
904
|
-
instance: 'CommonInstance',
|
|
905
|
-
},
|
|
906
|
-
property: 'stateStyles',
|
|
907
|
-
},
|
|
908
|
-
concurrent: {
|
|
909
|
-
decorator: 'Concurrent',
|
|
910
|
-
},
|
|
911
|
-
customComponent: 'CustomComponent',
|
|
912
|
-
syntaxComponents: {
|
|
913
|
-
paramsUICallback: ['ForEach', 'LazyForEach'],
|
|
914
|
-
attrUICallback: [
|
|
915
|
-
{
|
|
916
|
-
name: 'Repeat',
|
|
917
|
-
attributes: ['each', 'template'],
|
|
918
|
-
},
|
|
919
|
-
],
|
|
920
|
-
},
|
|
921
|
-
libs: [],
|
|
922
|
-
},
|
|
923
|
-
};
|
|
924
|
-
exports.COMPONENT_FOR_EACH = 'ForEach';
|
|
925
|
-
exports.COMPONENT_LAZY_FOR_EACH = 'LazyForEach';
|
|
926
|
-
exports.BUILDIN_SYSTEM_COMPONENT = new Set([
|
|
927
|
-
...exports.ETS_COMPILER_OPTIONS.ets.components,
|
|
928
|
-
exports.COMPONENT_FOR_EACH,
|
|
929
|
-
exports.COMPONENT_LAZY_FOR_EACH,
|
|
930
|
-
]);
|
|
931
|
-
exports.BUILDIN_ATOMIC_COMPONENT = new Set([
|
|
932
|
-
'AbilityComponent',
|
|
933
|
-
'AlphabetIndexer',
|
|
934
|
-
'Animator',
|
|
935
|
-
'Blank',
|
|
936
|
-
'CalendarPicker',
|
|
937
|
-
'Camera',
|
|
938
|
-
'Circle',
|
|
939
|
-
'Component3D',
|
|
940
|
-
'ContentSlot',
|
|
941
|
-
'Divider',
|
|
942
|
-
'Ellipse',
|
|
943
|
-
'EmbeddedComponent',
|
|
944
|
-
'FormComponent',
|
|
945
|
-
'FrictionMotion',
|
|
946
|
-
'GeometryView',
|
|
947
|
-
'Image',
|
|
948
|
-
'ImageAnimator',
|
|
949
|
-
'ImageSpan',
|
|
950
|
-
'Line',
|
|
951
|
-
'LoadingProgress',
|
|
952
|
-
'LocationButton',
|
|
953
|
-
'Marquee',
|
|
954
|
-
'MediaCachedImage',
|
|
955
|
-
'NodeContainer',
|
|
956
|
-
'PageTransitionEnter',
|
|
957
|
-
'PageTransitionExit',
|
|
958
|
-
'Particle',
|
|
959
|
-
'PasteButton',
|
|
960
|
-
'Path',
|
|
961
|
-
'PatternLock',
|
|
962
|
-
'Polygon',
|
|
963
|
-
'Polyline',
|
|
964
|
-
'Progress',
|
|
965
|
-
'Radio',
|
|
966
|
-
'Rect',
|
|
967
|
-
'RemoteWindow',
|
|
968
|
-
'RichEditor',
|
|
969
|
-
'RichText',
|
|
970
|
-
'SaveButton',
|
|
971
|
-
'ScrollMotion',
|
|
972
|
-
'Search',
|
|
973
|
-
'Slider',
|
|
974
|
-
'Span',
|
|
975
|
-
'SpringMotion',
|
|
976
|
-
'SpringProp',
|
|
977
|
-
'SymbolSpan',
|
|
978
|
-
'SymbolGlyph',
|
|
979
|
-
'TextArea',
|
|
980
|
-
'TextInput',
|
|
981
|
-
'UIExtensionComponent',
|
|
982
|
-
'Video',
|
|
983
|
-
'Web',
|
|
984
|
-
]);
|
|
985
|
-
exports.COMPONENT_DECORATOR = new Set(['Reusable', 'Component', 'ComponentV2', 'CustomDialog']);
|
|
986
|
-
exports.ENTRY_DECORATOR = 'Entry';
|
|
987
|
-
exports.BUILDER_DECORATOR = 'Builder';
|
|
988
|
-
exports.BUILDER_PARAM_DECORATOR = 'BuilderParam';
|
|
989
|
-
function isEtsAtomicComponent(name) {
|
|
990
|
-
return exports.BUILDIN_ATOMIC_COMPONENT.has(name);
|
|
991
|
-
}
|
|
992
|
-
exports.isEtsAtomicComponent = isEtsAtomicComponent;
|
|
993
|
-
function isEtsSystemComponent(name) {
|
|
994
|
-
return exports.BUILDIN_SYSTEM_COMPONENT.has(name);
|
|
995
|
-
}
|
|
996
|
-
exports.isEtsSystemComponent = isEtsSystemComponent;
|
|
997
|
-
function isEtsContainerComponent(name) {
|
|
998
|
-
return isEtsSystemComponent(name) && !isEtsAtomicComponent(name);
|
|
999
|
-
}
|
|
1000
|
-
exports.isEtsContainerComponent = isEtsContainerComponent;
|
|
1001
|
-
exports.COMPONENT_CREATE_FUNCTION = 'create';
|
|
1002
|
-
exports.COMPONENT_POP_FUNCTION = 'pop';
|
|
1003
|
-
exports.COMPONENT_CUSTOMVIEW = 'View';
|
|
1004
|
-
exports.COMPONENT_REPEAT = 'Repeat';
|
|
1005
|
-
exports.COMPONENT_IF = 'If';
|
|
1006
|
-
exports.COMPONENT_IF_BRANCH = 'IfBranch';
|
|
1007
|
-
exports.COMPONENT_BRANCH_FUNCTION = 'branch';
|
|
1008
|
-
exports.COMPONENT_BUILD_FUNCTION = 'build';
|
|
1009
|
-
exports.SPECIAL_CONTAINER_COMPONENT = new Set([
|
|
1010
|
-
exports.COMPONENT_IF,
|
|
1011
|
-
exports.COMPONENT_IF_BRANCH,
|
|
1012
|
-
exports.COMPONENT_CUSTOMVIEW,
|
|
1013
|
-
exports.COMPONENT_REPEAT,
|
|
1014
|
-
]);
|
|
1015
|
-
exports.COMPONENT_COMMON = 'Common';
|
|
1016
|
-
exports.COMPONENT_INSTANCE = 'Instance';
|
|
1017
|
-
exports.COMPONENT_ATTRIBUTE = 'Attribute';
|
|
1018
|
-
exports.CALL_BACK = 'Callback';
|
|
1019
|
-
exports.ON_OFF = new Set(['on', 'off']);
|
|
1020
|
-
exports.OH_PACKAGE_JSON5 = 'oh-package.json5';
|
|
1021
|
-
exports.BUILD_PROFILE_JSON5 = 'build-profile.json5';
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2024 Huawei Device Co., Ltd.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.BUILD_PROFILE_JSON5 = exports.OH_PACKAGE_JSON5 = exports.ON_OFF = exports.CALL_BACK = exports.COMPONENT_ATTRIBUTE = exports.COMPONENT_INSTANCE = exports.COMPONENT_COMMON = exports.SPECIAL_CONTAINER_COMPONENT = exports.COMPONENT_BUILD_FUNCTION = exports.COMPONENT_BRANCH_FUNCTION = exports.COMPONENT_IF_BRANCH = exports.COMPONENT_IF = exports.COMPONENT_REPEAT = exports.COMPONENT_CUSTOMVIEW = exports.COMPONENT_POP_FUNCTION = exports.COMPONENT_CREATE_FUNCTION = exports.isEtsContainerComponent = exports.isEtsSystemComponent = exports.isEtsAtomicComponent = exports.BUILDER_PARAM_DECORATOR = exports.BUILDER_DECORATOR = exports.ENTRY_DECORATOR = exports.COMPONENT_DECORATOR = exports.BUILDIN_ATOMIC_COMPONENT = exports.BUILDIN_SYSTEM_COMPONENT = exports.COMPONENT_LAZY_FOR_EACH = exports.COMPONENT_FOR_EACH = exports.ETS_COMPILER_OPTIONS = void 0;
|
|
18
|
+
exports.ETS_COMPILER_OPTIONS = {
|
|
19
|
+
ets: {
|
|
20
|
+
emitDecorators: [
|
|
21
|
+
{
|
|
22
|
+
name: 'Entry',
|
|
23
|
+
emitParameters: true,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'Component',
|
|
27
|
+
emitParameters: false,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'Reusable',
|
|
31
|
+
emitParameters: false,
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'CustomDialog',
|
|
35
|
+
emitParameters: false,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'Consume',
|
|
39
|
+
emitParameters: true,
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'Link',
|
|
43
|
+
emitParameters: false,
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'LocalStorageLink',
|
|
47
|
+
emitParameters: true,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: 'LocalStorageProp',
|
|
51
|
+
emitParameters: true,
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'ObjectLink',
|
|
55
|
+
emitParameters: false,
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: 'Prop',
|
|
59
|
+
emitParameters: false,
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'Provide',
|
|
63
|
+
emitParameters: true,
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: 'State',
|
|
67
|
+
emitParameters: false,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: 'StorageLink',
|
|
71
|
+
emitParameters: true,
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: 'StorageProp',
|
|
75
|
+
emitParameters: true,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'Builder',
|
|
79
|
+
emitParameters: false,
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: 'LocalBuilder',
|
|
83
|
+
emitParameters: false,
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: 'BuilderParam',
|
|
87
|
+
emitParameters: false,
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: 'Observed',
|
|
91
|
+
emitParameters: false,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: 'Require',
|
|
95
|
+
emitParameters: false,
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: 'Sendable',
|
|
99
|
+
emitParameters: false,
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: 'Track',
|
|
103
|
+
emitParameters: false,
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: 'ComponentV2',
|
|
107
|
+
emitParameters: true,
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: 'ObservedV2',
|
|
111
|
+
emitParameters: false,
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: 'Trace',
|
|
115
|
+
emitParameters: false,
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: 'Local',
|
|
119
|
+
emitParameters: false,
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: 'Param',
|
|
123
|
+
emitParameters: false,
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: 'Once',
|
|
127
|
+
emitParameters: false,
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
name: 'Event',
|
|
131
|
+
emitParameters: false,
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: 'Monitor',
|
|
135
|
+
emitParameters: true,
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
name: 'Provider',
|
|
139
|
+
emitParameters: true,
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
name: 'Consumer',
|
|
143
|
+
emitParameters: true,
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
name: 'Computed',
|
|
147
|
+
emitParameters: false,
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
name: 'Type',
|
|
151
|
+
emitParameters: true,
|
|
152
|
+
},
|
|
153
|
+
],
|
|
154
|
+
propertyDecorators: [
|
|
155
|
+
{
|
|
156
|
+
name: 'Link',
|
|
157
|
+
needInitialization: false,
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
name: 'Prop',
|
|
161
|
+
needInitialization: false,
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
name: 'ObjectLink',
|
|
165
|
+
needInitialization: false,
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: 'Consume',
|
|
169
|
+
needInitialization: false,
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
render: {
|
|
173
|
+
method: ['build', 'pageTransition'],
|
|
174
|
+
decorator: ['LocalBuilder', 'Builder'],
|
|
175
|
+
},
|
|
176
|
+
components: [
|
|
177
|
+
'AbilityComponent',
|
|
178
|
+
'AlphabetIndexer',
|
|
179
|
+
'Animator',
|
|
180
|
+
'Badge',
|
|
181
|
+
'Blank',
|
|
182
|
+
'Button',
|
|
183
|
+
'Calendar',
|
|
184
|
+
'CalendarPicker',
|
|
185
|
+
'Camera',
|
|
186
|
+
'Canvas',
|
|
187
|
+
'Checkbox',
|
|
188
|
+
'CheckboxGroup',
|
|
189
|
+
'Circle',
|
|
190
|
+
'ColorPicker',
|
|
191
|
+
'ColorPickerDialog',
|
|
192
|
+
'Column',
|
|
193
|
+
'ColumnSplit',
|
|
194
|
+
'ContentSlot',
|
|
195
|
+
'Counter',
|
|
196
|
+
'DataPanel',
|
|
197
|
+
'DatePicker',
|
|
198
|
+
'Divider',
|
|
199
|
+
'EffectComponent',
|
|
200
|
+
'Ellipse',
|
|
201
|
+
'EmbeddedComponent',
|
|
202
|
+
'Flex',
|
|
203
|
+
'FolderStack',
|
|
204
|
+
'FormComponent',
|
|
205
|
+
'FormLink',
|
|
206
|
+
'Gauge',
|
|
207
|
+
'GeometryView',
|
|
208
|
+
'Grid',
|
|
209
|
+
'GridItem',
|
|
210
|
+
'GridContainer',
|
|
211
|
+
'Hyperlink',
|
|
212
|
+
'Image',
|
|
213
|
+
'ImageAnimator',
|
|
214
|
+
'Line',
|
|
215
|
+
'List',
|
|
216
|
+
'ListItem',
|
|
217
|
+
'ListItemGroup',
|
|
218
|
+
'LoadingProgress',
|
|
219
|
+
'Marquee',
|
|
220
|
+
'MediaCachedImage',
|
|
221
|
+
'Menu',
|
|
222
|
+
'MenuItem',
|
|
223
|
+
'MenuItemGroup',
|
|
224
|
+
'MovingPhotoView',
|
|
225
|
+
'NavDestination',
|
|
226
|
+
'NavRouter',
|
|
227
|
+
'Navigation',
|
|
228
|
+
'Navigator',
|
|
229
|
+
'NodeContainer',
|
|
230
|
+
'Option',
|
|
231
|
+
'PageTransitionEnter',
|
|
232
|
+
'PageTransitionExit',
|
|
233
|
+
'Panel',
|
|
234
|
+
'Particle',
|
|
235
|
+
'Path',
|
|
236
|
+
'PatternLock',
|
|
237
|
+
'Piece',
|
|
238
|
+
'PluginComponent',
|
|
239
|
+
'Polygon',
|
|
240
|
+
'Polyline',
|
|
241
|
+
'Progress',
|
|
242
|
+
'QRCode',
|
|
243
|
+
'Radio',
|
|
244
|
+
'Rating',
|
|
245
|
+
'Rect',
|
|
246
|
+
'Refresh',
|
|
247
|
+
'RelativeContainer',
|
|
248
|
+
'RemoteWindow',
|
|
249
|
+
'RootScene',
|
|
250
|
+
'Row',
|
|
251
|
+
'RowSplit',
|
|
252
|
+
'RichText',
|
|
253
|
+
'Screen',
|
|
254
|
+
'Scroll',
|
|
255
|
+
'ScrollBar',
|
|
256
|
+
'Search',
|
|
257
|
+
'Section',
|
|
258
|
+
'Select',
|
|
259
|
+
'Shape',
|
|
260
|
+
'Sheet',
|
|
261
|
+
'SideBarContainer',
|
|
262
|
+
'Slider',
|
|
263
|
+
'Span',
|
|
264
|
+
'Stack',
|
|
265
|
+
'Stepper',
|
|
266
|
+
'StepperItem',
|
|
267
|
+
'Swiper',
|
|
268
|
+
'SymbolGlyph',
|
|
269
|
+
'SymbolSpan',
|
|
270
|
+
'TabContent',
|
|
271
|
+
'Tabs',
|
|
272
|
+
'Text',
|
|
273
|
+
'TextPicker',
|
|
274
|
+
'TextClock',
|
|
275
|
+
'TextArea',
|
|
276
|
+
'TextInput',
|
|
277
|
+
'TextTimer',
|
|
278
|
+
'TimePicker',
|
|
279
|
+
'Toggle',
|
|
280
|
+
'Video',
|
|
281
|
+
'Web',
|
|
282
|
+
'WindowScene',
|
|
283
|
+
'WithTheme',
|
|
284
|
+
'XComponent',
|
|
285
|
+
'GridRow',
|
|
286
|
+
'GridCol',
|
|
287
|
+
'WaterFlow',
|
|
288
|
+
'FlowItem',
|
|
289
|
+
'ImageSpan',
|
|
290
|
+
'LocationButton',
|
|
291
|
+
'PasteButton',
|
|
292
|
+
'SaveButton',
|
|
293
|
+
'UIExtensionComponent',
|
|
294
|
+
'IsolatedComponent',
|
|
295
|
+
'RichEditor',
|
|
296
|
+
'Component3D',
|
|
297
|
+
'ContainerSpan',
|
|
298
|
+
],
|
|
299
|
+
extend: {
|
|
300
|
+
decorator: ['Extend', 'AnimatableExtend'],
|
|
301
|
+
components: [
|
|
302
|
+
{
|
|
303
|
+
name: 'AbilityComponent',
|
|
304
|
+
type: 'AbilityComponentAttribute',
|
|
305
|
+
instance: 'AbilityComponentInstance',
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
name: 'AlphabetIndexer',
|
|
309
|
+
type: 'AlphabetIndexerAttribute',
|
|
310
|
+
instance: 'AlphabetIndexerInstance',
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
name: 'Animator',
|
|
314
|
+
type: 'AnimatorAttribute',
|
|
315
|
+
instance: 'AnimatorInstance',
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
name: 'Badge',
|
|
319
|
+
type: 'BadgeAttribute',
|
|
320
|
+
instance: 'BadgeInstance',
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
name: 'Blank',
|
|
324
|
+
type: 'BlankAttribute',
|
|
325
|
+
instance: 'BlankInstance',
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
name: 'Button',
|
|
329
|
+
type: 'ButtonAttribute',
|
|
330
|
+
instance: 'ButtonInstance',
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
name: 'Calendar',
|
|
334
|
+
type: 'CalendarAttribute',
|
|
335
|
+
instance: 'CalendarInstance',
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
name: 'CalendarPicker',
|
|
339
|
+
type: 'CalendarPickerAttribute',
|
|
340
|
+
instance: 'CalendarPickerInstance',
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
name: 'Camera',
|
|
344
|
+
type: 'CameraAttribute',
|
|
345
|
+
instance: 'CameraInstance',
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
name: 'Canvas',
|
|
349
|
+
type: 'CanvasAttribute',
|
|
350
|
+
instance: 'CanvasInstance',
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
name: 'Checkbox',
|
|
354
|
+
type: 'CheckboxAttribute',
|
|
355
|
+
instance: 'CheckboxInstance',
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
name: 'CheckboxGroup',
|
|
359
|
+
type: 'CheckboxGroupAttribute',
|
|
360
|
+
instance: 'CheckboxGroupInstance',
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
name: 'Circle',
|
|
364
|
+
type: 'CircleAttribute',
|
|
365
|
+
instance: 'CircleInstance',
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
name: 'ColorPicker',
|
|
369
|
+
type: 'ColorPickerAttribute',
|
|
370
|
+
instance: 'ColorPickerInstance',
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
name: 'ColorPickerDialog',
|
|
374
|
+
type: 'ColorPickerDialogAttribute',
|
|
375
|
+
instance: 'ColorPickerDialogInstance',
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
name: 'Column',
|
|
379
|
+
type: 'ColumnAttribute',
|
|
380
|
+
instance: 'ColumnInstance',
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
name: 'ColumnSplit',
|
|
384
|
+
type: 'ColumnSplitAttribute',
|
|
385
|
+
instance: 'ColumnSplitInstance',
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
name: 'Counter',
|
|
389
|
+
type: 'CounterAttribute',
|
|
390
|
+
instance: 'CounterInstance',
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
name: 'DataPanel',
|
|
394
|
+
type: 'DataPanelAttribute',
|
|
395
|
+
instance: 'DataPanelInstance',
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
name: 'DatePicker',
|
|
399
|
+
type: 'DatePickerAttribute',
|
|
400
|
+
instance: 'DatePickerInstance',
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
name: 'Divider',
|
|
404
|
+
type: 'DividerAttribute',
|
|
405
|
+
instance: 'DividerInstance',
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
name: 'EffectComponent',
|
|
409
|
+
type: 'EffectComponentAttribute',
|
|
410
|
+
instance: 'EffectComponentInstance',
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
name: 'Ellipse',
|
|
414
|
+
type: 'EllipseAttribute',
|
|
415
|
+
instance: 'EllipseInstance',
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
name: 'EmbeddedComponent',
|
|
419
|
+
type: 'EmbeddedComponentAttribute',
|
|
420
|
+
instance: 'EmbeddedComponentInstance',
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
name: 'Flex',
|
|
424
|
+
type: 'FlexAttribute',
|
|
425
|
+
instance: 'FlexInstance',
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
name: 'FolderStack',
|
|
429
|
+
type: 'FolderStackAttribute',
|
|
430
|
+
instance: 'FolderStackInstance',
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
name: 'FormComponent',
|
|
434
|
+
type: 'FormComponentAttribute',
|
|
435
|
+
instance: 'FormComponentInstance',
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
name: 'FormLink',
|
|
439
|
+
type: 'FormLinkAttribute',
|
|
440
|
+
instance: 'FormLinkInstance',
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
name: 'Gauge',
|
|
444
|
+
type: 'GaugeAttribute',
|
|
445
|
+
instance: 'GaugeInstance',
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
name: 'GeometryView',
|
|
449
|
+
type: 'GeometryViewAttribute',
|
|
450
|
+
instance: 'GeometryViewInstance',
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
name: 'Grid',
|
|
454
|
+
type: 'GridAttribute',
|
|
455
|
+
instance: 'GridInstance',
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
name: 'GridItem',
|
|
459
|
+
type: 'GridItemAttribute',
|
|
460
|
+
instance: 'GridItemInstance',
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
name: 'GridContainer',
|
|
464
|
+
type: 'GridContainerAttribute',
|
|
465
|
+
instance: 'GridContainerInstance',
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
name: 'Hyperlink',
|
|
469
|
+
type: 'HyperlinkAttribute',
|
|
470
|
+
instance: 'HyperlinkInstance',
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
name: 'Image',
|
|
474
|
+
type: 'ImageAttribute',
|
|
475
|
+
instance: 'ImageInstance',
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
name: 'ImageAnimator',
|
|
479
|
+
type: 'ImageAnimatorAttribute',
|
|
480
|
+
instance: 'ImageAnimatorInstance',
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
name: 'Line',
|
|
484
|
+
type: 'LineAttribute',
|
|
485
|
+
instance: 'LineInstance',
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
name: 'List',
|
|
489
|
+
type: 'ListAttribute',
|
|
490
|
+
instance: 'ListInstance',
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
name: 'ListItem',
|
|
494
|
+
type: 'ListItemAttribute',
|
|
495
|
+
instance: 'ListItemInstance',
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
name: 'ListItemGroup',
|
|
499
|
+
type: 'ListItemGroupAttribute',
|
|
500
|
+
instance: 'ListItemGroupInstance',
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
name: 'LoadingProgress',
|
|
504
|
+
type: 'LoadingProgressAttribute',
|
|
505
|
+
instance: 'LoadingProgressInstance',
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
name: 'Marquee',
|
|
509
|
+
type: 'MarqueeAttribute',
|
|
510
|
+
instance: 'MarqueeInstance',
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
name: 'MediaCachedImage',
|
|
514
|
+
type: 'MediaCachedImageAttribute',
|
|
515
|
+
instance: 'MediaCachedImageInstance',
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
name: 'Menu',
|
|
519
|
+
type: 'MenuAttribute',
|
|
520
|
+
instance: 'MenuInstance',
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
name: 'MenuItem',
|
|
524
|
+
type: 'MenuItemAttribute',
|
|
525
|
+
instance: 'MenuItemInstance',
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
name: 'MenuItemGroup',
|
|
529
|
+
type: 'MenuItemGroupAttribute',
|
|
530
|
+
instance: 'MenuItemGroupInstance',
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
name: 'MovingPhotoView',
|
|
534
|
+
type: 'MovingPhotoViewAttribute',
|
|
535
|
+
instance: 'MovingPhotoViewInstance',
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
name: 'NavDestination',
|
|
539
|
+
type: 'NavDestinationAttribute',
|
|
540
|
+
instance: 'NavDestinationInstance',
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
name: 'NavRouter',
|
|
544
|
+
type: 'NavRouterAttribute',
|
|
545
|
+
instance: 'NavRouterInstance',
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
name: 'Navigation',
|
|
549
|
+
type: 'NavigationAttribute',
|
|
550
|
+
instance: 'NavigationInstance',
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
name: 'Navigator',
|
|
554
|
+
type: 'NavigatorAttribute',
|
|
555
|
+
instance: 'NavigatorInstance',
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
name: 'NodeContainer',
|
|
559
|
+
type: 'NodeContainerAttribute',
|
|
560
|
+
instance: 'NodeContainerInstance',
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
name: 'Option',
|
|
564
|
+
type: 'OptionAttribute',
|
|
565
|
+
instance: 'OptionInstance',
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
name: 'PageTransitionEnter',
|
|
569
|
+
type: 'PageTransitionEnterAttribute',
|
|
570
|
+
instance: 'PageTransitionEnterInstance',
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
name: 'PageTransitionExit',
|
|
574
|
+
type: 'PageTransitionExitAttribute',
|
|
575
|
+
instance: 'PageTransitionExitInstance',
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
name: 'Panel',
|
|
579
|
+
type: 'PanelAttribute',
|
|
580
|
+
instance: 'PanelInstance',
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
name: 'Particle',
|
|
584
|
+
type: 'ParticleAttribute',
|
|
585
|
+
instance: 'ParticleInstance',
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
name: 'Path',
|
|
589
|
+
type: 'PathAttribute',
|
|
590
|
+
instance: 'PathInstance',
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
name: 'PatternLock',
|
|
594
|
+
type: 'PatternLockAttribute',
|
|
595
|
+
instance: 'PatternLockInstance',
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
name: 'Piece',
|
|
599
|
+
type: 'PieceAttribute',
|
|
600
|
+
instance: 'PieceInstance',
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
name: 'PluginComponent',
|
|
604
|
+
type: 'PluginComponentAttribute',
|
|
605
|
+
instance: 'PluginComponentInstance',
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
name: 'Polygon',
|
|
609
|
+
type: 'PolygonAttribute',
|
|
610
|
+
instance: 'PolygonInstance',
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
name: 'Polyline',
|
|
614
|
+
type: 'PolylineAttribute',
|
|
615
|
+
instance: 'PolylineInstance',
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
name: 'Progress',
|
|
619
|
+
type: 'ProgressAttribute',
|
|
620
|
+
instance: 'ProgressInstance',
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
name: 'QRCode',
|
|
624
|
+
type: 'QRCodeAttribute',
|
|
625
|
+
instance: 'QRCodeInstance',
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
name: 'Radio',
|
|
629
|
+
type: 'RadioAttribute',
|
|
630
|
+
instance: 'RadioInstance',
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
name: 'Rating',
|
|
634
|
+
type: 'RatingAttribute',
|
|
635
|
+
instance: 'RatingInstance',
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
name: 'Rect',
|
|
639
|
+
type: 'RectAttribute',
|
|
640
|
+
instance: 'RectInstance',
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
name: 'RelativeContainer',
|
|
644
|
+
type: 'RelativeContainerAttribute',
|
|
645
|
+
instance: 'RelativeContainerInstance',
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
name: 'Refresh',
|
|
649
|
+
type: 'RefreshAttribute',
|
|
650
|
+
instance: 'RefreshInstance',
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
name: 'RemoteWindow',
|
|
654
|
+
type: 'RemoteWindowAttribute',
|
|
655
|
+
instance: 'RemoteWindowInstance',
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
name: 'RootScene',
|
|
659
|
+
type: 'RootSceneAttribute',
|
|
660
|
+
instance: 'RootSceneInstance',
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
name: 'Row',
|
|
664
|
+
type: 'RowAttribute',
|
|
665
|
+
instance: 'RowInstance',
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
name: 'RowSplit',
|
|
669
|
+
type: 'RowSplitAttribute',
|
|
670
|
+
instance: 'RowSplitInstance',
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
name: 'RichText',
|
|
674
|
+
type: 'RichTextAttribute',
|
|
675
|
+
instance: 'RichTextInstance',
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
name: 'Screen',
|
|
679
|
+
type: 'ScreenAttribute',
|
|
680
|
+
instance: 'ScreenInstance',
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
name: 'Scroll',
|
|
684
|
+
type: 'ScrollAttribute',
|
|
685
|
+
instance: 'ScrollInstance',
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
name: 'ScrollBar',
|
|
689
|
+
type: 'ScrollBarAttribute',
|
|
690
|
+
instance: 'ScrollBarInstance',
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
name: 'Search',
|
|
694
|
+
type: 'SearchAttribute',
|
|
695
|
+
instance: 'SearchInstance',
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
name: 'Section',
|
|
699
|
+
type: 'SectionAttribute',
|
|
700
|
+
instance: 'SectionInstance',
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
name: 'Select',
|
|
704
|
+
type: 'SelectAttribute',
|
|
705
|
+
instance: 'SelectInstance',
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
name: 'Shape',
|
|
709
|
+
type: 'ShapeAttribute',
|
|
710
|
+
instance: 'ShapeInstance',
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
name: 'Sheet',
|
|
714
|
+
type: 'SheetAttribute',
|
|
715
|
+
instance: 'SheetInstance',
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
name: 'SideBarContainer',
|
|
719
|
+
type: 'SideBarContainerAttribute',
|
|
720
|
+
instance: 'SideBarContainerInstance',
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
name: 'Slider',
|
|
724
|
+
type: 'SliderAttribute',
|
|
725
|
+
instance: 'SliderInstance',
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
name: 'Span',
|
|
729
|
+
type: 'SpanAttribute',
|
|
730
|
+
instance: 'SpanInstance',
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
name: 'Stack',
|
|
734
|
+
type: 'StackAttribute',
|
|
735
|
+
instance: 'StackInstance',
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
name: 'Stepper',
|
|
739
|
+
type: 'StepperAttribute',
|
|
740
|
+
instance: 'StepperInstance',
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
name: 'StepperItem',
|
|
744
|
+
type: 'StepperItemAttribute',
|
|
745
|
+
instance: 'StepperItemInstance',
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
name: 'Swiper',
|
|
749
|
+
type: 'SwiperAttribute',
|
|
750
|
+
instance: 'SwiperInstance',
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
name: 'SymbolGlyph',
|
|
754
|
+
type: 'SymbolGlyphAttribute',
|
|
755
|
+
instance: 'SymbolGlyphInstance',
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
name: 'SymbolSpan',
|
|
759
|
+
type: 'SymbolSpanAttribute',
|
|
760
|
+
instance: 'SymbolSpanInstance',
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
name: 'TabContent',
|
|
764
|
+
type: 'TabContentAttribute',
|
|
765
|
+
instance: 'TabContentInstance',
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
name: 'Tabs',
|
|
769
|
+
type: 'TabsAttribute',
|
|
770
|
+
instance: 'TabsInstance',
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
name: 'Text',
|
|
774
|
+
type: 'TextAttribute',
|
|
775
|
+
instance: 'TextInstance',
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
name: 'TextPicker',
|
|
779
|
+
type: 'TextPickerAttribute',
|
|
780
|
+
instance: 'TextPickerInstance',
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
name: 'TextClock',
|
|
784
|
+
type: 'TextClockAttribute',
|
|
785
|
+
instance: 'TextClockInstance',
|
|
786
|
+
},
|
|
787
|
+
{
|
|
788
|
+
name: 'TextArea',
|
|
789
|
+
type: 'TextAreaAttribute',
|
|
790
|
+
instance: 'TextAreaInstance',
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
name: 'TextInput',
|
|
794
|
+
type: 'TextInputAttribute',
|
|
795
|
+
instance: 'TextInputInstance',
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
name: 'TextTimer',
|
|
799
|
+
type: 'TextTimerAttribute',
|
|
800
|
+
instance: 'TextTimerInstance',
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
name: 'TimePicker',
|
|
804
|
+
type: 'TimePickerAttribute',
|
|
805
|
+
instance: 'TimePickerInstance',
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
name: 'Toggle',
|
|
809
|
+
type: 'ToggleAttribute',
|
|
810
|
+
instance: 'ToggleInstance',
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
name: 'Video',
|
|
814
|
+
type: 'VideoAttribute',
|
|
815
|
+
instance: 'VideoInstance',
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
name: 'Web',
|
|
819
|
+
type: 'WebAttribute',
|
|
820
|
+
instance: 'WebInstance',
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
name: 'WindowScene',
|
|
824
|
+
type: 'WindowSceneAttribute',
|
|
825
|
+
instance: 'WindowSceneInstance',
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
name: 'XComponent',
|
|
829
|
+
type: 'XComponentAttribute',
|
|
830
|
+
instance: 'XComponentInstance',
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
name: 'GridRow',
|
|
834
|
+
type: 'GridRowAttribute',
|
|
835
|
+
instance: 'GridRowInstance',
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
name: 'GridCol',
|
|
839
|
+
type: 'GridColAttribute',
|
|
840
|
+
instance: 'GridColInstance',
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
name: 'WaterFlow',
|
|
844
|
+
type: 'WaterFlowAttribute',
|
|
845
|
+
instance: 'WaterFlowInstance',
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
name: 'FlowItem',
|
|
849
|
+
type: 'FlowItemAttribute',
|
|
850
|
+
instance: 'FlowItemInstance',
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
name: 'ImageSpan',
|
|
854
|
+
type: 'ImageSpanAttribute',
|
|
855
|
+
instance: 'ImageSpanInstance',
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
name: 'LocationButton',
|
|
859
|
+
type: 'LocationButtonAttribute',
|
|
860
|
+
instance: 'LocationButtonInstance',
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
name: 'PasteButton',
|
|
864
|
+
type: 'PasteButtonAttribute',
|
|
865
|
+
instance: 'PasteButtonInstance',
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
name: 'SaveButton',
|
|
869
|
+
type: 'SaveButtonAttribute',
|
|
870
|
+
instance: 'SaveButtonInstance',
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
name: 'UIExtensionComponent',
|
|
874
|
+
type: 'UIExtensionComponentAttribute',
|
|
875
|
+
instance: 'UIExtensionComponentInstance',
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
name: 'IsolatedComponent',
|
|
879
|
+
type: 'IsolatedComponentAttribute',
|
|
880
|
+
instance: 'IsolatedComponentInstance',
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
name: 'RichEditor',
|
|
884
|
+
type: 'RichEditorAttribute',
|
|
885
|
+
instance: 'RichEditorInstance',
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
name: 'Component3D',
|
|
889
|
+
type: 'Component3DAttribute',
|
|
890
|
+
instance: 'Component3DInstance',
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
name: 'ContainerSpan',
|
|
894
|
+
type: 'ContainerSpanAttribute',
|
|
895
|
+
instance: 'ContainerSpanInstance',
|
|
896
|
+
},
|
|
897
|
+
],
|
|
898
|
+
},
|
|
899
|
+
styles: {
|
|
900
|
+
decorator: 'Styles',
|
|
901
|
+
component: {
|
|
902
|
+
name: 'Common',
|
|
903
|
+
type: 'T',
|
|
904
|
+
instance: 'CommonInstance',
|
|
905
|
+
},
|
|
906
|
+
property: 'stateStyles',
|
|
907
|
+
},
|
|
908
|
+
concurrent: {
|
|
909
|
+
decorator: 'Concurrent',
|
|
910
|
+
},
|
|
911
|
+
customComponent: 'CustomComponent',
|
|
912
|
+
syntaxComponents: {
|
|
913
|
+
paramsUICallback: ['ForEach', 'LazyForEach'],
|
|
914
|
+
attrUICallback: [
|
|
915
|
+
{
|
|
916
|
+
name: 'Repeat',
|
|
917
|
+
attributes: ['each', 'template'],
|
|
918
|
+
},
|
|
919
|
+
],
|
|
920
|
+
},
|
|
921
|
+
libs: [],
|
|
922
|
+
},
|
|
923
|
+
};
|
|
924
|
+
exports.COMPONENT_FOR_EACH = 'ForEach';
|
|
925
|
+
exports.COMPONENT_LAZY_FOR_EACH = 'LazyForEach';
|
|
926
|
+
exports.BUILDIN_SYSTEM_COMPONENT = new Set([
|
|
927
|
+
...exports.ETS_COMPILER_OPTIONS.ets.components,
|
|
928
|
+
exports.COMPONENT_FOR_EACH,
|
|
929
|
+
exports.COMPONENT_LAZY_FOR_EACH,
|
|
930
|
+
]);
|
|
931
|
+
exports.BUILDIN_ATOMIC_COMPONENT = new Set([
|
|
932
|
+
'AbilityComponent',
|
|
933
|
+
'AlphabetIndexer',
|
|
934
|
+
'Animator',
|
|
935
|
+
'Blank',
|
|
936
|
+
'CalendarPicker',
|
|
937
|
+
'Camera',
|
|
938
|
+
'Circle',
|
|
939
|
+
'Component3D',
|
|
940
|
+
'ContentSlot',
|
|
941
|
+
'Divider',
|
|
942
|
+
'Ellipse',
|
|
943
|
+
'EmbeddedComponent',
|
|
944
|
+
'FormComponent',
|
|
945
|
+
'FrictionMotion',
|
|
946
|
+
'GeometryView',
|
|
947
|
+
'Image',
|
|
948
|
+
'ImageAnimator',
|
|
949
|
+
'ImageSpan',
|
|
950
|
+
'Line',
|
|
951
|
+
'LoadingProgress',
|
|
952
|
+
'LocationButton',
|
|
953
|
+
'Marquee',
|
|
954
|
+
'MediaCachedImage',
|
|
955
|
+
'NodeContainer',
|
|
956
|
+
'PageTransitionEnter',
|
|
957
|
+
'PageTransitionExit',
|
|
958
|
+
'Particle',
|
|
959
|
+
'PasteButton',
|
|
960
|
+
'Path',
|
|
961
|
+
'PatternLock',
|
|
962
|
+
'Polygon',
|
|
963
|
+
'Polyline',
|
|
964
|
+
'Progress',
|
|
965
|
+
'Radio',
|
|
966
|
+
'Rect',
|
|
967
|
+
'RemoteWindow',
|
|
968
|
+
'RichEditor',
|
|
969
|
+
'RichText',
|
|
970
|
+
'SaveButton',
|
|
971
|
+
'ScrollMotion',
|
|
972
|
+
'Search',
|
|
973
|
+
'Slider',
|
|
974
|
+
'Span',
|
|
975
|
+
'SpringMotion',
|
|
976
|
+
'SpringProp',
|
|
977
|
+
'SymbolSpan',
|
|
978
|
+
'SymbolGlyph',
|
|
979
|
+
'TextArea',
|
|
980
|
+
'TextInput',
|
|
981
|
+
'UIExtensionComponent',
|
|
982
|
+
'Video',
|
|
983
|
+
'Web',
|
|
984
|
+
]);
|
|
985
|
+
exports.COMPONENT_DECORATOR = new Set(['Reusable', 'Component', 'ComponentV2', 'CustomDialog']);
|
|
986
|
+
exports.ENTRY_DECORATOR = 'Entry';
|
|
987
|
+
exports.BUILDER_DECORATOR = 'Builder';
|
|
988
|
+
exports.BUILDER_PARAM_DECORATOR = 'BuilderParam';
|
|
989
|
+
function isEtsAtomicComponent(name) {
|
|
990
|
+
return exports.BUILDIN_ATOMIC_COMPONENT.has(name);
|
|
991
|
+
}
|
|
992
|
+
exports.isEtsAtomicComponent = isEtsAtomicComponent;
|
|
993
|
+
function isEtsSystemComponent(name) {
|
|
994
|
+
return exports.BUILDIN_SYSTEM_COMPONENT.has(name);
|
|
995
|
+
}
|
|
996
|
+
exports.isEtsSystemComponent = isEtsSystemComponent;
|
|
997
|
+
function isEtsContainerComponent(name) {
|
|
998
|
+
return isEtsSystemComponent(name) && !isEtsAtomicComponent(name);
|
|
999
|
+
}
|
|
1000
|
+
exports.isEtsContainerComponent = isEtsContainerComponent;
|
|
1001
|
+
exports.COMPONENT_CREATE_FUNCTION = 'create';
|
|
1002
|
+
exports.COMPONENT_POP_FUNCTION = 'pop';
|
|
1003
|
+
exports.COMPONENT_CUSTOMVIEW = 'View';
|
|
1004
|
+
exports.COMPONENT_REPEAT = 'Repeat';
|
|
1005
|
+
exports.COMPONENT_IF = 'If';
|
|
1006
|
+
exports.COMPONENT_IF_BRANCH = 'IfBranch';
|
|
1007
|
+
exports.COMPONENT_BRANCH_FUNCTION = 'branch';
|
|
1008
|
+
exports.COMPONENT_BUILD_FUNCTION = 'build';
|
|
1009
|
+
exports.SPECIAL_CONTAINER_COMPONENT = new Set([
|
|
1010
|
+
exports.COMPONENT_IF,
|
|
1011
|
+
exports.COMPONENT_IF_BRANCH,
|
|
1012
|
+
exports.COMPONENT_CUSTOMVIEW,
|
|
1013
|
+
exports.COMPONENT_REPEAT,
|
|
1014
|
+
]);
|
|
1015
|
+
exports.COMPONENT_COMMON = 'Common';
|
|
1016
|
+
exports.COMPONENT_INSTANCE = 'Instance';
|
|
1017
|
+
exports.COMPONENT_ATTRIBUTE = 'Attribute';
|
|
1018
|
+
exports.CALL_BACK = 'Callback';
|
|
1019
|
+
exports.ON_OFF = new Set(['on', 'off']);
|
|
1020
|
+
exports.OH_PACKAGE_JSON5 = 'oh-package.json5';
|
|
1021
|
+
exports.BUILD_PROFILE_JSON5 = 'build-profile.json5';
|