@lcap/nasl 3.8.3-beta.1 → 3.8.3-beta.2

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 (812) hide show
  1. package/.nyc_output/943352aa-23df-44e0-863b-3dcd3e8bf57a.json +1 -0
  2. package/.nyc_output/processinfo/943352aa-23df-44e0-863b-3dcd3e8bf57a.json +1 -0
  3. package/.nyc_output/processinfo/index.json +1 -1
  4. package/coverage/cobertura-coverage.xml +66121 -10220
  5. package/coverage/index.html +50 -395
  6. package/coverage/src/automate/engine/index.html +19 -19
  7. package/coverage/src/automate/engine/utils.js.html +101 -101
  8. package/coverage/src/bak/index.html +19 -19
  9. package/coverage/src/bak/translator.js.html +96 -141
  10. package/coverage/src/breakpoint/generator/AfterStartNode.ts.html +13 -13
  11. package/coverage/src/breakpoint/generator/BeforeEndNode.ts.html +13 -13
  12. package/coverage/src/breakpoint/generator/BreakpointNode.ts.html +29 -29
  13. package/coverage/src/breakpoint/generator/CallbackNode.ts.html +10 -10
  14. package/coverage/src/breakpoint/generator/index.html +47 -47
  15. package/coverage/src/breakpoint/generator/index.ts.html +20 -20
  16. package/coverage/src/breakpoint/index.html +7 -7
  17. package/coverage/src/breakpoint/index.ts.html +6 -6
  18. package/coverage/src/breakpoint/shared/constants.ts.html +7 -7
  19. package/coverage/src/breakpoint/shared/index.html +45 -45
  20. package/coverage/src/breakpoint/shared/index.ts.html +5 -5
  21. package/coverage/src/breakpoint/shared/operations.ts.html +15 -15
  22. package/coverage/src/breakpoint/shared/socket.ts.html +85 -85
  23. package/coverage/src/breakpoint/shared/utils.ts.html +49 -49
  24. package/coverage/src/breakpoint/store/core.ts.html +100 -100
  25. package/coverage/src/breakpoint/store/dock.ts.html +46 -46
  26. package/coverage/src/breakpoint/store/index.html +33 -33
  27. package/coverage/src/breakpoint/store/index.ts.html +7 -7
  28. package/coverage/src/common/BaseNode.ts.html +350 -1187
  29. package/coverage/src/common/Command.ts.html +20 -20
  30. package/coverage/src/common/EventEmitter.ts.html +31 -49
  31. package/coverage/src/common/Messager.ts.html +28 -28
  32. package/coverage/src/common/asyncFuncMap.ts.html +7 -7
  33. package/coverage/src/common/index.html +55 -70
  34. package/coverage/src/common/index.ts.html +8 -11
  35. package/coverage/src/concepts/Abort__.ts.html +20 -56
  36. package/coverage/src/concepts/Anchor__.ts.html +51 -117
  37. package/coverage/src/concepts/AnonymousFunction__.ts.html +232 -343
  38. package/coverage/src/concepts/App__.ts.html +1283 -2681
  39. package/coverage/src/concepts/Argument__.ts.html +135 -135
  40. package/coverage/src/concepts/Assignee__.ts.html +91 -250
  41. package/coverage/src/concepts/AssignmentLine__.ts.html +28 -88
  42. package/coverage/src/concepts/Assignment__.ts.html +110 -206
  43. package/coverage/src/concepts/Attribute__.ts.html +50 -239
  44. package/coverage/src/concepts/AuthInterface__.ts.html +32 -26
  45. package/coverage/src/concepts/AuthLogicForCallInterface__.ts.html +188 -203
  46. package/coverage/src/concepts/AuthLogic__.ts.html +28 -43
  47. package/coverage/src/concepts/BackendVariable__.ts.html +132 -438
  48. package/coverage/src/concepts/Backend__.ts.html +57 -156
  49. package/coverage/src/concepts/BatchAssignment__.ts.html +270 -420
  50. package/coverage/src/concepts/BinaryExpression__.ts.html +158 -266
  51. package/coverage/src/concepts/BindAttribute__.ts.html +204 -399
  52. package/coverage/src/concepts/BindDirective__.ts.html +73 -217
  53. package/coverage/src/concepts/BindEvent__.ts.html +161 -293
  54. package/coverage/src/concepts/BindStyle__.ts.html +58 -139
  55. package/coverage/src/concepts/BooleanLiteral__.ts.html +33 -63
  56. package/coverage/src/concepts/CallAuthInterface__.ts.html +95 -236
  57. package/coverage/src/concepts/CallConnector__.ts.html +69 -108
  58. package/coverage/src/concepts/CallFunction__.ts.html +234 -399
  59. package/coverage/src/concepts/CallInterface__.ts.html +145 -241
  60. package/coverage/src/concepts/CallLogic__.ts.html +525 -633
  61. package/coverage/src/concepts/CallQueryComponent__.ts.html +232 -385
  62. package/coverage/src/concepts/Comment__.ts.html +27 -63
  63. package/coverage/src/concepts/CompletionProperty__.ts.html +51 -72
  64. package/coverage/src/concepts/ConfigGroup__.ts.html +51 -99
  65. package/coverage/src/concepts/ConfigPropertyValue__.ts.html +34 -40
  66. package/coverage/src/concepts/ConfigProperty__.ts.html +78 -150
  67. package/coverage/src/concepts/Configuration__.ts.html +48 -99
  68. package/coverage/src/concepts/Connection__.ts.html +64 -154
  69. package/coverage/src/concepts/ConnectorTrigger__.ts.html +32 -35
  70. package/coverage/src/concepts/Connector__.ts.html +228 -3117
  71. package/coverage/src/concepts/Constant__.ts.html +74 -374
  72. package/coverage/src/concepts/DataSource__.ts.html +104 -173
  73. package/coverage/src/concepts/DatabaseTypeAnnotation__.ts.html +21 -27
  74. package/coverage/src/concepts/Destination__.ts.html +121 -190
  75. package/coverage/src/concepts/End__.ts.html +40 -76
  76. package/coverage/src/concepts/EntityIndex__.ts.html +44 -80
  77. package/coverage/src/concepts/EntityProperty__.ts.html +158 -440
  78. package/coverage/src/concepts/Entity__.ts.html +161 -326
  79. package/coverage/src/concepts/EnumItem__.ts.html +33 -66
  80. package/coverage/src/concepts/Enum__.ts.html +64 -139
  81. package/coverage/src/concepts/Event__.ts.html +51 -87
  82. package/coverage/src/concepts/ExternalDestination__.ts.html +60 -126
  83. package/coverage/src/concepts/ForEachStatement__.ts.html +152 -239
  84. package/coverage/src/concepts/FrontendLibrary__.ts.html +69 -153
  85. package/coverage/src/concepts/FrontendVariable__.ts.html +19 -76
  86. package/coverage/src/concepts/Frontend__.ts.html +161 -884
  87. package/coverage/src/concepts/Function__.ts.html +171 -396
  88. package/coverage/src/concepts/Identifier__.ts.html +100 -130
  89. package/coverage/src/concepts/IfStatement__.ts.html +110 -209
  90. package/coverage/src/concepts/Integration__.ts.html +57 -132
  91. package/coverage/src/concepts/InterfaceParam__.ts.html +76 -310
  92. package/coverage/src/concepts/Interface__.ts.html +183 -324
  93. package/coverage/src/concepts/JSBlock__.ts.html +26 -59
  94. package/coverage/src/concepts/JavaLogic__.ts.html +28 -58
  95. package/coverage/src/concepts/LogicItem__.ts.html +73 -151
  96. package/coverage/src/concepts/Logic__.ts.html +509 -965
  97. package/coverage/src/concepts/MatchCase__.ts.html +158 -281
  98. package/coverage/src/concepts/Match__.ts.html +121 -280
  99. package/coverage/src/concepts/MemberExpression__.ts.html +172 -256
  100. package/coverage/src/concepts/MicroApp__.ts.html +34 -25
  101. package/coverage/src/concepts/Module__.ts.html +1270 -1375
  102. package/coverage/src/concepts/MsgTriggerEvent__.ts.html +46 -94
  103. package/coverage/src/concepts/MsgTriggerLauncher__.ts.html +48 -93
  104. package/coverage/src/concepts/Namespace__.ts.html +630 -1251
  105. package/coverage/src/concepts/NewComposite__.ts.html +341 -557
  106. package/coverage/src/concepts/NewList__.ts.html +111 -291
  107. package/coverage/src/concepts/NewMap__.ts.html +128 -332
  108. package/coverage/src/concepts/New__.ts.html +21 -57
  109. package/coverage/src/concepts/NullLiteral__.ts.html +23 -56
  110. package/coverage/src/concepts/NumericLiteral__.ts.html +51 -114
  111. package/coverage/src/concepts/OqlQueryComponent__.ts.html +76 -211
  112. package/coverage/src/concepts/OverriddenLogic__.ts.html +394 -643
  113. package/coverage/src/concepts/Param__.ts.html +174 -315
  114. package/coverage/src/concepts/Point__.ts.html +21 -27
  115. package/coverage/src/concepts/ProcessComponent__.ts.html +67 -145
  116. package/coverage/src/concepts/ProcessElement__.ts.html +281 -854
  117. package/coverage/src/concepts/ProcessOutcome__.ts.html +25 -100
  118. package/coverage/src/concepts/ProcessOutcomes__.ts.html +26 -113
  119. package/coverage/src/concepts/Process__.ts.html +201 -552
  120. package/coverage/src/concepts/QueryAggregateExpression__.ts.html +35 -89
  121. package/coverage/src/concepts/QueryFieldExpression__.ts.html +35 -62
  122. package/coverage/src/concepts/QueryFromExpression__.ts.html +47 -119
  123. package/coverage/src/concepts/QueryGroupByExpression__.ts.html +37 -97
  124. package/coverage/src/concepts/QueryJoinExpression__.ts.html +69 -153
  125. package/coverage/src/concepts/QueryLimitExpression__.ts.html +36 -105
  126. package/coverage/src/concepts/QueryOrderByExpression__.ts.html +36 -108
  127. package/coverage/src/concepts/QuerySelectExpression__.ts.html +50 -101
  128. package/coverage/src/concepts/Rect__.ts.html +25 -25
  129. package/coverage/src/concepts/Return__.ts.html +131 -368
  130. package/coverage/src/concepts/Role__.ts.html +37 -67
  131. package/coverage/src/concepts/SelectMembers__.ts.html +57 -141
  132. package/coverage/src/concepts/Slot__.ts.html +40 -64
  133. package/coverage/src/concepts/SqlQueryComponent__.ts.html +62 -122
  134. package/coverage/src/concepts/Start__.ts.html +25 -58
  135. package/coverage/src/concepts/StringInterpolation__.ts.html +77 -185
  136. package/coverage/src/concepts/StringLiteral__.ts.html +47 -158
  137. package/coverage/src/concepts/StructureProperty__.ts.html +78 -306
  138. package/coverage/src/concepts/Structure__.ts.html +90 -285
  139. package/coverage/src/concepts/SwitchCase__.ts.html +66 -141
  140. package/coverage/src/concepts/SwitchStatement__.ts.html +58 -136
  141. package/coverage/src/concepts/Theme__.ts.html +24 -36
  142. package/coverage/src/concepts/Transactional__.ts.html +33 -36
  143. package/coverage/src/concepts/TriggerEvent__.ts.html +480 -63
  144. package/coverage/src/concepts/TriggerLauncher__.ts.html +43 -73
  145. package/coverage/src/concepts/TypeAnnotation__.ts.html +231 -564
  146. package/coverage/src/concepts/TypeParam__.ts.html +23 -59
  147. package/coverage/src/concepts/UnaryExpression__.ts.html +47 -131
  148. package/coverage/src/concepts/Unparsed__.ts.html +29 -59
  149. package/coverage/src/concepts/UseComponent__.ts.html +21 -27
  150. package/coverage/src/concepts/ValidationRule__.ts.html +96 -234
  151. package/coverage/src/concepts/Variable__.ts.html +132 -456
  152. package/coverage/src/concepts/ViewBlock__.ts.html +23 -26
  153. package/coverage/src/concepts/ViewComponent__.ts.html +157 -394
  154. package/coverage/src/concepts/ViewElement__.ts.html +514 -910
  155. package/coverage/src/concepts/View__.ts.html +425 -1271
  156. package/coverage/src/concepts/WhileStatement__.ts.html +79 -175
  157. package/coverage/src/concepts/basics/stdlib/index.html +85 -85
  158. package/coverage/src/concepts/basics/stdlib/index.ts.html +29 -167
  159. package/coverage/src/concepts/basics/stdlib/nasl.auth.ts.html +152 -206
  160. package/coverage/src/concepts/basics/stdlib/nasl.browser.ts.html +139 -172
  161. package/coverage/src/concepts/basics/stdlib/nasl.collection.ts.html +47 -92
  162. package/coverage/src/concepts/basics/stdlib/nasl.configuration.ts.html +31 -130
  163. package/coverage/src/concepts/basics/stdlib/nasl.core.ts.html +43 -61
  164. package/coverage/src/concepts/basics/stdlib/nasl.event.ts.html +23 -53
  165. package/coverage/src/concepts/basics/stdlib/nasl.http.ts.html +167 -203
  166. package/coverage/src/concepts/basics/stdlib/nasl.interface.ts.html +45 -78
  167. package/coverage/src/concepts/basics/stdlib/nasl.io.ts.html +51 -81
  168. package/coverage/src/concepts/basics/stdlib/nasl.logging.ts.html +66 -69
  169. package/coverage/src/concepts/basics/stdlib/nasl.process.ts.html +606 -654
  170. package/coverage/src/concepts/basics/stdlib/nasl.ui.ts.html +993 -1050
  171. package/coverage/src/concepts/basics/stdlib/nasl.util.ts.html +2131 -2236
  172. package/coverage/src/concepts/basics/stdlib/nasl.validation.ts.html +563 -596
  173. package/coverage/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts.html +40 -28
  174. package/coverage/src/concepts/basics/stdlib/timeZone.ts.html +9 -9
  175. package/coverage/src/concepts/basics/types/coreTypeList.ts.html +7 -7
  176. package/coverage/src/concepts/basics/types/index.html +16 -16
  177. package/coverage/src/concepts/basics/types/index.ts.html +18 -18
  178. package/coverage/src/concepts/index.html +1215 -1365
  179. package/coverage/src/concepts/index.ts.html +7 -31
  180. package/coverage/src/concepts/index__.ts.html +8 -38
  181. package/coverage/src/config.ts.html +20 -2
  182. package/coverage/src/decorators/index.html +32 -32
  183. package/coverage/src/decorators/index.ts.html +93 -108
  184. package/coverage/src/decorators/promise.ts.html +26 -26
  185. package/coverage/src/eventBus.ts.html +7 -7
  186. package/coverage/src/generator/compileComponent.ts.html +10 -10
  187. package/coverage/src/generator/genBundleFiles.ts.html +45 -273
  188. package/coverage/src/generator/genHash.ts.html +8 -8
  189. package/coverage/src/generator/genMetaData.ts.html +49 -280
  190. package/coverage/src/generator/genReleaseBody.ts.html +98 -113
  191. package/coverage/src/generator/icestark.ts.html +8 -14
  192. package/coverage/src/generator/index.html +87 -87
  193. package/coverage/src/generator/index.ts.html +6 -6
  194. package/coverage/src/generator/microApp.ts.html +10 -10
  195. package/coverage/src/generator/permission.ts.html +80 -152
  196. package/coverage/src/generator/qiankun.ts.html +7 -13
  197. package/coverage/src/generator/styleReplacer.ts.html +17 -17
  198. package/coverage/src/index.html +10 -40
  199. package/coverage/src/index.ts.html +12 -15
  200. package/coverage/src/manager/diagnostic.ts.html +31 -28
  201. package/coverage/src/manager/index.html +27 -27
  202. package/coverage/src/manager/stepRecorder.ts.html +17 -17
  203. package/coverage/src/natural/genNaturalTS.ts.html +30 -30
  204. package/coverage/src/natural/index.html +41 -41
  205. package/coverage/src/natural/index.ts.html +6 -6
  206. package/coverage/src/natural/naslStdlibMap.ts.html +10 -10
  207. package/coverage/src/natural/transformTSCode.ts.html +137 -197
  208. package/coverage/src/sentry/index.html +19 -19
  209. package/coverage/src/sentry/index.ts.html +43 -49
  210. package/coverage/src/server/createUiTs.ts.html +37 -46
  211. package/coverage/src/server/entity2LogicNamespace.ts.html +21 -21
  212. package/coverage/src/server/event.js.html +7 -7
  213. package/coverage/src/server/extendBaseNode.ts.html +90 -132
  214. package/coverage/src/server/formatTsUtils.ts.html +105 -108
  215. package/coverage/src/server/getConnector.ts.html +24 -96
  216. package/coverage/src/server/getExtensionModules.ts.html +14 -14
  217. package/coverage/src/server/getFunctions.ts.html +15 -15
  218. package/coverage/src/server/getInterfaces.ts.html +18 -18
  219. package/coverage/src/server/getLogging.ts.html +11 -11
  220. package/coverage/src/server/getLogics.ts.html +74 -122
  221. package/coverage/src/server/getMemberIdentifier.ts.html +163 -358
  222. package/coverage/src/server/getProcessComponents.ts.html +13 -13
  223. package/coverage/src/server/getProcesses.ts.html +86 -236
  224. package/coverage/src/server/getValidates.ts.html +14 -17
  225. package/coverage/src/server/index.html +181 -181
  226. package/coverage/src/server/index.ts.html +8 -11
  227. package/coverage/src/server/naslServer.ts.html +1270 -1933
  228. package/coverage/src/server/naslStdlibMap.ts.html +10 -10
  229. package/coverage/src/server/process2LogicNamespace.ts.html +20 -20
  230. package/coverage/src/server/translator.ts.html +89 -134
  231. package/coverage/src/service/creator/add.configs.js.html +17 -35
  232. package/coverage/src/service/creator/errHandles.js.html +45 -36
  233. package/coverage/src/service/creator/index.html +35 -35
  234. package/coverage/src/service/creator/index.js.html +14 -14
  235. package/coverage/src/service/datasource/api.js.html +7 -7
  236. package/coverage/src/service/datasource/index.html +12 -12
  237. package/coverage/src/service/datasource/index.js.html +5 -5
  238. package/coverage/src/service/logic/api.js.html +7 -7
  239. package/coverage/src/service/logic/index.html +12 -12
  240. package/coverage/src/service/logic/index.js.html +5 -5
  241. package/coverage/src/service/storage/api.js.html +7 -7
  242. package/coverage/src/service/storage/index.html +56 -56
  243. package/coverage/src/service/storage/index.ts.html +5 -5
  244. package/coverage/src/service/storage/init.ts.html +624 -1758
  245. package/coverage/src/service/storage/jsoner.ts.html +23 -86
  246. package/coverage/src/service/storage/map.ts.html +21 -21
  247. package/coverage/src/service/storage/service.ts.html +14 -14
  248. package/coverage/src/service/storage/storagePoint.ts.html +9 -9
  249. package/coverage/src/templator/genCallComponentLogic.ts.html +12 -12
  250. package/coverage/src/templator/genCreateBlock.ts.html +94 -154
  251. package/coverage/src/templator/genCurdEditMultipleKeyBlock.ts.html +90 -90
  252. package/coverage/src/templator/genCurdMultipleKeyBlock.ts.html +150 -132
  253. package/coverage/src/templator/genEditTableBlock.ts.html +41 -104
  254. package/coverage/src/templator/genEnumSelectBlock.ts.html +12 -93
  255. package/coverage/src/templator/genGetBlock.ts.html +18 -18
  256. package/coverage/src/templator/genGridViewBlock.ts.html +35 -35
  257. package/coverage/src/templator/genListViewBlock.ts.html +15 -15
  258. package/coverage/src/templator/genQueryComponent.ts.html +35 -35
  259. package/coverage/src/templator/genSelectBlock.ts.html +20 -101
  260. package/coverage/src/templator/genTableBlock.ts.html +33 -96
  261. package/coverage/src/templator/genUpdateBlock.ts.html +78 -162
  262. package/coverage/src/templator/index.html +147 -147
  263. package/coverage/src/templator/index.ts.html +12 -12
  264. package/coverage/src/templator/utils.ts.html +32 -95
  265. package/coverage/src/translator/constant.ts.html +7 -7
  266. package/coverage/src/translator/index.html +28 -43
  267. package/coverage/src/translator/index.ts.html +6 -6
  268. package/coverage/src/translator/utils.ts.html +71 -452
  269. package/coverage/src/utils/cookie.ts.html +19 -19
  270. package/coverage/src/utils/env.ts.html +2 -2
  271. package/coverage/src/utils/index.html +37 -82
  272. package/coverage/src/utils/index.ts.html +798 -66
  273. package/coverage/src/utils/logger.ts.html +1 -1
  274. package/coverage/src/utils/sortTsString.ts.html +18 -33
  275. package/coverage/src/utils/string.ts.html +50 -8
  276. package/coverage/src/utils/time-slicing/controller.ts.html +8 -8
  277. package/coverage/src/utils/time-slicing/index.html +64 -79
  278. package/coverage/src/utils/time-slicing/index.ts.html +8 -8
  279. package/coverage/src/utils/time-slicing/page-state.ts.html +1 -1
  280. package/coverage/src/utils/time-slicing/performance.ts.html +4 -4
  281. package/coverage/src/utils/time-slicing/runner.ts.html +51 -51
  282. package/coverage/src/utils/time-slicing/tool.ts.html +29 -29
  283. package/coverage/src/utils/time-slicing/utils.ts.html +16 -16
  284. package/coverage/src/utils/time-slicing/wrapper.ts.html +50 -50
  285. package/coverage/src/utils/time-slicing.ts.html +1 -1
  286. package/coverage/src/utils/traverse.ts.html +27 -27
  287. package/coverage/src/utils/types.ts.html +1 -1
  288. package/coverage/src/utils/window.ts.html +1 -1
  289. package/out/common/BaseNode.d.ts +9 -4
  290. package/out/common/BaseNode.js +43 -10
  291. package/out/common/BaseNode.js.map +1 -1
  292. package/out/concepts/AuthLogicForCallInterface__.js +2 -50
  293. package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
  294. package/out/concepts/BusinessComponent__.js +2 -42
  295. package/out/concepts/BusinessComponent__.js.map +1 -1
  296. package/out/concepts/BusinessLogic__.js +2 -50
  297. package/out/concepts/BusinessLogic__.js.map +1 -1
  298. package/out/concepts/CallFunction__.d.ts +1 -1
  299. package/out/concepts/CallFunction__.js +1 -1
  300. package/out/concepts/Identifier__.d.ts +2 -0
  301. package/out/concepts/Identifier__.js +51 -5
  302. package/out/concepts/Identifier__.js.map +1 -1
  303. package/out/concepts/Logic__.js +6 -101
  304. package/out/concepts/Logic__.js.map +1 -1
  305. package/out/concepts/MemberExpression__.d.ts +1 -1
  306. package/out/concepts/MemberExpression__.js +15 -3
  307. package/out/concepts/MemberExpression__.js.map +1 -1
  308. package/out/concepts/OverriddenLogic__.js +2 -50
  309. package/out/concepts/OverriddenLogic__.js.map +1 -1
  310. package/out/concepts/ProcessElementV2__.js +4 -0
  311. package/out/concepts/ProcessElementV2__.js.map +1 -1
  312. package/out/concepts/ProcessElement__.js +4 -0
  313. package/out/concepts/ProcessElement__.js.map +1 -1
  314. package/out/concepts/ProcessV2__.js +4 -0
  315. package/out/concepts/ProcessV2__.js.map +1 -1
  316. package/out/concepts/Process__.js +4 -0
  317. package/out/concepts/Process__.js.map +1 -1
  318. package/out/concepts/SubLogic__.js +5 -50
  319. package/out/concepts/SubLogic__.js.map +1 -1
  320. package/out/concepts/View__.js +10 -49
  321. package/out/concepts/View__.js.map +1 -1
  322. package/out/natural/transformTS2UI.js +3 -3
  323. package/out/natural/transformTS2UI.js.map +1 -1
  324. package/out/natural/transforms/transform2LogicItem.js +3 -3
  325. package/out/natural/transforms/transform2LogicItem.js.map +1 -1
  326. package/out/server/naslServer.js +17 -2
  327. package/out/server/naslServer.js.map +1 -1
  328. package/out/server/semanticData.d.ts +32 -0
  329. package/out/server/semanticData.js +371 -0
  330. package/out/server/semanticData.js.map +1 -0
  331. package/out/templator/block2nasl/viewMergeBlock.js +2 -1
  332. package/out/templator/block2nasl/viewMergeBlock.js.map +1 -1
  333. package/package.json +1 -1
  334. package/src/common/BaseNode.ts +50 -8
  335. package/src/concepts/AuthLogicForCallInterface__.ts +3 -56
  336. package/src/concepts/BusinessComponent__.ts +6 -51
  337. package/src/concepts/BusinessLogic__.ts +4 -56
  338. package/src/concepts/CallFunction__.ts +1 -1
  339. package/src/concepts/Identifier__.ts +57 -6
  340. package/src/concepts/Logic__.ts +9 -111
  341. package/src/concepts/MemberExpression__.ts +21 -7
  342. package/src/concepts/OverriddenLogic__.ts +4 -56
  343. package/src/concepts/ProcessElementV2__.ts +4 -0
  344. package/src/concepts/ProcessElement__.ts +4 -0
  345. package/src/concepts/ProcessV2__.ts +5 -0
  346. package/src/concepts/Process__.ts +4 -0
  347. package/src/concepts/SubLogic__.ts +6 -56
  348. package/src/concepts/View__.ts +14 -54
  349. package/src/natural/transformTS2UI.ts +7 -7
  350. package/src/natural/transforms/transform2LogicItem.ts +3 -3
  351. package/src/server/naslServer.ts +22 -2
  352. package/src/server/semanticData.ts +447 -0
  353. package/src/templator/block2nasl/viewMergeBlock.ts +2 -1
  354. package/src/translator/utils.ts +1 -1
  355. package/test/concepts/logic/__snapshots__/toEmbeddedTS.spec.ts.snap +182 -0
  356. package/test/concepts/logic/constant.ts +5 -0
  357. package/test/concepts/logic/fixtures/variable-host-call-logic-member-expression.json +267 -0
  358. package/test/concepts/logic/fixtures/variable-host-call-logic-nested-member-expression copy.json +457 -0
  359. package/test/concepts/logic/fixtures/variable-host-call-logic-with-handle-error-member-expression.json +267 -0
  360. package/test/concepts/logic/toEmbeddedTS.spec.ts +15 -0
  361. package/.nyc_output/fe4ca6db-1eb6-4898-8aa5-ba8f8d4128f2.json +0 -1
  362. package/.nyc_output/processinfo/fe4ca6db-1eb6-4898-8aa5-ba8f8d4128f2.json +0 -1
  363. package/coverage/src/common/utils.ts.html +0 -136
  364. package/coverage/src/concepts/AbstractInterface__.ts.html +0 -277
  365. package/coverage/src/concepts/Block__.ts.html +0 -907
  366. package/coverage/src/concepts/CountersignPolicy__.ts.html +0 -319
  367. package/coverage/src/concepts/DefaultValue__.ts.html +0 -1024
  368. package/coverage/src/concepts/I18nInfo__.ts.html +0 -424
  369. package/coverage/src/concepts/ImportedInterface__.ts.html +0 -262
  370. package/coverage/src/concepts/MetadataType__.ts.html +0 -2035
  371. package/coverage/src/concepts/MultiApprovalPolicy__.ts.html +0 -301
  372. package/coverage/src/concepts/SequentialPolicy__.ts.html +0 -265
  373. package/coverage/src/concepts/StaticString__.ts.html +0 -397
  374. package/coverage/src/concepts/basics/constants.ts.html +0 -88
  375. package/coverage/src/concepts/basics/index.html +0 -116
  376. package/coverage/src/concepts/utils/asserts.ts.html +0 -28675
  377. package/coverage/src/concepts/utils/index.html +0 -131
  378. package/coverage/src/concepts/utils/types.ts.html +0 -2092
  379. package/coverage/src/translator/types.ts.html +0 -256
  380. package/coverage/src/utils/i18nInfo.ts.html +0 -166
  381. package/coverage/src/utils/time-slicing/constant.ts.html +0 -196
  382. package/dist/README.md +0 -97
  383. package/dist/index.d.ts +0 -26
  384. package/dist/index.js +0 -397
  385. package/dist/index.js.map +0 -1
  386. package/dist/package.json +0 -91
  387. package/dist/src/automate/engine/index.d.ts +0 -4
  388. package/dist/src/automate/engine/operators.d.ts +0 -26
  389. package/dist/src/automate/engine/uniqueName.d.ts +0 -12
  390. package/dist/src/automate/engine/utils.d.ts +0 -25
  391. package/dist/src/automate/engine/viewCache.d.ts +0 -19
  392. package/dist/src/automate/template/myProcess.d.ts +0 -10
  393. package/dist/src/automate/upgrader/2.12.d.ts +0 -7
  394. package/dist/src/automate/upgrader/2.14-components.d.ts +0 -1115
  395. package/dist/src/automate/upgrader/2.14.d.ts +0 -10
  396. package/dist/src/automate/upgrader/2.14.old.d.ts +0 -1
  397. package/dist/src/automate/upgrader/2.16.d.ts +0 -10
  398. package/dist/src/automate/upgrader/2.17.d.ts +0 -21
  399. package/dist/src/automate/upgrader/2.18.d.ts +0 -10
  400. package/dist/src/automate/upgrader/2.20.d.ts +0 -17
  401. package/dist/src/bak/translator.d.ts +0 -1
  402. package/dist/src/breakpoint/generator/AfterStartNode.d.ts +0 -7
  403. package/dist/src/breakpoint/generator/BeforeEndNode.d.ts +0 -7
  404. package/dist/src/breakpoint/generator/BreakpointNode.d.ts +0 -20
  405. package/dist/src/breakpoint/generator/CallbackNode.d.ts +0 -4
  406. package/dist/src/breakpoint/generator/FragmentNode.d.ts +0 -4
  407. package/dist/src/breakpoint/generator/index.d.ts +0 -4
  408. package/dist/src/breakpoint/index.d.ts +0 -3
  409. package/dist/src/breakpoint/shared/constants.d.ts +0 -37
  410. package/dist/src/breakpoint/shared/index.d.ts +0 -3
  411. package/dist/src/breakpoint/shared/operations.d.ts +0 -10
  412. package/dist/src/breakpoint/shared/socket.d.ts +0 -48
  413. package/dist/src/breakpoint/shared/utils.d.ts +0 -27
  414. package/dist/src/breakpoint/store/core.d.ts +0 -80
  415. package/dist/src/breakpoint/store/dock.d.ts +0 -1
  416. package/dist/src/breakpoint/store/index.d.ts +0 -2
  417. package/dist/src/common/BaseNode.d.ts +0 -384
  418. package/dist/src/common/Command.d.ts +0 -21
  419. package/dist/src/common/ComponentAPI.d.ts +0 -112
  420. package/dist/src/common/EventEmitter.d.ts +0 -61
  421. package/dist/src/common/Messager.d.ts +0 -91
  422. package/dist/src/common/asyncFuncMap.d.ts +0 -2
  423. package/dist/src/common/index.d.ts +0 -4
  424. package/dist/src/common/utils.d.ts +0 -2
  425. package/dist/src/concepts/Abort__.d.ts +0 -31
  426. package/dist/src/concepts/AbstractInterface__.d.ts +0 -25
  427. package/dist/src/concepts/Anchor__.d.ts +0 -42
  428. package/dist/src/concepts/AnonymousFunction__.d.ts +0 -144
  429. package/dist/src/concepts/App__.d.ts +0 -1711
  430. package/dist/src/concepts/Argument__.d.ts +0 -64
  431. package/dist/src/concepts/Assignee__.d.ts +0 -294
  432. package/dist/src/concepts/AssignmentLine__.d.ts +0 -43
  433. package/dist/src/concepts/Assignment__.d.ts +0 -57
  434. package/dist/src/concepts/Attribute__.d.ts +0 -75
  435. package/dist/src/concepts/AuthInterface__.d.ts +0 -38
  436. package/dist/src/concepts/AuthLogicForCallInterface__.d.ts +0 -145
  437. package/dist/src/concepts/AuthLogic__.d.ts +0 -69
  438. package/dist/src/concepts/BackendVariable__.d.ts +0 -118
  439. package/dist/src/concepts/Backend__.d.ts +0 -127
  440. package/dist/src/concepts/BaseSetter__.d.ts +0 -25
  441. package/dist/src/concepts/BatchAssignment__.d.ts +0 -244
  442. package/dist/src/concepts/BinaryExpression__.d.ts +0 -61
  443. package/dist/src/concepts/BindAttribute__.d.ts +0 -284
  444. package/dist/src/concepts/BindDirective__.d.ts +0 -156
  445. package/dist/src/concepts/BindEvent__.d.ts +0 -246
  446. package/dist/src/concepts/BindStyle__.d.ts +0 -127
  447. package/dist/src/concepts/Block__.d.ts +0 -88
  448. package/dist/src/concepts/BooleanLiteral__.d.ts +0 -44
  449. package/dist/src/concepts/BusinessComponent__.d.ts +0 -640
  450. package/dist/src/concepts/BusinessLogic__.d.ts +0 -44
  451. package/dist/src/concepts/CallAuthInterface__.d.ts +0 -132
  452. package/dist/src/concepts/CallConnector__.d.ts +0 -55
  453. package/dist/src/concepts/CallEvent__.d.ts +0 -100
  454. package/dist/src/concepts/CallFunction__.d.ts +0 -171
  455. package/dist/src/concepts/CallInterface__.d.ts +0 -143
  456. package/dist/src/concepts/CallLogic__.d.ts +0 -224
  457. package/dist/src/concepts/CallQueryComponent__.d.ts +0 -383
  458. package/dist/src/concepts/CapsulesSetter__.d.ts +0 -109
  459. package/dist/src/concepts/Comment__.d.ts +0 -41
  460. package/dist/src/concepts/CompletionProperty__.d.ts +0 -87
  461. package/dist/src/concepts/ConfigGroup__.d.ts +0 -121
  462. package/dist/src/concepts/ConfigPropertyValue__.d.ts +0 -42
  463. package/dist/src/concepts/ConfigProperty__.d.ts +0 -147
  464. package/dist/src/concepts/Configuration__.d.ts +0 -120
  465. package/dist/src/concepts/Connection__.d.ts +0 -159
  466. package/dist/src/concepts/ConnectorLogic__.d.ts +0 -33
  467. package/dist/src/concepts/ConnectorTriggerLauncher__.d.ts +0 -44
  468. package/dist/src/concepts/ConnectorTrigger__.d.ts +0 -76
  469. package/dist/src/concepts/Connector__.d.ts +0 -532
  470. package/dist/src/concepts/Constant__.d.ts +0 -94
  471. package/dist/src/concepts/CountersignPolicy__.d.ts +0 -29
  472. package/dist/src/concepts/DataSource__.d.ts +0 -163
  473. package/dist/src/concepts/DatabaseTypeAnnotation__.d.ts +0 -35
  474. package/dist/src/concepts/DefaultValue__.d.ts +0 -94
  475. package/dist/src/concepts/Destination__.d.ts +0 -150
  476. package/dist/src/concepts/End__.d.ts +0 -30
  477. package/dist/src/concepts/EntityIndex__.d.ts +0 -93
  478. package/dist/src/concepts/EntityProperty__.d.ts +0 -255
  479. package/dist/src/concepts/Entity__.d.ts +0 -332
  480. package/dist/src/concepts/EnumItem__.d.ts +0 -83
  481. package/dist/src/concepts/EnumSelectSetter__.d.ts +0 -109
  482. package/dist/src/concepts/Enum__.d.ts +0 -133
  483. package/dist/src/concepts/EventDeclaration__.d.ts +0 -41
  484. package/dist/src/concepts/Event__.d.ts +0 -149
  485. package/dist/src/concepts/ExternalDestination__.d.ts +0 -63
  486. package/dist/src/concepts/ForEachStatement__.d.ts +0 -126
  487. package/dist/src/concepts/FrontendLibrary__.d.ts +0 -208
  488. package/dist/src/concepts/FrontendType__.d.ts +0 -304
  489. package/dist/src/concepts/FrontendVariable__.d.ts +0 -41
  490. package/dist/src/concepts/Frontend__.d.ts +0 -389
  491. package/dist/src/concepts/Function__.d.ts +0 -399
  492. package/dist/src/concepts/I18nInfo__.d.ts +0 -47
  493. package/dist/src/concepts/IconSetter__.d.ts +0 -29
  494. package/dist/src/concepts/Identifier__.d.ts +0 -66
  495. package/dist/src/concepts/IfStatement__.d.ts +0 -155
  496. package/dist/src/concepts/ImageSetter__.d.ts +0 -25
  497. package/dist/src/concepts/ImportedInterface__.d.ts +0 -29
  498. package/dist/src/concepts/InputSetter__.d.ts +0 -29
  499. package/dist/src/concepts/Integration__.d.ts +0 -127
  500. package/dist/src/concepts/InterfaceParam__.d.ts +0 -119
  501. package/dist/src/concepts/InterfaceTriggerEvent__.d.ts +0 -34
  502. package/dist/src/concepts/Interface__.d.ts +0 -323
  503. package/dist/src/concepts/JSBlock__.d.ts +0 -38
  504. package/dist/src/concepts/JavaLogic__.d.ts +0 -50
  505. package/dist/src/concepts/LogicDeclaration__.d.ts +0 -289
  506. package/dist/src/concepts/LogicItem__.d.ts +0 -171
  507. package/dist/src/concepts/Logic__.d.ts +0 -632
  508. package/dist/src/concepts/MatchCase__.d.ts +0 -264
  509. package/dist/src/concepts/Match__.d.ts +0 -122
  510. package/dist/src/concepts/MemberExpression__.d.ts +0 -64
  511. package/dist/src/concepts/MetadataType__.d.ts +0 -220
  512. package/dist/src/concepts/MicroApp__.d.ts +0 -53
  513. package/dist/src/concepts/Module__.d.ts +0 -1142
  514. package/dist/src/concepts/MsgTriggerEvent__.d.ts +0 -138
  515. package/dist/src/concepts/MsgTriggerLauncher__.d.ts +0 -119
  516. package/dist/src/concepts/MultiApprovalPolicy__.d.ts +0 -25
  517. package/dist/src/concepts/Namespace__.d.ts +0 -1060
  518. package/dist/src/concepts/NewComposite__.d.ts +0 -346
  519. package/dist/src/concepts/NewList__.d.ts +0 -135
  520. package/dist/src/concepts/NewMap__.d.ts +0 -226
  521. package/dist/src/concepts/New__.d.ts +0 -30
  522. package/dist/src/concepts/NullLiteral__.d.ts +0 -36
  523. package/dist/src/concepts/NumberInputSetter__.d.ts +0 -45
  524. package/dist/src/concepts/NumericLiteral__.d.ts +0 -53
  525. package/dist/src/concepts/OqlQueryComponent__.d.ts +0 -67
  526. package/dist/src/concepts/OverriddenLogic__.d.ts +0 -615
  527. package/dist/src/concepts/Paginate__.d.ts +0 -59
  528. package/dist/src/concepts/ParamWithGroup__.d.ts +0 -44
  529. package/dist/src/concepts/Param__.d.ts +0 -140
  530. package/dist/src/concepts/Point__.d.ts +0 -33
  531. package/dist/src/concepts/ProcessComponent__.d.ts +0 -214
  532. package/dist/src/concepts/ProcessElement__.d.ts +0 -620
  533. package/dist/src/concepts/ProcessOutcome__.d.ts +0 -35
  534. package/dist/src/concepts/ProcessOutcomes__.d.ts +0 -35
  535. package/dist/src/concepts/Process__.d.ts +0 -605
  536. package/dist/src/concepts/PropDeclaration__.d.ts +0 -99
  537. package/dist/src/concepts/PropertySelectSetter__.d.ts +0 -25
  538. package/dist/src/concepts/QueryAggregateExpression__.d.ts +0 -50
  539. package/dist/src/concepts/QueryFieldExpression__.d.ts +0 -66
  540. package/dist/src/concepts/QueryFromExpression__.d.ts +0 -107
  541. package/dist/src/concepts/QueryGroupByExpression__.d.ts +0 -46
  542. package/dist/src/concepts/QueryJoinExpression__.d.ts +0 -194
  543. package/dist/src/concepts/QueryLimitExpression__.d.ts +0 -46
  544. package/dist/src/concepts/QueryOrderByExpression__.d.ts +0 -57
  545. package/dist/src/concepts/QuerySelectExpression__.d.ts +0 -213
  546. package/dist/src/concepts/Rect__.d.ts +0 -41
  547. package/dist/src/concepts/Return__.d.ts +0 -120
  548. package/dist/src/concepts/Role__.d.ts +0 -58
  549. package/dist/src/concepts/SelectMembers__.d.ts +0 -134
  550. package/dist/src/concepts/SequentialPolicy__.d.ts +0 -25
  551. package/dist/src/concepts/SetterOption__.d.ts +0 -49
  552. package/dist/src/concepts/SlotDeclaration__.d.ts +0 -213
  553. package/dist/src/concepts/Slot__.d.ts +0 -53
  554. package/dist/src/concepts/SqlQueryComponent__.d.ts +0 -63
  555. package/dist/src/concepts/Start__.d.ts +0 -30
  556. package/dist/src/concepts/StaticString__.d.ts +0 -49
  557. package/dist/src/concepts/StringInterpolation__.d.ts +0 -122
  558. package/dist/src/concepts/StringLiteral__.d.ts +0 -51
  559. package/dist/src/concepts/StructureProperty__.d.ts +0 -119
  560. package/dist/src/concepts/Structure__.d.ts +0 -243
  561. package/dist/src/concepts/SwitchCase__.d.ts +0 -91
  562. package/dist/src/concepts/SwitchSetter__.d.ts +0 -25
  563. package/dist/src/concepts/SwitchStatement__.d.ts +0 -90
  564. package/dist/src/concepts/ThemeVariable__.d.ts +0 -29
  565. package/dist/src/concepts/Theme__.d.ts +0 -39
  566. package/dist/src/concepts/Transactional__.d.ts +0 -85
  567. package/dist/src/concepts/TriggerEvent__.d.ts +0 -42
  568. package/dist/src/concepts/TriggerLauncher__.d.ts +0 -76
  569. package/dist/src/concepts/TypeAnnotation__.d.ts +0 -303
  570. package/dist/src/concepts/TypeParam__.d.ts +0 -34
  571. package/dist/src/concepts/UnaryExpression__.d.ts +0 -45
  572. package/dist/src/concepts/Unparsed__.d.ts +0 -41
  573. package/dist/src/concepts/UseComponent__.d.ts +0 -33
  574. package/dist/src/concepts/ValidationRule__.d.ts +0 -133
  575. package/dist/src/concepts/Variable__.d.ts +0 -137
  576. package/dist/src/concepts/ViewBlockWithImage__.d.ts +0 -33
  577. package/dist/src/concepts/ViewBlock__.d.ts +0 -37
  578. package/dist/src/concepts/ViewComponentDeclaration__.d.ts +0 -721
  579. package/dist/src/concepts/ViewElement__.d.ts +0 -652
  580. package/dist/src/concepts/View__.d.ts +0 -728
  581. package/dist/src/concepts/WhileStatement__.d.ts +0 -94
  582. package/dist/src/concepts/basics/constants.d.ts +0 -1
  583. package/dist/src/concepts/basics/stdlib/index.d.ts +0 -16
  584. package/dist/src/concepts/basics/stdlib/nasl.auth.d.ts +0 -9
  585. package/dist/src/concepts/basics/stdlib/nasl.browser.d.ts +0 -5
  586. package/dist/src/concepts/basics/stdlib/nasl.collection.d.ts +0 -9
  587. package/dist/src/concepts/basics/stdlib/nasl.configuration.d.ts +0 -9
  588. package/dist/src/concepts/basics/stdlib/nasl.core.d.ts +0 -7
  589. package/dist/src/concepts/basics/stdlib/nasl.event.d.ts +0 -5
  590. package/dist/src/concepts/basics/stdlib/nasl.http.d.ts +0 -9
  591. package/dist/src/concepts/basics/stdlib/nasl.interface.d.ts +0 -9
  592. package/dist/src/concepts/basics/stdlib/nasl.io.d.ts +0 -5
  593. package/dist/src/concepts/basics/stdlib/nasl.logging.d.ts +0 -5
  594. package/dist/src/concepts/basics/stdlib/nasl.process.d.ts +0 -9
  595. package/dist/src/concepts/basics/stdlib/nasl.ui.d.ts +0 -9
  596. package/dist/src/concepts/basics/stdlib/nasl.util.d.ts +0 -6
  597. package/dist/src/concepts/basics/stdlib/nasl.validation.d.ts +0 -5
  598. package/dist/src/concepts/basics/stdlib/reference2TypeAnnotationList.d.ts +0 -4
  599. package/dist/src/concepts/basics/stdlib/timeZone.d.ts +0 -5
  600. package/dist/src/concepts/basics/types/coreTypeList.d.ts +0 -2
  601. package/dist/src/concepts/basics/types/index.d.ts +0 -17
  602. package/dist/src/concepts/index.d.ts +0 -7
  603. package/dist/src/concepts/index__.d.ts +0 -156
  604. package/dist/src/concepts/utils/asserts.d.ts +0 -7825
  605. package/dist/src/concepts/utils/quick-info.d.ts +0 -13
  606. package/dist/src/concepts/utils/types.d.ts +0 -510
  607. package/dist/src/config.d.ts +0 -52
  608. package/dist/src/decorators/index.d.ts +0 -67
  609. package/dist/src/decorators/promise.d.ts +0 -7
  610. package/dist/src/enums/KEYWORDS.d.ts +0 -6
  611. package/dist/src/enums/LEVEL_NAME_MAP.d.ts +0 -26
  612. package/dist/src/eventBus.d.ts +0 -3
  613. package/dist/src/generator/compileComponent.d.ts +0 -11
  614. package/dist/src/generator/genBundleFiles.d.ts +0 -37
  615. package/dist/src/generator/genHash.d.ts +0 -7
  616. package/dist/src/generator/genMetaData.d.ts +0 -31
  617. package/dist/src/generator/icestark.d.ts +0 -2
  618. package/dist/src/generator/index.d.ts +0 -7
  619. package/dist/src/generator/microApp.d.ts +0 -2
  620. package/dist/src/generator/permission.d.ts +0 -14
  621. package/dist/src/generator/qiankun.d.ts +0 -2
  622. package/dist/src/generator/release-body/body.d.ts +0 -42
  623. package/dist/src/generator/release-body/data.d.ts +0 -45
  624. package/dist/src/generator/release-body/index.d.ts +0 -2
  625. package/dist/src/generator/release-body/internal.d.ts +0 -622
  626. package/dist/src/generator/release-body/types.d.ts +0 -57
  627. package/dist/src/generator/release-body/utils.d.ts +0 -418
  628. package/dist/src/generator/release-body/validation.d.ts +0 -3
  629. package/dist/src/generator/styleReplacer.d.ts +0 -3
  630. package/dist/src/index.d.ts +0 -14
  631. package/dist/src/manager/diagnostic.d.ts +0 -39
  632. package/dist/src/manager/stepRecorder.d.ts +0 -20
  633. package/dist/src/natural/componentData.d.ts +0 -31
  634. package/dist/src/natural/genNaturalTS.d.ts +0 -241
  635. package/dist/src/natural/index.d.ts +0 -6
  636. package/dist/src/natural/naslStdlibMap.d.ts +0 -1
  637. package/dist/src/natural/prompt/analyzeClaims.d.ts +0 -1
  638. package/dist/src/natural/prompt/analyzeFormatOutput.d.ts +0 -1
  639. package/dist/src/natural/prompt/analyzeTasks.d.ts +0 -1
  640. package/dist/src/natural/prompt/executeClaims.d.ts +0 -1
  641. package/dist/src/natural/transformTSCode.d.ts +0 -7
  642. package/dist/src/sentry/index.d.ts +0 -34
  643. package/dist/src/server/createUiTs.d.ts +0 -17
  644. package/dist/src/server/entity2LogicNamespace.d.ts +0 -10
  645. package/dist/src/server/event.d.ts +0 -30
  646. package/dist/src/server/extendBaseNode.d.ts +0 -1
  647. package/dist/src/server/formatTsUtils.d.ts +0 -36
  648. package/dist/src/server/getConnector.d.ts +0 -15
  649. package/dist/src/server/getExtensionModules.d.ts +0 -3
  650. package/dist/src/server/getFunctions.d.ts +0 -3
  651. package/dist/src/server/getInterfaces.d.ts +0 -2
  652. package/dist/src/server/getLogging.d.ts +0 -1
  653. package/dist/src/server/getLogics.d.ts +0 -5
  654. package/dist/src/server/getMemberIdentifier.d.ts +0 -17
  655. package/dist/src/server/getProcessComponents.d.ts +0 -2
  656. package/dist/src/server/getProcesses.d.ts +0 -33
  657. package/dist/src/server/getScope.d.ts +0 -13
  658. package/dist/src/server/getValidates.d.ts +0 -3
  659. package/dist/src/server/index.d.ts +0 -5
  660. package/dist/src/server/naslServer.d.ts +0 -391
  661. package/dist/src/server/naslStdlibMap.d.ts +0 -2
  662. package/dist/src/server/process2LogicNamespace.d.ts +0 -26
  663. package/dist/src/server/translator.d.ts +0 -26
  664. package/dist/src/service/creator/add.configs.d.ts +0 -1
  665. package/dist/src/service/creator/errHandles.d.ts +0 -18
  666. package/dist/src/service/creator/index.d.ts +0 -1
  667. package/dist/src/service/datasource/api.d.ts +0 -12
  668. package/dist/src/service/datasource/index.d.ts +0 -2
  669. package/dist/src/service/logic/api.d.ts +0 -9
  670. package/dist/src/service/logic/checktypeSocket.d.ts +0 -5
  671. package/dist/src/service/logic/index.d.ts +0 -2
  672. package/dist/src/service/storage/api.d.ts +0 -54
  673. package/dist/src/service/storage/index.d.ts +0 -2
  674. package/dist/src/service/storage/init.d.ts +0 -105
  675. package/dist/src/service/storage/jsoner.d.ts +0 -36
  676. package/dist/src/service/storage/map.d.ts +0 -4
  677. package/dist/src/service/storage/service.d.ts +0 -25
  678. package/dist/src/service/storage/storagePoint.d.ts +0 -17
  679. package/dist/src/service/video/BaseService.d.ts +0 -7
  680. package/dist/src/service/video/MainCallbackService.d.ts +0 -12
  681. package/dist/src/service/video/VideoTranscribe.d.ts +0 -15
  682. package/dist/src/service/video/publishService.d.ts +0 -1
  683. package/dist/src/templator/genCallComponentLogic.d.ts +0 -17
  684. package/dist/src/templator/genCreateBlock.d.ts +0 -10
  685. package/dist/src/templator/genCurdEditMultipleKeyBlock.d.ts +0 -8
  686. package/dist/src/templator/genCurdMultipleKeyBlock.d.ts +0 -61
  687. package/dist/src/templator/genEditTableBlock.d.ts +0 -51
  688. package/dist/src/templator/genEnumSelectBlock.d.ts +0 -10
  689. package/dist/src/templator/genGetBlock.d.ts +0 -6
  690. package/dist/src/templator/genGridViewBlock.d.ts +0 -55
  691. package/dist/src/templator/genListViewBlock.d.ts +0 -19
  692. package/dist/src/templator/genQueryComponent.d.ts +0 -34
  693. package/dist/src/templator/genSelectBlock.d.ts +0 -45
  694. package/dist/src/templator/genTableBlock.d.ts +0 -55
  695. package/dist/src/templator/genUpdateBlock.d.ts +0 -6
  696. package/dist/src/templator/index.d.ts +0 -19
  697. package/dist/src/templator/utils.d.ts +0 -683
  698. package/dist/src/translator/constant.d.ts +0 -6
  699. package/dist/src/translator/index.d.ts +0 -3
  700. package/dist/src/translator/types.d.ts +0 -85
  701. package/dist/src/translator/utils.d.ts +0 -47
  702. package/dist/src/utils/cookie.d.ts +0 -9
  703. package/dist/src/utils/create.d.ts +0 -2
  704. package/dist/src/utils/env.d.ts +0 -2
  705. package/dist/src/utils/file.d.ts +0 -33
  706. package/dist/src/utils/i18nInfo.d.ts +0 -5
  707. package/dist/src/utils/index.d.ts +0 -72
  708. package/dist/src/utils/logger.d.ts +0 -8
  709. package/dist/src/utils/sortTsString.d.ts +0 -1
  710. package/dist/src/utils/string.d.ts +0 -64
  711. package/dist/src/utils/time-slicing/constant.d.ts +0 -35
  712. package/dist/src/utils/time-slicing/controller.d.ts +0 -53
  713. package/dist/src/utils/time-slicing/index.d.ts +0 -5
  714. package/dist/src/utils/time-slicing/page-state.d.ts +0 -2
  715. package/dist/src/utils/time-slicing/performance.d.ts +0 -11
  716. package/dist/src/utils/time-slicing/runner.d.ts +0 -12
  717. package/dist/src/utils/time-slicing/tool.d.ts +0 -24
  718. package/dist/src/utils/time-slicing/utils.d.ts +0 -62
  719. package/dist/src/utils/time-slicing/wrapper.d.ts +0 -18
  720. package/dist/src/utils/traverse.d.ts +0 -36
  721. package/dist/src/utils/types.d.ts +0 -13
  722. package/dist/src/utils/window.d.ts +0 -7
  723. package/dist/test/concepts/anonymous-function/constant.d.ts +0 -2
  724. package/dist/test/concepts/anonymous-function/toEmbeddedTS.spec.d.ts +0 -1
  725. package/dist/test/concepts/anonymous-function/toJS.spec.d.ts +0 -1
  726. package/dist/test/concepts/anonymous-function/toVue.spec.d.ts +0 -1
  727. package/dist/test/concepts/assignment/constant.d.ts +0 -2
  728. package/dist/test/concepts/assignment/toEmbeddedTS.spec.d.ts +0 -1
  729. package/dist/test/concepts/assignment/toJS.spec.d.ts +0 -1
  730. package/dist/test/concepts/assignment/toVue.spec.d.ts +0 -1
  731. package/dist/test/concepts/batch-assignment/constant.d.ts +0 -2
  732. package/dist/test/concepts/batch-assignment/toEmbeddedTS.spec.d.ts +0 -1
  733. package/dist/test/concepts/batch-assignment/toJS.spec.d.ts +0 -1
  734. package/dist/test/concepts/batch-assignment/toVue.spec.d.ts +0 -1
  735. package/dist/test/concepts/binary-expression/constant.d.ts +0 -2
  736. package/dist/test/concepts/binary-expression/getQuickInfoOffset.spec.d.ts +0 -1
  737. package/dist/test/concepts/binary-expression/toEmbeddedTS.spec.d.ts +0 -1
  738. package/dist/test/concepts/binary-expression/toJS.spec.d.ts +0 -1
  739. package/dist/test/concepts/binary-expression/toVue.spec.d.ts +0 -1
  740. package/dist/test/concepts/boolean-literal/constant.d.ts +0 -2
  741. package/dist/test/concepts/boolean-literal/toEmbeddedTS.spec.d.ts +0 -1
  742. package/dist/test/concepts/boolean-literal/toJS.spec.d.ts +0 -1
  743. package/dist/test/concepts/boolean-literal/toVue.spec.d.ts +0 -1
  744. package/dist/test/concepts/call-function/constant.d.ts +0 -2
  745. package/dist/test/concepts/call-function/getQuickInfoOffset.spec.d.ts +0 -1
  746. package/dist/test/concepts/call-function/toEmbeddedTS.spec.d.ts +0 -1
  747. package/dist/test/concepts/call-function/toJS.spec.d.ts +0 -1
  748. package/dist/test/concepts/call-interface/constant.d.ts +0 -2
  749. package/dist/test/concepts/call-interface/getQuickInfoOffset.spec.d.ts +0 -1
  750. package/dist/test/concepts/call-interface/toEmbeddedTS.spec.d.ts +0 -1
  751. package/dist/test/concepts/call-interface/toJS.spec.d.ts +0 -1
  752. package/dist/test/concepts/call-logic/constant.d.ts +0 -2
  753. package/dist/test/concepts/call-logic/getQuickInfoOffset.spec.d.ts +0 -1
  754. package/dist/test/concepts/call-logic/toEmbeddedTS.spec.d.ts +0 -1
  755. package/dist/test/concepts/call-logic/toJS.spec.d.ts +0 -1
  756. package/dist/test/concepts/call-logic/toUI.spec.d.ts +0 -1
  757. package/dist/test/concepts/call-logic/toVue.spec.d.ts +0 -1
  758. package/dist/test/concepts/call-logic/toVueDesigner.spec.d.ts +0 -1
  759. package/dist/test/concepts/data-source/constant.d.ts +0 -2
  760. package/dist/test/concepts/data-source/toEmbeddedTS.spec.d.ts +0 -1
  761. package/dist/test/concepts/data-source/toEmbeddedTSFile.spec.d.ts +0 -1
  762. package/dist/test/concepts/entity/constant.d.ts +0 -2
  763. package/dist/test/concepts/entity/toEmbeddedTS.spec.d.ts +0 -1
  764. package/dist/test/concepts/entity/toEmbeddedTSFile.spec.d.ts +0 -1
  765. package/dist/test/concepts/identifier/constant.d.ts +0 -2
  766. package/dist/test/concepts/identifier/toEmbeddedTS.spec.d.ts +0 -1
  767. package/dist/test/concepts/identifier/toJS.spec.d.ts +0 -1
  768. package/dist/test/concepts/identifier/toVue.spec.d.ts +0 -1
  769. package/dist/test/concepts/match/constant.d.ts +0 -2
  770. package/dist/test/concepts/match/toEmbeddedTS.spec.d.ts +0 -1
  771. package/dist/test/concepts/match/toJS.spec.d.ts +0 -1
  772. package/dist/test/concepts/member-expression/constant.d.ts +0 -2
  773. package/dist/test/concepts/member-expression/toEmbeddedTS.spec.d.ts +0 -1
  774. package/dist/test/concepts/member-expression/toJS.spec.d.ts +0 -1
  775. package/dist/test/concepts/member-expression/toVue.spec.d.ts +0 -1
  776. package/dist/test/concepts/new-composite/constant.d.ts +0 -2
  777. package/dist/test/concepts/new-composite/getQuickInfoOffset.spec.d.ts +0 -1
  778. package/dist/test/concepts/new-composite/toEmbeddedTS.spec.d.ts +0 -1
  779. package/dist/test/concepts/new-composite/toJS.spec.d.ts +0 -1
  780. package/dist/test/concepts/new-list/constant.d.ts +0 -2
  781. package/dist/test/concepts/new-list/getQuickInfoOffset.spec.d.ts +0 -1
  782. package/dist/test/concepts/new-list/toEmbeddedTS.spec.d.ts +0 -1
  783. package/dist/test/concepts/new-list/toJS.spec.d.ts +0 -1
  784. package/dist/test/concepts/new-map/constant.d.ts +0 -2
  785. package/dist/test/concepts/new-map/getQuickInfoOffset.spec.d.ts +0 -1
  786. package/dist/test/concepts/new-map/toEmbeddedTS.spec.d.ts +0 -1
  787. package/dist/test/concepts/new-map/toJS.spec.d.ts +0 -1
  788. package/dist/test/concepts/null-literal/constant.d.ts +0 -2
  789. package/dist/test/concepts/null-literal/toEmbeddedTS.spec.d.ts +0 -1
  790. package/dist/test/concepts/null-literal/toJS.spec.d.ts +0 -1
  791. package/dist/test/concepts/null-literal/toVue.spec.d.ts +0 -1
  792. package/dist/test/concepts/numeric-literal/constant.d.ts +0 -2
  793. package/dist/test/concepts/numeric-literal/toEmbeddedTS.spec.d.ts +0 -1
  794. package/dist/test/concepts/numeric-literal/toJS.spec.d.ts +0 -1
  795. package/dist/test/concepts/numeric-literal/toVue.spec.d.ts +0 -1
  796. package/dist/test/concepts/string-literal/constant.d.ts +0 -2
  797. package/dist/test/concepts/string-literal/toEmbeddedTS.spec.d.ts +0 -1
  798. package/dist/test/concepts/string-literal/toJS.spec.d.ts +0 -1
  799. package/dist/test/concepts/string-literal/toVue.spec.d.ts +0 -1
  800. package/dist/test/concepts/utils.d.ts +0 -13
  801. package/dist/test/concepts/validation-rule/constant.d.ts +0 -2
  802. package/dist/test/concepts/validation-rule/toEmbeddedTS.spec.d.ts +0 -1
  803. package/dist/test/concepts/validation-rule/toJS.spec.d.ts +0 -1
  804. package/dist/test/concepts/validation-rule/validation-rule.spec.d.ts +0 -1
  805. package/dist/test/concepts/view-element/constant.d.ts +0 -2
  806. package/dist/test/concepts/view-element/toEmbeddedTS.spec.d.ts +0 -1
  807. package/dist/test/concepts/view-element/toVue.spec.d.ts +0 -1
  808. package/dist/test/setup.d.ts +0 -1
  809. package/dist/test/time-slicing/runner.spec.d.ts +0 -1
  810. package/dist/test/time-slicing/time-slicing-nodejs.spec.d.ts +0 -1
  811. package/dist/test/time-slicing/utils.d.ts +0 -1
  812. package/dist/test/time-slicing/wrapper.spec.d.ts +0 -1
