@lcap/nasl 2.20.0-beta.1 → 2.20.0-beta.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.
Files changed (308) hide show
  1. package/out/automate/engine/index.d.ts +1 -1
  2. package/out/automate/engine/index.js +7 -7
  3. package/out/automate/engine/index.js.map +1 -1
  4. package/out/automate/engine/uniqueName.d.ts +1 -1
  5. package/out/automate/engine/uniqueName.js +3 -3
  6. package/out/automate/engine/uniqueName.js.map +1 -1
  7. package/out/automate/template/myProcess.js +1 -1
  8. package/out/automate/template/myProcess.js.map +1 -1
  9. package/out/bak/translator.js +38 -85
  10. package/out/bak/translator.js.map +1 -1
  11. package/out/common/BaseNode.d.ts +10 -6
  12. package/out/common/BaseNode.js +53 -7
  13. package/out/common/BaseNode.js.map +1 -1
  14. package/out/concepts/AnonymousFunction__.d.ts +1 -0
  15. package/out/concepts/AnonymousFunction__.js +40 -2
  16. package/out/concepts/AnonymousFunction__.js.map +1 -1
  17. package/out/concepts/App__.d.ts +89 -261
  18. package/out/concepts/App__.js +315 -367
  19. package/out/concepts/App__.js.map +1 -1
  20. package/out/concepts/Assignee__.js.map +1 -1
  21. package/out/concepts/AssignmentLine__.d.ts +5 -5
  22. package/out/concepts/AssignmentLine__.js +6 -6
  23. package/out/concepts/AssignmentLine__.js.map +1 -1
  24. package/out/concepts/Assignment__.js +1 -2
  25. package/out/concepts/Assignment__.js.map +1 -1
  26. package/out/concepts/BatchAssignment__.d.ts +62 -60
  27. package/out/concepts/BatchAssignment__.js +113 -42
  28. package/out/concepts/BatchAssignment__.js.map +1 -1
  29. package/out/concepts/BindAttribute__.d.ts +24 -0
  30. package/out/concepts/BindAttribute__.js +54 -4
  31. package/out/concepts/BindAttribute__.js.map +1 -1
  32. package/out/concepts/BindDirective__.d.ts +5 -0
  33. package/out/concepts/BindDirective__.js +6 -0
  34. package/out/concepts/BindDirective__.js.map +1 -1
  35. package/out/concepts/BindEvent__.d.ts +5 -0
  36. package/out/concepts/BindEvent__.js +6 -0
  37. package/out/concepts/BindEvent__.js.map +1 -1
  38. package/out/concepts/BindStyle__.d.ts +7 -2
  39. package/out/concepts/BindStyle__.js +9 -3
  40. package/out/concepts/BindStyle__.js.map +1 -1
  41. package/out/concepts/BooleanLiteral__.js +0 -8
  42. package/out/concepts/BooleanLiteral__.js.map +1 -1
  43. package/out/concepts/CallFunction__.js +90 -38
  44. package/out/concepts/CallFunction__.js.map +1 -1
  45. package/out/concepts/CallInterface__.d.ts +7 -0
  46. package/out/concepts/CallInterface__.js +54 -7
  47. package/out/concepts/CallInterface__.js.map +1 -1
  48. package/out/concepts/CallLogic__.d.ts +2 -1
  49. package/out/concepts/CallLogic__.js +171 -37
  50. package/out/concepts/CallLogic__.js.map +1 -1
  51. package/out/concepts/CallQueryComponent__.js +16 -1
  52. package/out/concepts/CallQueryComponent__.js.map +1 -1
  53. package/out/concepts/CompletionProperty__.js +3 -0
  54. package/out/concepts/CompletionProperty__.js.map +1 -1
  55. package/out/concepts/ConfigGroup__.js.map +1 -1
  56. package/out/concepts/ConfigProperty__.js.map +1 -1
  57. package/out/concepts/Configuration__.js.map +1 -1
  58. package/out/concepts/Constant__.d.ts +5 -0
  59. package/out/concepts/Constant__.js +6 -0
  60. package/out/concepts/Constant__.js.map +1 -1
  61. package/out/concepts/DataSource__.d.ts +8 -0
  62. package/out/concepts/DataSource__.js +96 -1
  63. package/out/concepts/DataSource__.js.map +1 -1
  64. package/out/concepts/Destination__.d.ts +11 -2
  65. package/out/concepts/Destination__.js +156 -51
  66. package/out/concepts/Destination__.js.map +1 -1
  67. package/out/concepts/EntityProperty__.d.ts +21 -8
  68. package/out/concepts/EntityProperty__.js +109 -23
  69. package/out/concepts/EntityProperty__.js.map +1 -1
  70. package/out/concepts/Entity__.d.ts +32 -0
  71. package/out/concepts/Entity__.js +117 -2
  72. package/out/concepts/Entity__.js.map +1 -1
  73. package/out/concepts/Enum__.js +0 -4
  74. package/out/concepts/Enum__.js.map +1 -1
  75. package/out/concepts/Event__.js.map +1 -1
  76. package/out/concepts/ExternalDestination__.d.ts +73 -0
  77. package/out/concepts/ExternalDestination__.js +264 -0
  78. package/out/concepts/ExternalDestination__.js.map +1 -0
  79. package/out/concepts/ForEachStatement__.d.ts +0 -4
  80. package/out/concepts/ForEachStatement__.js +4 -8
  81. package/out/concepts/ForEachStatement__.js.map +1 -1
  82. package/out/concepts/Frontend__.d.ts +370 -0
  83. package/out/concepts/Frontend__.js +669 -0
  84. package/out/concepts/Frontend__.js.map +1 -0
  85. package/out/concepts/Function__.js.map +1 -1
  86. package/out/concepts/Identifier__.d.ts +1 -0
  87. package/out/concepts/Identifier__.js +33 -10
  88. package/out/concepts/Identifier__.js.map +1 -1
  89. package/out/concepts/IfStatement__.d.ts +8 -0
  90. package/out/concepts/IfStatement__.js +22 -0
  91. package/out/concepts/IfStatement__.js.map +1 -1
  92. package/out/concepts/InterfaceParam__.js.map +1 -1
  93. package/out/concepts/Interface__.js.map +1 -1
  94. package/out/concepts/LogicItem__.d.ts +6 -1
  95. package/out/concepts/LogicItem__.js +6 -0
  96. package/out/concepts/LogicItem__.js.map +1 -1
  97. package/out/concepts/Logic__.d.ts +91 -80
  98. package/out/concepts/Logic__.js +178 -59
  99. package/out/concepts/Logic__.js.map +1 -1
  100. package/out/concepts/MatchCase__.d.ts +1 -1
  101. package/out/concepts/MatchCase__.js +15 -8
  102. package/out/concepts/MatchCase__.js.map +1 -1
  103. package/out/concepts/Match__.d.ts +21 -19
  104. package/out/concepts/Match__.js +118 -26
  105. package/out/concepts/Match__.js.map +1 -1
  106. package/out/concepts/MemberExpression__.d.ts +4 -1
  107. package/out/concepts/MemberExpression__.js +30 -15
  108. package/out/concepts/MemberExpression__.js.map +1 -1
  109. package/out/concepts/Module__.js.map +1 -1
  110. package/out/concepts/Namespace__.js.map +1 -1
  111. package/out/concepts/NewComposite__.d.ts +345 -0
  112. package/out/concepts/NewComposite__.js +1068 -0
  113. package/out/concepts/NewComposite__.js.map +1 -0
  114. package/out/concepts/NewList__.d.ts +130 -0
  115. package/out/concepts/NewList__.js +349 -0
  116. package/out/concepts/NewList__.js.map +1 -0
  117. package/out/concepts/NewMap__.d.ts +221 -0
  118. package/out/concepts/NewMap__.js +480 -0
  119. package/out/concepts/NewMap__.js.map +1 -0
  120. package/out/concepts/New__.d.ts +19 -0
  121. package/out/concepts/New__.js +66 -0
  122. package/out/concepts/New__.js.map +1 -0
  123. package/out/concepts/NumericLiteral__.js +1 -1
  124. package/out/concepts/NumericLiteral__.js.map +1 -1
  125. package/out/concepts/OqlQueryComponent__.d.ts +7 -3
  126. package/out/concepts/OqlQueryComponent__.js +56 -95
  127. package/out/concepts/OqlQueryComponent__.js.map +1 -1
  128. package/out/concepts/Param__.d.ts +8 -1
  129. package/out/concepts/Param__.js +85 -6
  130. package/out/concepts/Param__.js.map +1 -1
  131. package/out/concepts/ProcessComponent__.js.map +1 -1
  132. package/out/concepts/ProcessElement__.js +42 -13
  133. package/out/concepts/ProcessElement__.js.map +1 -1
  134. package/out/concepts/ProcessOutcomes__.d.ts +30 -0
  135. package/out/concepts/ProcessOutcomes__.js +87 -0
  136. package/out/concepts/ProcessOutcomes__.js.map +1 -0
  137. package/out/concepts/Process__.d.ts +4 -20
  138. package/out/concepts/Process__.js +0 -7
  139. package/out/concepts/Process__.js.map +1 -1
  140. package/out/concepts/QueryJoinExpression__.js.map +1 -1
  141. package/out/concepts/QueryOrderByExpression__.d.ts +3 -3
  142. package/out/concepts/QueryOrderByExpression__.js +3 -3
  143. package/out/concepts/QueryOrderByExpression__.js.map +1 -1
  144. package/out/concepts/QuerySelectExpression__.js.map +1 -1
  145. package/out/concepts/Return__.d.ts +5 -0
  146. package/out/concepts/Return__.js +45 -2
  147. package/out/concepts/Return__.js.map +1 -1
  148. package/out/concepts/SelectMembers__.d.ts +1 -1
  149. package/out/concepts/SelectMembers__.js +5 -5
  150. package/out/concepts/SelectMembers__.js.map +1 -1
  151. package/out/concepts/SqlQueryComponent__.d.ts +2 -4
  152. package/out/concepts/SqlQueryComponent__.js +9 -88
  153. package/out/concepts/SqlQueryComponent__.js.map +1 -1
  154. package/out/concepts/StringInterpolation__.d.ts +113 -0
  155. package/out/concepts/StringInterpolation__.js +227 -0
  156. package/out/concepts/StringInterpolation__.js.map +1 -0
  157. package/out/concepts/StringLiteral__.js +0 -7
  158. package/out/concepts/StringLiteral__.js.map +1 -1
  159. package/out/concepts/StructureProperty__.js.map +1 -1
  160. package/out/concepts/Structure__.js.map +1 -1
  161. package/out/concepts/Transactional__.d.ts +5 -0
  162. package/out/concepts/Transactional__.js +6 -0
  163. package/out/concepts/Transactional__.js.map +1 -1
  164. package/out/concepts/TypeAnnotation__.d.ts +4 -0
  165. package/out/concepts/TypeAnnotation__.js +67 -15
  166. package/out/concepts/TypeAnnotation__.js.map +1 -1
  167. package/out/concepts/TypeParam__.d.ts +1 -0
  168. package/out/concepts/TypeParam__.js +2 -0
  169. package/out/concepts/TypeParam__.js.map +1 -1
  170. package/out/concepts/UnaryExpression__.js +6 -9
  171. package/out/concepts/UnaryExpression__.js.map +1 -1
  172. package/out/concepts/ValidationRule__.js +87 -22
  173. package/out/concepts/ValidationRule__.js.map +1 -1
  174. package/out/concepts/Variable__.d.ts +5 -0
  175. package/out/concepts/Variable__.js +46 -3
  176. package/out/concepts/Variable__.js.map +1 -1
  177. package/out/concepts/ViewComponent__.js.map +1 -1
  178. package/out/concepts/ViewElement__.d.ts +35 -29
  179. package/out/concepts/ViewElement__.js +138 -54
  180. package/out/concepts/ViewElement__.js.map +1 -1
  181. package/out/concepts/View__.d.ts +10 -3
  182. package/out/concepts/View__.js +116 -86
  183. package/out/concepts/View__.js.map +1 -1
  184. package/out/concepts/WhileStatement__.js +1 -1
  185. package/out/concepts/WhileStatement__.js.map +1 -1
  186. package/out/concepts/basics/stdlib/nasl.auth.js +1 -1
  187. package/out/concepts/basics/stdlib/nasl.auth.js.map +1 -1
  188. package/out/concepts/basics/stdlib/nasl.browser.js +50 -0
  189. package/out/concepts/basics/stdlib/nasl.browser.js.map +1 -1
  190. package/out/concepts/basics/stdlib/nasl.logging.js +5 -0
  191. package/out/concepts/basics/stdlib/nasl.logging.js.map +1 -1
  192. package/out/concepts/basics/stdlib/nasl.ui.js +38 -4
  193. package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -1
  194. package/out/concepts/basics/stdlib/nasl.util.js +214 -62
  195. package/out/concepts/basics/stdlib/nasl.util.js.map +1 -1
  196. package/out/concepts/index__.d.ts +9 -0
  197. package/out/concepts/index__.js +9 -0
  198. package/out/concepts/index__.js.map +1 -1
  199. package/out/enums/KEYWORDS.d.ts +1 -0
  200. package/out/enums/KEYWORDS.js +9 -1
  201. package/out/enums/KEYWORDS.js.map +1 -1
  202. package/out/generator/genBundleFiles.d.ts +10 -4
  203. package/out/generator/genBundleFiles.js +127 -162
  204. package/out/generator/genBundleFiles.js.map +1 -1
  205. package/out/generator/genMetaData.d.ts +2 -11
  206. package/out/generator/genMetaData.js +185 -51
  207. package/out/generator/genMetaData.js.map +1 -1
  208. package/out/generator/genReleaseBody.d.ts +57 -0
  209. package/out/generator/genReleaseBody.js +380 -0
  210. package/out/generator/genReleaseBody.js.map +1 -0
  211. package/out/generator/index.d.ts +2 -0
  212. package/out/generator/index.js +2 -0
  213. package/out/generator/index.js.map +1 -1
  214. package/out/generator/permission.d.ts +17 -0
  215. package/out/generator/permission.js +221 -0
  216. package/out/generator/permission.js.map +1 -0
  217. package/out/index.d.ts +3 -2
  218. package/out/index.js +7 -1
  219. package/out/index.js.map +1 -1
  220. package/out/server/entity2LogicNamespace.js +100 -20
  221. package/out/server/entity2LogicNamespace.js.map +1 -1
  222. package/out/server/extendBaseNode.js +33 -20
  223. package/out/server/extendBaseNode.js.map +1 -1
  224. package/out/server/formatTsUtils.d.ts +1 -2
  225. package/out/server/formatTsUtils.js +46 -64
  226. package/out/server/formatTsUtils.js.map +1 -1
  227. package/out/server/getLogics.d.ts +2 -1
  228. package/out/server/getLogics.js +24 -6
  229. package/out/server/getLogics.js.map +1 -1
  230. package/out/server/getMemberIdentifier.js +11 -11
  231. package/out/server/getMemberIdentifier.js.map +1 -1
  232. package/out/server/getProcesses.d.ts +1 -1
  233. package/out/server/getProcesses.js +1 -1
  234. package/out/server/getProcesses.js.map +1 -1
  235. package/out/server/index.d.ts +0 -1
  236. package/out/server/index.js +2 -27
  237. package/out/server/index.js.map +1 -1
  238. package/out/server/naslServer.d.ts +50 -8
  239. package/out/server/naslServer.js +816 -429
  240. package/out/server/naslServer.js.map +1 -1
  241. package/out/server/naslStdlibMap.js +30 -28
  242. package/out/server/naslStdlibMap.js.map +1 -1
  243. package/out/server/process2LogicNamespace.js +8 -0
  244. package/out/server/process2LogicNamespace.js.map +1 -1
  245. package/out/server/translator.js +90 -12
  246. package/out/server/translator.js.map +1 -1
  247. package/out/service/creator/add.configs.js +4 -0
  248. package/out/service/creator/add.configs.js.map +1 -1
  249. package/out/service/datasource/api.d.ts +12 -0
  250. package/out/service/datasource/api.js +14 -0
  251. package/out/service/datasource/api.js.map +1 -0
  252. package/out/service/datasource/index.d.ts +2 -0
  253. package/out/service/datasource/index.js +10 -0
  254. package/out/service/datasource/index.js.map +1 -0
  255. package/out/service/defaultErrorMessage.json +97 -0
  256. package/out/service/logic/api.d.ts +9 -0
  257. package/out/service/logic/api.js +11 -0
  258. package/out/service/logic/api.js.map +1 -0
  259. package/out/service/logic/index.d.ts +2 -0
  260. package/out/service/logic/index.js +10 -0
  261. package/out/service/logic/index.js.map +1 -0
  262. package/out/service/storage/init.js +48 -7
  263. package/out/service/storage/init.js.map +1 -1
  264. package/out/templator/genCreateBlock.js +6 -4
  265. package/out/templator/genCreateBlock.js.map +1 -1
  266. package/out/templator/genCurdEditMultipleKeyBlock.js +7 -4
  267. package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
  268. package/out/templator/genCurdMultipleKeyBlock.js +7 -5
  269. package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
  270. package/out/templator/genEditTableBlock.js +4 -5
  271. package/out/templator/genEditTableBlock.js.map +1 -1
  272. package/out/templator/genEnumSelectBlock.js +5 -2
  273. package/out/templator/genEnumSelectBlock.js.map +1 -1
  274. package/out/templator/genGetBlock.js +4 -3
  275. package/out/templator/genGetBlock.js.map +1 -1
  276. package/out/templator/genGridViewBlock.js +18 -16
  277. package/out/templator/genGridViewBlock.js.map +1 -1
  278. package/out/templator/genListViewBlock.js +7 -7
  279. package/out/templator/genListViewBlock.js.map +1 -1
  280. package/out/templator/genQueryComponent.d.ts +2 -2
  281. package/out/templator/genQueryComponent.js +4 -1
  282. package/out/templator/genQueryComponent.js.map +1 -1
  283. package/out/templator/genTableBlock.js +8 -12
  284. package/out/templator/genTableBlock.js.map +1 -1
  285. package/out/templator/genUpdateBlock.js +4 -3
  286. package/out/templator/genUpdateBlock.js.map +1 -1
  287. package/out/templator/utils.js +1 -1
  288. package/out/templator/utils.js.map +1 -1
  289. package/out/test/integration/node-nasl-server.js +10 -38
  290. package/out/test/integration/node-nasl-server.js.map +1 -1
  291. package/out/translator/index.d.ts +1 -0
  292. package/out/translator/index.js +1 -1
  293. package/out/translator/index.js.map +1 -1
  294. package/out/utils/index.d.ts +1 -0
  295. package/out/utils/index.js +38 -1
  296. package/out/utils/index.js.map +1 -1
  297. package/out/utils/string.d.ts +15 -2
  298. package/out/utils/string.js +18 -3
  299. package/out/utils/string.js.map +1 -1
  300. package/package.json +1 -1
  301. package/src/concepts/App__.ts +11 -36
  302. package/src/concepts/Frontend__.ts +8 -0
  303. package/src/concepts/ViewElement__.ts +7 -28
  304. package/src/concepts/View__.ts +1 -1
  305. package/src/generator/permission.ts +1 -1
  306. package/src/server/getLogics.ts +2 -2
  307. package/src/server/naslServer.ts +8 -8
  308. package/src/service/storage/init.ts +3 -4
