st-comp 0.0.277 → 0.0.279

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 (319) hide show
  1. package/README.md +19 -19
  2. package/es/ChartLayout.cjs +1 -1
  3. package/es/ChartLayout.js +1 -1
  4. package/es/ConfigProvider.cjs +1 -1
  5. package/es/ConfigProvider.js +3 -3
  6. package/es/Contextmenu.cjs +1 -1
  7. package/es/Contextmenu.js +7 -7
  8. package/es/CustomFunction.cjs +2 -2
  9. package/es/CustomFunction.js +514 -308
  10. package/es/FactorWarning.cjs +1 -1
  11. package/es/FactorWarning.js +37 -37
  12. package/es/HeatMap.cjs +1 -1
  13. package/es/HeatMap.js +7 -7
  14. package/es/Kline.cjs +1 -1
  15. package/es/Kline.js +18 -18
  16. package/es/KlineBasic.cjs +1 -1
  17. package/es/KlineBasic.js +93 -93
  18. package/es/KlineConfig.cjs +1 -1
  19. package/es/KlineConfig.js +17 -17
  20. package/es/KlineNew.cjs +1 -1
  21. package/es/KlineNew.js +14 -14
  22. package/es/KlinePlus.cjs +4 -4
  23. package/es/KlinePlus.js +760 -656
  24. package/es/LinearLegend.cjs +1 -1
  25. package/es/LinearLegend.js +1 -1
  26. package/es/Map.cjs +1 -1
  27. package/es/Map.js +1 -1
  28. package/es/MonacoEditor.cjs +1 -1
  29. package/es/MonacoEditor.js +18 -18
  30. package/es/Pagination.cjs +1 -1
  31. package/es/Pagination.js +76 -76
  32. package/es/PasswordPrompt.cjs +1 -1
  33. package/es/PasswordPrompt.js +2 -2
  34. package/es/Pie.cjs +2 -2
  35. package/es/Pie.js +14 -14
  36. package/es/Table.cjs +1 -1
  37. package/es/Table.js +22 -22
  38. package/es/TreeMap.cjs +1 -1
  39. package/es/TreeMap.js +4 -4
  40. package/es/User.cjs +1 -1
  41. package/es/User.js +73 -73
  42. package/es/VarSelectDialog.cjs +2 -2
  43. package/es/VarSelectDialog.js +21 -21
  44. package/es/VarietyAiHelper.cjs +4 -4
  45. package/es/VarietyAiHelper.js +139 -138
  46. package/es/VarietyAutoComplete.cjs +1 -1
  47. package/es/VarietyAutoComplete.js +16 -16
  48. package/es/VarietySearch.cjs +4 -4
  49. package/es/VarietySearch.js +861 -857
  50. package/es/{VarietySelect-6a166293.js → VarietySelect-41daac7b.js} +10 -10
  51. package/es/{VarietySelect-610903f0.cjs → VarietySelect-d58eee29.cjs} +1 -1
  52. package/es/VarietyTextCopy.cjs +2 -2
  53. package/es/VarietyTextCopy.js +25 -25
  54. package/es/VirtualTable.cjs +1 -1
  55. package/es/VirtualTable.js +6 -6
  56. package/es/{_initCloneObject-152b4f4e.js → _initCloneObject-5e73c9c8.js} +2 -2
  57. package/es/{_initCloneObject-76e116d0.cjs → _initCloneObject-a5832933.cjs} +1 -1
  58. package/es/aiTools-229609fb.cjs +2 -0
  59. package/es/aiTools-ce2f9281.js +115 -0
  60. package/es/aiTools.js +179 -176
  61. package/es/{config-provider-4c784baf.cjs → config-provider-06ea6b42.cjs} +1 -1
  62. package/es/{config-provider-7a3aca55.js → config-provider-88b637a8.js} +3 -3
  63. package/es/{dropdown-987c47fb.cjs → dropdown-4ce4c3e2.cjs} +1 -1
  64. package/es/{dropdown-01e09205.js → dropdown-72fbc15d.js} +2 -2
  65. package/es/{el-autocomplete-342ae823.js → el-autocomplete-6cafcdf1.js} +5 -5
  66. package/es/{el-autocomplete-16f66b34.cjs → el-autocomplete-e0857c5b.cjs} +1 -1
  67. package/es/{el-button-13dc915f.cjs → el-button-613e0bb2.cjs} +1 -1
  68. package/es/{el-button-314171a0.js → el-button-94d3de38.js} +3 -3
  69. package/es/{el-checkbox-5899681f.js → el-checkbox-6d4cb393.js} +3 -3
  70. package/es/{el-checkbox-bdf64663.cjs → el-checkbox-e90762df.cjs} +1 -1
  71. package/es/{el-dialog-0ef95df6.cjs → el-dialog-02942e22.cjs} +1 -1
  72. package/es/{el-dialog-86a3eec2.js → el-dialog-5e30161f.js} +4 -4
  73. package/es/{el-form-item-77ef6784.cjs → el-form-item-44f060d8.cjs} +1 -1
  74. package/es/{el-form-item-cda4d93c.js → el-form-item-9e8969ea.js} +5 -5
  75. package/es/{el-input-fa1445ad.js → el-input-342b2def.js} +13 -13
  76. package/es/{el-input-89222943.cjs → el-input-9a9a7f7f.cjs} +1 -1
  77. package/es/{el-input-number-d3338e5e.cjs → el-input-number-65c847d6.cjs} +1 -1
  78. package/es/{el-input-number-8f6dbf74.js → el-input-number-c22b803a.js} +35 -35
  79. package/es/{el-loading-84dde1a8.cjs → el-loading-8179b497.cjs} +1 -1
  80. package/es/{el-loading-9b671203.js → el-loading-bcc51e3d.js} +1 -1
  81. package/es/{el-menu-item-535fef90.js → el-menu-item-339baf6d.js} +21 -21
  82. package/es/{el-menu-item-4531fd0e.cjs → el-menu-item-83186444.cjs} +1 -1
  83. package/es/{el-message-box-621ed2f1.js → el-message-box-035b699c.js} +9 -9
  84. package/es/{el-message-box-f5717070.cjs → el-message-box-c62d3217.cjs} +1 -1
  85. package/es/{el-overlay-23de4324.js → el-overlay-3e17604b.js} +3 -3
  86. package/es/{el-overlay-151708cb.cjs → el-overlay-8f1da9e8.cjs} +1 -1
  87. package/es/{el-popconfirm-b8aa490e.cjs → el-popconfirm-4e32ec1b.cjs} +1 -1
  88. package/es/{el-popconfirm-bcff0aa5.js → el-popconfirm-f8a86e2c.js} +4 -4
  89. package/es/{el-popper-43ec37f4.cjs → el-popper-a4f3ae4d.cjs} +1 -1
  90. package/es/{el-popper-03988662.js → el-popper-fbd0dcea.js} +1 -1
  91. package/es/{el-segmented-db3a86be.js → el-segmented-56bd58a8.js} +2 -2
  92. package/es/{el-segmented-79a1367c.cjs → el-segmented-833ac177.cjs} +1 -1
  93. package/es/{el-select-4bd0010d.js → el-select-44fa547d.js} +8 -8
  94. package/es/{el-select-ec04e7ce.cjs → el-select-70806166.cjs} +1 -1
  95. package/es/{el-table-column-35e47229.cjs → el-table-column-3e2cdfca.cjs} +1 -1
  96. package/es/{el-table-column-7af2bec7.js → el-table-column-b74a857d.js} +9 -9
  97. package/es/{el-tag-bef9e83d.js → el-tag-66c83156.js} +2 -2
  98. package/es/{el-tag-5d5608e0.cjs → el-tag-9c2f329f.cjs} +1 -1
  99. package/es/{el-text-f998902c.js → el-text-034bd3f4.js} +1 -1
  100. package/es/{el-text-abf10fdf.cjs → el-text-6b2374bb.cjs} +1 -1
  101. package/es/index-00f6ca75.cjs +1 -0
  102. package/es/{index-a00e0534.cjs → index-185792a7.cjs} +1 -1
  103. package/es/{index-d1b554ac.js → index-1e2a38ab.js} +2 -2
  104. package/es/{index-0986e373.cjs → index-3153c1db.cjs} +1 -1
  105. package/es/{index-936e7dec.js → index-44a382a5.js} +2 -2
  106. package/es/{index-ce21e2ce.js → index-5216d5f5.js} +5 -5
  107. package/es/{index-7ed0999e.js → index-53cc4e43.js} +720 -716
  108. package/es/{index-cfcd60ca.cjs → index-5c0dd943.cjs} +1 -1
  109. package/es/{index-cfd00899.cjs → index-870b6c9d.cjs} +1 -1
  110. package/es/{index-a83ec4b7.js → index-8c2d7e05.js} +1 -1
  111. package/es/{index-8901a38c.cjs → index-94131fd7.cjs} +30 -30
  112. package/es/{index-db846633.cjs → index-9d16cea8.cjs} +1 -1
  113. package/es/{index-f3f6ee27.js → index-a33b2fb8.js} +178 -178
  114. package/es/{index-2d7ac156.cjs → index-a9246d17.cjs} +17 -17
  115. package/es/{index-60c69dd1.cjs → index-ac8dc53d.cjs} +1 -1
  116. package/es/{index-102edf6c.js → index-c5f2d372.js} +2 -2
  117. package/es/{index-6290ae0f.js → index-c6584658.js} +2 -2
  118. package/es/{index-5c44d71a.js → index-eb96e074.js} +149 -119
  119. package/es/{index-5ed42e9c.js → index-f034b910.js} +2 -2
  120. package/es/{index-c58e90e9.cjs → index-f58b2920.cjs} +1 -1
  121. package/es/{python-6cc6ec1b.js → python-8a1664e6.js} +18 -18
  122. package/es/{python-71f59893.cjs → python-a3db9620.cjs} +1 -1
  123. package/es/style.css +1 -1
  124. package/es/{use-form-common-props-02be4928.cjs → use-form-common-props-ac666630.cjs} +1 -1
  125. package/es/{use-form-common-props-76a09d89.js → use-form-common-props-ed72e914.js} +11 -11
  126. package/es/{use-global-config-31b3ec57.cjs → use-global-config-23472471.cjs} +1 -1
  127. package/es/{use-global-config-0f43458b.js → use-global-config-ee406d58.js} +2 -2
  128. package/es/{validator-ea292506.cjs → validator-366dbf39.cjs} +1 -1
  129. package/es/{validator-0e037618.js → validator-c60a8956.js} +1 -1
  130. package/es/{zh-cn-1227eb8a.js → zh-cn-b59a0910.js} +1 -1
  131. package/es/{zh-cn-0edc7234.cjs → zh-cn-c21d12d8.cjs} +1 -1
  132. package/lib/aiTools.js +179 -176
  133. package/lib/bundle.js +1 -1
  134. package/lib/bundle.umd.cjs +230 -230
  135. package/lib/{index-2a269748.js → index-62fa175a.js} +30149 -29800
  136. package/lib/{python-41da18e5.js → python-4a48fa39.js} +1 -1
  137. package/lib/style.css +1 -1
  138. package/package.json +53 -44
  139. package/auto-imports.d.ts +0 -13
  140. package/components.d.ts +0 -59
  141. package/es/aiTools-a3b095f6.js +0 -113
  142. package/es/aiTools-f36136a4.cjs +0 -2
  143. package/es/index-476c4459.cjs +0 -1
  144. package/index.html +0 -13
  145. package/packages/ChartLayout/index.ts +0 -8
  146. package/packages/ChartLayout/index.vue +0 -63
  147. package/packages/ConfigProvider/index.ts +0 -8
  148. package/packages/ConfigProvider/index.vue +0 -66
  149. package/packages/Contextmenu/index.ts +0 -8
  150. package/packages/Contextmenu/index.vue +0 -134
  151. package/packages/CustomFunction/components/ManageDialog.vue +0 -706
  152. package/packages/CustomFunction/index.ts +0 -8
  153. package/packages/CustomFunction/index.vue +0 -200
  154. package/packages/FactorWarning/index.ts +0 -8
  155. package/packages/FactorWarning/index.vue +0 -754
  156. package/packages/FactorWarning/tools.js +0 -10
  157. package/packages/HeatMap/index.ts +0 -8
  158. package/packages/HeatMap/index.vue +0 -141
  159. package/packages/Kline/components/Contextmenu/index.vue +0 -110
  160. package/packages/Kline/components/Tips/index.vue +0 -40
  161. package/packages/Kline/componentsNew/KlineSlide/index.vue +0 -155
  162. package/packages/Kline/componentsNew/KlineSub/index.vue +0 -297
  163. package/packages/Kline/componentsNew/KlineTips/index.vue +0 -66
  164. package/packages/Kline/componentsNew/KlineUtils/index.vue +0 -84
  165. package/packages/Kline/componentsNew/Tips/index.vue +0 -33
  166. package/packages/Kline/formatKlineData.ts +0 -109
  167. package/packages/Kline/images/buy.svg +0 -1
  168. package/packages/Kline/images/pen.png +0 -0
  169. package/packages/Kline/images/sell.svg +0 -1
  170. package/packages/Kline/images/t.svg +0 -1
  171. package/packages/Kline/index.ts +0 -16
  172. package/packages/Kline/index.vue +0 -891
  173. package/packages/Kline/option.ts +0 -539
  174. package/packages/Kline/type.d.ts +0 -219
  175. package/packages/Kline/utils.ts +0 -682
  176. package/packages/KlineBasic/api.js +0 -58
  177. package/packages/KlineBasic/components/AverageTips/index.vue +0 -33
  178. package/packages/KlineBasic/components/Contextmenu/index.vue +0 -105
  179. package/packages/KlineBasic/components/KlineSub/index.vue +0 -332
  180. package/packages/KlineBasic/components/KlineTips/index.vue +0 -99
  181. package/packages/KlineBasic/components/Tips/index.vue +0 -56
  182. package/packages/KlineBasic/index.ts +0 -8
  183. package/packages/KlineBasic/index.vue +0 -839
  184. package/packages/KlineBasic/utils.js +0 -258
  185. package/packages/KlineConfig/config.js +0 -46
  186. package/packages/KlineConfig/index.ts +0 -8
  187. package/packages/KlineConfig/index.vue +0 -356
  188. package/packages/KlineNew/components/KlineSlide/index.vue +0 -156
  189. package/packages/KlineNew/components/KlineSub/index.vue +0 -335
  190. package/packages/KlineNew/components/KlineTips/index.vue +0 -96
  191. package/packages/KlineNew/components/KlineUtils/index.vue +0 -341
  192. package/packages/KlineNew/components/Tips/index.vue +0 -33
  193. package/packages/KlineNew/index.ts +0 -14
  194. package/packages/KlinePlus/components/SliderChart.vue +0 -208
  195. package/packages/KlinePlus/components/Tips.vue +0 -36
  196. package/packages/KlinePlus/images/buy.svg +0 -1
  197. package/packages/KlinePlus/images/sell.svg +0 -1
  198. package/packages/KlinePlus/images/t.svg +0 -1
  199. package/packages/KlinePlus/index.ts +0 -8
  200. package/packages/KlinePlus/index.vue +0 -1067
  201. package/packages/KlinePlus/utils.js +0 -771
  202. package/packages/LinearLegend/index.ts +0 -8
  203. package/packages/LinearLegend/index.vue +0 -112
  204. package/packages/Map/China.json +0 -1
  205. package/packages/Map/index.ts +0 -8
  206. package/packages/Map/index.vue +0 -147
  207. package/packages/MonacoEditor/index.ts +0 -8
  208. package/packages/MonacoEditor/index.vue +0 -1141
  209. package/packages/MonacoEditor/tools.js +0 -18
  210. package/packages/Pagination/index.ts +0 -8
  211. package/packages/Pagination/index.vue +0 -87
  212. package/packages/PasswordPrompt/index.ts +0 -8
  213. package/packages/PasswordPrompt/index.vue +0 -267
  214. package/packages/Pie/index.ts +0 -8
  215. package/packages/Pie/index.vue +0 -148
  216. package/packages/Table/components/Button/index.vue +0 -61
  217. package/packages/Table/components/Formatter/index.vue +0 -26
  218. package/packages/Table/index.d.ts +0 -0
  219. package/packages/Table/index.ts +0 -8
  220. package/packages/Table/index.vue +0 -133
  221. package/packages/TreeMap/index.ts +0 -8
  222. package/packages/TreeMap/index.vue +0 -186
  223. package/packages/User/components/EditInfoDialog/Mobile.vue +0 -214
  224. package/packages/User/components/EditInfoDialog/index.vue +0 -161
  225. package/packages/User/components/EditPasswordDialog.vue +0 -168
  226. package/packages/User/components/SetPasswordDialog.vue +0 -160
  227. package/packages/User/index.ts +0 -8
  228. package/packages/User/index.vue +0 -117
  229. package/packages/VarSelectDialog/Mock.js +0 -495
  230. package/packages/VarSelectDialog/VarietySelect.vue +0 -78
  231. package/packages/VarSelectDialog/index.ts +0 -8
  232. package/packages/VarSelectDialog/index.vue +0 -323
  233. package/packages/VarietyAiHelper/images/like.png +0 -0
  234. package/packages/VarietyAiHelper/images/like_no.png +0 -0
  235. package/packages/VarietyAiHelper/index.ts +0 -8
  236. package/packages/VarietyAiHelper/index.vue +0 -910
  237. package/packages/VarietyAutoComplete/index.ts +0 -8
  238. package/packages/VarietyAutoComplete/index.vue +0 -89
  239. package/packages/VarietySearch/components/AddTag/index.vue +0 -268
  240. package/packages/VarietySearch/components/CommonIndicator/IndicatorTags.vue +0 -52
  241. package/packages/VarietySearch/components/CommonIndicator/index.vue +0 -697
  242. package/packages/VarietySearch/components/CommonIndicator/tools.js +0 -260
  243. package/packages/VarietySearch/components/CompositeOrder/index.vue +0 -260
  244. package/packages/VarietySearch/components/FactorScreen/FactorDescription.vue +0 -70
  245. package/packages/VarietySearch/components/FactorScreen/index.vue +0 -1158
  246. package/packages/VarietySearch/components/FactorScreen/tools.js +0 -34
  247. package/packages/VarietySearch/config.js +0 -539
  248. package/packages/VarietySearch/index.ts +0 -8
  249. package/packages/VarietySearch/index.vue +0 -688
  250. package/packages/VarietyTextCopy/index.ts +0 -8
  251. package/packages/VarietyTextCopy/index.vue +0 -136
  252. package/packages/VirtualTable/index.ts +0 -8
  253. package/packages/VirtualTable/index.vue +0 -241
  254. package/packages/index.ts +0 -59
  255. package/public/aiTools.js +0 -176
  256. package/public/talib.wasm +0 -0
  257. package/public/vite.svg +0 -1
  258. package/src/App.vue +0 -140
  259. package/src/assets/vue.svg +0 -1
  260. package/src/components/Dialog/index.vue +0 -16
  261. package/src/components/Kline/index.vue +0 -21
  262. package/src/components/Table/index.vue +0 -27
  263. package/src/main.ts +0 -17
  264. package/src/pages/ChartLayout/index.vue +0 -22
  265. package/src/pages/ConfigProvider/index.vue +0 -9
  266. package/src/pages/Contextmenu/index.vue +0 -46
  267. package/src/pages/CustomFunction/index.vue +0 -13
  268. package/src/pages/FactorWarning/index.vue +0 -203
  269. package/src/pages/HeatMap/index.vue +0 -128
  270. package/src/pages/Kline/index.vue +0 -12
  271. package/src/pages/KlineBasic/api.js +0 -48
  272. package/src/pages/KlineBasic/index.vue +0 -366
  273. package/src/pages/KlineBasic/indicator.js +0 -114
  274. package/src/pages/KlineConfig/index.vue +0 -20
  275. package/src/pages/KlineNew/components/KlineAction/components/ContextMenu/index.vue +0 -91
  276. package/src/pages/KlineNew/components/KlineAction/components/YearChart/index.vue +0 -532
  277. package/src/pages/KlineNew/components/KlineAction/images/pen.png +0 -0
  278. package/src/pages/KlineNew/components/KlineAction/index.vue +0 -716
  279. package/src/pages/KlineNew/components/KlineAction/mockApi/index.js +0 -13
  280. package/src/pages/KlineNew/components/KlineAction/utils.js +0 -571
  281. package/src/pages/KlineNew/components/KlineBasic/index.vue +0 -336
  282. package/src/pages/KlineNew/components/KlineBasic/utils.js +0 -46
  283. package/src/pages/KlineNew/components/KlineNew/index.vue +0 -316
  284. package/src/pages/KlineNew/components/KlineNew/utils.js +0 -31
  285. package/src/pages/KlineNew/components/KlineSlide/index.vue +0 -448
  286. package/src/pages/KlineNew/components/KlineSlide/utils.js +0 -78
  287. package/src/pages/KlineNew/components/KlineSlideNew/index.vue +0 -430
  288. package/src/pages/KlineNew/components/KlineSlideNew/utils.js +0 -78
  289. package/src/pages/KlineNew/index.vue +0 -92
  290. package/src/pages/KlinePlus/KlineDialog/MultiCycle.vue +0 -312
  291. package/src/pages/KlinePlus/KlineDialog/api.js +0 -108
  292. package/src/pages/KlinePlus/KlineDialog/index.vue +0 -582
  293. package/src/pages/KlinePlus/KlineDialog/indicator.js +0 -109
  294. package/src/pages/KlinePlus/KlineDialog/tools.js +0 -86
  295. package/src/pages/KlinePlus/index.vue +0 -30
  296. package/src/pages/KlinePlus/tradeLogMock.js +0 -1927
  297. package/src/pages/LinearLegend/index.vue +0 -92
  298. package/src/pages/Map/index.vue +0 -62
  299. package/src/pages/MonacoEditor/index.vue +0 -63
  300. package/src/pages/Pagination/index.vue +0 -24
  301. package/src/pages/PasswordPrompt/index.vue +0 -12
  302. package/src/pages/Pie/index.vue +0 -36
  303. package/src/pages/Table/index.vue +0 -117
  304. package/src/pages/TreeMap/index.vue +0 -542
  305. package/src/pages/User/index.vue +0 -24
  306. package/src/pages/VarSelectDialog/index.vue +0 -16
  307. package/src/pages/VarietyAiHelper/index.vue +0 -20
  308. package/src/pages/VarietyAutoComplete/index.vue +0 -19
  309. package/src/pages/VarietySearch/api.js +0 -70
  310. package/src/pages/VarietySearch/index.vue +0 -467
  311. package/src/pages/VarietyTextCopy/index.vue +0 -24
  312. package/src/pages/VirtualTable/demo.json +0 -6377
  313. package/src/pages/VirtualTable/index.vue +0 -79
  314. package/src/router/index.ts +0 -9
  315. package/src/router/routes.ts +0 -132
  316. package/src/style.css +0 -79
  317. package/src/vite-env.d.ts +0 -9
  318. package/tsconfig.json +0 -30
  319. package/tsconfig.node.json +0 -10