@@ -23,30 +23,30 @@
23
23
  <div class='clearfix'>
24
24
 
25
25
  <div class='fl pad1y space-right2'>
26
- <span class="strong">90.32% </span>
26
+ <span class="strong">94.73% </span>
27
27
  <span class="quiet">Statements</span>
28
- <span class='fraction'>28/31</span>
28
+ <span class='fraction'>18/19</span>
29
29
  </div>
30
30
 
31
31
 
32
32
  <div class='fl pad1y space-right2'>
33
33
  <span class="strong">100% </span>
34
34
  <span class="quiet">Branches</span>
35
- <span class='fraction'>5/5</span>
35
+ <span class='fraction'>0/0</span>
36
36
  </div>
37
37
 
38
38
 
39
39
  <div class='fl pad1y space-right2'>
40
- <span class="strong">80% </span>
40
+ <span class="strong">0% </span>
41
41
  <span class="quiet">Functions</span>
42
- <span class='fraction'>4/5</span>
42
+ <span class='fraction'>0/1</span>
43
43
  </div>
44
44
 
45
45
 
46
46
  <div class='fl pad1y space-right2'>
47
- <span class="strong">89.28% </span>
47
+ <span class="strong">100% </span>
48
48
  <span class="quiet">Lines</span>
49
- <span class='fraction'>25/28</span>
49
+ <span class='fraction'>17/17</span>
50
50
  </div>