@@ -0,0 +1,370 @@
1
+ import { TranslatorState } from '../translator';
2
+ import { Params } from '../common/EventEmitter';
3
+ import BaseNode from '../common/BaseNode';
4
+ import View from './View__';
5
+ import Variable from './Variable__';
6
+ import Theme from './Theme__';
7
+ import Module from './Module__';
8
+ import App, { AssetsInfo } from './App__';
9
+ /**
10
+ * 端
11
+ */
12
+ export declare class Frontend extends BaseNode {
13
+ /**
14
+ * 产品概念
15
+ */
16
+ concept: 'Frontend';
17
+ /**
18
+ * 端标识
19
+ */
20
+ name: string;
21
+ /**
22
+ * pc端
23
+ */
24
+ title: string;
25
+ /**
26
+ * PC/H5 端
27
+ */
28
+ type: 'pc' | 'h5';
29
+ /**
30
+ * 基础路径
31
+ */
32
+ path: string;
33
+ /**
34
+ * 制品应用标题
35
+ */
36
+ documentTitle: string;
37
+ /**
38
+ * 制品应用图标
39
+ */
40
+ documentIcon: string;
41
+ /**
42
+ * 页面列表
43
+ */
44
+ views: Array<View>;
45
+ /**
46
+ * 变量列表
47
+ */
48
+ variables: Array<Variable>;
49
+ /**
50
+ * 主题配置
51
+ */
52
+ theme: Theme;
53
+ /**
54
+ * 扩展组件列表(兼容老版)
55
+ */
56
+ componentDependencies: Array<Module>;
57
+ /**
58
+ * 祖先 App
59
+ */
60
+ get app(): App;
61
+ /**
62
+ * @param source 需要合并的部分参数
63
+ */
64
+ constructor(source?: Partial<Frontend>);
65
+ static from(source: any, parentNode?: any, parentKey?: string): Frontend;
66
+ /**
67
+ * 从父级删除该节点
68
+ * @internal
69
+ */
70
+ _delete(): Params;
71
+ /**
72
+ * 设置端标识
73
+ */
74
+ setName(name: string): void;
75
+ /**
76
+ * 设置pc端
77
+ */
78
+ setTitle(title: string): void;
79
+ /**
80
+ * 设置基础路径
81
+ */
82
+ setPath(path: string): void;
83
+ /**
84
+ * 设置制品应用标题
85
+ */
86
+ setDocumentTitle(documentTitle: string): void;
87
+ /**
88
+ * 设置制品应用图标
89
+ */
90
+ setDocumentIcon(documentIcon: string): void;
91
+ getViewExistingNames(excludedList?: Array<View>): string[];
92
+ getViewUniqueName(name?: string): string;
93
+ /**
94
+ * 插入页面
95
+ * @internal
96
+ * @param name 页面名称,如果不填会自动生成一个唯一名称
97
+ */
98
+ _insertViewAt(name: string, index: number): View;
99
+ /**
100
+ * 插入页面
101
+ * @internal
102
+ * @param viewOptions 页面参数
103
+ */
104
+ _insertViewAt(viewOptions: Partial<View>, index: number): View;
105
+ /**
106
+ * 插入页面
107
+ * @internal
108
+ * @param view 已有的页面实例
109
+ */
110
+ _insertViewAt(view: View, index: number): View;
111
+ /**
112
+ * 插入页面
113
+ * @param name 页面名称,如果不填会自动生成一个唯一名称
114
+ */
115
+ insertViewAt(name: string, index: number): View;
116
+ /**
117
+ * 插入页面
118
+ * @param viewOptions 页面参数
119
+ */
120
+ insertViewAt(viewOptions: Partial<View>, index: number): View;
121
+ /**
122
+ * 插入页面
123
+ * @param view 已有的页面实例
124
+ */
125
+ insertViewAt(view: View, index: number): View;
126
+ /**
127
+ * 添加页面
128
+ * @internal
129
+ * @param name 页面名称,如果不填会自动生成一个唯一名称
130
+ */
131
+ _addView(name?: string): View;
132
+ /**
133
+ * 添加页面
134
+ * @internal
135
+ * @param viewOptions 页面参数
136
+ */
137
+ _addView(viewOptions: Partial<View>): View;
138
+ /**
139
+ * 添加页面
140
+ * @internal
141
+ * @param view 已有的页面实例
142
+ */
143
+ _addView(view: View): View;
144
+ /**
145
+ * 添加页面
146
+ * @internal
147
+ * @param name 页面名称,如果不填会自动生成一个唯一名称
148
+ */
149
+ addView(name?: string): View;
150
+ /**
151
+ * 添加页面
152
+ * @param viewOptions 页面参数
153
+ */
154
+ addView(viewOptions: Partial<View>): View;
155
+ /**
156
+ * 添加页面
157
+ * @param view 已有的页面实例
158
+ */
159
+ addView(view: View): View;
160
+ getVarExistingNames(excludedList?: Array<Variable>): string[];
161
+ getVariableUniqueName(name?: string): string;
162
+ /**
163
+ * 插入变量
164
+ * @internal
165
+ * @param name 变量名称,如果不填会自动生成一个唯一名称
166
+ */
167
+ _insertVariableAt(name: string, index: number): Variable;
168
+ /**
169
+ * 插入变量
170
+ * @internal
171
+ * @param variableOptions 变量参数
172
+ */
173
+ _insertVariableAt(variableOptions: Partial<Variable>, index: number): Variable;
174
+ /**
175
+ * 插入变量
176
+ * @internal
177
+ * @param variable 已有的变量实例
178
+ */
179
+ _insertVariableAt(variable: Variable, index: number): Variable;
180
+ /**
181
+ * 插入变量
182
+ * @param name 变量名称,如果不填会自动生成一个唯一名称
183
+ */
184
+ insertVariableAt(name: string, index: number): Variable;
185
+ /**
186
+ * 插入变量
187
+ * @param variableOptions 变量参数
188
+ */
189
+ insertVariableAt(variableOptions: Partial<Variable>, index: number): Variable;
190
+ /**
191
+ * 插入变量
192
+ * @param variable 已有的变量实例
193
+ */
194
+ insertVariableAt(variable: Variable, index: number): Variable;
195
+ /**
196
+ * 添加变量
197
+ * @internal
198
+ * @param name 变量名称,如果不填会自动生成一个唯一名称
199
+ */
200
+ _addVariable(name?: string): Variable;
201
+ /**
202
+ * 添加变量
203
+ * @internal
204
+ * @param variableOptions 变量参数
205
+ */
206
+ _addVariable(variableOptions: Partial<Variable>): Variable;
207
+ /**
208
+ * 添加变量
209
+ * @internal
210
+ * @param variable 已有的变量实例
211
+ */
212
+ _addVariable(variable: Variable): Variable;
213
+ /**
214
+ * 添加变量
215
+ * @internal
216
+ * @param name 变量名称,如果不填会自动生成一个唯一名称
217
+ */
218
+ addVariable(name?: string): Variable;
219
+ /**
220
+ * 添加变量
221
+ * @param variableOptions 变量参数
222
+ */
223
+ addVariable(variableOptions: Partial<Variable>): Variable;
224
+ /**
225
+ * 添加变量
226
+ * @param variable 已有的变量实例
227
+ */
228
+ addVariable(variable: Variable): Variable;
229
+ getModuleExistingNames(excludedList?: Array<Module>): string[];
230
+ getModuleUniqueName(name?: string): string;
231
+ /**
232
+ * 插入模块
233
+ * @internal
234
+ * @param name 模块名称,如果不填会自动生成一个唯一名称
235
+ */
236
+ _insertModuleAt(name: string, index: number): Module;
237
+ /**
238
+ * 插入模块
239
+ * @internal
240
+ * @param moduleOptions 模块参数
241
+ */
242
+ _insertModuleAt(moduleOptions: Partial<Module>, index: number): Module;
243
+ /**
244
+ * 插入模块
245
+ * @internal
246
+ * @param module 已有的模块实例
247
+ */
248
+ _insertModuleAt(module: Module, index: number): Module;
249
+ /**
250
+ * 插入模块
251
+ * @param name 模块名称,如果不填会自动生成一个唯一名称
252
+ */
253
+ insertModuleAt(name: string, index: number): Module;
254
+ /**
255
+ * 插入模块
256
+ * @param moduleOptions 模块参数
257
+ */
258
+ insertModuleAt(moduleOptions: Partial<Module>, index: number): Module;
259
+ /**
260
+ * 插入模块
261
+ * @param module 已有的模块实例
262
+ */
263
+ insertModuleAt(module: Module, index: number): Module;
264
+ /**
265
+ * 添加模块
266
+ * @internal
267
+ * @param name 模块名称,如果不填会自动生成一个唯一名称
268
+ */
269
+ _addModule(name?: string): Module;
270
+ /**
271
+ * 添加模块
272
+ * @internal
273
+ * @param moduleOptions 模块参数
274
+ */
275
+ _addModule(moduleOptions: Partial<Module>): Module;
276
+ /**
277
+ * 添加模块
278
+ * @internal
279
+ * @param module 已有的模块实例
280
+ */
281
+ _addModule(module: Module): Module;
282
+ /**
283
+ * 添加模块
284
+ * @internal
285
+ * @param name 模块名称,如果不填会自动生成一个唯一名称
286
+ */
287
+ addModule(name?: string): Module;
288
+ /**
289
+ * 添加模块
290
+ * @param moduleOptions 模块参数
291
+ */
292
+ addModule(moduleOptions: Partial<Module>): Module;
293
+ /**
294
+ * 添加模块
295
+ * @param module 已有的模块实例
296
+ */
297
+ addModule(module: Module): Module;
298
+ /**
299
+ * 删除页面
300
+ * @param name 页面名称
301
+ */
302
+ removeView(name: string): void;
303
+ /**
304
+ * 删除页面
305
+ * @param view 已有的页面实例
306
+ */
307
+ removeView(view: View): void;
308
+ __removeView(view: View): Params;
309
+ /**
310
+ * 删除变量
311
+ * @param name 变量名称
312
+ */
313
+ removeVariable(name: string): void;
314
+ /**
315
+ * 删除变量
316
+ * @param variable 已有的变量实例
317
+ */
318
+ removeVariable(variable: Variable): void;
319
+ __removeVariable(variable: Variable): Params;
320
+ /**
321
+ * 删除主题
322
+ * @param name 主题名称
323
+ */
324
+ removeTheme(name: string): void;
325
+ /**
326
+ * 删除主题
327
+ * @param theme 已有的主题实例
328
+ */
329
+ removeTheme(theme: Theme): void;
330
+ __removeTheme(theme: Theme): Params;
331
+ /**
332
+ * 删除模块
333
+ * @param name 模块名称
334
+ */
335
+ removeModule(name: string): void;
336
+ /**
337
+ * 删除模块
338
+ * @param module 已有的模块实例
339
+ */
340
+ removeModule(module: Module): void;
341
+ __removeModule(module: Module): Params;
342
+ findComponentDependencyByName(name: string): Module;
343
+ /**
344
+ * @param path 路径
345
+ * path 为要查找路径:如 /dashboard/student/list、/dashboard/student/list
346
+ */
347
+ findViewByPath(path: string): View;
348
+ findViewByName(name: string): View;
349
+ genThemeCSS(): string;
350
+ getNamespace(): string;
351
+ /**
352
+ * 生成宿主语言的文件路径
353
+ * @param name 一般不用传,用于 rename
354
+ */
355
+ getEmbeddedFilePath(name?: string): string;
356
+ toEmbeddedTS(state?: TranslatorState): string;
357
+ toEmbeddedTSFile(): {
358
+ code: string;
359
+ filePath: string;
360
+ sourceMap: import("../translator").SourceMap;
361
+ };
362
+ getPath(): string;
363
+ /**
364
+ * 为/的转成'',便于url拼接
365
+ */
366
+ get basePath(): string;
367
+ genCustomAssetsInfo(prefix: string): AssetsInfo;
368
+ getExtensionsCallbackLogics(): string[];
369
+ }
370
+ export default Frontend;