@@ -1,43 +1,53 @@
1
1
  import "./base-a5af3db3.js";
2
- import { E as te } from "./el-button-314171a0.js";
3
- import "./el-tag-bef9e83d.js";
4
- import { E as _e, a as ve } from "./el-select-4bd0010d.js";
2
+ import { E as me } from "./el-button-94d3de38.js";
3
+ import "./el-tag-66c83156.js";
4
+ import { E as Ie, a as De } from "./el-select-44fa547d.js";
5
5
  import "./el-scrollbar-323542e7.js";
6
- import "./el-popper-03988662.js";
7
- import { E as oe } from "./el-popconfirm-bcff0aa5.js";
6
+ import "./el-popper-fbd0dcea.js";
7
+ import { E as _e } from "./el-popconfirm-f8a86e2c.js";
8
8
  import "./el-popover-4ed993c7.js";
9
- import { inject as ne, ref as v, reactive as P, computed as ge, watch as he, nextTick as X, resolveComponent as Y, openBlock as D, createBlock as G, withCtx as s, createElementVNode as a, normalizeClass as U, createVNode as t, unref as b, createTextVNode as S, createElementBlock as L, Fragment as le, renderList as se, toDisplayString as j, withModifiers as T, pushScopeId as ye, popScopeId as Ee, h as M, onMounted as xe, normalizeStyle as be } from "vue";
10
- import { c as Z, d as ae, a as ie, b as Ce, E as ce, e as ke } from "./index-5c44d71a.js";
11
- import { E as Ve } from "./el-dialog-86a3eec2.js";
12
- import "./el-overlay-23de4324.js";
13
- import { E as we } from "./el-divider-4e059794.js";
14
- import { E as Ne } from "./el-empty-33cb66f1.js";
15
- import { E as ee } from "./el-input-fa1445ad.js";
16
- import { G as $e } from "./index-7ed0999e.js";
9
+ import { inject as ve, ref as p, reactive as Q, computed as Fe, watch as Oe, nextTick as ue, resolveComponent as de, openBlock as f, createBlock as F, withCtx as n, createElementVNode as s, normalizeClass as W, createVNode as t, unref as g, createTextVNode as x, createElementBlock as E, Fragment as Y, renderList as Z, toDisplayString as O, withModifiers as ee, createCommentVNode as X, pushScopeId as Ae, popScopeId as ze, h as H, onMounted as Be, normalizeStyle as Re } from "vue";
10
+ import { c as le, d as ge, a as he, b as Me, m as Ue, e as je, l as Te, E as ye, f as qe } from "./index-eb96e074.js";
11
+ import { E as Le } from "./el-divider-4e059794.js";
12
+ import { E as Pe } from "./el-dialog-5e30161f.js";
13
+ import "./el-overlay-3e17604b.js";
14
+ import { E as We } from "./el-empty-33cb66f1.js";
15
+ import { E as fe } from "./el-input-342b2def.js";
16
+ import { j as He, R as Je } from "./index-53cc4e43.js";
17
+ import { s as Ke } from "./aiTools-ce2f9281.js";
17
18
  import "./el-message-4ed993c7.js";