51
51
 
52
52
 
@@ -2316,72 +2316,7 @@
2316
2316
  <a name='L2251'></a><a href='#L2251'>2251</a>
2317
2317
  <a name='L2252'></a><a href='#L2252'>2252</a>
2318
2318
  <a name='L2253'></a><a href='#L2253'>2253</a>
2319
- <a name='L2254'></a><a href='#L2254'>2254</a>
2320
- <a name='L2255'></a><a href='#L2255'>2255</a>
2321
- <a name='L2256'></a><a href='#L2256'>2256</a>
2322
- <a name='L2257'></a><a href='#L2257'>2257</a>
2323
- <a name='L2258'></a><a href='#L2258'>2258</a>
2324
- <a name='L2259'></a><a href='#L2259'>2259</a>
2325
- <a name='L2260'></a><a href='#L2260'>2260</a>
2326
- <a name='L2261'></a><a href='#L2261'>2261</a>
2327
- <a name='L2262'></a><a href='#L2262'>2262</a>
2328
- <a name='L2263'></a><a href='#L2263'>2263</a>
2329
- <a name='L2264'></a><a href='#L2264'>2264</a>
2330
- <a name='L2265'></a><a href='#L2265'>2265</a>
2331
- <a name='L2266'></a><a href='#L2266'>2266</a>
2332
- <a name='L2267'></a><a href='#L2267'>2267</a>
2333
- <a name='L2268'></a><a href='#L2268'>2268</a>
2334
- <a name='L2269'></a><a href='#L2269'>2269</a>
2335
- <a name='L2270'></a><a href='#L2270'>2270</a>
2336
- <a name='L2271'></a><a href='#L2271'>2271</a>
2337
- <a name='L2272'></a><a href='#L2272'>2272</a>
2338
- <a name='L2273'></a><a href='#L2273'>2273</a>
2339
- <a name='L2274'></a><a href='#L2274'>2274</a>
2340
- <a name='L2275'></a><a href='#L2275'>2275</a>
2341
- <a name='L2276'></a><a href='#L2276'>2276</a>
2342
- <a name='L2277'></a><a href='#L2277'>2277</a>
2343
- <a name='L2278'></a><a href='#L2278'>2278</a>
2344
- <a name='L2279'></a><a href='#L2279'>2279</a>
2345
- <a name='L2280'></a><a href='#L2280'>2280</a>
2346
- <a name='L2281'></a><a href='#L2281'>2281</a>
2347
- <a name='L2282'></a><a href='#L2282'>2282</a>
2348
- <a name='L2283'></a><a href='#L2283'>2283</a>
2349
- <a name='L2284'></a><a href='#L2284'>2284</a>
2350
- <a name='L2285'></a><a href='#L2285'>2285</a>
2351
- <a name='L2286'></a><a href='#L2286'>2286</a>
2352
- <a name='L2287'></a><a href='#L2287'>2287</a>
2353
- <a name='L2288'></a><a href='#L2288'>2288</a>
2354
- <a name='L2289'></a><a href='#L2289'>2289</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">45x</span>
2355
- <span class="cline-any cline-yes">1x</span>
2356
- <span class="cline-any cline-yes">1x</span>
2357
- <span class="cline-any cline-neutral">&nbsp;</span>
2358
- <span class="cline-any cline-yes">1x</span>
2359
- <span class="cline-any cline-no">&nbsp;</span>
2360
- <span class="cline-any cline-no">&nbsp;</span>
2361
- <span class="cline-any cline-neutral">&nbsp;</span>
2362
- <span class="cline-any cline-no">&nbsp;</span>
2363
- <span class="cline-any cline-neutral">&nbsp;</span>
2364
- <span class="cline-any cline-neutral">&nbsp;</span>
2365
- <span class="cline-any cline-neutral">&nbsp;</span>
2366
- <span class="cline-any cline-neutral">&nbsp;</span>
2367
- <span class="cline-any cline-neutral">&nbsp;</span>
2368
- <span class="cline-any cline-neutral">&nbsp;</span>
2369
- <span class="cline-any cline-neutral">&nbsp;</span>
2370
- <span class="cline-any cline-neutral">&nbsp;</span>
2371
- <span class="cline-any cline-neutral">&nbsp;</span>
2372
- <span class="cline-any cline-neutral">&nbsp;</span>
2373
- <span class="cline-any cline-neutral">&nbsp;</span>
2374
- <span class="cline-any cline-neutral">&nbsp;</span>
2375
- <span class="cline-any cline-yes">1x</span>
2376
- <span class="cline-any cline-neutral">&nbsp;</span>
2377
- <span class="cline-any cline-neutral">&nbsp;</span>
2378
- <span class="cline-any cline-neutral">&nbsp;</span>
2379
- <span class="cline-any cline-neutral">&nbsp;</span>
2380
- <span class="cline-any cline-neutral">&nbsp;</span>
2381
- <span class="cline-any cline-yes">1x</span>
2382
- <span class="cline-any cline-neutral">&nbsp;</span>
2383
- <span class="cline-any cline-neutral">&nbsp;</span>
2384
- <span class="cline-any cline-yes">1x</span>
2319
+ <a name='L2254'></a><a href='#L2254'>2254</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
2385
2320
  <span class="cline-any cline-yes">1x</span>
2386
2321
  <span class="cline-any cline-yes">1x</span>
2387
2322
  <span class="cline-any cline-yes">1x</span>
@@ -2409,6 +2344,7 @@
2409
2344
  <span class="cline-any cline-neutral">&nbsp;</span>
2410
2345
  <span class="cline-any cline-neutral">&nbsp;</span>
2411
2346
  <span class="cline-any cline-neutral">&nbsp;</span>
2347
+ <span class="cline-any cline-yes">1x</span>
2412
2348
  <span class="cline-any cline-neutral">&nbsp;</span>
2413
2349
  <span class="cline-any cline-neutral">&nbsp;</span>
2414
2350
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -2445,10 +2381,6 @@
2445
2381
  <span class="cline-any cline-neutral">&nbsp;</span>
2446
2382
  <span class="cline-any cline-neutral">&nbsp;</span>
2447
2383
  <span class="cline-any cline-neutral">&nbsp;</span>
2448
- <span class="cline-any cline-yes">1x</span>
2449
- <span class="cline-any cline-neutral">&nbsp;</span>
2450
- <span class="cline-any cline-neutral">&nbsp;</span>
2451
- <span class="cline-any cline-neutral">&nbsp;</span>
2452
2384
  <span class="cline-any cline-neutral">&nbsp;</span>
2453
2385
  <span class="cline-any cline-neutral">&nbsp;</span>
2454
2386
  <span class="cline-any cline-neutral">&nbsp;</span>
@@ -4636,2297 +4568,2260 @@
4636
4568
  <span class="cline-any cline-neutral">&nbsp;</span>
4637
4569
  <span class="cline-any cline-neutral">&nbsp;</span>
4638
4570
  <span class="cline-any cline-neutral">&nbsp;</span>
4639
- <span class="cline-any cline-yes">3x</span>
4640
- <span class="cline-any cline-yes">82x</span>
4641
4571
  <span class="cline-any cline-neutral">&nbsp;</span>
4642
4572
  <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import Namespace from '../../Namespace__';
4573
+ import Param from '../../Param__';
4574
+ import Return from '../../Return__';
4575
+ import Logic from '../../Logic__';
4576
+ import Function from '../../Function__';
4577
+ import TypeAnnotation from '../../TypeAnnotation__';
4578
+ import TypeParam from '../../TypeParam__';
4579
+ import NumericLiteral from '../../NumericLiteral__';
4580
+ import Identifier from '../../Identifier__';
4581
+ import BooleanLiteral from '../../BooleanLiteral__';
4582
+ import StringLiteral from '../../StringLiteral__';
4583
+ import AnonymousFunction from '../../AnonymousFunction__';
4584
+ import StringInterpolation from '../../StringInterpolation__';
4585
+ import NewList from '../../NewList__';
4643
4586
  import { TIMEZONES } from './timeZone';
4644
- import { getConceptConstructor } from '../../../decorators';
4645
4587
  &nbsp;
4646
- export const createTimezoneParam = (<span class="fstat-no" title="function not covered" >fnName: string) =&gt; {</span>
4647
- const <span class="cstat-no" title="statement not covered" >Param = getConceptConstructor('Param');</span>
4648
- const <span class="cstat-no" title="statement not covered" >StringLiteral = getConceptConstructor('StringLiteral');</span>
4649
- &nbsp;
4650
- <span class="cstat-no" title="statement not covered" > return new Param({</span>
4588
+ export const createTimezoneParam = <span class="fstat-no" title="function not covered" >(f</span>nName : string) =&gt; <span class="cstat-no" title="statement not covered" >new Param({</span>
4651
4589
  name: '时区',
4652
4590
  description: '以此时区为基准',
4653
4591
  useComponent: { type: 's-bidirectional-bind-switch' },
4654
4592
  defaultExpression: new StringLiteral({
4655
- name: `${fnName}TimeZoneDefaultExpression`,
4656
- value: 'global'
4593
+ name: `${fnName}TimeZoneDefaultExpression`,
4594
+ value: 'global'
4657
4595
  }),
4658
4596
  options: TIMEZONES,
4659
4597
  hidden: true,
4660
- });
4661
- }
4662
- &nbsp;
4663
- const utilNamespace = new Namespace({
4664
- name: 'util',
4665
- logics: [],
4666
- functions: [],
4667
- });
4668
- &nbsp;
4669
- export default utilNamespace;
4598
+ })
4670
4599
  &nbsp;