18
- import { E as Se } from "./el-message-box-621ed2f1.js";
19
- import { E as De, a as Fe } from "./el-form-item-cda4d93c.js";
20
- import { _ as ue } from "./_plugin-vue_export-helper-dad06003.js";
21
- import { E as $ } from "./index-ce21e2ce.js";
22
- import { E as ze } from "./index-102edf6c.js";
19
+ import { E as pe } from "./el-message-box-035b699c.js";
20
+ import { E as Ge, a as Qe } from "./el-form-item-9e8969ea.js";
21
+ import { _ as xe } from "./_plugin-vue_export-helper-dad06003.js";
22
+ import { E as S } from "./index-5216d5f5.js";
23
+ import { E as Xe } from "./index-c5f2d372.js";
23
24
  import "./index-2e331d74.js";
24
- import "./use-global-config-0f43458b.js";
25
- import "./use-form-common-props-76a09d89.js";
25
+ import "./use-global-config-ee406d58.js";
26
+ import "./use-form-common-props-ed72e914.js";
26
27
  import "./index-960806da.js";
27
28
  import "./index-d77a7336.js";
28
- import "./index-a83ec4b7.js";
29
+ import "./index-8c2d7e05.js";
29
30
  import "./index-657047bb.js";
30
- import "./index-d1b554ac.js";
31
+ import "./index-1e2a38ab.js";
31
32
  import "./castArray-7741a212.js";
32
- import "./index-5ed42e9c.js";
33
+ import "./index-f034b910.js";
33
34
  import "./scroll-679bd6bf.js";
34
35
  import "./debounce-8d53f4dd.js";
35
36
  import "./vnode-5ddb7ed1.js";
36
37
  import "./typescript-7ae59c4c.js";
37
- import "./validator-0e037618.js";
38
- import "./_initCloneObject-152b4f4e.js";
39
- import "./config-provider-7a3aca55.js";
40
- const K = (f) => (ye("data-v-b5dcb4b8"), f = f(), Ee(), f), Ie = { class: "custom-header" }, Me = { class: "left" }, Oe = ["id"], Be = { class: "right" }, qe = { class: "manage-dialog-body" }, Re = { class: "func-list" }, Ue = { class: "search" }, je = /* @__PURE__ */ K(() => /* @__PURE__ */ a("span", null, "输入函数关键字", -1)), Te = ["onClick"], Le = { class: "icon-box" }, We = { class: "rule-form" }, Ae = { class: "header" }, Pe = /* @__PURE__ */ K(() => /* @__PURE__ */ a("span", null, "函数名称:", -1)), Ge = { class: "right" }, Ke = /* @__PURE__ */ K(() => /* @__PURE__ */ a("div", { class: "tip-box" }, "说明: 公式里可以使用变量, 变量名命名格式: ${变量名}, 后续可在应用函数时填写具体值, 系统会自动换算", -1)), He = { class: "custom-header" }, Je = { class: "left" }, Qe = ["id"], Xe = { class: "right" }, Ye = { class: "content" }, Ze = { class: "dialog-footer" }, et = {
38
+ import "./validator-c60a8956.js";
39
+ import "./_initCloneObject-5e73c9c8.js";
40
+ import "./config-provider-88b637a8.js";
41
+ const se = (h) => (Ae("data-v-5797123f"), h = h(), ze(), h), Ye = { class: "custom-header" }, Ze = { class: "left" }, et = ["id"], tt = { class: "right" }, ot = { class: "manage-dialog-body" }, nt = { class: "func-list" }, lt = { class: "search" }, st = /* @__PURE__ */ se(() => /* @__PURE__ */ s("span", null, "输入函数关键字", -1)), at = ["onClick"], it = { class: "icon-box" }, ct = { class: "rule-form" }, rt = { class: "header" }, ut = /* @__PURE__ */ se(() => /* @__PURE__ */ s("span", null, "函数名称:", -1)), dt = { class: "right" }, ft = /* @__PURE__ */ se(() => /* @__PURE__ */ s("div", { class: "tip-box" }, "说明: 公式里可以使用变量, 变量名命名格式: ${变量名}, 后续可在应用函数时填写具体值, 系统会自动换算", -1)), pt = { class: "custom-header" }, mt = { class: "left" }, _t = ["id"], vt = { class: "right" }, gt = { class: "ai-dialog-body" }, ht = {
42
+ key: 0,
43
+ class: "node-progress"
44
+ }, yt = {
45
+ key: 1,
46
+ class: "ai-error"
47
+ }, xt = {
48
+ key: 2,
49
+ class: "ai-result"
50
+ }, Et = { class: "factor-expr" }, kt = { class: "dialog-footer" }, Ct = { class: "custom-header" }, bt = { class: "left" }, Vt = ["id"], St = { class: "right" }, wt = { class: "content" }, Nt = { class: "dialog-footer" }, $t = {
41
51
  __name: "ManageDialog",
42
52
  props: {
43
53
  data: {
@@ -46,93 +56,93 @@ const K = (f) => (ye("data-v-b5dcb4b8"), f = f(), Ee(), f), Ie = { class: "custo
46
56
  }
47
57
  },
48
58
  emits: ["refreshData"],
49
- setup(f, { expose: W, emit: O }) {
50
- const { request: C } = ne("stConfig"), m = v(null), k = v(null), h = O, y = f, E = v(!1), V = P({
59
+ setup(h, { expose: te, emit: J }) {
60
+ const w = ve("stConfig"), { request: R } = w, m = p(null), k = p(null), N = J, M = h, A = p(!1), $ = Q({
51
61
  save: !1,
52
62
  test: !1
53
- }), w = v(null), x = ge(() => w.value ? y.data.filter((o) => o.funcName.includes(w.value)) : y.data), l = P({
63
+ }), C = p(null), v = Fe(() => C.value ? M.data.filter((l) => l.funcName.includes(C.value)) : M.data), o = Q({
54
64
  id: null,
55
65
  funcName: "",
56
66
  funcExpression: ""
57
- }), n = P({
67
+ }), u = Q({
58
68
  result: null,
59
69
  detail: "",
60
70
  code: ""
61
- }), i = v(!1), z = () => {
62
- var o;
63
- Object.assign(l, {
71
+ }), I = p(!1), q = () => {
72
+ var l;
73
+ Object.assign(o, {
64
74
  id: null,
65
75
  funcName: "",
66
76
  funcExpression: ""
67
- }), (o = m.value) == null || o.setValue(l.funcExpression);
68
- }, I = (o) => {
77
+ }), (l = m.value) == null || l.setValue(o.funcExpression);
78
+ }, L = (l) => {
69
79
  var e;
70
- Object.assign(l, {
71
- id: o.id,
72
- funcName: o.funcName,
73
- funcExpression: o.funcExpression
74
- }), (e = m.value) == null || e.setValue(l.funcExpression);
75
- }, A = (o) => {
80
+ Object.assign(o, {
81
+ id: l.id,
82
+ funcName: l.funcName,
83
+ funcExpression: l.funcExpression
84
+ }), (e = m.value) == null || e.setValue(o.funcExpression);
85
+ }, K = (l) => {
76
86
  var e;
77
- Object.assign(l, {
87
+ Object.assign(o, {
78
88
  id: null,
79
- funcName: `${o.funcName}-复制`,
80
- funcExpression: o.funcExpression
81
- }), (e = m.value) == null || e.setValue(l.funcExpression);
82
- }, B = async (o) => {
89
+ funcName: `${l.funcName}-复制`,
90
+ funcExpression: l.funcExpression
91
+ }), (e = m.value) == null || e.setValue(o.funcExpression);
92
+ }, y = async (l) => {
83
93
  var e;
84
- o.id === l.id && (Object.assign(l, {
94
+ l.id === o.id && (Object.assign(o, {
85
95
  id: null,
86
96
  funcName: "",
87
97
  funcExpression: ""
88
- }), (e = m.value) == null || e.setValue(l.funcExpression)), await C.post("/common/qt/deleteSearchFunctionById", { id: o.id }), h("refreshData");
89
- }, p = $e(async () => {
98
+ }), (e = m.value) == null || e.setValue(o.funcExpression)), await R.post("/common/qt/deleteSearchFunctionById", { id: l.id }), N("refreshData");
99
+ }, G = He(async () => {
90
100
  try {
91
- if (V.save = !0, l.funcExpression = m.value.getValue(), !l.funcName)
92
- return $.error("函数名称不可为空");
93
- if (!l.funcExpression)
94
- return $.error("函数内容不可为空");
95
- await C.post("/common/qt/saveOrUpdateSearchFunction", l), $.success("操作成功"), h("refreshData"), l.id || z();
101
+ if ($.save = !0, o.funcExpression = m.value.getValue(), !o.funcName)
102
+ return S.error("函数名称不可为空");
103
+ if (!o.funcExpression)
104
+ return S.error("函数内容不可为空");
105
+ await R.post("/common/qt/saveOrUpdateSearchFunction", o), S.success("操作成功"), N("refreshData"), o.id || q();
96
106
  } finally {
97
- V.save = !1;
107
+ $.save = !1;
98
108
  }
99
- }), q = (o) => new Promise((e) => {
100
- const c = v(
101
- o.reduce((d, _) => (d[_] = "", d), {})
102
- ), r = v({}), g = () => {
103
- let d = !0;
109
+ }), Ee = (l) => new Promise((e) => {
110
+ const i = p(
111
+ l.reduce((c, _) => (c[_] = "", c), {})
112
+ ), r = p({}), d = () => {
113
+ let c = !0;
104
114
  const _ = {};
105
- return o.forEach((N) => {
106
- var R;
107
- (R = c.value[N]) != null && R.trim() || (_[N] = `请输入${N}的值`, d = !1);
108
- }), r.value = _, d;
115
+ return l.forEach((D) => {
116
+ var T;
117
+ (T = i.value[D]) != null && T.trim() || (_[D] = `请输入${D}的值`, c = !1);
118
+ }), r.value = _, c;
109
119
  };
110
- Se({
120
+ pe({
111
121
  title: "填写变量值用于接口测试",
112
- message: M({
122
+ message: H({
113
123
  setup() {
114
- return () => M("div", [
115
- M(
116
- De,
124
+ return () => H("div", [
125
+ H(
126
+ Ge,
117
127
  {
118
- model: c.value
128
+ model: i.value
119
129
  },
120
- () => o.map(
121
- (d) => M(
122
- Fe,
130
+ () => l.map(
131
+ (c) => H(
132
+ Qe,
123
133
  {
124
- label: `${d}: `,
125
- prop: d,
126
- error: r.value[d],
134
+ label: `${c}: `,
135
+ prop: c,
136
+ error: r.value[c],
127
137
  "label-width": "90px"
128
138
  },
129
- () => M(ee, {
130
- modelValue: c.value[d],
139
+ () => H(fe, {
140
+ modelValue: i.value[c],
131
141
  "onUpdate:modelValue": (_) => {
132
- c.value[d] = _, r.value[d] && delete r.value[d];
142
+ i.value[c] = _, r.value[c] && delete r.value[c];
133
143
  },
134
- placeholder: `请输入 ${d} 的值`,
135
- status: r.value[d] ? "error" : ""
144
+ placeholder: `请输入 ${c} 的值`,
145
+ status: r.value[c] ? "error" : ""
136
146
  })
137
147
  )
138
148
  )
@@ -144,77 +154,148 @@ const K = (f) => (ye("data-v-b5dcb4b8"), f = f(), Ee(), f), Ie = { class: "custo
144
154
  confirmButtonText: "确定",
145
155
  cancelButtonText: "取消",
146
156
  customClass: "variable-input-dialog",
147
- beforeClose: async (d, _, N) => {
148
- d !== "confirm" && (e(!1), N()), await X(), g() && (e({ ...c.value }), N());
157
+ beforeClose: async (c, _, D) => {
158
+ c !== "confirm" && (e(!1), D()), await ue(), d() && (e({ ...i.value }), D());
149
159
  }
150
160
  }).catch(() => e(!1));
151
- }), re = (o) => {
152
- const e = /\$\{([^}]*)\}/g, c = [];
161
+ }), ke = (l) => {
162
+ const e = /\$\{([^}]*)\}/g, i = [];
153
163
  let r;
154
- for (; (r = e.exec(o)) !== null; )
155
- c.push(r[1]);
156
- return [...new Set(c)];
157
- }, de = (o, e) => o.replace(/\$\{([^}]*)\}/g, (c, r) => e[r] !== void 0 ? e[r] : c), H = async (o) => {
158
- switch (o) {
164
+ for (; (r = e.exec(l)) !== null; )
165
+ i.push(r[1]);
166
+ return [...new Set(i)];
167
+ }, Ce = (l, e) => l.replace(/\$\{([^}]*)\}/g, (i, r) => e[r] !== void 0 ? e[r] : i), ae = async (l) => {
168
+ switch (l) {
159
169
  case "submit": {
160
170
  let e = m.value.getValue();
161
171
  if (!e)
162
- return $.error("函数内容不可为空");
172
+ return S.error("函数内容不可为空");
163
173
  if (/\$\{[^}]*\}/.test(e)) {
164
- const c = re(e), r = await q(c);
174
+ const i = ke(e), r = await Ee(i);
165
175
  if (!r)
166
176
  return;
167
- e = de(e, r);
177
+ e = Ce(e, r);
168
178
  }
169
179
  try {
170
- V.test = !0;
171
- const { body: c } = await C.post("/common/qt/testFactorSelect", { factorSelectExpr: e }), { result: r, detail: g } = c;
172
- Object.assign(n, { result: r, detail: g, code: e }), r === 1 ? $.success("测试通过") : ($.error("测试未能通过"), i.value = !0);
180
+ $.test = !0;
181
+ const { body: i } = await R.post("/common/qt/testFactorSelect", { factorSelectExpr: e }), { result: r, detail: d } = i;
182
+ Object.assign(u, { result: r, detail: d, code: e }), r === 1 ? S.success("测试通过") : (S.error("测试未能通过"), I.value = !0);
173
183
  } finally {
174
- V.test = !1;
184
+ $.test = !1;
175
185
  }
176
186
  break;
177
187
  }
178
188
  case "log": {
179
- if (n.result === null)
180
- return $.warning("请先进行测试, 等待测试完成后可查看日志");
181
- i.value = !0;
189
+ if (u.result === null)
190
+ return S.warning("请先进行测试, 等待测试完成后可查看日志");
191
+ I.value = !0;
182
192
  break;
183
193
  }
184
194
  }
185
- }, fe = () => {
195
+ }, U = p(!1), oe = p(""), z = p(!1), B = p(""), ne = p(""), ie = p(null), j = p([]), b = Q({
196
+ parsedConditions: [],
197
+ factorSelectExpr: ""
198
+ }), be = () => {
199
+ U.value = !0, B.value = "";
200
+ }, Ve = () => {
201
+ ne.value = "", B.value = "", j.value = [], Object.assign(b, {
202
+ parsedConditions: [],
203
+ factorSelectExpr: ""
204
+ });
205
+ }, ce = async () => {
206
+ var e, i;
207
+ const l = (e = oe.value) == null ? void 0 : e.trim();
208
+ if (!l)
209
+ return S.error("请输入脚本描述");
210
+ z.value || (Ve(), z.value = !0, await Ke({
211
+ baseUrl: (i = w == null ? void 0 : w.env) == null ? void 0 : i.VITE_BASE_URL,
212
+ token: Je(),
213
+ value: l,
214
+ sessionId: ie.value,
215
+ callback: (r, d) => {
216
+ var P;
217
+ switch (r) {
218
+ case "session": {
219
+ ie.value = d;
220
+ break;
221
+ }
222
+ case "node": {
223
+ const c = j.value.findIndex((_) => _.name === d.name);
224
+ c === -1 ? j.value.push(d) : j.value[c] = d;
225
+ break;
226
+ }
227
+ case "message": {
228
+ ne.value = d;
229
+ break;
230
+ }
231
+ case "finish": {
232
+ z.value = !1;
233
+ try {
234
+ const c = JSON.parse(ne.value), _ = (P = c == null ? void 0 : c.factorScreen) == null ? void 0 : P.factorSelectExpr;
235
+ _ ? Object.assign(b, {
236
+ parsedConditions: c.parsedConditions ?? [],
237
+ factorSelectExpr: _
238
+ }) : B.value = "AI 未能生成有效的因子脚本, 请调整描述后重试";
239
+ } catch {
240
+ B.value = "AI 返回结果解析失败, 请重试";
241
+ }
242
+ break;
243
+ }
244
+ case "error": {
245
+ z.value = !1, B.value = typeof d == "string" ? d : "AI 生成失败, 请重试";
246
+ break;
247
+ }
248
+ }
249
+ }
250
+ }));
251
+ }, Se = async () => {
252
+ var e, i;
253
+ if (!b.factorSelectExpr)
254
+ return;
255
+ if ((e = m.value) == null ? void 0 : e.getValue())
256
+ try {
257
+ await pe.confirm("当前编辑器已有内容, 将被 AI 生成结果覆盖, 是否继续?", "提示", {
258
+ confirmButtonText: "覆盖",
259
+ cancelButtonText: "取消",
260
+ type: "warning"
261
+ });
262
+ } catch {
263
+ return;
264
+ }
265
+ (i = m.value) == null || i.setValue(b.factorSelectExpr), o.funcExpression = b.factorSelectExpr, U.value = !1, S.success("已插入到编辑器");
266
+ }, we = () => {
186
267
  k.value.open(m.value);
187
268
  };
188
- return he(
189
- () => E.value,
190
- (o) => {
191
- o || (k.value.close(), i.value = !1);
269
+ return Oe(
270
+ () => A.value,
271
+ (l) => {
272
+ l || (k.value.close(), I.value = !1, U.value = !1);
192
273
  }
193
- ), W({
194
- open: (o) => {
195
- E.value = !0, X(() => {
274
+ ), te({
275
+ open: (l) => {
276
+ A.value = !0, ue(() => {
196
277
  var e;
197
- if ((e = m.value) == null || e.resize(), w.value = null, Object.assign(n, {
278
+ if ((e = m.value) == null || e.resize(), C.value = null, Object.assign(u, {
198
279
  result: null,
199
280
  detail: "",
200
281
  code: ""
201
- }), o) {
202
- const c = {
203
- id: o.id,
204
- funcName: o.funcName,
205
- funcExpression: o.funcExpression
282
+ }), l) {
283
+ const i = {
284
+ id: l.id,
285
+ funcName: l.funcName,
286
+ funcExpression: l.funcExpression
206
287
  };
207
- I(c);
288
+ L(i);
208
289
  } else
209
- x.value.length ? I(x.value[0]) : z();
290
+ v.value.length ? L(v.value[0]) : q();
210
291
  });
211
292
  }
212
- }), (o, e) => {
213
- const c = ce, r = ee, g = te, J = oe, d = Ne, _ = ze, N = Y("st-monacoEditor"), R = Y("st-varSelectDialog"), me = we, Q = Ve;
214
- return D(), G(Q, {
293
+ }), (l, e) => {
294
+ const i = ye, r = fe, d = me, P = _e, c = We, _ = Xe, D = de("st-monacoEditor"), T = Pe, Ne = de("st-varSelectDialog"), $e = Le;
295
+ return f(), F(T, {
215
296
  "modal-class": "manage-dialog",
216
- modelValue: E.value,
217
- "onUpdate:modelValue": e[8] || (e[8] = (u) => E.value = u),
297
+ modelValue: A.value,
298
+ "onUpdate:modelValue": e[11] || (e[11] = (a) => A.value = a),
218
299
  width: "1600",
219
300
  "align-center": "",
220
301
  "append-to-body": "",
@@ -223,78 +304,78 @@ const K = (f) => (ye("data-v-b5dcb4b8"), f = f(), Ee(), f), Ie = { class: "custo
223
304
  "modal-penetrable": !0,
224
305
  "show-close": !1
225
306
  }, {
226
- header: s(({ titleId: u, titleClass: F }) => [
227
- a("div", Ie, [
228
- a("div", Me, [
229
- a("span", {
230
- id: u,
231
- class: U(F)
232
- }, " 自定义函数管理面板 ", 10, Oe)
307
+ header: n(({ titleId: a, titleClass: V }) => [
308
+ s("div", Ye, [
309
+ s("div", Ze, [
310
+ s("span", {
311
+ id: a,
312
+ class: W(V)
313
+ }, " 自定义函数管理面板 ", 10, et)
233
314
  ]),
234
- a("div", Be, [
235
- t(c, {
236
- onClick: e[0] || (e[0] = (pe) => E.value = !1)
315
+ s("div", tt, [
316
+ t(i, {
317
+ onClick: e[0] || (e[0] = (re) => A.value = !1)
237
318
  }, {
238
- default: s(() => [
239
- t(b(Z))
319
+ default: n(() => [
320
+ t(g(le))
240
321
  ]),
241
322
  _: 1
242
323
  })
243
324
  ])
244
325
  ])
245
326
  ]),
246
- default: s(() => [
247
- a("div", qe, [
248
- a("div", Re, [
249
- a("div", Ue, [
250
- je,
327
+ default: n(() => [
328
+ s("div", ot, [
329
+ s("div", nt, [
330
+ s("div", lt, [
331
+ st,
251
332
  t(r, {
252
- modelValue: w.value,
253
- "onUpdate:modelValue": e[1] || (e[1] = (u) => w.value = u),
333
+ modelValue: C.value,
334
+ "onUpdate:modelValue": e[1] || (e[1] = (a) => C.value = a),
254
335
  clearable: ""
255
336
  }, null, 8, ["modelValue"]),
256
- t(g, {
337
+ t(d, {
257
338
  type: "primary",
258
- onClick: z
339
+ onClick: q
259
340
  }, {
260
- default: s(() => [
261
- S("新建")
341
+ default: n(() => [
342
+ x("新建")
262
343
  ]),
263
344
  _: 1
264
345
  })
265
346
  ]),
266
347
  t(_, { class: "list" }, {
267
- default: s(() => [
268
- x.value.length ? (D(!0), L(le, { key: 0 }, se(x.value, (u) => (D(), L("div", {
269
- key: u.id,
270
- class: U([{ "active-list-item": l.id === u.id }, "list-item"])
348
+ default: n(() => [
349
+ v.value.length ? (f(!0), E(Y, { key: 0 }, Z(v.value, (a) => (f(), E("div", {
350
+ key: a.id,
351
+ class: W([{ "active-list-item": o.id === a.id }, "list-item"])
271
352
  }, [
272
- a("span", {
353
+ s("span", {
273
354
  class: "func-name",
274
- onClick: (F) => I(u)
275
- }, j(u.funcName), 9, Te),
276
- a("div", Le, [
277
- t(c, null, {
278
- default: s(() => [
279
- t(b(ae), {
280
- onClick: (F) => A(u)
355
+ onClick: (V) => L(a)
356
+ }, O(a.funcName), 9, at),
357
+ s("div", it, [
358
+ t(i, null, {
359
+ default: n(() => [
360
+ t(g(ge), {
361
+ onClick: (V) => K(a)
281
362
  }, null, 8, ["onClick"])
282
363
  ]),
283
364
  _: 2
284
365
  }, 1024),
285
- t(J, {
366
+ t(P, {
286
367
  title: "确认是否删除?",
287
368
  "confirm-button-text": "确认",
288
369
  "cancel-button-text": "取消",
289
- onConfirm: (F) => B(u)
370
+ onConfirm: (V) => y(a)
290
371
  }, {
291
- reference: s(() => [
292
- t(c, {
293
- onClick: T(() => {
372
+ reference: n(() => [
373
+ t(i, {
374
+ onClick: ee(() => {
294
375
  }, ["stop"])
295
376
  }, {
296
- default: s(() => [
297
- t(b(ie))
377
+ default: n(() => [
378
+ t(g(he))
298
379
  ]),
299
380
  _: 1
300
381
  })
@@ -302,7 +383,7 @@ const K = (f) => (ye("data-v-b5dcb4b8"), f = f(), Ee(), f), Ie = { class: "custo
302
383
  _: 2
303
384
  }, 1032, ["onConfirm"])
304
385
  ])
305
- ], 2))), 128)) : (D(), G(d, {
386
+ ], 2))), 128)) : (f(), F(c, {
306
387
  key: 1,
307
388
  description: "暂无数据"
308
389
  }))
@@ -310,55 +391,65 @@ const K = (f) => (ye("data-v-b5dcb4b8"), f = f(), Ee(), f), Ie = { class: "custo
310
391
  _: 1
311
392
  })
312
393
  ]),
313
- a("div", We, [
314
- a("div", Ae, [
315
- Pe,
394
+ s("div", ct, [
395
+ s("div", rt, [
396
+ ut,
316
397
  t(r, {
317
- modelValue: l.funcName,
318
- "onUpdate:modelValue": e[2] || (e[2] = (u) => l.funcName = u)
398
+ modelValue: o.funcName,
399
+ "onUpdate:modelValue": e[2] || (e[2] = (a) => o.funcName = a)
319
400
  }, null, 8, ["modelValue"]),
320
- a("div", Ge, [
321
- t(g, {
401
+ s("div", dt, [
402
+ t(d, {
322
403
  type: "primary",
323
- onClick: b(p),
324
- loading: V.save
404
+ onClick: g(G),
405
+ loading: $.save
325
406
  }, {
326
- default: s(() => [
327
- S(" 保存 ")
407
+ default: n(() => [
408
+ x(" 保存 ")
328
409
  ]),
329
410
  _: 1
330
411
  }, 8, ["onClick", "loading"]),
331
- t(g, {
332
- loading: V.test,
333
- onClick: e[3] || (e[3] = (u) => H("submit"))
412
+ t(d, {
413
+ loading: $.test,
414
+ onClick: e[3] || (e[3] = (a) => ae("submit"))
334
415
  }, {
335
- default: s(() => [
336
- S(" 测试 ")
416
+ default: n(() => [
417
+ x(" 测试 ")
337
418
  ]),
338
419
  _: 1
339
420
  }, 8, ["loading"]),
340
- t(g, {
341
- icon: b(Ce),
342
- onClick: e[4] || (e[4] = (u) => H("log"))
421
+ t(d, {
422
+ icon: g(Me),
423
+ onClick: e[4] || (e[4] = (a) => ae("log"))
343
424
  }, {
344
- default: s(() => [
345
- S(" 日志明细 ")
425
+ default: n(() => [
426
+ x(" 日志明细 ")
346
427
  ]),
347
428
  _: 1
348
429
  }, 8, ["icon"]),
349
- t(g, {
430
+ t(d, {
350
431
  type: "primary",
351
- onClick: fe
432
+ icon: g(Ue),
433
+ onClick: be
352
434
  }, {
353
- default: s(() => [
354
- S(" 变量选择器 ")
435
+ default: n(() => [
436
+ x(" AI 生成 ")
437
+ ]),
438
+ _: 1
439
+ }, 8, ["icon"]),
440
+ t(d, {
441
+ type: "primary",
442
+ onClick: we
443
+ }, {
444
+ default: n(() => [
445
+ x(" 变量选择器 ")
355
446
  ]),
356
447
  _: 1
357
448
  })
358
449
  ])
359
450
  ]),
360
- Ke,
361
- t(N, {
451
+ ft,
452
+ t(D, {
362
453
  ref_key: "stMonacoEditorRef",
363
454
  ref: m,
364
455
  language: "lua",
@@ -366,14 +457,129 @@ const K = (f) => (ye("data-v-b5dcb4b8"), f = f(), Ee(), f), Ie = { class: "custo
366
457
  }, null, 512)
367
458
  ])
368
459
  ]),
369
- t(R, {
460
+ t(T, {
461
+ "modal-class": "ai-dialog",
462
+ modelValue: U.value,
463
+ "onUpdate:modelValue": e[7] || (e[7] = (a) => U.value = a),
464
+ width: "600",
465
+ "align-center": "",
466
+ "append-to-body": "",
467
+ draggable: "",
468
+ overflow: "",
469
+ modal: !1,
470
+ "modal-penetrable": !0,
471
+ "show-close": !1,
472
+ "close-on-click-modal": !1
473
+ }, {
474
+ header: n(({ titleId: a, titleClass: V }) => [
475
+ s("div", pt, [
476
+ s("div", mt, [
477
+ s("span", {
478
+ id: a,
479
+ class: W(V)
480
+ }, " AI 生成脚本 ", 10, _t)
481
+ ]),
482
+ s("div", vt, [
483
+ t(i, {
484
+ onClick: e[5] || (e[5] = (re) => U.value = !1)
485
+ }, {
486
+ default: n(() => [
487
+ t(g(le))
488
+ ]),
489
+ _: 1
490
+ })
491
+ ])
492
+ ])
493
+ ]),
494
+ footer: n(() => [
495
+ s("div", kt, [
496
+ b.factorSelectExpr ? (f(), F(d, {
497
+ key: 0,
498
+ onClick: ce,
499
+ disabled: z.value
500
+ }, {
501
+ default: n(() => [
502
+ x(" 重新生成 ")
503
+ ]),
504
+ _: 1
505
+ }, 8, ["disabled"])) : X("", !0),
506
+ b.factorSelectExpr ? (f(), F(d, {
507
+ key: 1,
508
+ type: "primary",
509
+ onClick: Se
510
+ }, {
511
+ default: n(() => [
512
+ x(" 插入到编辑器 ")
513
+ ]),
514
+ _: 1
515
+ })) : (f(), F(d, {
516
+ key: 2,
517
+ type: "primary",
518
+ loading: z.value,
519
+ onClick: ce
520
+ }, {
521
+ default: n(() => [
522
+ x(" 生成 ")
523
+ ]),
524
+ _: 1
525
+ }, 8, ["loading"]))
526
+ ])
527
+ ]),
528
+ default: n(() => [
529
+ s("div", gt, [
530
+ t(r, {
531
+ modelValue: oe.value,
532
+ "onUpdate:modelValue": e[6] || (e[6] = (a) => oe.value = a),
533
+ type: "textarea",
534
+ rows: 3,
535
+ placeholder: "用自然语言描述脚本逻辑, 例: 收盘价大于10",
536
+ disabled: z.value
537
+ }, null, 8, ["modelValue", "disabled"]),
538
+ j.value.length ? (f(), E("div", ht, [
539
+ (f(!0), E(Y, null, Z(j.value, (a) => (f(), E("div", {
540
+ key: a.name,
541
+ class: "node-item"
542
+ }, [
543
+ a.status === "success" ? (f(), F(i, {
544
+ key: 0,
545
+ class: "success"
546
+ }, {
547
+ default: n(() => [
548
+ t(g(je))
549
+ ]),
550
+ _: 1
551
+ })) : (f(), F(i, {
552
+ key: 1,
553
+ class: "is-loading executing"
554
+ }, {
555
+ default: n(() => [
556
+ t(g(Te))
557
+ ]),
558
+ _: 1
559
+ })),
560
+ s("span", null, O(a.name), 1)
561
+ ]))), 128))
562
+ ])) : X("", !0),
563
+ B.value ? (f(), E("div", yt, " ❌ " + O(B.value), 1)) : X("", !0),
564
+ b.factorSelectExpr ? (f(), E("div", xt, [
565
+ (f(!0), E(Y, null, Z(b.parsedConditions, (a, V) => (f(), E("div", {
566
+ key: V,
567
+ class: "parsed-condition"
568
+ }, O(a), 1))), 128)),
569
+ s("pre", Et, O(b.factorSelectExpr), 1)
570
+ ])) : X("", !0)
571
+ ])
572
+ ]),
573
+ _: 1
574
+ }, 8, ["modelValue"]),
575
+ t(Ne, {
370
576
  ref_key: "stVarSelectDialogRef",
371
577
  ref: k
372
578
  }, null, 512),
373
- t(Q, {
579
+ t(T, {
374
580
  "modal-class": "log-dialog",
375
- modelValue: i.value,
376
- "onUpdate:modelValue": e[7] || (e[7] = (u) => i.value = u),
581
+ modelValue: I.value,
582
+ "onUpdate:modelValue": e[10] || (e[10] = (a) => I.value = a),
377
583
  width: "830",
378
584
  "align-center": "",
379
585
  "append-to-body": "",
@@ -383,56 +589,56 @@ const K = (f) => (ye("data-v-b5dcb4b8"), f = f(), Ee(), f), Ie = { class: "custo
383
589
  "modal-penetrable": !0,
384
590
  "show-close": !1
385
591
  }, {
386
- header: s(({ titleId: u, titleClass: F }) => [
387
- a("div", He, [
388
- a("div", Je, [
389
- a("span", {
390
- id: u,
391
- class: U(F)
392
- }, " 日志明细 ", 10, Qe)
592
+ header: n(({ titleId: a, titleClass: V }) => [
593
+ s("div", Ct, [
594
+ s("div", bt, [
595
+ s("span", {
596
+ id: a,
597
+ class: W(V)
598
+ }, " 日志明细 ", 10, Vt)
393
599
  ]),
394
- a("div", Xe, [
395
- t(c, {
396
- onClick: e[5] || (e[5] = (pe) => i.value = !1)
600
+ s("div", St, [
601
+ t(i, {
602
+ onClick: e[8] || (e[8] = (re) => I.value = !1)
397
603
  }, {
398
- default: s(() => [
399
- t(b(Z))
604
+ default: n(() => [
605
+ t(g(le))
400
606
  ]),
401
607
  _: 1
402
608
  })
403
609
  ])
404
610
  ])
405
611
  ]),
406
- footer: s(() => [
407
- a("div", Ze, [
408
- t(g, {
409
- onClick: e[6] || (e[6] = (u) => i.value = !1)
612
+ footer: n(() => [
613
+ s("div", Nt, [
614
+ t(d, {
615
+ onClick: e[9] || (e[9] = (a) => I.value = !1)
410
616
  }, {
411
- default: s(() => [
412
- S(" 关闭 ")
617
+ default: n(() => [
618
+ x(" 关闭 ")
413
619
  ]),
414
620
  _: 1
415
621
  })
416
622
  ])
417
623
  ]),
418
- default: s(() => [
419
- a("div", Ye, [
624
+ default: n(() => [
625
+ s("div", wt, [
420
626
  t(_, {
421
627
  class: "code",
422
628
  height: "600px"
423
629
  }, {
424
- default: s(() => [
425
- a("pre", null, j(n.code), 1)
630
+ default: n(() => [
631
+ s("pre", null, O(u.code), 1)
426
632
  ]),
427
633
  _: 1
428
634
  }),
429
- t(me, { direction: "vertical" }),
635
+ t($e, { direction: "vertical" }),
430
636
  t(_, { height: "600px" }, {
431
- default: s(() => [
432
- a("pre", {
433
- class: U(n.result === 1 ? "success-log" : "error-log")
434
- }, j(n.result === 1 ? `✅️ 测试通过
435
- ${n.detail}` : n.detail), 3)
637
+ default: n(() => [
638
+ s("pre", {
639
+ class: W(u.result === 1 ? "success-log" : "error-log")
640
+ }, O(u.result === 1 ? `✅️ 测试通过
641
+ ${u.detail}` : u.detail), 3)
436
642
  ]),
437
643
  _: 1
438
644
  })
@@ -445,118 +651,118 @@ ${n.detail}` : n.detail), 3)
445
651
  }, 8, ["modelValue"]);
446
652
  };
447
653
  }
448
- }, tt = /* @__PURE__ */ ue(et, [["__scopeId", "data-v-b5dcb4b8"]]);
449
- const ot = { class: "custom-function" }, nt = { class: "func-option" }, lt = { class: "icons" }, st = {
654
+ }, It = /* @__PURE__ */ xe($t, [["__scopeId", "data-v-5797123f"]]);
655
+ const Dt = { class: "custom-function" }, Ft = { class: "func-option" }, Ot = { class: "icons" }, At = {
450
656
  __name: "index",
451
657
  props: {
452
658
  size: { type: String, default: "small" },
453
659
  selectWidth: { type: String, default: "200px" }
454
660
  },
455
661
  emits: ["insert", "actionState"],
456
- setup(f, { emit: W }) {
457
- const { request: O } = ne("stConfig"), C = v(null), m = W, k = v(null), h = v(""), y = v([]), E = async () => {
458
- const { body: l } = await O.post("/common/qt/querySearchFunctions");
459
- if (y.value = l ?? [], k.value === null)
460
- h.value = "";
662
+ setup(h, { emit: te }) {
663
+ const { request: J } = ve("stConfig"), w = p(null), R = te, m = p(null), k = p(""), N = p([]), M = async () => {
664
+ const { body: v } = await J.post("/common/qt/querySearchFunctions");
665
+ if (N.value = v ?? [], m.value === null)
666
+ k.value = "";
461
667
  else {
462
- const n = y.value.find(({ id: i }) => i === k.value);
463
- h.value = n ? n.funcName : "";
668
+ const o = N.value.find(({ id: u }) => u === m.value);
669
+ k.value = o ? o.funcName : "";
464
670
  }
465
- }, V = (l) => {
466
- var n;
467
- l ? k.value = (n = y.value.find((i) => i.funcName === l)) == null ? void 0 : n.id : k.value = null;
468
- }, w = () => {
469
- if (!h.value)
470
- return $.error("请先选择自定义函数后, 再执行插入");
471
- const { funcName: l, funcExpression: n } = y.value.find((i) => i.funcName === h.value);
472
- m("insert", l, n);
473
- }, x = async (l, n) => {
474
- switch (l) {
671
+ }, A = (v) => {
672
+ var o;
673
+ v ? m.value = (o = N.value.find((u) => u.funcName === v)) == null ? void 0 : o.id : m.value = null;
674
+ }, $ = () => {
675
+ if (!k.value)
676
+ return S.error("请先选择自定义函数后, 再执行插入");
677
+ const { funcName: v, funcExpression: o } = N.value.find((u) => u.funcName === k.value);
678
+ R("insert", v, o);
679
+ }, C = async (v, o) => {
680
+ switch (v) {
475
681
  case "open": {
476
- C.value.open(), m("actionState", "因子筛选", "函数管理");
682
+ w.value.open(), R("actionState", "因子筛选", "函数管理");
477
683
  break;
478
684
  }
479
685
  case "copy": {
480
- const i = {
686
+ const u = {
481
687
  id: null,
482
- funcName: `${n.funcName}-复制`,
483
- funcExpression: n.funcExpression
688
+ funcName: `${o.funcName}-复制`,
689
+ funcExpression: o.funcExpression
484
690
  };
485
- C.value.open(i);
691
+ w.value.open(u);
486
692
  break;
487
693
  }
488
694
  case "edit": {
489
- const i = {
490
- id: n.id,
491
- funcName: n.funcName,
492
- funcExpression: n.funcExpression
695
+ const u = {
696
+ id: o.id,
697
+ funcName: o.funcName,
698
+ funcExpression: o.funcExpression
493
699
  };
494
- C.value.open(i);
700
+ w.value.open(u);
495
701
  break;
496
702
  }
497
703
  case "delete": {
498
- await O.post("/common/qt/deleteSearchFunctionById", { id: n.id }), E();
704
+ await J.post("/common/qt/deleteSearchFunctionById", { id: o.id }), M();
499
705
  break;
500
706
  }
501
707
  }
502
708
  };
503
- return xe(() => {
504
- E();
505
- }), (l, n) => {
506
- const i = ce, z = oe, I = _e, A = ve, B = te;
507
- return D(), L("div", ot, [
508
- t(A, {
509
- modelValue: h.value,
510
- "onUpdate:modelValue": n[0] || (n[0] = (p) => h.value = p),
511
- size: f.size,
709
+ return Be(() => {
710
+ M();
711
+ }), (v, o) => {
712
+ const u = ye, I = _e, q = Ie, L = De, K = me;
713
+ return f(), E("div", Dt, [
714
+ t(L, {
715
+ modelValue: k.value,
716
+ "onUpdate:modelValue": o[0] || (o[0] = (y) => k.value = y),
717
+ size: h.size,
512
718
  placeholder: "自定义函数",
513
719
  "no-match-text": "无匹配选项",
514
720
  "no-data-text": "无选项数据",
515
721
  clearable: "",
516
722
  filterable: "",
517
- onChange: V,
518
- style: be({ width: f.selectWidth })
723
+ onChange: A,
724
+ style: Re({ width: h.selectWidth })
519
725
  }, {
520
- default: s(() => [
521
- (D(!0), L(le, null, se(y.value, (p) => (D(), G(I, {
522
- key: p.id,
523
- label: p.funcName,
524
- value: p.funcName,
525
- onClick: w
726
+ default: n(() => [
727
+ (f(!0), E(Y, null, Z(N.value, (y) => (f(), F(q, {
728
+ key: y.id,
729
+ label: y.funcName,
730
+ value: y.funcName,
731
+ onClick: $
526
732
  }, {
527
- default: s(() => [
528
- a("div", nt, [
529
- a("span", null, j(p.funcName), 1),
530
- a("div", lt, [
531
- t(i, {
532
- onClick: T((q) => x("copy", p), ["stop"])
733
+ default: n(() => [
734
+ s("div", Ft, [
735
+ s("span", null, O(y.funcName), 1),
736
+ s("div", Ot, [
737
+ t(u, {
738
+ onClick: ee((G) => C("copy", y), ["stop"])
533
739
  }, {
534
- default: s(() => [
535
- t(b(ae))
740
+ default: n(() => [
741
+ t(g(ge))
536
742
  ]),
537
743
  _: 2
538
744
  }, 1032, ["onClick"]),
539
- t(i, {
540
- onClick: T((q) => x("edit", p), ["stop"])
745
+ t(u, {
746
+ onClick: ee((G) => C("edit", y), ["stop"])
541
747
  }, {
542
- default: s(() => [
543
- t(b(ke))
748
+ default: n(() => [
749
+ t(g(qe))
544
750
  ]),
545
751
  _: 2
546
752
  }, 1032, ["onClick"]),
547
- t(z, {
753
+ t(I, {
548
754
  title: "确认是否删除?",
549
755
  "confirm-button-text": "确认",
550
756
  "cancel-button-text": "取消",
551
- onConfirm: (q) => x("delete", p)
757
+ onConfirm: (G) => C("delete", y)
552
758
  }, {
553
- reference: s(() => [
554
- t(i, {
555
- onClick: T(() => {
759
+ reference: n(() => [
760
+ t(u, {
761
+ onClick: ee(() => {
556
762
  }, ["stop"])
557
763
  }, {
558
- default: s(() => [
559
- t(b(ie))
764
+ default: n(() => [
765
+ t(g(he))
560
766
  ]),
561
767
  _: 1
562
768
  })
@@ -571,40 +777,40 @@ const ot = { class: "custom-function" }, nt = { class: "func-option" }, lt = { c
571
777
  ]),
572
778
  _: 1
573
779
  }, 8, ["modelValue", "size", "style"]),
574
- t(B, {
780
+ t(K, {
575
781
  type: "primary",
576
- size: f.size,
577
- onClick: w
782
+ size: h.size,
783
+ onClick: $
578
784
  }, {
579
- default: s(() => [
580
- S(" 插入 ")
785
+ default: n(() => [
786
+ x(" 插入 ")
581
787
  ]),
582
788
  _: 1
583
789
  }, 8, ["size"]),
584
- t(B, {
790
+ t(K, {
585
791
  type: "primary",
586
- size: f.size,
587
- onClick: n[1] || (n[1] = (p) => x("open"))
792
+ size: h.size,
793
+ onClick: o[1] || (o[1] = (y) => C("open"))
588
794
  }, {
589
- default: s(() => [
590
- S(" 函数管理 ")
795
+ default: n(() => [
796
+ x(" 函数管理 ")
591
797
  ]),
592
798
  _: 1
593
799
  }, 8, ["size"]),
594
- t(tt, {
800
+ t(It, {
595
801
  ref_key: "ManageDialogRef",
596
- ref: C,
597
- data: y.value,
598
- onRefreshData: E
802
+ ref: w,
803
+ data: N.value,
804
+ onRefreshData: M
599
805
  }, null, 8, ["data"])
600
806
  ]);
601
807
  };
602
808
  }
603
- }, at = /* @__PURE__ */ ue(st, [["__scopeId", "data-v-57b7ebf5"]]), Gt = {
604
- install(f) {
605
- f.component("st-customFunction", at);
809
+ }, zt = /* @__PURE__ */ xe(At, [["__scopeId", "data-v-d01721a6"]]), Co = {
810
+ install(h) {
811
+ h.component("st-customFunction", zt);
606
812
  }
607
813
  };
608
814
  export {
609
- Gt as default
815
+ Co as default
610
816
  };