4671
- /** @internal */
4672
- export function initialize() {
4673
- const TypeAnnotation = getConceptConstructor('TypeAnnotation');
4674
- const Logic = getConceptConstructor('Logic');
4675
- const Param = getConceptConstructor('Param');
4676
- const Return = getConceptConstructor('Return');
4677
- const Function = getConceptConstructor('Function');
4678
- const AnonymousFunction = getConceptConstructor('AnonymousFunction');
4679
- const StringInterpolation = getConceptConstructor('StringInterpolation');
4680
- const TypeParam = getConceptConstructor('TypeParam');
4681
- const Identifier = getConceptConstructor('Identifier');
4682
- const BooleanLiteral = getConceptConstructor('BooleanLiteral');
4683
- const NumericLiteral = getConceptConstructor('NumericLiteral');
4684
- const StringLiteral = getConceptConstructor('StringLiteral');
4685
- const NewList = getConceptConstructor('NewList');
4686
- const DefaultValue = getConceptConstructor('DefaultValue');
4687
- &nbsp;
4688
- const logics = [
4689
- new Logic({
4690
- name: 'consoleLog',
4691
- params: [
4692
- new Param({
4693
- name: 'arg',
4694
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
4695
- defaultExpression: new StringInterpolation(),
4600
+ export default new Namespace({
4601
+ name: 'util',
4602
+ logics: [
4603
+ new Logic({
4604
+ name: 'consoleLog',
4605
+ params: [
4606
+ new Param({
4607
+ name: 'arg',
4608
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4609
+ defaultExpression: new StringInterpolation(),
4610
+ }),
4611
+ ],
4696
4612
  }),
4697
- ],
4698
- }),
4699
- new Logic({
4700
- name: 'jsonSerialize',
4701
- params: [
4702
- new Param({
4703
- name: 'arg',
4613
+ new Logic({
4614
+ name: 'jsonSerialize',
4615
+ params: [
4616
+ new Param({
4617
+ name: 'arg',
4618
+ }),
4619
+ ],
4620
+ returns: [
4621
+ new Return({
4622
+ name: 'result',
4623
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4624
+ }),
4625
+ ],
4704
4626
  }),
4705
- ],
4706
- returns: [
4707
- new Return({
4708
- name: 'result',
4709
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
4627
+ new Logic({
4628
+ name: 'jsonDeserialize',
4629
+ typeParams: [
4630
+ new TypeParam({
4631
+ name: 'T',
4632
+ }),
4633
+ ],
4634
+ params: [
4635
+ new Param({
4636
+ name: 'arg',
4637
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4638
+ }),
4639
+ ],
4640
+ returns: [
4641
+ new Return({
4642
+ name: 'result',
4643
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
4644
+ useComponent: { type: 's-datatype-select' },
4645
+ }),
4646
+ ],
4710
4647
  }),
4711
- ],
4712
- }),
4713
- new Logic({
4714
- name: 'jsonDeserialize',
4715
- typeParams: [
4716
- new TypeParam({
4717
- name: 'T',
4648
+ ],
4649
+ functions: [
4650
+ new Function({
4651
+ name: 'Convert',
4652
+ description: '各基础数据类型之间转换',
4653
+ typeParams: [
4654
+ new TypeParam({
4655
+ name: 'T',
4656
+ }),
4657
+ ],
4658
+ params: [
4659
+ new Param({
4660
+ name: 'value',
4661
+ description: '选择变量或常量',
4662
+ defaultExpression: new Identifier(),
4663
+ }),
4664
+ ],
4665
+ returns: [
4666
+ new Return({
4667
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
4668
+ }),
4669
+ ],
4718
4670
  }),
4719
- ],
4720
- params: [
4721
- new Param({
4722
- name: 'arg',
4723
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
4671
+ new Function({
4672
+ name: 'ToString',
4673
+ description: '各类型转换成字符串',
4674
+ params: [
4675
+ new Param({
4676
+ name: 'value',
4677
+ description: '待转成字符串的表达式',
4678
+ typeAnnotation: TypeAnnotation.createPrimitive('Any'),
4679
+ }),
4680
+ ],
4681
+ returns: [
4682
+ new Return({
4683
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4684
+ }),
4685
+ ],
4724
4686
  }),
4725
- ],
4726
- returns: [
4727
- new Return({
4728
- name: 'result',
4729
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
4730
- useComponent: { type: 's-datatype-select' },
4687
+ new Function({
4688
+ name: 'FromString',
4689
+ description: '字符串转换成其他类型',
4690
+ typeParams: [
4691
+ new TypeParam({
4692
+ name: 'T',
4693
+ }),
4694
+ ],
4695
+ params: [
4696
+ new Param({
4697
+ name: 'value',
4698
+ defaultExpression: new Identifier(),
4699
+ }),
4700
+ ],
4701
+ returns: [
4702
+ new Return({
4703
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
4704
+ }),
4705
+ ],
4731
4706
  }),
4732
- ],
4733
- }),
4734
- ];
4735
4707
  &nbsp;
4736
- const functions = [
4737
- &nbsp;
4738
- new Function({
4739
- name: 'Convert',
4740
- description: '各基础数据类型之间转换',
4741
- typeParams: [
4742
- new TypeParam({
4743
- name: 'T',
4744
- }),
4745
- ],
4746
- params: [
4747
- new Param({
4748
- name: 'value',
4749
- description: '选择变量或常量',
4750
- defaultExpression: new Identifier(),
4751
- }),
4752
- ],
4753
- returns: [
4754
- new Return({
4755
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
4756
- }),
4757
- ],
4758
- }),
4759
- new Function({
4760
- name: 'ToString',
4761
- description: '各类型转换成字符串',
4762
- params: [
4763
- new Param({
4764
- name: 'value',
4765
- description: '待转成字符串的表达式',
4766
- typeAnnotation: TypeAnnotation.createPrimitive('Any'),
4767
- }),
4768
- ],
4769
- returns: [
4770
- new Return({
4771
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
4772
- }),
4773
- ],
4774
- }),
4775
- new Function({
4776
- name: 'FromString',
4777
- description: '字符串转换成其他类型',
4778
- typeParams: [
4779
- new TypeParam({
4780
- name: 'T',
4781
- }),
4782
- ],
4783
- params: [
4784
- new Param({
4785
- name: 'value',
4786
- defaultExpression: new Identifier(),
4787
- }),
4788
- ],
4789
- returns: [
4790
- new Return({
4791
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
4792
- }),
4793
- ],
4794
- }),
4795
- new Function({
4796
- name: 'IndexOf',
4797
- description: '搜索字符串位置',
4798
- params: [
4799
- new Param({
4800
- name: 'str',
4801
- description: '指定字符串',
4802
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
4803
- }),
4804
- new Param({
4805
- name: 'search',
4806
- description: '指定需要搜索的字段,String类型',
4807
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
4808
- }),
4809
- new Param({
4810
- name: 'fromIndex',
4811
- description: '开始搜索的索引值,Integer类型,用数字表示第几项,项数索引从0开始',
4812
- defaultExpression: new NumericLiteral({ value: '0' }),
4813
- }),
4708
+ new Function({
4709
+ name: 'IndexOf',
4710
+ description: '搜索字符串位置',
4711
+ params: [
4712
+ new Param({
4713
+ name: 'str',
4714
+ description: '指定字符串',
4715
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4716
+ }),
4717
+ new Param({
4718
+ name: 'search',
4719
+ description: '指定需要搜索的字段,String类型',
4720
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4721
+ }),
4722
+ new Param({
4723
+ name: 'fromIndex',
4724
+ description: '开始搜索的索引值,Integer类型,用数字表示第几项,项数索引从0开始',
4725
+ defaultExpression: new NumericLiteral({ value: '0' }),
4726
+ }),
4814
4727
  &nbsp;
4815
- new Param({
4816
- name: 'ignoreCase',
4817
- description: '是否忽略大小写,true为忽略,false为不忽略',
4818
- defaultExpression: new BooleanLiteral({ value: 'true' }),
4819
- options: [
4820
- {
4821
- text: 'true',
4822
- value: 'true',
4823
- description: '忽略大小写',
4824
- },
4825
- {
4826
- text: 'false',
4827
- value: 'false',
4828
- description: '对大小写敏感',
4829
- },
4830
- ],
4831
- }),
4832
- ],
4833
- returns: [
4834
- new Return({
4835
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
4836
- }),
4837
- ],
4838
- }),
4839
- new Function({
4840
- name: 'LastIndexOf',
4841
- description: '从末尾搜索字符串位置',
4842
- params: [
4843
- new Param({
4844
- name: 'str',
4845
- description: '指定字符串',
4846
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
4847
- }),
4848
- new Param({
4849
- name: 'search',
4850
- description: '指定需要搜索的字段,String类型',
4851
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
4852
- }),
4853
- new Param({
4854
- name: 'ignoreCase',
4855
- description: '是否忽略大小写,true为忽略,false为不忽略',
4856
- defaultExpression: new BooleanLiteral({ value: 'true' }),
4857
- options: [
4858
- {
4859
- text: 'true',
4860
- value: 'true',
4861
- description: '忽略大小写',
4862
- },
4863
- {
4864
- text: 'false',
4865
- value: 'false',
4866
- description: '对大小写敏感',
4867
- },
4868
- ],
4869
- }),
4870
- ],
4871
- returns: [
4872
- new Return({
4873
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
4874
- }),
4875
- ],
4876
- }),
4877
- new Function({
4878
- name: 'Replace',
4879
- description: '字符串替换。返回替换后的新字符串。',
4880
- params: [
4881
- new Param({
4882
- name: 'str',
4883
- description: '指定原始字符串',
4884
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
4885
- }),
4886
- new Param({
4887
- name: 'search',
4888
- description: '指定原始字符串中需要被替换的字符串',
4889
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
4890
- }),
4891
- new Param({
4892
- name: 'replace',
4893
- description: '指定进行替换操作的字符串',
4894
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
4895
- }),
4896
- ],
4897
- returns: [
4898
- new Return({
4899
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
4900
- }),
4901
- ],
4902
- }),
4903
- new Function({
4904
- name: 'SubString',
4905
- description: '字符串截取。返回截取的字符串。',
4906
- params: [
4907
- new Param({
4908
- name: 'str',
4909
- description: '指定需要截取的字符串',
4910
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
4911
- }),
4912
- new Param({
4913
- name: 'start',
4914
- description: 'int类型,输入数字指定开始截取的位置',
4915
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
4916
- }),
4917
- new Param({
4918
- name: 'length',
4919
- description: '指定截取的字符串长度',
4920
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
4921
- }),
4922
- ],
4923
- returns: [
4924
- new Return({
4925
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
4926
- }),
4927
- ],
4928
- }),
4929
- new Function({
4930
- name: 'EnumToList',
4931
- description: '返回枚举value和text的List集合',
4932
- typeParams: [
4933
- new TypeParam({
4934
- name: 'enum',
4935
- useComponent: { type: 's-enum-select' },
4936
- }),
4937
- ],
4938
- returns: [
4939
- new Return({
4940
- typeAnnotation: TypeAnnotation.createGeneric('List', {
4941
- typeArguments: [TypeAnnotation.createPrimitive('String')],
4942
- }),
4943
- }),
4944
- ],
4945
- }),
4946
- new Function({
4947
- name: 'EnumValueToText',
4948
- description: '返回枚举指定value的标题字符串',
4949
- typeParams: [
4950
- new TypeParam({
4951
- name: 'enum',
4952
- useComponent: { type: 's-enum-select' },
4953
- }),
4954
- ],
4955
- params: [
4956
- new Param({
4957
- name: 'value',
4958
- description: '指定需要将枚举值转换为标题的字段',
4959
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
4960
- }),
4961
- ],
4962
- returns: [
4963
- new Return({
4964
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
4965
- }),
4966
- ],
4967
- }),
4968
- new Function({
4969
- name: 'StringToEnumValue',
4970
- description: '在指定enum中找到与参数str相同的枚举值并返回。',
4971
- typeParams: [
4972
- new TypeParam({
4973
- name: 'enum',
4974
- useComponent: { type: 's-enum-select' },
4975
- }),
4976
- ],
4977
- params: [
4978
- new Param({
4979
- name: 'value',
4980
- description: '指定一个字符串',
4981
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
4982
- }),
4983
- ],
4984
- returns: [
4985
- new Return({
4986
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
4987
- }),
4988
- ],
4989
- }),
4990
- new Function({
4991
- name: 'Split',
4992
- description: '将字符串参数,用分割符分割成字符串列表,并返回',
4993
- params: [
4994
- new Param({
4995
- name: 'str',
4996
- description: '指定字符串',
4997
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
4998
- }),
4999
- new Param({
5000
- name: 'separator',
5001
- description: '指定字符串中作为分隔符的参数',
5002
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
5003
- }),
5004
- ],
5005
- returns: [
5006
- new Return({
5007
- typeAnnotation: TypeAnnotation.createGeneric('List', {
5008
- typeArguments: [TypeAnnotation.createPrimitive('String')],
5009
- }),
5010
- }),
5011
- ],
5012
- }),
5013
- new Function({
5014
- name: 'Join',
5015
- description: '将列表的项,用连接符连接成一个字符串,并返回',
5016
- params: [
5017
- new Param({
5018
- name: 'list',
5019
- description: '指定列表',
5020
- typeAnnotation: TypeAnnotation.createGeneric('List', {
5021
- typeArguments: [TypeAnnotation.createPrimitive('String')],
5022
- }),
5023
- }),
5024
- new Param({
5025
- name: 'separator',
5026
- description: '连接符,用于连接列表中的项',
5027
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
5028
- }),
5029
- ],
5030
- returns: [
5031
- new Return({
5032
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
5033
- }),
5034
- ],
5035
- }),
5036
- new Function({
5037
- name: 'Length',
5038
- description: '返回String或Map或List的长度',
5039
- params: [
5040
- new Param({
5041
- name: 'param',
5042
- description: '指定字符串',
5043
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
5044
- }),
5045
- ],
5046
- returns: [
5047
- new Return({
5048
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5049
- }),
5050
- ],
5051
- }),
5052
- new Function({
5053
- name: 'ToLower',
5054
- description: '返回全部小写的字符串',
5055
- params: [
5056
- new Param({
5057
- name: 'str1',
5058
- description: '指定字符串',
5059
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
5060
- }),
5061
- ],
5062
- returns: [
5063
- new Return({
5064
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
5065
- }),
5066
- ],
5067
- }),
5068
- new Function({
5069
- name: 'ToUpper',
5070
- description: '返回全部大写的字符串',
5071
- params: [
5072
- new Param({
5073
- name: 'str1',
5074
- description: '指定字符串',
5075
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
5076
- }),
5077
- ],
5078
- returns: [
5079
- new Return({
5080
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
5081
- }),
5082
- ],
5083
- }),
5084
- new Function({
5085
- name: 'Trim',
5086
- description: '删除字符串的前后空格。返回裁剪后的新字符串。',
5087
- params: [
5088
- new Param({
5089
- name: 'str1',
5090
- description: '指定字符串',
5091
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
5092
- }),
5093
- ],
5094
- returns: [
5095
- new Return({
5096
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
5097
- }),
5098
- ],
5099
- }),
5100
- new Function({
5101
- name: 'Get',
5102
- description: '获得列表位于指定索引处的项',
5103
- params: [
5104
- new Param({
5105
- name: 'list',
5106
- description: '指定列表',
5107
- typeAnnotation: TypeAnnotation.createGeneric('List', {
5108
- typeArguments: [TypeAnnotation.createTypeParam('T')],
5109
- }),
5110
- }),
5111
- new Param({
5112
- name: 'index',
5113
- description: '索引,integer类型,用数字表示第几项,项数索引从0开始',
5114
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5115
- }),
5116
- ],
5117
- returns: [
5118
- new Return({
5119
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
5120
- }),
5121
- ],
5122
- }),
5123
- new Function({
5124
- name: 'Set',
5125
- description: '(修改原数据)为列表的指定索引项赋值(覆盖原索引项)',
5126
- params: [
5127
- new Param({
5128
- name: 'list',
5129
- description: '指定列表',
5130
- typeAnnotation: TypeAnnotation.createGeneric('List', {
5131
- typeArguments: [TypeAnnotation.createTypeParam('T')],
5132
- }),
5133
- }),
5134
- new Param({
5135
- name: 'index',
5136
- description: '索引,integer类型,用数字表示第几项,项数索引从0开始',
5137
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5138
- }),
5139
- new Param({
5140
- name: 'item',
5141
- description: '列表指定索引下的新项',
5142
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
5143
- }),
5144
- ],
5145
- returns: [
5146
- new Return({
5147
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
5148
- }),
5149
- ],
5150
- }),
5151
- new Function({
5152
- name: 'Contains',
5153
- description: '测试列表是否包含某一项,返回测试结果',
5154
- params: [
5155
- new Param({
5156
- name: 'list',
5157
- description: '指定列表',
5158
- typeAnnotation: TypeAnnotation.createGeneric('List', {
5159
- typeArguments: [TypeAnnotation.createTypeParam('T')],
5160
- }),
5161
- }),
5162
- new Param({
5163
- name: 'item',
5164
- description: '指定项',
5165
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
5166
- }),
5167
- ],
5168
- returns: [
5169
- new Return({
5170
- typeAnnotation: TypeAnnotation.createTypeParam('Boolean'),
5171
- }),
5172
- ],
5173
- }),
5174
- new Function({
5175
- name: 'Add',
5176
- description: '(修改原数据)在列表末尾追加项。',
5177
- params: [
5178
- new Param({
5179
- name: 'list',
5180
- description: '指定列表',
5181
- typeAnnotation: TypeAnnotation.createGeneric('List', {
5182
- typeArguments: [TypeAnnotation.createTypeParam('T')],
5183
- }),
5184
- }),
5185
- new Param({
5186
- name: 'item',
5187
- description: '指定需要在列表末尾增加的项',
5188
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
5189
- }),
5190
- ],
5191
- }),
5192
- new Function({
5193
- name: 'AddAll',
5194
- description: '(修改原数据)为一个列表添加另一列表中的多项内容。返回新列表的长度',
5195
- params: [
5196
- new Param({
5197
- name: 'list',
5198
- description: '指定列表1',
5199
- typeAnnotation: TypeAnnotation.createGeneric('List', {
5200
- typeArguments: [TypeAnnotation.createTypeParam('T')],
5201
- }),
5202
- }),
5203
- new Param({
5204
- name: 'addList',
5205
- description: '指定列表2',
5206
- typeAnnotation: TypeAnnotation.createGeneric('List', {
5207
- typeArguments: [TypeAnnotation.createTypeParam('T')],
5208
- }),
5209
- }),
5210
- ],
5211
- returns: [
5212
- new Return({
5213
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5214
- }),
5215
- ],
5216
- }),
5217
- new Function({
5218
- name: 'Insert',
5219
- description: '(修改原数据)在列表的指定索引处插入新项(原索引项依次后推)',
5220
- params: [
5221
- new Param({
5222
- name: 'list',
5223
- description: '指定列表',
5224
- typeAnnotation: TypeAnnotation.createGeneric('List', {
5225
- typeArguments: [TypeAnnotation.createTypeParam('T')],
5226
- }),
5227
- }),
5228
- new Param({
5229
- name: 'index',
5230
- description: '索引,integer类型,用数字表示第几项,项数索引从0开始',
5231
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5232
- }),
5233
- new Param({
5234
- name: 'item',
5235
- description: '待插入项',
5236
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
5237
- }),
5238
- ],
5239
- }),
5240
- new Function({
5241
- name: 'Remove',
5242
- description: '(修改原数据)删除列表的某项',
5243
- params: [
5244
- new Param({
5245
- name: 'list',
5246
- description: '指定列表',
5247
- typeAnnotation: TypeAnnotation.createGeneric('List', {
5248
- typeArguments: [TypeAnnotation.createTypeParam('T')],
5249
- }),
5250
- }),
5251
- new Param({
5252
- name: 'item',
5253
- description: '指定项',
5254
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
5255
- }),
5256
- ],
5257
- }),
5258
- new Function({
5259
- name: 'RemoveAt',
5260
- description: '(修改原数据)在列表中删除位于指定索引的项。返回被删除的项',
5261
- params: [
5262
- new Param({
5263
- name: 'list',
5264
- description: '指定列表',
5265
- typeAnnotation: TypeAnnotation.createGeneric('List', {
5266
- typeArguments: [TypeAnnotation.createTypeParam('T')],
5267
- }),
5268
- }),
5269
- new Param({
5270
- name: 'index',
5271
- description: '索引,integer类型,用数字表示第几项,项数索引从0开始',
5272
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5273
- }),
5274
- ],
5275
- returns: [
5276
- new Return({
5277
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
5278
- }),
5279
- ],
5280
- }),
5281
- new Function({
5282
- name: 'ListHead',
5283
- description: '返回列表的首项',
5284
- params: [
5285
- new Param({
5286
- name: 'list',
5287
- description: '指定列表',
5288
- }),
5289
- ],
5290
- returns: [
5291
- new Return({
5292
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
5293
- }),
5294
- ],
5295
- }),
5296
- new Function({
5297
- name: 'ListLast',
5298
- description: '返回列表的末项',
5299
- params: [
5300
- new Param({
5301
- name: 'list',
5302
- description: '指定列表',
5303
- }),
5304
- ],
5305
- returns: [
5306
- new Return({
5307
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
5308
- }),
5309
- ],
5310
- }),
5311
- new Function({
5312
- name: 'ListFlatten',
5313
- description: '将嵌套列表摊平一层并返回(List&lt;List&lt;T&gt;&gt; 变为 List&lt;T&gt;)',
5314
- params: [
5315
- new Param({
5316
- name: 'list',
5317
- description: '指定列表',
5318
- }),
5319
- ],
5320
- returns: [
5321
- new Return({
5322
- typeAnnotation: TypeAnnotation.createGeneric('List', {
5323
- typeArguments: [TypeAnnotation.createTypeParam('T')],
5324
- }),
5325
- }),
5326
- ],
5327
- }),
5328
- new Function({
5329
- name: 'ListToMap',
5330
- description: '选取列表项的某些属性,根据这些属性将列表变为 Map 并返回',
5331
- params: [
5332
- new Param({
5333
- name: 'list',
5334
- description: '指定列表',
4728
+ new Param({
4729
+ name: 'ignoreCase',
4730
+ description: '是否忽略大小写,true为忽略,false为不忽略',
4731
+ defaultExpression: new BooleanLiteral({ value: 'true' }),
4732
+ options: [
4733
+ {
4734
+ text: 'true',
4735
+ value: 'true',
4736
+ description: '忽略大小写',
4737
+ },
4738
+ {
4739
+ text: 'false',
4740
+ value: 'false',
4741
+ description: '对大小写敏感',
4742
+ },
4743
+ ],
4744
+ }),
4745
+ ],
4746
+ returns: [
4747
+ new Return({
4748
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
4749
+ }),
4750
+ ],
5335
4751
  }),
5336
- new Param({
5337
- name: 'by',
5338
- description: `根据项的属性及其本身进行key和value的定义`,
5339
- defaultExpression: new AnonymousFunction({
4752
+ new Function({
4753
+ name: 'LastIndexOf',
4754
+ description: '从末尾搜索字符串位置',
5340
4755
  params: [
5341
- new Param({
5342
- name: 'item',
5343
- typeAnnotation: null,
5344
- }),
4756
+ new Param({
4757
+ name: 'str',
4758
+ description: '指定字符串',
4759
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4760
+ }),
4761
+ new Param({
4762
+ name: 'search',
4763
+ description: '指定需要搜索的字段,String类型',
4764
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4765
+ }),
4766
+ new Param({
4767
+ name: 'ignoreCase',
4768
+ description: '是否忽略大小写,true为忽略,false为不忽略',
4769
+ defaultExpression: new BooleanLiteral({ value: 'true' }),
4770
+ options: [
4771
+ {
4772
+ text: 'true',
4773
+ value: 'true',
4774
+ description: '忽略大小写',
4775
+ },
4776
+ {
4777
+ text: 'false',
4778
+ value: 'false',
4779
+ description: '对大小写敏感',
4780
+ },
4781
+ ],
4782
+ }),
4783
+ ],
4784
+ returns: [
4785
+ new Return({
4786
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
4787
+ }),
5345
4788
  ],
5346
- body: new Identifier(),
5347
- }),
5348
4789
  }),
5349
- new Param({
5350
- name: 'byVal',
5351
- defaultExpression: new AnonymousFunction({
4790
+ new Function({
4791
+ name: 'Replace',
4792
+ description: '字符串替换。返回替换后的新字符串。',
5352
4793
  params: [
5353
- new Param({
5354
- name: 'item',
5355
- typeAnnotation: null,
5356
- }),
4794
+ new Param({
4795
+ name: 'str',
4796
+ description: '指定原始字符串',
4797
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4798
+ }),
4799
+ new Param({
4800
+ name: 'search',
4801
+ description: '指定原始字符串中需要被替换的字符串',
4802
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4803
+ }),
4804
+ new Param({
4805
+ name: 'replace',
4806
+ description: '指定进行替换操作的字符串',
4807
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4808
+ }),
4809
+ ],
4810
+ returns: [
4811
+ new Return({
4812
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
4813
+ }),
5357
4814
  ],
5358
- body: new Identifier(),
5359
- }),
5360
- }),
5361
- ],
5362
- }),
5363
- new Function({
5364
- name: 'ListTransform',
5365
- description: '对列表的每一项调用函数 by,得到新项;返回新项构成的列表',
5366
- params: [
5367
- new Param({
5368
- name: 'list',
5369
- description: '指定列表',
5370
4815
  }),
5371
- new Param({
5372
- name: 'by',
5373
- description: '指定对列表中项的某个属性或项本身的处理方式,支持算数运算和比较运算',
5374
- defaultExpression: new AnonymousFunction({
4816
+ new Function({
4817
+ name: 'SubString',
4818
+ description: '字符串截取。返回截取的字符串。',
5375
4819
  params: [
5376
- new Param({
5377
- name: 'item',
5378
- typeAnnotation: null,
5379
- }),
4820
+ new Param({
4821
+ name: 'str',
4822
+ description: '指定需要截取的字符串',
4823
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4824
+ }),
4825
+ new Param({
4826
+ name: 'start',
4827
+ description: 'int类型,输入数字指定开始截取的位置',
4828
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4829
+ }),
4830
+ new Param({
4831
+ name: 'length',
4832
+ description: '指定截取的字符串长度',
4833
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4834
+ }),
4835
+ ],
4836
+ returns: [
4837
+ new Return({
4838
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4839
+ }),
5380
4840
  ],
5381
- }),
5382
- }),
5383
- ],
5384
- returns: [
5385
- new Return({
5386
- typeAnnotation: TypeAnnotation.createGeneric('List', {
5387
- typeArguments: [TypeAnnotation.createTypeParam('T')],
5388
- }),
5389
- }),
5390
- ],
5391
- }),
5392
- new Function({
5393
- name: 'ListSum',
5394
- description: '返回数值列表中所有项的和',
5395
- params: [
5396
- new Param({
5397
- name: 'list',
5398
- description: '指定列表',
5399
- }),
5400
- ],
5401
- returns: [
5402
- new Return({
5403
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
5404
- }),
5405
- ],
5406
- }),
5407
- new Function({
5408
- name: 'ListProduct',
5409
- description: '返回数值列表中所有项的积',
5410
- params: [
5411
- new Param({
5412
- name: 'list',
5413
- description: '指定数值类型列表',
5414
- }),
5415
- ],
5416
- returns: [
5417
- new Return({
5418
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
5419
- }),
5420
- ],
5421
- }),
5422
- new Function({
5423
- name: 'ListAverage',
5424
- description: '返回数值列表中所有项的平均值',
5425
- params: [
5426
- new Param({
5427
- name: 'list',
5428
- description: '指定数值类型列表',
5429
- }),
5430
- ],
5431
- returns: [
5432
- new Return({
5433
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
5434
- }),
5435
- ],
5436
- }),
5437
- new Function({
5438
- name: 'ListMax',
5439
- description: '返回数值列表中所有项的最大值',
5440
- params: [
5441
- new Param({
5442
- name: 'list',
5443
- description: '指定数值类型列表',
5444
- }),
5445
- ],
5446
- returns: [
5447
- new Return({
5448
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
5449
- }),
5450
- ],
5451
- }),
5452
- new Function({
5453
- name: 'ListMin',
5454
- description: '返回数值列表中所有项的最小值',
5455
- params: [
5456
- new Param({
5457
- name: 'list',
5458
- description: '指定数值类型列表',
5459
- }),
5460
- ],
5461
- returns: [
5462
- new Return({
5463
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
5464
- }),
5465
- ],
5466
- }),
5467
- new Function({
5468
- name: 'MapGet',
5469
- description: '查询出Map中key为指定值的value值列表',
5470
- params: [
5471
- new Param({
5472
- name: 'map',
5473
- description: '指定映射',
5474
- typeAnnotation: TypeAnnotation.createGeneric('map', {
5475
- typeArguments: [
5476
- TypeAnnotation.createTypeParam('K'),
5477
- TypeAnnotation.createTypeParam('V'),
5478
- ],
5479
- }),
5480
- }),
5481
- new Param({
5482
- name: 'key',
5483
- description: '指定参数key',
5484
- typeAnnotation: TypeAnnotation.createTypeParam('K'),
5485
- }),
5486
- ],
5487
- returns: [
5488
- new Return({
5489
- typeAnnotation: TypeAnnotation.createTypeParam('V'),
5490
- }),
5491
- ],
5492
- }),
5493
- new Function({
5494
- name: 'MapPut',
5495
- description: '(修改原数据)为Map中添加键值对',
5496
- params: [
5497
- new Param({
5498
- name: 'map',
5499
- description: '指定映射',
5500
- typeAnnotation: TypeAnnotation.createGeneric('map', {
5501
- typeArguments: [
5502
- TypeAnnotation.createTypeParam('K'),
5503
- TypeAnnotation.createTypeParam('V'),
5504
- ],
5505
- }),
5506
- }),
5507
- new Param({
5508
- name: 'key',
5509
- description: '指定参数key',
5510
- typeAnnotation: TypeAnnotation.createTypeParam('K'),
5511
- }),
5512
- new Param({
5513
- name: 'value',
5514
- description: '指定参数value',
5515
- typeAnnotation: TypeAnnotation.createTypeParam('V'),
5516
- }),
5517
- ],
5518
- }),
5519
- new Function({
5520
- name: 'MapRemove',
5521
- description: '(修改原数据)删除Map中的键值对',
5522
- params: [
5523
- new Param({
5524
- name: 'map',
5525
- description: '指定列表',
5526
- typeAnnotation: TypeAnnotation.createGeneric('map', {
5527
- typeArguments: [
5528
- TypeAnnotation.createTypeParam('K'),
5529
- TypeAnnotation.createTypeParam('V'),
5530
- ],
5531
- }),
5532
- }),
5533
- new Param({
5534
- name: 'key',
5535
- description: '指定参数key',
5536
- typeAnnotation: TypeAnnotation.createTypeParam('K'),
5537
- }),
5538
- ],
5539
- }),
5540
- new Function({
5541
- name: 'MapContains',
5542
- description: '判断Map中是否存在参数指定的键值对',
5543
- params: [
5544
- new Param({
5545
- name: 'map',
5546
- description: '指定映射',
5547
- typeAnnotation: TypeAnnotation.createGeneric('map', {
5548
- typeArguments: [
5549
- TypeAnnotation.createTypeParam('K'),
5550
- TypeAnnotation.createTypeParam('V'),
5551
- ],
5552
- }),
5553
- }),
5554
- new Param({
5555
- name: 'key',
5556
- description: '指定参数key',
5557
- typeAnnotation: TypeAnnotation.createTypeParam('K'),
5558
- }),
5559
- ],
5560
- returns: [
5561
- new Return({
5562
- typeAnnotation: TypeAnnotation.createTypeParam('Boolean'),
5563
- }),
5564
- ],
5565
- }),
5566
- new Function({
5567
- name: 'MapKeys',
5568
- description: '输出Map中key集合',
5569
- params: [
5570
- new Param({
5571
- name: 'map',
5572
- description: '指定映射',
5573
- typeAnnotation: TypeAnnotation.createGeneric('map', {
5574
- typeArguments: [
5575
- TypeAnnotation.createTypeParam('K'),
5576
- TypeAnnotation.createTypeParam('V'),
5577
- ],
5578
- }),
5579
- }),
5580
- ],
5581
- returns: [
5582
- new Return({
5583
- typeAnnotation: TypeAnnotation.createGeneric('List', {
5584
- typeArguments: [TypeAnnotation.createTypeParam('K')],
5585
- }),
5586
- }),
5587
- ],
5588
- }),
5589
- new Function({
5590
- name: 'MapValues',
5591
- description: '输出Map中value集合',
5592
- params: [
5593
- new Param({
5594
- name: 'map',
5595
- description: '指定映射',
5596
- typeAnnotation: TypeAnnotation.createGeneric('map', {
5597
- typeArguments: [
5598
- TypeAnnotation.createTypeParam('K'),
5599
- TypeAnnotation.createTypeParam('V'),
5600
- ],
5601
- }),
5602
- }),
5603
- ],
5604
- returns: [
5605
- new Return({
5606
- typeAnnotation: TypeAnnotation.createGeneric('List', {
5607
- typeArguments: [TypeAnnotation.createTypeParam('V')],
5608
- }),
5609
4841
  }),
5610
- ],
5611
- }),
5612
- new Function({
5613
- name: 'MapFilter',
5614
- description: '在指定Map中过滤出符合条件参数的Map列表',
5615
- params: [
5616
- new Param({
5617
- name: 'map',
5618
- description: '指定映射',
4842
+ new Function({
4843
+ name: 'EnumToList',
4844
+ description: '返回枚举value和text的List集合',
4845
+ typeParams: [
4846
+ new TypeParam({
4847
+ name: 'enum',
4848
+ useComponent: { type: 's-enum-select' },
4849
+ }),
4850
+ ],
4851
+ returns: [
4852
+ new Return({
4853
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
4854
+ typeArguments: [TypeAnnotation.createPrimitive('String')],
4855
+ }),
4856
+ }),
4857
+ ],
5619
4858
  }),
5620
- new Param({
5621
- name: 'by',
5622
- description: '针对键值对的参数key和value设置过滤条件,支持算数运算、比较运算和逻辑运算',
5623
- defaultExpression: new AnonymousFunction({
4859
+ new Function({
4860
+ name: 'EnumValueToText',
4861
+ description: '返回枚举指定value的标题字符串',
4862
+ typeParams: [
4863
+ new TypeParam({
4864
+ name: 'enum',
4865
+ useComponent: { type: 's-enum-select' },
4866
+ }),
4867
+ ],
5624
4868
  params: [
5625
- new Param({
5626
- name: 'key',
5627
- typeAnnotation: null,
5628
- }),
5629
- new Param({
5630
- name: 'value',
5631
- typeAnnotation: null,
5632
- }),
5633
- ],
5634
- }),
5635
- }),
5636
- ],
5637
- returns: [
5638
- new Return({
5639
- typeAnnotation: TypeAnnotation.createGeneric('map', {
5640
- typeArguments: [
5641
- TypeAnnotation.createTypeParam('K'),
5642
- TypeAnnotation.createTypeParam('V'),
5643
- ],
5644
- }),
5645
- }),
5646
- ],
5647
- }),
5648
- new Function({
5649
- name: 'MapTransform',
5650
- description: '对 Map 的每一项调用函数 by,得到新项,并返回新项构成的 Map。(Map 的每一项从 (K0, V0) 变为 (K, V)。)',
5651
- params: [
5652
- new Param({
5653
- name: 'map',
5654
- description: '指定映射',
4869
+ new Param({
4870
+ name: 'value',
4871
+ description: '指定需要将枚举值转换为标题的字段',
4872
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4873
+ }),
4874
+ ],
4875
+ returns: [
4876
+ new Return({
4877
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4878
+ }),
4879
+ ],
5655
4880
  }),
5656
- new Param({
5657
- name: 'by',
5658
- description: `指定映射中键值对的参数处理方式,支持算数运算和比较运算`,
5659
- defaultExpression: new AnonymousFunction({
4881
+ new Function({
4882
+ name: 'StringToEnumValue',
4883
+ description: '在指定enum中找到与参数str相同的枚举值并返回。',
4884
+ typeParams: [
4885
+ new TypeParam({
4886
+ name: 'enum',
4887
+ useComponent: { type: 's-enum-select' },
4888
+ }),
4889
+ ],
5660
4890
  params: [
5661
- new Param({
5662
- name: 'key',
5663
- typeAnnotation: null,
5664
- }),
5665
- new Param({
5666
- name: 'value',
5667
- typeAnnotation: null,
5668
- }),
5669
- ],
5670
- body: new Identifier({
5671
- name: 'key',
5672
- }),
5673
- }),
4891
+ new Param({
4892
+ name: 'value',
4893
+ description: '指定一个字符串',
4894
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4895
+ }),
4896
+ ],
4897
+ returns: [
4898
+ new Return({
4899
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4900
+ }),
4901
+ ],
5674
4902
  }),
5675
- new Param({
5676
- name: 'byVal',
5677
- defaultExpression: new AnonymousFunction({
4903
+ new Function({
4904
+ name: 'Split',
4905
+ description: '将字符串参数,用分割符分割成字符串列表,并返回',
5678
4906
  params: [
5679
- new Param({
5680
- name: 'key',
5681
- typeAnnotation: null,
5682
- }),
5683
- new Param({
5684
- name: 'value',
5685
- typeAnnotation: null,
5686
- }),
5687
- ],
5688
- }),
5689
- }),
5690
- ],
5691
- returns: [
5692
- new Return({
5693
- typeAnnotation: TypeAnnotation.createGeneric('Map', {
5694
- typeArguments: [TypeAnnotation.createTypeParam('K'), TypeAnnotation.createTypeParam('V')],
5695
- }),
5696
- }),
5697
- ],
5698
- }),
5699
- new Function({
5700
- name: 'CurrDate',
5701
- description: '返回指定时区的当前日期',
5702
- params: [],
5703
- returns: [
5704
- new Return({
5705
- typeAnnotation: TypeAnnotation.createPrimitive('Date'),
5706
- }),
5707
- ],
5708
- }),
5709
- new Function({
5710
- name: 'CurrTime',
5711
- description: '返回指定时区的当前时间',
5712
- params: [],
5713
- returns: [
5714
- new Return({
5715
- typeAnnotation: TypeAnnotation.createTypeParam('Time'),
5716
- }),
5717
- ],
5718
- }),
5719
- new Function({
5720
- name: 'CurrDateTime',
5721
- description: '返回指定时区的当前日期时间',
5722
- params: [],
5723
- returns: [
5724
- new Return({
5725
- typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
5726
- }),
5727
- ],
5728
- }),
5729
- new Function({
5730
- name: 'FormatDate',
5731
- description: '返回格式化日期字符串',
5732
- params: [
5733
- new Param({
5734
- name: 'date',
5735
- description: '指定需要格式化日期的字段',
5736
- typeAnnotation: TypeAnnotation.createPrimitive('Date'),
5737
- }),
5738
- new Param({
5739
- name: 'formatter',
5740
- description: '格式化规则,默认为yyyy-MM-dd,即年月日格式',
5741
- defaultValue: new DefaultValue({
5742
- expression: new StringLiteral({ value: 'yyyy-MM-dd' }),
5743
- concept: 'DefaultValue',
5744
- }),
5745
- defaultExpression: new StringLiteral({ value: 'yyyy-MM-dd' }),
5746
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
5747
- })
5748
- ],
5749
- returns: [
5750
- new Return({
5751
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
5752
- }),
5753
- ],
5754
- }),
5755
- new Function({
5756
- name: 'FormatDateTime',
5757
- description: '返回格式化日期时间字符串。当输入为 DateTime 类型时,会把数据转到目标时区的当地时间进行格式化。',
5758
- params: [
5759
- new Param({
5760
- name: 'date',
5761
- description: '指定需要格式化日期时间的字段',
5762
- typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
5763
- }),
5764
- new Param({
5765
- name: 'formatter',
5766
- description: '格式化规则,默认为yyyy-MM-dd',
5767
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
5768
- defaultValue: new DefaultValue({
5769
- expression: new StringLiteral({ value: 'yyyy-MM-dd HH:mm:ss' }),
5770
- concept: 'DefaultValue',
5771
- }),
5772
- defaultExpression: new StringLiteral({ value: 'yyyy-MM-dd HH:mm:ss' }),
5773
- }),
5774
- ],
5775
- returns: [
5776
- new Return({
5777
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
5778
- }),
5779
- ],
5780
- }),
5781
- new Function({
5782
- name: 'FormatNumber',
5783
- description: '返回格式化的数字字符串',
5784
- params: [
5785
- new Param({
5786
- name: 'value',
5787
- description: '指定需要格式化小数位数的字段',
5788
- typeAnnotation: TypeAnnotation.createPrimitive('Decimal'),
5789
- defaultExpression: new Identifier(),
5790
- }),
5791
- new Param({
5792
- name: 'digits',
5793
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5794
- description: '保留小数位数',
5795
- defaultValue: new DefaultValue({
5796
- expression: new NumericLiteral({ value: '2' }),
5797
- concept: 'DefaultValue',
5798
- }),
5799
- defaultExpression: new NumericLiteral({ value: '2' }),
5800
- }),
5801
- new Param({
5802
- name: 'showGroups',
5803
- description: '是否显示千分位:true显示,false不显示',
5804
- typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
5805
- defaultValue: new DefaultValue({
5806
- expression: new BooleanLiteral({ value: 'false' }),
5807
- concept: 'DefaultValue',
5808
- }),
5809
- defaultExpression: new BooleanLiteral({ value: 'false' }),
5810
- options: [
5811
- {
5812
- text: 'true',
5813
- value: 'true',
5814
- description: '显示千分位',
5815
- },
5816
- {
5817
- text: 'false',
5818
- value: 'false',
5819
- description: '不显示千分位',
5820
- },
5821
- ],
5822
- }),
5823
- ],
5824
- returns: [
5825
- new Return({
5826
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
5827
- }),
5828
- ],
5829
- }),
5830
- new Function({
5831
- name: 'AddDays',
5832
- description: '返回日期天数加法计算结果',
5833
- params: [
5834
- new Param({
5835
- name: 'dateTime',
5836
- description: '指定日期时间',
5837
- typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
5838
- }),
5839
- new Param({
5840
- name: 'amount',
5841
- description: '增加的天数',
5842
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5843
- }),
5844
- ],
5845
- returns: [
5846
- new Return({
5847
- typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
5848
- }),
5849
- ],
5850
- }),
5851
- new Function({
5852
- name: 'AddMonths',
5853
- description: '返回月份加法计算结果',
5854
- params: [
5855
- new Param({
5856
- name: 'dateTime',
5857
- description: '指定日期时间',
5858
- typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
5859
- }),
5860
- new Param({
5861
- name: 'amount',
5862
- description: '增加的月数',
5863
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5864
- }),
5865
- ],
5866
- returns: [
5867
- new Return({
5868
- typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
5869
- }),
5870
- ],
5871
- }),
5872
- new Function({
5873
- name: 'DateDiff',
5874
- description: '返回日期比较结果',
5875
- params: [
5876
- new Param({
5877
- name: 'dateTime1',
5878
- description: '指定日期时间1',
5879
- typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
5880
- defaultExpression: new Identifier(),
5881
- }),
5882
- new Param({
5883
- name: 'dateTime2',
5884
- description: '指定日期时间2',
5885
- typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
5886
- defaultExpression: new Identifier(),
5887
- }),
5888
- new Param({
5889
- name: 'calcType',
5890
- description: '计算类型。计算两个日期时间之间的差值,支持年数、季度数、月数、星期数、天数、小时数、分钟数、秒数',
5891
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
5892
- defaultValue: new DefaultValue({
5893
- expression: new StringLiteral({ value: 'd' }),
5894
- concept: 'DefaultValue',
5895
- }),
5896
- defaultExpression: new StringLiteral({ value: 'd' }),
5897
- options: [
5898
- {
5899
- text: 'Year',
5900
- value: 'y',
5901
- description: '年数',
5902
- },
5903
- {
5904
- text: 'Season',
5905
- value: 'q',
5906
- description: '季度数',
5907
- },
5908
- {
5909
- text: 'Month',
5910
- value: 'M',
5911
- description: '月数',
5912
- },
5913
- {
5914
- text: 'Week',
5915
- value: 'w',
5916
- description: '星期数',
5917
- },
5918
- {
5919
- text: 'Day',
5920
- value: 'd',
5921
- description: '天数',
5922
- },
5923
- {
5924
- text: 'Hour',
5925
- value: 'h',
5926
- description: '小时数',
5927
- },
5928
- {
5929
- text: 'Minute',
5930
- value: 'm',
5931
- description: '分钟数',
5932
- },
5933
- {
5934
- text: 'Second',
5935
- value: 's',
5936
- description: '秒数',
5937
- },
5938
- ],
5939
- }),
5940
- new Param({
5941
- name: '结果处理',
5942
- description: '结果是否绝对值处理',
5943
- typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
5944
- defaultValue: new DefaultValue({
5945
- expression: new BooleanLiteral({ value: 'true' }),
5946
- concept: 'DefaultValue',
5947
- }),
5948
- defaultExpression: new BooleanLiteral({ value: 'true' }),
5949
- options: [
5950
- {
5951
- text: '绝对值',
5952
- value: 'true',
5953
- description: '结果绝对值处理',
5954
- },
5955
- {
5956
- text: '不处理',
5957
- value: 'false',
5958
- description: '结果不做绝对值处理',
5959
- },
5960
- ],
5961
- }),
5962
- ],
5963
- returns: [
5964
- new Return({
5965
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5966
- }),
5967
- ],
5968
- }),
5969
- new Function({
5970
- name: 'ConvertTimezone',
5971
- description: '为指定日期时间转换时区',
5972
- params: [
5973
- new Param({
5974
- name: '指定日期',
5975
- description: '指定日期',
5976
- typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
5977
- }),
5978
- new Param({
5979
- name: '转换时区至',
5980
- description: '转换时区至',
5981
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
5982
- defaultValue: new DefaultValue({
5983
- expression: new StringLiteral({ value: 'Asia/Shanghai' }),
5984
- concept: 'DefaultValue',
5985
- }),
5986
- useComponent: { type: 's-bidirectional-bind-switch' },
5987
- defaultExpression: new StringLiteral({
5988
- value: 'Asia/Shanghai',
5989
- name: 'ConvertTimezoneDefaultExpression',
5990
- }),
5991
- options: [
5992
- {
5993
- text: '中国标准时间(UTC +8)',
5994
- value: 'Asia/Shanghai',
5995
- description: '中国标准时间',
5996
- },
5997
- {
5998
- text: '格林威治标准时间(UTC +0)',
5999
- value: 'Europe/London',
6000
- description: '格林威治标准时间',
6001
- },
6002
- {
6003
- text: '北美东部标准时间(UTC -5)',
6004
- value: 'America/New_York',
6005
- description: '北美东部标准时间',
6006
- },
6007
- {
6008
- text: '日本标准时间(UTC +9)',
6009
- value: 'Asia/Tokyo',
6010
- description: '日本标准时间',
6011
- },
6012
- {
6013
- text: '欧洲中部标准时间(UTC +1)',
6014
- value: 'Europe/Paris',
6015
- description: '欧洲中部标准时间',
6016
- },
6017
- ],
6018
- }),
6019
- ],
6020
- returns: [
6021
- new Return({
6022
- typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
6023
- }),
6024
- ],
6025
- }),
6026
- new Function({
6027
- name: 'GetDateCount',
6028
- description: '按指定维度计算日期,如“所在年-第几周”。当输入为 DateTime 类型时,会把数据转到提供的时区的当地时间进行计算。',
6029
- params: [
6030
- new Param({
6031
- name: '指定日期',
6032
- description: '将被计算的日期',
6033
- typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
6034
- }),
6035
- new Param({
6036
- name: '根据指定日期计算',
6037
- description: '获取指定日期的特定信息,如是其所在年的第几天',
6038
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
6039
- defaultValue: new DefaultValue({
6040
- expression: new StringLiteral({ value: 'week-year' }),
6041
- concept: 'DefaultValue',
6042
- }),
6043
- defaultExpression: new StringLiteral({ value: 'week-year' }),
6044
- cascader: true,
6045
- }),
6046
- ],
6047
- returns: [
6048
- new Return({
6049
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
6050
- }),
6051
- ],
6052
- }),
6053
- new Function({
6054
- name: 'AlterDateTime',
6055
- description: '为指定日期时间调整增加(减少)时间',
6056
- params: [
6057
- new Param({
6058
- name: '指定日期时间',
6059
- description: '将被更改的日期时间或日期',
6060
- typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
6061
- }),
6062
- new Param({
6063
- name: '调整',
6064
- description: '为指定的日期时间增加或减少指定的数量,只能填整数',
6065
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
6066
- defaultValue: new DefaultValue({
6067
- expression: new StringLiteral({ value: 'Increase' }),
6068
- concept: 'DefaultValue',
6069
- }),
6070
- defaultExpression: new StringLiteral({ value: 'Increase' }),
6071
- options: [
6072
- { text: '增加', value: 'Increase' },
6073
- { text: '减少', value: 'Decrease' },
6074
- ],
6075
- }),
6076
- new Param({
6077
- name: 'amount',
6078
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
6079
- defaultExpression: new NumericLiteral({ value: '0' }),
6080
- }),
6081
- new Param({
6082
- name: '计算数',
6083
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
6084
- defaultValue: new DefaultValue({
6085
- expression: new StringLiteral({ value: 'day' }),
6086
- concept: 'DefaultValue',
6087
- }),
6088
- defaultExpression: new StringLiteral({ value: 'day' }),
6089
- options: [
6090
- { text: '天', value: 'day' },
6091
- { text: '周', value: 'week' },
6092
- { text: '月', value: 'month' },
6093
- { text: '季度', value: 'quarter' },
6094
- { text: '年', value: 'year' },
6095
- ],
6096
- }),
6097
- ],
6098
- }),
6099
- new Function({
6100
- name: 'GetSpecificDaysOfWeek',
6101
- description: '按“星期几”获取指定日期范围内的日子。当输入为 DateTime 类型时,会把数据转到提供的时区的当地时间进行计算。',
6102
- params: [
6103
- new Param({
6104
- name: '起始',
6105
- description: '起始日期(包含)',
6106
- typeAnnotation: TypeAnnotation.createPrimitive('Date'),
6107
- }),
6108
- new Param({
6109
- name: '结束',
6110
- description: '结束日期(包含)',
6111
- typeAnnotation: TypeAnnotation.createPrimitive('Date'),
6112
- }),
6113
- new Param({
6114
- name: '指定',
6115
- description: '指定的星期几,可多选',
6116
- useComponent: { type: 's-bidirectional-bind-switch' },
6117
- defaultExpression: new NewList({
6118
- name: 'GetSpecificDaysOfWeekTargetDefaultExpression',
6119
- typeAnnotation: TypeAnnotation.createGeneric('List', {
6120
- typeArguments: [TypeAnnotation.createPrimitive('Long')],
6121
- }),
6122
- }),
6123
- options: [
6124
- { text: '星期一', value: '1' },
6125
- { text: '星期二', value: '2' },
6126
- { text: '星期三', value: '3' },
6127
- { text: '星期四', value: '4' },
6128
- { text: '星期五', value: '5' },
6129
- { text: '星期六', value: '6' },
6130
- { text: '星期日', value: '7' },
6131
- ],
6132
- }),
6133
- ],
6134
- returns: [
6135
- new Return({
6136
- typeAnnotation: TypeAnnotation.createGeneric('List', {
6137
- typeArguments: [TypeAnnotation.createTypeParam('T')],
6138
- }),
6139
- }),
6140
- ],
6141
- }),
6142
- new Function({
6143
- name: 'Clone',
6144
- description: '复制一个所选参数的实例',
6145
- params: [
6146
- new Param({
6147
- name: 'struct',
6148
- description: '指定对象',
6149
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
6150
- }),
6151
- ],
6152
- returns: [
6153
- new Return({
6154
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
6155
- }),
6156
- ],
6157
- }),
6158
- new Function({
6159
- name: 'Clear',
6160
- description: '(修改原数据)清除复杂对象中每个属性的数据(若输入是单个基础类型如 Integer 的值,则不做处理)',
6161
- params: [
6162
- new Param({
6163
- name: 'struct',
6164
- description: '指定对象',
6165
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
6166
- }),
6167
- ],
6168
- returns: [
6169
- new Return({
6170
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
6171
- }),
6172
- ],
6173
- }),
6174
- new Function({
6175
- name: 'RandomInt',
6176
- description: '产生随机整数',
6177
- params: [
6178
- new Param({
6179
- name: 'start',
6180
- description: '起始数字,Integer类型',
6181
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
6182
- }),
6183
- new Param({
6184
- name: 'end',
6185
- description: '截至数字,Integer类型',
6186
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
6187
- }),
6188
- ],
6189
- returns: [
6190
- new Return({
6191
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
6192
- }),
6193
- ],
6194
- }),
6195
- new Function({
6196
- name: 'CreateListPage',
6197
- description: '将List&lt;T&gt;列表转换为列表分页',
6198
- params: [
6199
- new Param({
6200
- name: 'list',
6201
- description: '指定列表',
6202
- typeAnnotation: TypeAnnotation.createGeneric('List', {
6203
- typeArguments: [TypeAnnotation.createTypeParam('T')],
6204
- }),
4907
+ new Param({
4908
+ name: 'str',
4909
+ description: '指定字符串',
4910
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4911
+ }),
4912
+ new Param({
4913
+ name: 'separator',
4914
+ description: '指定字符串中作为分隔符的参数',
4915
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4916
+ }),
4917
+ ],
4918
+ returns: [
4919
+ new Return({
4920
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
4921
+ typeArguments: [TypeAnnotation.createPrimitive('String')],
4922
+ }),
4923
+ }),
4924
+ ],
6205
4925
  }),
6206
- new Param({
6207
- name: 'total',
6208
- description: '指定数据条数',
6209
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
4926
+ new Function({
4927
+ name: 'Join',
4928
+ description: '将列表的项,用连接符连接成一个字符串,并返回',
4929
+ params: [
4930
+ new Param({
4931
+ name: 'list',
4932
+ description: '指定列表',
4933
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
4934
+ typeArguments: [TypeAnnotation.createPrimitive('String')],
4935
+ }),
4936
+ }),
4937
+ new Param({
4938
+ name: 'separator',
4939
+ description: '连接符,用于连接列表中的项',
4940
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4941
+ }),
4942
+ ],
4943
+ returns: [
4944
+ new Return({
4945
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4946
+ }),
4947
+ ],
6210
4948
  }),
6211
- ],
6212
- returns: [
6213
- new Return({
6214
- typeAnnotation: TypeAnnotation.createPrimitive('PageOf', {
6215
- typeArguments: [TypeAnnotation.createTypeParam('T')],
6216
- }),
4949
+ new Function({
4950
+ name: 'Concat',
4951
+ description: '将所有字符串参数连接并返回',
4952
+ params: [
4953
+ new Param({
4954
+ name: 'str1',
4955
+ description: '指定字符串1',
4956
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4957
+ }),
4958
+ new Param({
4959
+ name: 'str2',
4960
+ description: '指定字符串2',
4961
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4962
+ }),
4963
+ ],
4964
+ returns: [
4965
+ new Return({
4966
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4967
+ }),
4968
+ ],
6217
4969
  }),
6218
- ],
6219
- }),
6220
- new Function({
6221
- name: 'ListSort',
6222
- description: '(修改原数据)为列表按指定规则排序',
6223
- params: [
6224
- new Param({
6225
- name: 'list',
6226
- description: '指定列表',
6227
- typeAnnotation: TypeAnnotation.createGeneric('List', {
6228
- typeArguments: [TypeAnnotation.createTypeParam('T')],
6229
- }),
4970
+ new Function({
4971
+ name: 'Length',
4972
+ description: '返回String或Map或List的长度',
4973
+ params: [
4974
+ new Param({
4975
+ name: 'param',
4976
+ description: '指定字符串',
4977
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4978
+ }),
4979
+ ],
4980
+ returns: [
4981
+ new Return({
4982
+ typeAnnotation: TypeAnnotation.createPrimitive('Long'),
4983
+ }),
4984
+ ],
6230
4985
  }),
6231
- new Param({
6232
- name: 'by',
6233
- description: '指定列表中项的某个属性或项本身,支持算数运算和比较运算',
6234
- defaultExpression: new AnonymousFunction({
4986
+ new Function({
4987
+ name: 'ToLower',
4988
+ description: '返回全部小写的字符串',
6235
4989
  params: [
6236
- new Param({
6237
- name: 'item',
6238
- typeAnnotation: null,
6239
- }),
4990
+ new Param({
4991
+ name: 'str1',
4992
+ description: '指定字符串',
4993
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4994
+ }),
4995
+ ],
4996
+ returns: [
4997
+ new Return({
4998
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
4999
+ }),
6240
5000
  ],
6241
- }),
6242
5001
  }),
6243
- new Param({
6244
- name: 'sort',
6245
- description: '支持升序或降序设置,asc为升序,desc为降序。',
6246
- typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
6247
- defaultValue: new DefaultValue({
6248
- expression: new BooleanLiteral({ value: 'true' }),
6249
- concept: 'DefaultValue',
6250
- }),
6251
- defaultExpression: new BooleanLiteral({ value: 'true' }),
6252
- options: [
6253
- {
6254
- text: 'asc',
6255
- value: 'true',
6256
- description: '升序',
6257
- },
6258
- {
6259
- text: 'desc',
6260
- value: 'false',
6261
- description: '降序',
6262
- },
6263
- ],
5002
+ new Function({
5003
+ name: 'ToUpper',
5004
+ description: '返回全部大写的字符串',
5005
+ params: [
5006
+ new Param({
5007
+ name: 'str1',
5008
+ description: '指定字符串',
5009
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
5010
+ }),
5011
+ ],
5012
+ returns: [
5013
+ new Return({
5014
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
5015
+ }),
5016
+ ],
6264
5017
  }),
6265
- ],
6266
- returns: [],
6267
- }),
6268
- new Function({
6269
- name: 'ListFind',
6270
- description: '返回列表中第一个符合条件的项',
6271
- params: [
6272
- new Param({
6273
- name: 'list',
6274
- description: '指定列表',
6275
- typeAnnotation: TypeAnnotation.createGeneric('List', {
6276
- typeArguments: [TypeAnnotation.createTypeParam('T')],
6277
- }),
5018
+ new Function({
5019
+ name: 'Trim',
5020
+ description: '删除字符串的前后空格。返回裁剪后的新字符串。',
5021
+ params: [
5022
+ new Param({
5023
+ name: 'str1',
5024
+ description: '指定字符串',
5025
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
5026
+ }),
5027
+ ],
5028
+ returns: [
5029
+ new Return({
5030
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
5031
+ }),
5032
+ ],
6278
5033
  }),
6279
- new Param({
6280
- name: 'by',
6281
- description: '指定列表中项的某个属性或项本身,通过算数运算、比较运算或逻辑运算进行条件判断并输出布尔值',
6282
- defaultExpression: new AnonymousFunction({
5034
+ new Function({
5035
+ name: 'Get',
5036
+ description: '获得列表位于指定索引处的项',
6283
5037
  params: [
6284
- new Param({
6285
- name: 'item',
6286
- typeAnnotation: null,
6287
- }),
5038
+ new Param({
5039
+ name: 'list',
5040
+ description: '指定列表',
5041
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
5042
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
5043
+ }),
5044
+ }),
5045
+ new Param({
5046
+ name: 'index',
5047
+ description: '索引,integer类型,用数字表示第几项,项数索引从0开始',
5048
+ typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5049
+ }),
5050
+ ],
5051
+ returns: [
5052
+ new Return({
5053
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
5054
+ }),
6288
5055
  ],
6289
- }),
6290
5056
  }),
6291
- ],
6292
- returns: [
6293
- new Return({
6294
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
5057
+ new Function({
5058
+ name: 'Set',
5059
+ description: '(修改原数据)为列表的指定索引项赋值(覆盖原索引项)',
5060
+ params: [
5061
+ new Param({
5062
+ name: 'list',
5063
+ description: '指定列表',
5064
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
5065
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
5066
+ }),
5067
+ }),
5068
+ new Param({
5069
+ name: 'index',
5070
+ description: '索引,integer类型,用数字表示第几项,项数索引从0开始',
5071
+ typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5072
+ }),
5073
+ new Param({
5074
+ name: 'item',
5075
+ description: '列表指定索引下的新项',
5076
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
5077
+ }),
5078
+ ],
5079
+ returns: [
5080
+ new Return({
5081
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
5082
+ }),
5083
+ ],
6295
5084
  }),
6296
- ],
6297
- }),
6298
- new Function({
6299
- name: 'ListFindIndex',
6300
- description: '返回列表中第一个符合条件的项的索引值',
6301
- params: [
6302
- new Param({
6303
- name: 'list',
6304
- description: '指定列表',
6305
- typeAnnotation: TypeAnnotation.createGeneric('List', {
6306
- typeArguments: [TypeAnnotation.createTypeParam('T')],
6307
- }),
5085
+ new Function({
5086
+ name: 'Contains',
5087
+ description: '测试列表是否包含某一项,返回测试结果',
5088
+ params: [
5089
+ new Param({
5090
+ name: 'list',
5091
+ description: '指定列表',
5092
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
5093
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
5094
+ }),
5095
+ }),
5096
+ new Param({
5097
+ name: 'item',
5098
+ description: '指定项',
5099
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
5100
+ }),
5101
+ ],
5102
+ returns: [
5103
+ new Return({
5104
+ typeAnnotation: TypeAnnotation.createTypeParam('Boolean'),
5105
+ }),
5106
+ ],
6308
5107
  }),
6309
- new Param({
6310
- name: 'by',
6311
- description: '指定列表中项的某个属性或项本身,通过算数运算、比较运算或逻辑运算进行条件判断并输出布尔值',
6312
- defaultExpression: new AnonymousFunction({
5108
+ new Function({
5109
+ name: 'Add',
5110
+ description: '(修改原数据)在列表末尾追加项。',
6313
5111
  params: [
6314
- new Param({
6315
- name: 'item',
6316
- typeAnnotation: null,
6317
- }),
5112
+ new Param({
5113
+ name: 'list',
5114
+ description: '指定列表',
5115
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
5116
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
5117
+ }),
5118
+ }),
5119
+ new Param({
5120
+ name: 'item',
5121
+ description: '指定需要在列表末尾增加的项',
5122
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
5123
+ }),
6318
5124
  ],
6319
- }),
6320
5125
  }),
6321
- ],
6322
- returns: [
6323
- new Return({
6324
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5126
+ new Function({
5127
+ name: 'AddAll',
5128
+ description: '(修改原数据)为一个列表添加另一列表中的多项内容。返回新列表的长度',
5129
+ params: [
5130
+ new Param({
5131
+ name: 'list',
5132
+ description: '指定列表1',
5133
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
5134
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
5135
+ }),
5136
+ }),
5137
+ new Param({
5138
+ name: 'addList',
5139
+ description: '指定列表2',
5140
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
5141
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
5142
+ }),
5143
+ }),
5144
+ ],
5145
+ returns: [
5146
+ new Return({
5147
+ typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5148
+ }),
5149
+ ],
6325
5150
  }),
6326
- ],
6327
- }),
6328
- new Function({
6329
- name: 'ListFilter',
6330
- description: '筛选列表中符合条件的所有项,返回这些项构成的新的列表',
6331
- params: [
6332
- new Param({
6333
- name: 'list',
6334
- description: '指定列表',
5151
+ new Function({
5152
+ name: 'Insert',
5153
+ description: '(修改原数据)在列表的指定索引处插入新项(原索引项依次后推)',
5154
+ params: [
5155
+ new Param({
5156
+ name: 'list',
5157
+ description: '指定列表',
5158
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
5159
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
5160
+ }),
5161
+ }),
5162
+ new Param({
5163
+ name: 'index',
5164
+ description: '索引,integer类型,用数字表示第几项,项数索引从0开始',
5165
+ typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5166
+ }),
5167
+ new Param({
5168
+ name: 'item',
5169
+ description: '待插入项',
5170
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
5171
+ }),
5172
+ ],
6335
5173
  }),
6336
- new Param({
6337
- name: 'by',
6338
- description: '指定列表中项的某个属性或项本身,通过算数运算、比较运算或逻辑运算进行条件判断并输出布尔值',
6339
- defaultExpression: new AnonymousFunction({
5174
+ new Function({
5175
+ name: 'Remove',
5176
+ description: '(修改原数据)删除列表的某项',
6340
5177
  params: [
6341
- new Param({
6342
- name: 'item',
6343
- typeAnnotation: null,
6344
- }),
5178
+ new Param({
5179
+ name: 'list',
5180
+ description: '指定列表',
5181
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
5182
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
5183
+ }),
5184
+ }),
5185
+ new Param({
5186
+ name: 'item',
5187
+ description: '指定项',
5188
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
5189
+ }),
6345
5190
  ],
6346
- }),
6347
5191
  }),
6348
- ],
6349
- returns: [
6350
- new Return({
6351
- name: 'list',
6352
- typeAnnotation: TypeAnnotation.createGeneric('List', {
6353
- typeArguments: [TypeAnnotation.createTypeParam('T')],
6354
- }),
5192
+ new Function({
5193
+ name: 'RemoveAt',
5194
+ description: '(修改原数据)在列表中删除位于指定索引的项。返回被删除的项',
5195
+ params: [
5196
+ new Param({
5197
+ name: 'list',
5198
+ description: '指定列表',
5199
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
5200
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
5201
+ }),
5202
+ }),
5203
+ new Param({
5204
+ name: 'index',
5205
+ description: '索引,integer类型,用数字表示第几项,项数索引从0开始',
5206
+ typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5207
+ }),
5208
+ ],
5209
+ returns: [
5210
+ new Return({
5211
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
5212
+ }),
5213
+ ],
6355
5214
  }),
6356
- ],
6357
- }),
6358
- new Function({
6359
- name: 'ListReverse',
6360
- description: '(修改原数据)将列表的所有项反向排列(例如第一项变为最后一项)',
6361
- params: [
6362
- new Param({
6363
- name: 'list',
6364
- description: '指定列表',
6365
- typeAnnotation: TypeAnnotation.createGeneric('List', {
6366
- typeArguments: [TypeAnnotation.createTypeParam('T')],
6367
- }),
5215
+ new Function({
5216
+ name: 'ListHead',
5217
+ description: '返回列表的首项',
5218
+ params: [
5219
+ new Param({
5220
+ name: 'list',
5221
+ description: '指定列表',
5222
+ }),
5223
+ ],
5224
+ returns: [
5225
+ new Return({
5226
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
5227
+ }),
5228
+ ],
6368
5229
  }),
6369
- ],
6370
- returns: [],
6371
- }),
6372
- new Function({
6373
- name: 'ListDistinct',
6374
- description: '(修改原数据)为列表去除重复项',
6375
- params: [
6376
- new Param({
6377
- name: 'list',
6378
- description: '指定列表',
6379
- typeAnnotation: TypeAnnotation.createGeneric('List', {
6380
- typeArguments: [TypeAnnotation.createTypeParam('T')],
6381
- }),
5230
+ new Function({
5231
+ name: 'ListLast',
5232
+ description: '返回列表的末项',
5233
+ params: [
5234
+ new Param({
5235
+ name: 'list',
5236
+ description: '指定列表',
5237
+ }),
5238
+ ],
5239
+ returns: [
5240
+ new Return({
5241
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
5242
+ }),
5243
+ ],
6382
5244
  }),
6383
- ],
6384
- returns: [],
6385
- }),
6386
- new Function({
6387
- name: 'ListDistinctBy',
6388
- description: '按某几个属性为列表去除重复项。返回去除重复项后的列表',
6389
- params: [
6390
- new Param({
6391
- name: 'list',
6392
- description: '指定列表',
5245
+ new Function({
5246
+ name: 'ListFlatten',
5247
+ description: '将嵌套列表摊平一层并返回(List&lt;List&lt;T&gt;&gt; 变为 List&lt;T&gt;)',
5248
+ params: [
5249
+ new Param({
5250
+ name: 'list',
5251
+ description: '指定列表',
5252
+ }),
5253
+ ],
5254
+ returns: [
5255
+ new Return({
5256
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
5257
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
5258
+ }),
5259
+ }),
5260
+ ],
6393
5261
  }),
6394
- new Param({
6395
- name: 'by',
6396
- description: '指定列表中项的某几个属性,若项无属性,则该函数不生效',
6397
- defaultExpression: new NewList({
6398
- name: 'ListDistinctByTargetDefaultExpression',
6399
- typeAnnotation: TypeAnnotation.createGeneric('List', {
6400
- typeArguments: [TypeAnnotation.createTypeParam('T')],
6401
- }),
6402
- items: [
6403
- new AnonymousFunction({
6404
- params: [
6405
- new Param({
6406
- name: 'item',
6407
- description: '是否忽略大小写',
6408
- typeAnnotation: null,
6409
- }),
6410
- ],
6411
- body: new Identifier(),
6412
- }),
6413
- ],
6414
- }),
5262
+ new Function({
5263
+ name: 'ListToMap',
5264
+ description: '选取列表项的某些属性,根据这些属性将列表变为 Map 并返回',
5265
+ params: [
5266
+ new Param({
5267
+ name: 'list',
5268
+ description: '指定列表',
5269
+ }),
5270
+ new Param({
5271
+ name: 'by',
5272
+ description: `根据项的属性及其本身进行key和value的定义`,
5273
+ defaultExpression: new AnonymousFunction({
5274
+ params: [
5275
+ new Param({
5276
+ name: 'item',
5277
+ typeAnnotation: null,
5278
+ }),
5279
+ ],
5280
+ body: new Identifier(),
5281
+ }),
5282
+ }),
5283
+ new Param({
5284
+ name: 'byVal',
5285
+ defaultExpression: new AnonymousFunction({
5286
+ params: [
5287
+ new Param({
5288
+ name: 'item',
5289
+ typeAnnotation: null,
5290
+ }),
5291
+ ],
5292
+ body: new Identifier(),
5293
+ }),
5294
+ }),
5295
+ ],
6415
5296
  }),
6416
- ],
6417
- returns: [new Return({
6418
- typeAnnotation: TypeAnnotation.createGeneric('List', {
6419
- typeArguments: [
6420
- TypeAnnotation.createTypeParam('T'),
6421
- ],
5297
+ new Function({
5298
+ name: 'ListTransform',
5299
+ description: '对列表的每一项调用函数 by,得到新项;返回新项构成的列表',
5300
+ params: [
5301
+ new Param({
5302
+ name: 'list',
5303
+ description: '指定列表',
5304
+ }),
5305
+ new Param({
5306
+ name: 'by',
5307
+ description: '指定对列表中项的某个属性或项本身的处理方式,支持算数运算和比较运算',
5308
+ defaultExpression: new AnonymousFunction({
5309
+ params: [
5310
+ new Param({
5311
+ name: 'item',
5312
+ typeAnnotation: null,
5313
+ }),
5314
+ ],
5315
+ }),
5316
+ }),
5317
+ ],
5318
+ returns: [
5319
+ new Return({
5320
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
5321
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
5322
+ }),
5323
+ }),
5324
+ ],
6422
5325
  }),
6423
- })],
6424
- }),
6425
- new Function({
6426
- name: 'ListGroupBy',
6427
- description: '按某个属性为列表分组。以选中的属性为 key 建立 Map 并返回。',
6428
- params: [
6429
- new Param({
6430
- name: 'list',
6431
- description: '指定列表',
5326
+ new Function({
5327
+ name: 'ListSum',
5328
+ description: '返回数值列表中所有项的和',
5329
+ params: [
5330
+ new Param({
5331
+ name: 'list',
5332
+ description: '指定列表',
5333
+ }),
5334
+ ],
5335
+ returns: [
5336
+ new Return({
5337
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
5338
+ }),
5339
+ ],
6432
5340
  }),
6433
- new Param({
6434
- name: 'by',
6435
- description: '指定列表中项的某个属性,若项无属性,则该函数不生效',
6436
- defaultExpression: new AnonymousFunction({
5341
+ new Function({
5342
+ name: 'ListProduct',
5343
+ description: '返回数值列表中所有项的积',
6437
5344
  params: [
6438
- new Param({
6439
- name: 'item',
6440
- description: '是否忽略大小写',
6441
- typeAnnotation: null,
6442
- }),
6443
- ],
6444
- body: new Identifier(),
6445
- }),
5345
+ new Param({
5346
+ name: 'list',
5347
+ description: '指定数值类型列表',
5348
+ }),
5349
+ ],
5350
+ returns: [
5351
+ new Return({
5352
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
5353
+ }),
5354
+ ],
6446
5355
  }),
6447
- ],
6448
- returns: [new Return({
6449
- typeAnnotation: TypeAnnotation.createGeneric('map', {
6450
- typeArguments: [
6451
- TypeAnnotation.createTypeParam('K'),
6452
- TypeAnnotation.createGeneric('List', {
6453
- typeArguments: [TypeAnnotation.createTypeParam('A')],
6454
- }),
6455
- ],
5356
+ new Function({
5357
+ name: 'ListAverage',
5358
+ description: '返回数值列表中所有项的平均值',
5359
+ params: [
5360
+ new Param({
5361
+ name: 'list',
5362
+ description: '指定数值类型列表',
5363
+ }),
5364
+ ],
5365
+ returns: [
5366
+ new Return({
5367
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
5368
+ }),
5369
+ ],
6456
5370
  }),
6457
- })],
6458
- }),
6459
- new Function({
6460
- name: 'ListSlice',
6461
- description: '将列表按照规则切片,返回切片后的子列表',
6462
- params: [
6463
- new Param({
6464
- name: 'list',
6465
- description: '指定列表',
6466
- typeAnnotation: TypeAnnotation.createGeneric('List', {
6467
- typeArguments: [TypeAnnotation.createTypeParam('T')],
6468
- }),
5371
+ new Function({
5372
+ name: 'ListMax',
5373
+ description: '返回数值列表中所有项的最大值',
5374
+ params: [
5375
+ new Param({
5376
+ name: 'list',
5377
+ description: '指定数值类型列表',
5378
+ }),
5379
+ ],
5380
+ returns: [
5381
+ new Return({
5382
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
5383
+ }),
5384
+ ],
6469
5385
  }),
6470
- new Param({
6471
- name: 'start',
6472
- description: '切片起始的索引,integer类型,项数索引从0开始',
6473
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5386
+ new Function({
5387
+ name: 'ListMin',
5388
+ description: '返回数值列表中所有项的最小值',
5389
+ params: [
5390
+ new Param({
5391
+ name: 'list',
5392
+ description: '指定数值类型列表',
5393
+ }),
5394
+ ],
5395
+ returns: [
5396
+ new Return({
5397
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
5398
+ }),
5399
+ ],
6474
5400
  }),
6475
- new Param({
6476
- name: 'end',
6477
- description: '切片结束的索引,integer类型,用数字表示第几项,项数索引从0开始',
6478
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5401
+ new Function({
5402
+ name: 'MapGet',
5403
+ description: '查询出Map中key为指定值的value值列表',
5404
+ params: [
5405
+ new Param({
5406
+ name: 'map',
5407
+ description: '指定映射',
5408
+ typeAnnotation: TypeAnnotation.createGeneric('map', {
5409
+ typeArguments: [
5410
+ TypeAnnotation.createTypeParam('K'),
5411
+ TypeAnnotation.createTypeParam('V'),
5412
+ ],
5413
+ }),
5414
+ }),
5415
+ new Param({
5416
+ name: 'key',
5417
+ description: '指定参数key',
5418
+ typeAnnotation: TypeAnnotation.createTypeParam('K'),
5419
+ }),
5420
+ ],
5421
+ returns: [
5422
+ new Return({
5423
+ typeAnnotation: TypeAnnotation.createTypeParam('V'),
5424
+ }),
5425
+ ],
6479
5426
  }),
6480
- ],
6481
- returns: [
6482
- new Return({
6483
- typeAnnotation: TypeAnnotation.createGeneric('List', {
6484
- typeArguments: [TypeAnnotation.createTypeParam('T')],
6485
- }),
5427
+ new Function({
5428
+ name: 'MapPut',
5429
+ description: '(修改原数据)为Map中添加键值对',
5430
+ params: [
5431
+ new Param({
5432
+ name: 'map',
5433
+ description: '指定映射',
5434
+ typeAnnotation: TypeAnnotation.createGeneric('map', {
5435
+ typeArguments: [
5436
+ TypeAnnotation.createTypeParam('K'),
5437
+ TypeAnnotation.createTypeParam('V'),
5438
+ ],
5439
+ }),
5440
+ }),
5441
+ new Param({
5442
+ name: 'key',
5443
+ description: '指定参数key',
5444
+ typeAnnotation: TypeAnnotation.createTypeParam('K'),
5445
+ }),
5446
+ new Param({
5447
+ name: 'value',
5448
+ description: '指定参数value',
5449
+ typeAnnotation: TypeAnnotation.createTypeParam('V'),
5450
+ }),
5451
+ ],
6486
5452
  }),
6487
- ],
6488
- }),
6489
- new Function({
6490
- name: 'SliceToListPage',
6491
- description: '将列表按照规则切片,返回切片后的列表分页',
6492
- params: [
6493
- new Param({
6494
- name: 'list',
6495
- description: '指定列表',
6496
- typeAnnotation: TypeAnnotation.createGeneric('List', {
6497
- typeArguments: [TypeAnnotation.createTypeParam('T')],
6498
- }),
5453
+ new Function({
5454
+ name: 'MapRemove',
5455
+ description: '(修改原数据)删除Map中的键值对',
5456
+ params: [
5457
+ new Param({
5458
+ name: 'map',
5459
+ description: '指定列表',
5460
+ typeAnnotation: TypeAnnotation.createGeneric('map', {
5461
+ typeArguments: [
5462
+ TypeAnnotation.createTypeParam('K'),
5463
+ TypeAnnotation.createTypeParam('V'),
5464
+ ],
5465
+ }),
5466
+ }),
5467
+ new Param({
5468
+ name: 'key',
5469
+ description: '指定参数key',
5470
+ typeAnnotation: TypeAnnotation.createTypeParam('K'),
5471
+ }),
5472
+ ],
6499
5473
  }),
6500
- new Param({
6501
- name: 'page',
6502
- description: '页数,integer类型,从1开始',
6503
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5474
+ new Function({
5475
+ name: 'MapContains',
5476
+ description: '判断Map中是否存在参数指定的键值对',
5477
+ params: [
5478
+ new Param({
5479
+ name: 'map',
5480
+ description: '指定映射',
5481
+ typeAnnotation: TypeAnnotation.createGeneric('map', {
5482
+ typeArguments: [
5483
+ TypeAnnotation.createTypeParam('K'),
5484
+ TypeAnnotation.createTypeParam('V'),
5485
+ ],
5486
+ }),
5487
+ }),
5488
+ new Param({
5489
+ name: 'key',
5490
+ description: '指定参数key',
5491
+ typeAnnotation: TypeAnnotation.createTypeParam('K'),
5492
+ }),
5493
+ ],
5494
+ returns: [
5495
+ new Return({
5496
+ typeAnnotation: TypeAnnotation.createTypeParam('Boolean'),
5497
+ }),
5498
+ ],
6504
5499
  }),
6505
- new Param({
6506
- name: 'size',
6507
- description: '每页的大小,integer类型',
6508
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5500
+ new Function({
5501
+ name: 'MapKeys',
5502
+ description: '输出Map中key集合',
5503
+ params: [
5504
+ new Param({
5505
+ name: 'map',
5506
+ description: '指定映射',
5507
+ typeAnnotation: TypeAnnotation.createGeneric('map', {
5508
+ typeArguments: [
5509
+ TypeAnnotation.createTypeParam('K'),
5510
+ TypeAnnotation.createTypeParam('V'),
5511
+ ],
5512
+ }),
5513
+ }),
5514
+ ],
5515
+ returns: [
5516
+ new Return({
5517
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
5518
+ typeArguments: [TypeAnnotation.createTypeParam('K')],
5519
+ }),
5520
+ }),
5521
+ ],
6509
5522
  }),
6510
- ],
6511
- returns: [
6512
- new Return({
6513
- typeAnnotation: TypeAnnotation.createGeneric('PageOf', {
6514
- typeArguments: [TypeAnnotation.createTypeParam('T')],
6515
- }),
5523
+ new Function({
5524
+ name: 'MapValues',
5525
+ description: '输出Map中value集合',
5526
+ params: [
5527
+ new Param({
5528
+ name: 'map',
5529
+ description: '指定映射',
5530
+ typeAnnotation: TypeAnnotation.createGeneric('map', {
5531
+ typeArguments: [
5532
+ TypeAnnotation.createTypeParam('K'),
5533
+ TypeAnnotation.createTypeParam('V'),
5534
+ ],
5535
+ }),
5536
+ }),
5537
+ ],
5538
+ returns: [
5539
+ new Return({
5540
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
5541
+ typeArguments: [TypeAnnotation.createTypeParam('V')],
5542
+ }),
5543
+ }),
5544
+ ],
6516
5545
  }),
6517
- ],
6518
- }),
6519
- new Function({
6520
- name: 'New',
6521
- description: '根据参数选择的类型,返回该参数的实例化对象',
6522
- typeParams: [
6523
- new TypeParam({
6524
- name: 'T',
5546
+ new Function({
5547
+ name: 'MapFilter',
5548
+ description: '在指定Map中过滤出符合条件参数的Map列表',
5549
+ params: [
5550
+ new Param({
5551
+ name: 'map',
5552
+ description: '指定映射',
5553
+ }),
5554
+ new Param({
5555
+ name: 'by',
5556
+ description: '针对键值对的参数key和value设置过滤条件,支持算数运算、比较运算和逻辑运算',
5557
+ defaultExpression: new AnonymousFunction({
5558
+ params: [
5559
+ new Param({
5560
+ name: 'key',
5561
+ typeAnnotation: null,
5562
+ }),
5563
+ new Param({
5564
+ name: 'value',
5565
+ typeAnnotation: null,
5566
+ }),
5567
+ ],
5568
+ }),
5569
+ }),
5570
+ ],
5571
+ returns: [
5572
+ new Return({
5573
+ typeAnnotation: TypeAnnotation.createGeneric('map', {
5574
+ typeArguments: [
5575
+ TypeAnnotation.createTypeParam('K'),
5576
+ TypeAnnotation.createTypeParam('V'),
5577
+ ],
5578
+ }),
5579
+ }),
5580
+ ],
6525
5581
  }),
6526
- ],
6527
- params: [
6528
- ],
6529
- returns: [
6530
- new Return({
6531
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
5582
+ new Function({
5583
+ name: 'MapTransform',
5584
+ description: '对 Map 的每一项调用函数 by,得到新项,并返回新项构成的 Map。(Map 的每一项从 (K0, V0) 变为 (K, V)。)',
5585
+ params: [
5586
+ new Param({
5587
+ name: 'map',
5588
+ description: '指定映射',
5589
+ }),
5590
+ new Param({
5591
+ name: 'by',
5592
+ description: `指定映射中键值对的参数处理方式,支持算数运算和比较运算`,
5593
+ defaultExpression: new AnonymousFunction({
5594
+ params: [
5595
+ new Param({
5596
+ name: 'key',
5597
+ typeAnnotation: null,
5598
+ }),
5599
+ new Param({
5600
+ name: 'value',
5601
+ typeAnnotation: null,
5602
+ }),
5603
+ ],
5604
+ body: new Identifier({
5605
+ name: 'key',
5606
+ }),
5607
+ }),
5608
+ }),
5609
+ new Param({
5610
+ name: 'byVal',
5611
+ defaultExpression: new AnonymousFunction({
5612
+ params: [
5613
+ new Param({
5614
+ name: 'key',
5615
+ typeAnnotation: null,
5616
+ }),
5617
+ new Param({
5618
+ name: 'value',
5619
+ typeAnnotation: null,
5620
+ }),
5621
+ ],
5622
+ }),
5623
+ }),
5624
+ ],
5625
+ returns: [
5626
+ new Return({
5627
+ typeAnnotation: TypeAnnotation.createGeneric('Map', {
5628
+ typeArguments: [TypeAnnotation.createTypeParam('K'), TypeAnnotation.createTypeParam('V')],
5629
+ }),
5630
+ }),
5631
+ ],
6532
5632
  }),
6533
- ],
6534
- }),
6535
- new Function({
6536
- name: 'Round',
6537
- description: '对指定的小数按指定的舍入模式进行舍入,返回舍入后的整数',
6538
- params: [
6539
- new Param({
6540
- name: 'value',
6541
- description: '被取整小数',
6542
- typeAnnotation: TypeAnnotation.createPrimitive('Decimal'),
5633
+ new Function({
5634
+ name: 'CurrDate',
5635
+ description: '返回指定时区的当前日期',
5636
+ params: [ ],
5637
+ returns: [
5638
+ new Return({
5639
+ typeAnnotation: TypeAnnotation.createPrimitive('Date'),
5640
+ }),
5641
+ ],
6543
5642
  }),
6544
- new Param({
6545
- name: 'mode',
6546
- description: '取整模式:HalfUp 四舍五入,如 -2.5 取整为 -3,2.5 取整为 3。TowardsZero 截断、向零取整:如 -2.6 取整为 -2,2.6 取整为 2。TowardsInfinity 进位、向正负无穷取整,如 -1.1 取整为 -2,1.1 取整为 2',
6547
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
6548
- defaultExpression: new StringLiteral({ value: 'HalfUp' }),
6549
- options: [
6550
- { text: 'HalfUp', value: 'HalfUp', description: '四舍五入' },
6551
- { text: 'TowardsZero', value: 'TowardsZero', description: '截断、向零取整,如 -2.6 取整为 -2' },
6552
- { text: 'Towardslnfinity', value: 'TowardsInfinity', description: '进位、向正负无穷取整,如 -1.1 取整为 -2' },
6553
- ],
6554
- &nbsp;
5643
+ new Function({
5644
+ name: 'CurrTime',
5645
+ description: '返回指定时区的当前时间',
5646
+ params: [ ],
5647
+ returns: [
5648
+ new Return({
5649
+ typeAnnotation: TypeAnnotation.createTypeParam('Time'),
5650
+ }),
5651
+ ],
6555
5652
  }),
6556
- ],
6557
- returns: [
6558
- new Return({
6559
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5653
+ new Function({
5654
+ name: 'CurrDateTime',
5655
+ description: '返回指定时区的当前日期时间',
5656
+ params: [ ],
5657
+ returns: [
5658
+ new Return({
5659
+ typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
5660
+ }),
5661
+ ],
6560
5662
  }),
6561
- ],
6562
- }),
6563
- new Function({
6564
- name: 'HasValue',
6565
- description: '判断参数是否为有效值,null、空字符串、纯空格、长度为0的集合均不被视为有效值,传入多个参数时,判断是否全部都是有效值',
6566
- params: [
6567
- new Param({
6568
- name: 'param1',
6569
- description: '指定参数1',
6570
- typeAnnotation: TypeAnnotation.createPrimitive('Any'),
5663
+ new Function({
5664
+ name: 'FormatDate',
5665
+ description: '返回格式化日期字符串',
5666
+ params: [
5667
+ new Param({
5668
+ name: 'date',
5669
+ description: '指定需要格式化日期的字段',
5670
+ typeAnnotation: TypeAnnotation.createPrimitive('Date'),
5671
+ }),
5672
+ new Param({
5673
+ name: 'formatter',
5674
+ description: '格式化规则,默认为yyyy-MM-dd,即年月日格式',
5675
+ defaultValue: 'yyyy-MM-dd',
5676
+ defaultExpression: new StringLiteral({ value: 'yyyy-MM-dd' }),
5677
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
5678
+ })
5679
+ ],
5680
+ returns: [
5681
+ new Return({
5682
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
5683
+ }),
5684
+ ],
6571
5685
  }),
6572
- ],
6573
- returns: [
6574
- new Return({
6575
- typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
5686
+ new Function({
5687
+ name: 'FormatDateTime',
5688
+ description: '返回格式化日期时间字符串。当输入为 DateTime 类型时,会把数据转到目标时区的当地时间进行格式化。',
5689
+ params: [
5690
+ new Param({
5691
+ name: 'date',
5692
+ description: '指定需要格式化日期时间的字段',
5693
+ typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
5694
+ }),
5695
+ new Param({
5696
+ name: 'formatter',
5697
+ description: '格式化规则,默认为yyyy-MM-dd',
5698
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
5699
+ defaultValue: 'yyyy-MM-dd HH:mm:ss',
5700
+ defaultExpression: new StringLiteral({ value: 'yyyy-MM-dd HH:mm:ss' }),
5701
+ }),
5702
+ ],
5703
+ returns: [
5704
+ new Return({
5705
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
5706
+ }),
5707
+ ],
6576
5708
  }),
6577
- ],
6578
- }),
6579
- new Function({
6580
- name: 'ListFindAsync',
6581
- description: '返回列表中第一个符合条件的项',
6582
- params: [
6583
- new Param({
6584
- name: 'list',
6585
- description: '指定列表',
6586
- typeAnnotation: TypeAnnotation.createGeneric('List', {
6587
- typeArguments: [TypeAnnotation.createTypeParam('T')],
6588
- }),
5709
+ new Function({
5710
+ name: 'FormatNumber',
5711
+ description: '返回格式化的数字字符串',
5712
+ params: [
5713
+ new Param({
5714
+ name: 'value',
5715
+ description: '指定需要格式化小数位数的字段',
5716
+ typeAnnotation: TypeAnnotation.createPrimitive('Decimal'),
5717
+ defaultExpression: new Identifier(),
5718
+ }),
5719
+ new Param({
5720
+ name: 'digits',
5721
+ typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5722
+ description: '保留小数位数',
5723
+ defaultValue: '2',
5724
+ defaultExpression: new NumericLiteral({ value: '2' }),
5725
+ }),
5726
+ new Param({
5727
+ name: 'showGroups',
5728
+ description: '是否显示千分位:true显示,false不显示',
5729
+ typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
5730
+ defaultValue: 'false',
5731
+ defaultExpression: new BooleanLiteral({ value: 'false' }),
5732
+ options: [
5733
+ {
5734
+ text: 'true',
5735
+ value: 'true',
5736
+ description: '显示千分位',
5737
+ },
5738
+ {
5739
+ text: 'false',
5740
+ value: 'false',
5741
+ description: '不显示千分位',
5742
+ },
5743
+ ],
5744
+ }),
5745
+ ],
5746
+ returns: [
5747
+ new Return({
5748
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
5749
+ }),
5750
+ ],
6589
5751
  }),
6590
- new Param({
6591
- name: 'by',
6592
- description: '指定列表中项的某个属性或项本身,通过算数运算、比较运算或逻辑运算进行条件判断并输出布尔值',
6593
- defaultExpression: new AnonymousFunction({
5752
+ new Function({
5753
+ name: 'AddDays',
5754
+ description: '返回日期天数加法计算结果',
6594
5755
  params: [
6595
- new Param({
6596
- name: 'item',
6597
- typeAnnotation: null,
6598
- }),
5756
+ new Param({
5757
+ name: 'dateTime',
5758
+ description: '指定日期时间',
5759
+ typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
5760
+ }),
5761
+ new Param({
5762
+ name: 'amount',
5763
+ description: '增加的天数',
5764
+ typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5765
+ }),
5766
+ ],
5767
+ returns: [
5768
+ new Return({
5769
+ typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
5770
+ }),
6599
5771
  ],
6600
- }),
6601
5772
  }),
6602
- ],
6603
- returns: [
6604
- new Return({
6605
- typeAnnotation: TypeAnnotation.createTypeParam('T'),
5773
+ new Function({
5774
+ name: 'AddMonths',
5775
+ description: '返回月份加法计算结果',
5776
+ params: [
5777
+ new Param({
5778
+ name: 'dateTime',
5779
+ description: '指定日期时间',
5780
+ typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
5781
+ }),
5782
+ new Param({
5783
+ name: 'amount',
5784
+ description: '增加的月数',
5785
+ typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5786
+ }),
5787
+ ],
5788
+ returns: [
5789
+ new Return({
5790
+ typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
5791
+ }),
5792
+ ],
6606
5793
  }),
6607
- ],
6608
- }),
6609
- new Function({
6610
- name: 'ListSortAsync',
6611
- description: '(修改原数据)为列表按指定规则排序',
6612
- params: [
6613
- new Param({
6614
- name: 'list',
6615
- description: '指定列表',
6616
- typeAnnotation: TypeAnnotation.createGeneric('List', {
6617
- typeArguments: [TypeAnnotation.createTypeParam('T')],
6618
- }),
5794
+ new Function({
5795
+ name: 'DateDiff',
5796
+ description: '返回日期比较结果',
5797
+ params: [
5798
+ new Param({
5799
+ name: 'dateTime1',
5800
+ description: '指定日期时间1',
5801
+ typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
5802
+ defaultExpression: new Identifier(),
5803
+ }),
5804
+ new Param({
5805
+ name: 'dateTime2',
5806
+ description: '指定日期时间2',
5807
+ typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
5808
+ defaultExpression: new Identifier(),
5809
+ }),
5810
+ new Param({
5811
+ name: 'calcType',
5812
+ description: '计算类型。计算两个日期时间之间的差值,支持年数、季度数、月数、星期数、天数、小时数、分钟数、秒数',
5813
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
5814
+ defaultValue: 'd',
5815
+ defaultExpression: new StringLiteral({ value: 'd' }),
5816
+ options: [
5817
+ {
5818
+ text: 'Year',
5819
+ value: 'y',
5820
+ description: '年数',
5821
+ },
5822
+ {
5823
+ text: 'Season',
5824
+ value: 'q',
5825
+ description: '季度数',
5826
+ },
5827
+ {
5828
+ text: 'Month',
5829
+ value: 'M',
5830
+ description: '月数',
5831
+ },
5832
+ {
5833
+ text: 'Week',
5834
+ value: 'w',
5835
+ description: '星期数',
5836
+ },
5837
+ {
5838
+ text: 'Day',
5839
+ value: 'd',
5840
+ description: '天数',
5841
+ },
5842
+ {
5843
+ text: 'Hour',
5844
+ value: 'h',
5845
+ description: '小时数',
5846
+ },
5847
+ {
5848
+ text: 'Minute',
5849
+ value: 'm',
5850
+ description: '分钟数',
5851
+ },
5852
+ {
5853
+ text: 'Second',
5854
+ value: 's',
5855
+ description: '秒数',
5856
+ },
5857
+ ],
5858
+ }),
5859
+ new Param({
5860
+ name: '结果处理',
5861
+ description: '结果是否绝对值处理',
5862
+ typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
5863
+ defaultValue: 'true',
5864
+ defaultExpression: new BooleanLiteral({ value: 'true' }),
5865
+ options: [
5866
+ {
5867
+ text: '绝对值',
5868
+ value: 'true',
5869
+ description: '结果绝对值处理',
5870
+ },
5871
+ {
5872
+ text: '不处理',
5873
+ value: 'false',
5874
+ description: '结果不做绝对值处理',
5875
+ },
5876
+ ],
5877
+ }),
5878
+ ],
5879
+ returns: [
5880
+ new Return({
5881
+ typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5882
+ }),
5883
+ ],
6619
5884
  }),
6620
- new Param({
6621
- name: 'by',
6622
- description: '指定列表中项的某个属性或项本身,支持算数运算和比较运算',
6623
- defaultExpression: new AnonymousFunction({
5885
+ new Function({
5886
+ name: 'ConvertTimezone',
5887
+ description: '为指定日期时间转换时区',
6624
5888
  params: [
6625
- new Param({
6626
- name: 'item',
6627
- typeAnnotation: null,
6628
- }),
5889
+ new Param({
5890
+ name: '指定日期',
5891
+ description: '指定日期',
5892
+ typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
5893
+ }),
5894
+ new Param({
5895
+ name: '转换时区至',
5896
+ description: '转换时区至',
5897
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
5898
+ defaultValue: 'Asia/Shanghai',
5899
+ useComponent: { type: 's-bidirectional-bind-switch' },
5900
+ defaultExpression: new StringLiteral({
5901
+ value: 'Asia/Shanghai',
5902
+ name: 'ConvertTimezoneDefaultExpression',
5903
+ }),
5904
+ options: [
5905
+ {
5906
+ text: '中国标准时间(UTC +8)',
5907
+ value: 'Asia/Shanghai',
5908
+ description: '中国标准时间',
5909
+ },
5910
+ {
5911
+ text: '格林威治标准时间(UTC +0)',
5912
+ value: 'Europe/London',
5913
+ description: '格林威治标准时间',
5914
+ },
5915
+ {
5916
+ text: '北美东部标准时间(UTC -5)',
5917
+ value: 'America/New_York',
5918
+ description: '北美东部标准时间',
5919
+ },
5920
+ {
5921
+ text: '日本标准时间(UTC +9)',
5922
+ value: 'Asia/Tokyo',
5923
+ description: '日本标准时间',
5924
+ },
5925
+ {
5926
+ text: '欧洲中部标准时间(UTC +1)',
5927
+ value: 'Europe/Paris',
5928
+ description: '欧洲中部标准时间',
5929
+ },
5930
+ ],
5931
+ }),
5932
+ ],
5933
+ returns: [
5934
+ new Return({
5935
+ typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
5936
+ }),
6629
5937
  ],
6630
- }),
6631
5938
  }),
6632
- new Param({
6633
- name: 'sort',
6634
- description: '支持升序或降序设置,asc为升序,desc为降序。',
6635
- typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
6636
- defaultValue: new DefaultValue({
6637
- expression: new BooleanLiteral({ value: 'true' }),
6638
- concept: 'DefaultValue',
6639
- }),
6640
- defaultExpression: new BooleanLiteral({ value: 'true' }),
6641
- options: [
6642
- { text: 'asc(升序)', value: 'true' },
6643
- { text: 'desc(降序)', value: 'false' },
6644
- ],
5939
+ new Function({
5940
+ name: 'GetDateCount',
5941
+ description: '按指定维度计算日期,如“所在年-第几周”。当输入为 DateTime 类型时,会把数据转到提供的时区的当地时间进行计算。',
5942
+ params: [
5943
+ new Param({
5944
+ name: '指定日期',
5945
+ description: '将被计算的日期',
5946
+ typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
5947
+ }),
5948
+ new Param({
5949
+ name: '根据指定日期计算',
5950
+ description: '获取指定日期的特定信息,如是其所在年的第几天',
5951
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
5952
+ defaultValue: 'week-year',
5953
+ defaultExpression: new StringLiteral({ value: 'week-year' }),
5954
+ cascader: true,
5955
+ }),
5956
+ ],
5957
+ returns: [
5958
+ new Return({
5959
+ typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5960
+ }),
5961
+ ],
6645
5962
  }),
6646
- ],
6647
- returns: [],
6648
- }),
6649
- new Function({
6650
- name: 'ListFilterAsync',
6651
- description: '筛选列表中符合条件的所有项,返回这些项构成的新的列表',
6652
- params: [
6653
- new Param({
6654
- name: 'list',
6655
- description: '指定列表',
5963
+ new Function({
5964
+ name: 'AlterDateTime',
5965
+ description: '为指定日期时间调整增加(减少)时间',
5966
+ params: [
5967
+ new Param({
5968
+ name: '指定日期时间',
5969
+ description: '将被更改的日期时间或日期',
5970
+ typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
5971
+ }),
5972
+ new Param({
5973
+ name: '调整',
5974
+ description: '为指定的日期时间增加或减少指定的数量,只能填整数',
5975
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
5976
+ defaultValue: 'Increase',
5977
+ defaultExpression: new StringLiteral({ value: 'Increase' }),
5978
+ options: [
5979
+ { text: '增加', value: 'Increase' },
5980
+ { text: '减少', value: 'Decrease' },
5981
+ ],
5982
+ }),
5983
+ new Param({
5984
+ name: 'amount',
5985
+ typeAnnotation: TypeAnnotation.createPrimitive('Long'),
5986
+ defaultExpression: new NumericLiteral({ value: '0' }),
5987
+ }),
5988
+ new Param({
5989
+ name: '计算数',
5990
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
5991
+ defaultValue: 'day',
5992
+ defaultExpression: new StringLiteral({ value: 'day' }),
5993
+ options: [
5994
+ { text: '天', value: 'day' },
5995
+ { text: '周', value: 'week' },
5996
+ { text: '月', value: 'month' },
5997
+ { text: '季度', value: 'quarter' },
5998
+ { text: '年', value: 'year' },
5999
+ ],
6000
+ }),
6001
+ ],
6656
6002
  }),
6657
- new Param({
6658
- name: 'by',
6659
- description: '指定列表中项的某个属性或项本身,通过算数运算、比较运算或逻辑运算进行条件判断并输出布尔值',
6660
- defaultExpression: new AnonymousFunction({
6003
+ new Function({
6004
+ name: 'GetSpecificDaysOfWeek',
6005
+ description: '按“星期几”获取指定日期范围内的日子。当输入为 DateTime 类型时,会把数据转到提供的时区的当地时间进行计算。',
6661
6006
  params: [
6662
- new Param({
6663
- name: 'item',
6664
- typeAnnotation: null,
6665
- }),
6007
+ new Param({
6008
+ name: '起始',
6009
+ description: '起始日期(包含)',
6010
+ typeAnnotation: TypeAnnotation.createPrimitive('Date'),
6011
+ }),
6012
+ new Param({
6013
+ name: '结束',
6014
+ description: '结束日期(包含)',
6015
+ typeAnnotation: TypeAnnotation.createPrimitive('Date'),
6016
+ }),
6017
+ new Param({
6018
+ name: '指定',
6019
+ description: '指定的星期几,可多选',
6020
+ useComponent: { type: 's-bidirectional-bind-switch' },
6021
+ defaultExpression: new NewList({
6022
+ name: 'GetSpecificDaysOfWeekTargetDefaultExpression',
6023
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
6024
+ typeArguments: [TypeAnnotation.createPrimitive('Long')],
6025
+ }),
6026
+ }),
6027
+ options: [
6028
+ { text: '星期一', value: '1' },
6029
+ { text: '星期二', value: '2' },
6030
+ { text: '星期三', value: '3' },
6031
+ { text: '星期四', value: '4' },
6032
+ { text: '星期五', value: '5' },
6033
+ { text: '星期六', value: '6' },
6034
+ { text: '星期日', value: '7' },
6035
+ ],
6036
+ }),
6037
+ ],
6038
+ returns: [
6039
+ new Return({
6040
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
6041
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
6042
+ }),
6043
+ }),
6666
6044
  ],
6667
- }),
6668
6045
  }),
6669
- ],
6670
- returns: [
6671
- new Return({
6672
- name: 'list',
6673
- typeAnnotation: TypeAnnotation.createGeneric('List', {
6674
- typeArguments: [TypeAnnotation.createTypeParam('T')],
6675
- }),
6046
+ new Function({
6047
+ name: 'Clone',
6048
+ description: '复制一个所选参数的实例',
6049
+ params: [
6050
+ new Param({
6051
+ name: 'struct',
6052
+ description: '指定对象',
6053
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
6054
+ }),
6055
+ ],
6056
+ returns: [
6057
+ new Return({
6058
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
6059
+ }),
6060
+ ],
6676
6061
  }),
6677
- ],
6678
- }),
6679
- new Function({
6680
- name: 'ListFindIndexAsync',
6681
- description: '返回列表中第一个符合条件的项的索引值',
6682
- params: [
6683
- new Param({
6684
- name: 'list',
6685
- description: '指定列表',
6686
- typeAnnotation: TypeAnnotation.createGeneric('List', {
6687
- typeArguments: [TypeAnnotation.createTypeParam('T')],
6688
- }),
6062
+ new Function({
6063
+ name: 'Clear',
6064
+ description: '(修改原数据)清除复杂对象数据(不支持清除 Integer 等基础类型的值)',
6065
+ params: [
6066
+ new Param({
6067
+ name: 'struct',
6068
+ description: '指定对象',
6069
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
6070
+ }),
6071
+ ],
6072
+ returns: [
6073
+ new Return({
6074
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
6075
+ }),
6076
+ ],
6689
6077
  }),
6690
- new Param({
6691
- name: 'by',
6692
- description: '指定列表中项的某个属性或项本身,通过算数运算、比较运算或逻辑运算进行条件判断并输出布尔值',
6693
- defaultExpression: new AnonymousFunction({
6078
+ new Function({
6079
+ name: 'RandomInt',
6080
+ description: '产生随机整数',
6694
6081
  params: [
6695
- new Param({
6696
- name: 'item',
6697
- typeAnnotation: null,
6698
- }),
6082
+ new Param({
6083
+ name: 'start',
6084
+ description: '起始数字,Integer类型',
6085
+ typeAnnotation: TypeAnnotation.createPrimitive('Long'),
6086
+ }),
6087
+ new Param({
6088
+ name: 'end',
6089
+ description: '截至数字,Integer类型',
6090
+ typeAnnotation: TypeAnnotation.createPrimitive('Long'),
6091
+ }),
6092
+ ],
6093
+ returns: [
6094
+ new Return({
6095
+ typeAnnotation: TypeAnnotation.createPrimitive('Long'),
6096
+ }),
6699
6097
  ],
6700
- }),
6701
6098
  }),
6702
- ],
6703
- returns: [
6704
- new Return({
6705
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
6099
+ new Function({
6100
+ name: 'CreateListPage',
6101
+ description: '将List&lt;T&gt;列表转换为列表分页',
6102
+ params: [
6103
+ new Param({
6104
+ name: 'list',
6105
+ description: '指定列表',
6106
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
6107
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
6108
+ }),
6109
+ }),
6110
+ new Param({
6111
+ name: 'total',
6112
+ description: '指定数据条数',
6113
+ typeAnnotation: TypeAnnotation.createPrimitive('Long'),
6114
+ }),
6115
+ ],
6116
+ returns: [
6117
+ new Return({
6118
+ typeAnnotation: TypeAnnotation.createPrimitive('PageOf', {
6119
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
6120
+ }),
6121
+ }),
6122
+ ],
6706
6123
  }),
6707
- ],
6708
- }),
6709
- new Function({
6710
- name: 'ListDistinctByAsync',
6711
- description: '按某个属性为列表去除重复项。返回去除重复项后的列表',
6712
- params: [
6713
- new Param({
6714
- name: 'list',
6715
- description: '指定列表',
6124
+ new Function({
6125
+ name: 'ListSort',
6126
+ description: '(修改原数据)为列表按指定规则排序',
6127
+ params: [
6128
+ new Param({
6129
+ name: 'list',
6130
+ description: '指定列表',
6131
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
6132
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
6133
+ }),
6134
+ }),
6135
+ new Param({
6136
+ name: 'by',
6137
+ description: '指定列表中项的某个属性或项本身,支持算数运算和比较运算',
6138
+ defaultExpression: new AnonymousFunction({
6139
+ params: [
6140
+ new Param({
6141
+ name: 'item',
6142
+ typeAnnotation: null,
6143
+ }),
6144
+ ],
6145
+ }),
6146
+ }),
6147
+ new Param({
6148
+ name: 'sort',
6149
+ description: '支持升序或降序设置,asc为升序,desc为降序。',
6150
+ typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
6151
+ defaultValue: 'asc',
6152
+ defaultExpression: new BooleanLiteral({ value: 'true' }),
6153
+ options: [
6154
+ {
6155
+ text: 'asc',
6156
+ value: 'true',
6157
+ description: '升序',
6158
+ },
6159
+ {
6160
+ text: 'desc',
6161
+ value: 'false',
6162
+ description: '降序',
6163
+ },
6164
+ ],
6165
+ }),
6166
+ ],
6167
+ returns: [],
6716
6168
  }),
6717
- new Param({
6718
- name: 'by',
6719
- description: '指定列表中项的某个属性,若项无属性,则该函数不生效',
6720
- defaultExpression: new AnonymousFunction({
6169
+ new Function({
6170
+ name: 'ListFind',
6171
+ description: '返回列表中第一个符合条件的项',
6721
6172
  params: [
6722
- new Param({
6723
- name: 'item',
6724
- description: '是否忽略大小写',
6725
- typeAnnotation: null,
6726
- }),
6727
- ],
6728
- body: new Identifier(),
6729
- }),
6173
+ new Param({
6174
+ name: 'list',
6175
+ description: '指定列表',
6176
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
6177
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
6178
+ }),
6179
+ }),
6180
+ new Param({
6181
+ name: 'by',
6182
+ description: '指定列表中项的某个属性或项本身,通过算数运算、比较运算或逻辑运算进行条件判断并输出布尔值',
6183
+ defaultExpression: new AnonymousFunction({
6184
+ params: [
6185
+ new Param({
6186
+ name: 'item',
6187
+ typeAnnotation: null,
6188
+ }),
6189
+ ],
6190
+ }),
6191
+ }),
6192
+ ],
6193
+ returns: [
6194
+ new Return({
6195
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
6196
+ }),
6197
+ ],
6730
6198
  }),
6731
- ],
6732
- returns: [new Return({
6733
- typeAnnotation: TypeAnnotation.createGeneric('List', {
6734
- typeArguments: [
6735
- TypeAnnotation.createTypeParam('T'),
6736
- ],
6199
+ new Function({
6200
+ name: 'ListFindIndex',
6201
+ description: '返回列表中第一个符合条件的项的索引值',
6202
+ params: [
6203
+ new Param({
6204
+ name: 'list',
6205
+ description: '指定列表',
6206
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
6207
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
6208
+ }),
6209
+ }),
6210
+ new Param({
6211
+ name: 'by',
6212
+ description: '指定列表中项的某个属性或项本身,通过算数运算、比较运算或逻辑运算进行条件判断并输出布尔值',
6213
+ defaultExpression: new AnonymousFunction({
6214
+ params: [
6215
+ new Param({
6216
+ name: 'item',
6217
+ typeAnnotation: null,
6218
+ }),
6219
+ ],
6220
+ }),
6221
+ }),
6222
+ ],
6223
+ returns: [
6224
+ new Return({
6225
+ typeAnnotation: TypeAnnotation.createPrimitive('Long'),
6226
+ }),
6227
+ ],
6737
6228
  }),
6738
- })],
6739
- }),
6740
- new Function({
6741
- name: 'ListGroupByAsync',
6742
- description: '按某个属性为列表分组。以选中的属性为 key 建立 Map 并返回。',
6743
- params: [
6744
- new Param({
6745
- name: 'list',
6746
- description: '指定列表',
6229
+ new Function({
6230
+ name: 'ListFilter',
6231
+ description: '筛选列表中符合条件的所有项,返回这些项构成的新的列表',
6232
+ params: [
6233
+ new Param({
6234
+ name: 'list',
6235
+ description: '指定列表',
6236
+ }),
6237
+ new Param({
6238
+ name: 'by',
6239
+ description: '指定列表中项的某个属性或项本身,通过算数运算、比较运算或逻辑运算进行条件判断并输出布尔值',
6240
+ defaultExpression: new AnonymousFunction({
6241
+ params: [
6242
+ new Param({
6243
+ name: 'item',
6244
+ typeAnnotation: null,
6245
+ }),
6246
+ ],
6247
+ }),
6248
+ }),
6249
+ ],
6250
+ returns: [
6251
+ new Return({
6252
+ name: 'list',
6253
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
6254
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
6255
+ }),
6256
+ }),
6257
+ ],
6747
6258
  }),
6748
- new Param({
6749
- name: 'by',
6750
- description: '指定列表中项的某个属性,若项无属性,则该函数不生效',
6751
- defaultExpression: new AnonymousFunction({
6259
+ new Function({
6260
+ name: 'ListReverse',
6261
+ description: '(修改原数据)将列表的所有项反向排列(例如第一项变为最后一项)',
6752
6262
  params: [
6753
- new Param({
6754
- name: 'item',
6755
- description: '是否忽略大小写',
6756
- typeAnnotation: null,
6757
- }),
6758
- ],
6759
- body: new Identifier(),
6760
- }),
6263
+ new Param({
6264
+ name: 'list',
6265
+ description: '指定列表',
6266
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
6267
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
6268
+ }),
6269
+ }),
6270
+ ],
6271
+ returns: [],
6761
6272
  }),
6762
- ],
6763
- returns: [new Return({
6764
- typeAnnotation: TypeAnnotation.createGeneric('map', {
6765
- typeArguments: [
6766
- TypeAnnotation.createTypeParam('K'),
6767
- TypeAnnotation.createGeneric('List', {
6768
- typeArguments: [TypeAnnotation.createTypeParam('A')],
6769
- }),
6770
- ],
6273
+ new Function({
6274
+ name: 'ListDistinct',
6275
+ description: '(修改原数据)为列表去除重复项',
6276
+ params: [
6277
+ new Param({
6278
+ name: 'list',
6279
+ description: '指定列表',
6280
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
6281
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
6282
+ }),
6283
+ }),
6284
+ ],
6285
+ returns: [],
6771
6286
  }),
6772
- })],
6773
- }),
6774
- new Function({
6775
- name: 'ListTransformAsync',
6776
- description: '对列表的每一项调用函数 by,得到新项;返回新项构成的列表',
6777
- params: [
6778
- new Param({
6779
- name: 'list',
6780
- description: '指定列表',
6287
+ new Function({
6288
+ name: 'ListDistinctBy',
6289
+ description: '按某几个属性为列表去除重复项。返回去除重复项后的列表',
6290
+ params: [
6291
+ new Param({
6292
+ name: 'list',
6293
+ description: '指定列表',
6294
+ }),
6295
+ new Param({
6296
+ name: 'by',
6297
+ description: '指定列表中项的某几个属性,若项无属性,则该函数不生效',
6298
+ defaultExpression: new NewList({
6299
+ name: 'ListDistinctByTargetDefaultExpression',
6300
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
6301
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
6302
+ }),
6303
+ items: [
6304
+ new AnonymousFunction({
6305
+ params: [
6306
+ new Param({
6307
+ name: 'item',
6308
+ description: '是否忽略大小写',
6309
+ typeAnnotation: null,
6310
+ }),
6311
+ ],
6312
+ body: new Identifier(),
6313
+ }),
6314
+ ],
6315
+ }),
6316
+ }),
6317
+ ],
6318
+ returns: [new Return({
6319
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
6320
+ typeArguments: [
6321
+ TypeAnnotation.createTypeParam('T'),
6322
+ ],
6323
+ }),
6324
+ })],
6325
+ }),
6326
+ new Function({
6327
+ name: 'ListGroupBy',
6328
+ description: '按某个属性为列表分组。以选中的属性为 key 建立 Map 并返回。',
6329
+ params: [
6330
+ new Param({
6331
+ name: 'list',
6332
+ description: '指定列表',
6333
+ }),
6334
+ new Param({
6335
+ name: 'by',
6336
+ description: '指定列表中项的某个属性,若项无属性,则该函数不生效',
6337
+ defaultExpression: new AnonymousFunction({
6338
+ params: [
6339
+ new Param({
6340
+ name: 'item',
6341
+ description: '是否忽略大小写',
6342
+ typeAnnotation: null,
6343
+ }),
6344
+ ],
6345
+ body: new Identifier(),
6346
+ }),
6347
+ }),
6348
+ ],
6349
+ returns: [new Return({
6350
+ typeAnnotation: TypeAnnotation.createGeneric('map', {
6351
+ typeArguments: [
6352
+ TypeAnnotation.createTypeParam('K'),
6353
+ TypeAnnotation.createGeneric('List', {
6354
+ typeArguments: [TypeAnnotation.createTypeParam('A')],
6355
+ }),
6356
+ ],
6357
+ }),
6358
+ })],
6359
+ }),
6360
+ new Function({
6361
+ name: 'ListSlice',
6362
+ description: '将列表按照规则切片,返回切片后的子列表',
6363
+ params: [
6364
+ new Param({
6365
+ name: 'list',
6366
+ description: '指定列表',
6367
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
6368
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
6369
+ }),
6370
+ }),
6371
+ new Param({
6372
+ name: 'start',
6373
+ description: '切片起始的索引,integer类型,项数索引从0开始',
6374
+ typeAnnotation: TypeAnnotation.createPrimitive('Long'),
6375
+ }),
6376
+ new Param({
6377
+ name: 'end',
6378
+ description: '切片结束的索引,integer类型,用数字表示第几项,项数索引从0开始',
6379
+ typeAnnotation: TypeAnnotation.createPrimitive('Long'),
6380
+ }),
6381
+ ],
6382
+ returns: [
6383
+ new Return({
6384
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
6385
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
6386
+ }),
6387
+ }),
6388
+ ],
6781
6389
  }),
6782
- new Param({
6783
- name: 'by',
6784
- description: '指定对列表中项的某个属性或项本身的处理方式,支持算数运算和比较运算',
6785
- defaultExpression: new AnonymousFunction({
6390
+ new Function({
6391
+ name: 'SliceToListPage',
6392
+ description: '将列表按照规则切片,返回切片后的列表分页',
6786
6393
  params: [
6787
- new Param({
6788
- name: 'item',
6789
- typeAnnotation: null,
6790
- }),
6394
+ new Param({
6395
+ name: 'list',
6396
+ description: '指定列表',
6397
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
6398
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
6399
+ }),
6400
+ }),
6401
+ new Param({
6402
+ name: 'page',
6403
+ description: '页数,integer类型,从1开始',
6404
+ typeAnnotation: TypeAnnotation.createPrimitive('Long'),
6405
+ }),
6406
+ new Param({
6407
+ name: 'size',
6408
+ description: '每页的大小,integer类型',
6409
+ typeAnnotation: TypeAnnotation.createPrimitive('Long'),
6410
+ }),
6411
+ ],
6412
+ returns: [
6413
+ new Return({
6414
+ typeAnnotation: TypeAnnotation.createGeneric('PageOf', {
6415
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
6416
+ }),
6417
+ }),
6791
6418
  ],
6792
- }),
6793
6419
  }),
6794
- ],
6795
- returns: [
6796
- new Return({
6797
- typeAnnotation: TypeAnnotation.createGeneric('List', {
6798
- typeArguments: [TypeAnnotation.createTypeParam('T')],
6799
- }),
6420
+ new Function({
6421
+ name: 'New',
6422
+ description: '根据参数选择的类型,返回该参数的实例化对象',
6423
+ typeParams: [
6424
+ new TypeParam({
6425
+ name: 'T',
6426
+ }),
6427
+ ],
6428
+ params: [
6429
+ ],
6430
+ returns: [
6431
+ new Return({
6432
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
6433
+ }),
6434
+ ],
6800
6435
  }),
6801
- ],
6802
- }),
6803
- new Function({
6804
- name: 'MapFilterAsync',
6805
- description: '在指定Map中过滤出符合条件参数的Map列表',
6806
- params: [
6807
- new Param({
6808
- name: 'map',
6809
- description: '指定映射',
6436
+ new Function({
6437
+ name: 'Round',
6438
+ description: '对指定的小数按指定的舍入模式进行舍入,返回舍入后的整数',
6439
+ params: [
6440
+ new Param({
6441
+ name: 'value',
6442
+ description: '被取整小数',
6443
+ typeAnnotation: TypeAnnotation.createPrimitive('Decimal'),
6444
+ }),
6445
+ new Param({
6446
+ name: 'mode',
6447
+ description: '取整模式:HalfUp 四舍五入,如 -2.5 取整为 -3,2.5 取整为 3。TowardsZero 截断、向零取整:如 -2.6 取整为 -2,2.6 取整为 2。TowardsInfinity 进位、向正负无穷取整,如 -1.1 取整为 -2,1.1 取整为 2',
6448
+ typeAnnotation: TypeAnnotation.createPrimitive('String'),
6449
+ defaultExpression: new StringLiteral({ value: 'HalfUp' }),
6450
+ options: [
6451
+ { text: 'HalfUp', value: 'HalfUp', description: '四舍五入' },
6452
+ { text: 'TowardsZero', value: 'TowardsZero', description: '截断、向零取整,如 -2.6 取整为 -2' },
6453
+ { text: 'Towardslnfinity', value: 'TowardsInfinity', description: '进位、向正负无穷取整,如 -1.1 取整为 -2' },
6454
+ ],
6455
+ &nbsp;
6456
+ }),
6457
+ ],
6458
+ returns: [
6459
+ new Return({
6460
+ typeAnnotation: TypeAnnotation.createPrimitive('Long'),
6461
+ }),
6462
+ ],
6810
6463
  }),
6811
- new Param({
6812
- name: 'by',
6813
- description: '针对键值对的参数key和value设置过滤条件,支持算数运算、比较运算和逻辑运算',
6814
- defaultExpression: new AnonymousFunction({
6464
+ new Function({
6465
+ name: 'HasValue',
6466
+ description: '判断参数是否为有效值,null、空字符串、纯空格、长度为0的集合均不被视为有效值,传入多个参数时,判断是否全部都是有效值',
6815
6467
  params: [
6816
- new Param({
6817
- name: 'key',
6818
- typeAnnotation: null,
6819
- }),
6820
- new Param({
6821
- name: 'value',
6822
- typeAnnotation: null,
6823
- }),
6824
- ],
6825
- }),
6468
+ new Param({
6469
+ name: 'param1',
6470
+ description: '指定参数1',
6471
+ typeAnnotation: TypeAnnotation.createPrimitive('Any'),
6472
+ }),
6473
+ ],
6474
+ returns: [
6475
+ new Return({
6476
+ typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
6477
+ }),
6478
+ ],
6826
6479
  }),
6827
- ],
6828
- returns: [
6829
- new Return({
6830
- typeAnnotation: TypeAnnotation.createGeneric('map', {
6831
- typeArguments: [
6832
- TypeAnnotation.createTypeParam('K'),
6833
- TypeAnnotation.createTypeParam('V'),
6834
- ],
6835
- }),
6480
+ new Function({
6481
+ name: 'ListFindAsync',
6482
+ description: '返回列表中第一个符合条件的项',
6483
+ params: [
6484
+ new Param({
6485
+ name: 'list',
6486
+ description: '指定列表',
6487
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
6488
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
6489
+ }),
6490
+ }),
6491
+ new Param({
6492
+ name: 'by',
6493
+ description: '指定列表中项的某个属性或项本身,通过算数运算、比较运算或逻辑运算进行条件判断并输出布尔值',
6494
+ defaultExpression: new AnonymousFunction({
6495
+ params: [
6496
+ new Param({
6497
+ name: 'item',
6498
+ typeAnnotation: null,
6499
+ }),
6500
+ ],
6501
+ }),
6502
+ }),
6503
+ ],
6504
+ returns: [
6505
+ new Return({
6506
+ typeAnnotation: TypeAnnotation.createTypeParam('T'),
6507
+ }),
6508
+ ],
6836
6509
  }),
6837
- ],
6838
- }),
6839
- new Function({
6840
- name: 'MapTransformAsync',
6841
- description: '对 Map 的每一项调用函数 by,得到新项,并返回新项构成的 Map。(Map 的每一项从 (K0, V0) 变为 (K, V)。)',
6842
- params: [
6843
- new Param({
6844
- name: 'map',
6845
- description: '指定映射',
6510
+ new Function({
6511
+ name: 'ListSortAsync',
6512
+ description: '(修改原数据)为列表按指定规则排序',
6513
+ params: [
6514
+ new Param({
6515
+ name: 'list',
6516
+ description: '指定列表',
6517
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
6518
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
6519
+ }),
6520
+ }),
6521
+ new Param({
6522
+ name: 'by',
6523
+ description: '指定列表中项的某个属性或项本身,支持算数运算和比较运算',
6524
+ defaultExpression: new AnonymousFunction({
6525
+ params: [
6526
+ new Param({
6527
+ name: 'item',
6528
+ typeAnnotation: null,
6529
+ }),
6530
+ ],
6531
+ }),
6532
+ }),
6533
+ new Param({
6534
+ name: 'sort',
6535
+ description: '支持升序或降序设置,asc为升序,desc为降序。',
6536
+ typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
6537
+ defaultValue: 'asc',
6538
+ defaultExpression: new BooleanLiteral({ value: 'true' }),
6539
+ options: [
6540
+ { text: 'asc(升序)', value: 'true' },
6541
+ { text: 'desc(降序)', value: 'false' },
6542
+ ],
6543
+ }),
6544
+ ],
6545
+ returns: [],
6846
6546
  }),
6847
- new Param({
6848
- name: 'by',
6849
- description: `指定映射中键值对的参数处理方式,支持算数运算和比较运算`,
6850
- defaultExpression: new AnonymousFunction({
6547
+ new Function({
6548
+ name: 'ListFilterAsync',
6549
+ description: '筛选列表中符合条件的所有项,返回这些项构成的新的列表',
6851
6550
  params: [
6852
- new Param({
6853
- name: 'key',
6854
- typeAnnotation: null,
6855
- }),
6856
- new Param({
6857
- name: 'value',
6858
- typeAnnotation: null,
6859
- }),
6860
- ],
6861
- body: new Identifier({
6862
- name: 'key',
6863
- }),
6864
- }),
6551
+ new Param({
6552
+ name: 'list',
6553
+ description: '指定列表',
6554
+ }),
6555
+ new Param({
6556
+ name: 'by',
6557
+ description: '指定列表中项的某个属性或项本身,通过算数运算、比较运算或逻辑运算进行条件判断并输出布尔值',
6558
+ defaultExpression: new AnonymousFunction({
6559
+ params: [
6560
+ new Param({
6561
+ name: 'item',
6562
+ typeAnnotation: null,
6563
+ }),
6564
+ ],
6565
+ }),
6566
+ }),
6567
+ ],
6568
+ returns: [
6569
+ new Return({
6570
+ name: 'list',
6571
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
6572
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
6573
+ }),
6574
+ }),
6575
+ ],
6865
6576
  }),
6866
- new Param({
6867
- name: 'byVal',
6868
- defaultExpression: new AnonymousFunction({
6577
+ new Function({
6578
+ name: 'ListFindIndexAsync',
6579
+ description: '返回列表中第一个符合条件的项的索引值',
6869
6580
  params: [
6870
- new Param({
6871
- name: 'key',
6872
- typeAnnotation: null,
6873
- }),
6874
- new Param({
6875
- name: 'value',
6876
- typeAnnotation: null,
6877
- }),
6878
- ],
6879
- }),
6581
+ new Param({
6582
+ name: 'list',
6583
+ description: '指定列表',
6584
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
6585
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
6586
+ }),
6587
+ }),
6588
+ new Param({
6589
+ name: 'by',
6590
+ description: '指定列表中项的某个属性或项本身,通过算数运算、比较运算或逻辑运算进行条件判断并输出布尔值',
6591
+ defaultExpression: new AnonymousFunction({
6592
+ params: [
6593
+ new Param({
6594
+ name: 'item',
6595
+ typeAnnotation: null,
6596
+ }),
6597
+ ],
6598
+ }),
6599
+ }),
6600
+ ],
6601
+ returns: [
6602
+ new Return({
6603
+ typeAnnotation: TypeAnnotation.createPrimitive('Long'),
6604
+ }),
6605
+ ],
6880
6606
  }),
6881
- ],
6882
- returns: [
6883
- new Return({
6884
- typeAnnotation: TypeAnnotation.createGeneric('Map', {
6885
- typeArguments: [TypeAnnotation.createTypeParam('K'), TypeAnnotation.createTypeParam('V')],
6886
- }),
6607
+ new Function({
6608
+ name: 'ListDistinctByAsync',
6609
+ description: '按某个属性为列表去除重复项。返回去除重复项后的列表',
6610
+ params: [
6611
+ new Param({
6612
+ name: 'list',
6613
+ description: '指定列表',
6614
+ }),
6615
+ new Param({
6616
+ name: 'by',
6617
+ description: '指定列表中项的某个属性,若项无属性,则该函数不生效',
6618
+ defaultExpression: new AnonymousFunction({
6619
+ params: [
6620
+ new Param({
6621
+ name: 'item',
6622
+ description: '是否忽略大小写',
6623
+ typeAnnotation: null,
6624
+ }),
6625
+ ],
6626
+ body: new Identifier(),
6627
+ }),
6628
+ }),
6629
+ ],
6630
+ returns: [new Return({
6631
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
6632
+ typeArguments: [
6633
+ TypeAnnotation.createTypeParam('T'),
6634
+ ],
6635
+ }),
6636
+ })],
6637
+ }),
6638
+ new Function({
6639
+ name: 'ListGroupByAsync',
6640
+ description: '按某个属性为列表分组。以选中的属性为 key 建立 Map 并返回。',
6641
+ params: [
6642
+ new Param({
6643
+ name: 'list',
6644
+ description: '指定列表',
6645
+ }),
6646
+ new Param({
6647
+ name: 'by',
6648
+ description: '指定列表中项的某个属性,若项无属性,则该函数不生效',
6649
+ defaultExpression: new AnonymousFunction({
6650
+ params: [
6651
+ new Param({
6652
+ name: 'item',
6653
+ description: '是否忽略大小写',
6654
+ typeAnnotation: null,
6655
+ }),
6656
+ ],
6657
+ body: new Identifier(),
6658
+ }),
6659
+ }),
6660
+ ],
6661
+ returns: [new Return({
6662
+ typeAnnotation: TypeAnnotation.createGeneric('map', {
6663
+ typeArguments: [
6664
+ TypeAnnotation.createTypeParam('K'),
6665
+ TypeAnnotation.createGeneric('List', {
6666
+ typeArguments: [TypeAnnotation.createTypeParam('A')],
6667
+ }),
6668
+ ],
6669
+ }),
6670
+ })],
6671
+ }),
6672
+ new Function({
6673
+ name: 'ListTransformAsync',
6674
+ description: '对列表的每一项调用函数 by,得到新项;返回新项构成的列表',
6675
+ params: [
6676
+ new Param({
6677
+ name: 'list',
6678
+ description: '指定列表',
6679
+ }),
6680
+ new Param({
6681
+ name: 'by',
6682
+ description: '指定对列表中项的某个属性或项本身的处理方式,支持算数运算和比较运算',
6683
+ defaultExpression: new AnonymousFunction({
6684
+ params: [
6685
+ new Param({
6686
+ name: 'item',
6687
+ typeAnnotation: null,
6688
+ }),
6689
+ ],
6690
+ }),
6691
+ }),
6692
+ ],
6693
+ returns: [
6694
+ new Return({
6695
+ typeAnnotation: TypeAnnotation.createGeneric('List', {
6696
+ typeArguments: [TypeAnnotation.createTypeParam('T')],
6697
+ }),
6698
+ }),
6699
+ ],
6887
6700
  }),
6888
- ],
6889
- }),
6890
- new Function({
6891
- name: 'ListToMapAsync',
6892
- description: '选取列表项的某些属性,根据这些属性将列表变为 Map 并返回',
6893
- params: [
6894
- new Param({
6895
- name: 'list',
6896
- description: '指定列表',
6701
+ new Function({
6702
+ name: 'MapFilterAsync',
6703
+ description: '在指定Map中过滤出符合条件参数的Map列表',
6704
+ params: [
6705
+ new Param({
6706
+ name: 'map',
6707
+ description: '指定映射',
6708
+ }),
6709
+ new Param({
6710
+ name: 'by',
6711
+ description: '针对键值对的参数key和value设置过滤条件,支持算数运算、比较运算和逻辑运算',
6712
+ defaultExpression: new AnonymousFunction({
6713
+ params: [
6714
+ new Param({
6715
+ name: 'key',
6716
+ typeAnnotation: null,
6717
+ }),
6718
+ new Param({
6719
+ name: 'value',
6720
+ typeAnnotation: null,
6721
+ }),
6722
+ ],
6723
+ }),
6724
+ }),
6725
+ ],
6726
+ returns: [
6727
+ new Return({
6728
+ typeAnnotation: TypeAnnotation.createGeneric('map', {
6729
+ typeArguments: [
6730
+ TypeAnnotation.createTypeParam('K'),
6731
+ TypeAnnotation.createTypeParam('V'),
6732
+ ],
6733
+ }),
6734
+ }),
6735
+ ],
6897
6736
  }),
6898
- new Param({
6899
- name: 'by',
6900
- description: `根据项的属性及其本身进行key和value的定义`,
6901
- defaultExpression: new AnonymousFunction({
6737
+ new Function({
6738
+ name: 'MapTransformAsync',
6739
+ description: '对 Map 的每一项调用函数 by,得到新项,并返回新项构成的 Map。(Map 的每一项从 (K0, V0) 变为 (K, V)。)',
6902
6740
  params: [
6903
- new Param({
6904
- name: 'item',
6905
- typeAnnotation: null,
6906
- }),
6741
+ new Param({
6742
+ name: 'map',
6743
+ description: '指定映射',
6744
+ }),
6745
+ new Param({
6746
+ name: 'by',
6747
+ description: `指定映射中键值对的参数处理方式,支持算数运算和比较运算`,
6748
+ defaultExpression: new AnonymousFunction({
6749
+ params: [
6750
+ new Param({
6751
+ name: 'key',
6752
+ typeAnnotation: null,
6753
+ }),
6754
+ new Param({
6755
+ name: 'value',
6756
+ typeAnnotation: null,
6757
+ }),
6758
+ ],
6759
+ body: new Identifier({
6760
+ name: 'key',
6761
+ }),
6762
+ }),
6763
+ }),
6764
+ new Param({
6765
+ name: 'byVal',
6766
+ defaultExpression: new AnonymousFunction({
6767
+ params: [
6768
+ new Param({
6769
+ name: 'key',
6770
+ typeAnnotation: null,
6771
+ }),
6772
+ new Param({
6773
+ name: 'value',
6774
+ typeAnnotation: null,
6775
+ }),
6776
+ ],
6777
+ }),
6778
+ }),
6779
+ ],
6780
+ returns: [
6781
+ new Return({
6782
+ typeAnnotation: TypeAnnotation.createGeneric('Map', {
6783
+ typeArguments: [TypeAnnotation.createTypeParam('K'), TypeAnnotation.createTypeParam('V')],
6784
+ }),
6785
+ }),
6907
6786
  ],
6908
- body: new Identifier(),
6909
- }),
6910
6787
  }),
6911
- new Param({
6912
- name: 'byVal',
6913
- defaultExpression: new AnonymousFunction({
6788
+ new Function({
6789
+ name: 'ListToMapAsync',
6790
+ description: '选取列表项的某些属性,根据这些属性将列表变为 Map 并返回',
6914
6791
  params: [
6915
- new Param({
6916
- name: 'item',
6917
- typeAnnotation: null,
6918
- }),
6792
+ new Param({
6793
+ name: 'list',
6794
+ description: '指定列表',
6795
+ }),
6796
+ new Param({
6797
+ name: 'by',
6798
+ description: `根据项的属性及其本身进行key和value的定义`,
6799
+ defaultExpression: new AnonymousFunction({
6800
+ params: [
6801
+ new Param({
6802
+ name: 'item',
6803
+ typeAnnotation: null,
6804
+ }),
6805
+ ],
6806
+ body: new Identifier(),
6807
+ }),
6808
+ }),
6809
+ new Param({
6810
+ name: 'byVal',
6811
+ defaultExpression: new AnonymousFunction({
6812
+ params: [
6813
+ new Param({
6814
+ name: 'item',
6815
+ typeAnnotation: null,
6816
+ }),
6817
+ ],
6818
+ body: new Identifier(),
6819
+ }),
6820
+ }),
6919
6821
  ],
6920
- body: new Identifier(),
6921
- }),
6922
6822
  }),
6923
- ],
6924
- }),
6925
- ];
6926
- &nbsp;
6927
- logics.forEach((logic) =&gt; utilNamespace.addLogic(logic));
6928
- functions.forEach((func) =&gt; utilNamespace.addFunction(func));
6929
- }
6823
+ ],
6824
+ });
6930
6825
  &nbsp;</pre></td></tr></table></pre>
6931
6826
 
6932
6827
  <div class='push'></div><!-- for sticky footer -->
@@ -6934,7 +6829,7 @@ export function initialize() {
6934
6829
  <div class='footer quiet pad2 space-top1 center small'>
6935
6830
  Code coverage generated by
6936
6831
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
6937
- at 2023-12-07T14:08:08.581Z
6832
+ at 2023-10-18T11:36:07.885Z
6938
6833
  </div>
6939
6834
  <script src="../../../../prettify.js"></script>
6940
6835
  <script>