st-comp 0.0.277 → 0.0.278

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 (619) hide show
  1. package/.argus/backups/.argus/20260727_072225.525_patch_klinebasic.py +339 -0
  2. package/.argus/backups/.argus/20260727_072458.864_fix_klinebasic.py +42 -0
  3. package/.argus/backups/.argus/20260727_072554.676_fix_klinebasic.py +45 -0
  4. package/.argus/backups/20260727_020847.846_package.json +48 -0
  5. package/.argus/backups/20260727_021018.627_vitest.config.ts +37 -0
  6. package/.argus/backups/20260727_021033.462_vitest.config.ts +37 -0
  7. package/.argus/backups/20260727_021041.704_vitest.config.ts +37 -0
  8. package/.argus/backups/20260727_021122.389_vitest.config.ts +36 -0
  9. package/.argus/backups/20260727_021159.250_vitest.config.ts +36 -0
  10. package/.argus/backups/20260727_065913.421_vitest.config.ts +38 -0
  11. package/.argus/backups/20260727_071318.099_vitest.config.ts +42 -0
  12. package/.argus/backups/20260728_005238.495_vitest.config.ts +53 -0
  13. package/.argus/backups/20260728_005424.767_vitest.config.ts +58 -0
  14. package/.argus/backups/20260728_005444.216_vitest.config.ts +58 -0
  15. package/.argus/backups/20260728_005613.603_vitest.config.ts +57 -0
  16. package/.argus/backups/docs/20260727_012301.521_tasks.md +22 -0
  17. package/.argus/backups/docs/20260727_013404.413_requirements.md +61 -0
  18. package/.argus/backups/docs/20260727_013916.866_tasks.md +22 -0
  19. package/.argus/backups/docs/20260727_015657.696_tasks.md +22 -0
  20. package/.argus/backups/docs/20260727_015737.998_tasks.md +22 -0
  21. package/.argus/backups/docs/20260727_021309.668_tasks.md +88 -0
  22. package/.argus/backups/docs/20260727_023430.573_tasks.md +88 -0
  23. package/.argus/backups/docs/20260727_031705.498_tasks.md +88 -0
  24. package/.argus/backups/docs/20260727_033858.862_tasks.md +88 -0
  25. package/.argus/backups/docs/20260727_033909.221_tasks.md +88 -0
  26. package/.argus/backups/docs/20260727_065645.168_tasks.md +90 -0
  27. package/.argus/backups/docs/20260728_005711.090_tasks.md +90 -0
  28. package/.argus/backups/docs/20260728_093519.026_tasks.md +96 -0
  29. package/.argus/backups/docs/20260728_093845.838_tasks.md +95 -0
  30. package/.argus/backups/docs/20260728_093956.037_tasks.md +95 -0
  31. package/.argus/backups/docs/20260728_094111.219_tasks.md +95 -0
  32. package/.argus/backups/docs/20260802_082651.083_tasks.md +95 -0
  33. package/.argus/backups/docs/20260802_082659.919_tasks.md +95 -0
  34. package/.argus/backups/docs/20260802_082817.843_test-plan.md +119 -0
  35. package/.argus/backups/docs/20260802_082825.291_test-plan.md +119 -0
  36. package/.argus/backups/tests/20260727_020937.620_smoke.spec.ts +12 -0
  37. package/.argus/backups/tests/20260727_021105.040_smoke.spec.ts +12 -0
  38. package/.argus/backups/tests/20260727_021129.257_smoke.spec.ts +12 -0
  39. package/.argus/backups/tests/components/20260727_021655.533_Pagination.spec.ts +59 -0
  40. package/.argus/backups/tests/components/20260727_021718.547_Pagination.spec.ts +59 -0
  41. package/.argus/backups/tests/components/20260727_021858.422_Table.spec.ts +71 -0
  42. package/.argus/backups/tests/components/20260727_022144.098_VirtualTable.spec.ts +90 -0
  43. package/.argus/backups/tests/components/20260727_022154.585_VirtualTable.spec.ts +88 -0
  44. package/.argus/backups/tests/components/20260727_022225.501_VirtualTable.spec.ts +89 -0
  45. package/.argus/backups/tests/components/20260727_022502.366_PasswordPrompt.spec.ts +72 -0
  46. package/.argus/backups/tests/components/20260727_022512.945_PasswordPrompt.spec.ts +72 -0
  47. package/.argus/backups/tests/components/20260727_023011.481_VarietyTextCopy.spec.ts +86 -0
  48. package/.argus/backups/tests/components/20260727_023108.189_VarietyTextCopy.spec.ts +89 -0
  49. package/.argus/backups/tests/components/20260727_024356.151_ConfigProvider.spec.ts +101 -0
  50. package/.argus/backups/tests/components/20260727_024430.348_ConfigProvider.spec.ts +100 -0
  51. package/.argus/backups/tests/components/20260727_024635.923_User.spec.ts +82 -0
  52. package/.argus/backups/tests/components/20260727_024836.707_VarSelectDialog.spec.ts +131 -0
  53. package/.argus/backups/tests/components/20260727_024852.191_VarSelectDialog.spec.ts +111 -0
  54. package/.argus/backups/tests/components/20260727_024858.884_VarSelectDialog.spec.ts +130 -0
  55. package/.argus/backups/tests/components/20260727_024905.552_VarSelectDialog.spec.ts +130 -0
  56. package/.argus/backups/tests/components/20260727_024935.877_VarSelectDialog.spec.ts +130 -0
  57. package/.argus/backups/tests/components/20260727_025017.207_VarSelectDialog.spec.ts +131 -0
  58. package/.argus/backups/tests/components/20260727_025222.178_CustomFunction.spec.ts +107 -0
  59. package/.argus/backups/tests/components/20260727_025533.944_VarietySearch.spec.ts +238 -0
  60. package/.argus/backups/tests/components/20260727_025738.354_VarietySearch.spec.ts +233 -0
  61. package/.argus/backups/tests/components/20260727_025853.506_VarietySearch.spec.ts +242 -0
  62. package/.argus/backups/tests/components/20260727_030036.628_VarietySearch.spec.ts +242 -0
  63. package/.argus/backups/tests/components/20260727_030236.640_VarietySearch.spec.ts +244 -0
  64. package/.argus/backups/tests/components/20260727_030355.487_VarietySearch.spec.ts +253 -0
  65. package/.argus/backups/tests/components/20260727_031231.694_VarietySearch.spec.ts +258 -0
  66. package/.argus/backups/tests/components/20260727_031334.734_VarietySearch.spec.ts +260 -0
  67. package/.argus/backups/tests/components/20260727_031351.660_VarietySearch.spec.ts +259 -0
  68. package/.argus/backups/tests/components/20260727_031410.450_VarietySearch.spec.ts +260 -0
  69. package/.argus/backups/tests/components/20260727_031425.598_VarietySearch.spec.ts +259 -0
  70. package/.argus/backups/tests/components/20260727_031456.187_VarietySearch.spec.ts +258 -0
  71. package/.argus/backups/tests/components/20260727_031508.243_VarietySearch.spec.ts +257 -0
  72. package/.argus/backups/tests/components/20260727_035911.421_FactorWarning.spec.ts +45 -0
  73. package/.argus/backups/tests/components/20260727_040217.402_FactorWarning.spec.ts +44 -0
  74. package/.argus/backups/tests/components/20260727_040313.577_FactorWarning.spec.ts +115 -0
  75. package/.argus/backups/tests/components/20260727_040443.842_FactorWarning.spec.ts +116 -0
  76. package/.argus/backups/tests/components/20260727_040543.676_FactorWarning.spec.ts +119 -0
  77. package/.argus/backups/tests/components/20260727_040552.567_FactorWarning.spec.ts +120 -0
  78. package/.argus/backups/tests/components/20260727_040615.706_FactorWarning.spec.ts +122 -0
  79. package/.argus/backups/tests/components/20260727_040626.121_FactorWarning.spec.ts +123 -0
  80. package/.argus/backups/tests/components/20260727_040717.265_MonacoEditor.spec.ts +83 -0
  81. package/.argus/backups/tests/components/20260727_040828.121_MonacoEditor.spec.ts +76 -0
  82. package/.argus/backups/tests/components/20260727_040904.972_MonacoEditor.spec.ts +78 -0
  83. package/.argus/backups/tests/components/20260727_041018.032_MonacoEditor.spec.ts +81 -0
  84. package/.argus/backups/tests/components/20260727_041314.621_VarietyAiHelper.spec.ts +163 -0
  85. package/.argus/backups/tests/components/20260727_041325.276_VarietyAiHelper.spec.ts +163 -0
  86. package/.argus/backups/tests/components/20260727_041334.762_VarietyAiHelper.spec.ts +165 -0
  87. package/.argus/backups/tests/components/20260727_041343.202_VarietyAiHelper.spec.ts +166 -0
  88. package/.argus/backups/tests/components/20260727_044733.056_KlineBasic.spec.ts +143 -0
  89. package/.argus/backups/tests/components/20260727_045002.981_KlineBasic.spec.ts +143 -0
  90. package/.argus/backups/tests/components/20260727_045140.574_KlineBasic.spec.ts +144 -0
  91. package/.argus/backups/tests/components/20260727_045425.611_KlineBasic.spec.ts +145 -0
  92. package/.argus/backups/tests/components/20260727_045715.412_Kline.spec.ts +113 -0
  93. package/.argus/backups/tests/components/20260727_045724.184_Kline.spec.ts +125 -0
  94. package/.argus/backups/tests/components/20260727_045825.069_Kline.spec.ts +126 -0
  95. package/.argus/backups/tests/components/20260727_045834.378_Kline.spec.ts +136 -0
  96. package/.argus/backups/tests/components/20260727_045841.348_Kline.spec.ts +137 -0
  97. package/.argus/backups/tests/components/20260727_045940.821_Kline.spec.ts +136 -0
  98. package/.argus/backups/tests/components/20260727_045949.967_Kline.spec.ts +137 -0
  99. package/.argus/backups/tests/components/20260727_050143.995_Kline.spec.ts +138 -0
  100. package/.argus/backups/tests/components/20260727_050209.308_Kline.spec.ts +142 -0
  101. package/.argus/backups/tests/components/20260727_050232.575_Kline.spec.ts +145 -0
  102. package/.argus/backups/tests/components/20260727_050520.150_Kline.spec.ts +149 -0
  103. package/.argus/backups/tests/components/20260727_050528.961_Kline.spec.ts +144 -0
  104. package/.argus/backups/tests/components/20260727_050539.132_Kline.spec.ts +140 -0
  105. package/.argus/backups/tests/components/20260727_050600.606_Kline.spec.ts +141 -0
  106. package/.argus/backups/tests/components/20260727_051012.712_Kline.spec.ts +145 -0
  107. package/.argus/backups/tests/components/20260727_051030.112_Kline.spec.ts +140 -0
  108. package/.argus/backups/tests/components/20260727_051039.759_Kline.spec.ts +140 -0
  109. package/.argus/backups/tests/components/20260727_064959.298_KlineNew.spec.ts +265 -0
  110. package/.argus/backups/tests/components/20260727_065038.479_KlineNew.spec.ts +278 -0
  111. package/.argus/backups/tests/components/20260727_065213.245_KlinePlus.spec.ts +151 -0
  112. package/.argus/backups/tests/components/20260727_065245.945_KlinePlus.spec.ts +151 -0
  113. package/.argus/backups/tests/components/20260727_070847.720_MonacoEditor.spec.ts +105 -0
  114. package/.argus/backups/tests/components/20260727_070916.945_MonacoEditor.spec.ts +473 -0
  115. package/.argus/backups/tests/components/20260727_070928.260_MonacoEditor.spec.ts +516 -0
  116. package/.argus/backups/tests/components/20260727_071228.326_MonacoEditor.spec.ts +517 -0
  117. package/.argus/backups/tests/components/20260727_071243.734_MonacoEditor.spec.ts +521 -0
  118. package/.argus/backups/tests/components/20260727_071305.582_MonacoEditor.spec.ts +521 -0
  119. package/.argus/backups/tests/components/20260727_071350.809_MonacoEditor.spec.ts +525 -0
  120. package/.argus/backups/tests/components/20260727_071407.272_MonacoEditor.spec.ts +525 -0
  121. package/.argus/backups/tests/components/20260727_071425.763_MonacoEditor.spec.ts +525 -0
  122. package/.argus/backups/tests/components/20260727_071444.203_MonacoEditor.spec.ts +525 -0
  123. package/.argus/backups/tests/components/20260727_071813.277_Kline2.spec.ts +269 -0
  124. package/.argus/backups/tests/components/20260727_071825.633_Kline2.spec.ts +275 -0
  125. package/.argus/backups/tests/components/20260727_071836.063_Kline2.spec.ts +275 -0
  126. package/.argus/backups/tests/components/20260727_071926.767_Kline2.spec.ts +275 -0
  127. package/.argus/backups/tests/components/20260727_072027.172_Kline2.spec.ts +285 -0
  128. package/.argus/backups/tests/components/20260727_123101.129_Kline2.spec.ts +292 -0
  129. package/.argus/backups/tests/components/20260727_135819.231_Kline2.spec.ts +293 -0
  130. package/.argus/backups/tests/components/20260727_135858.777_Kline2.spec.ts +304 -0
  131. package/.argus/backups/tests/components/20260727_141205.699_KlineBasic.spec.ts +429 -0
  132. package/.argus/backups/tests/components/20260727_141254.206_Kline2.spec.ts +304 -0
  133. package/.argus/backups/tests/components/20260727_141349.322_KlineBasic.spec.ts +437 -0
  134. package/.argus/backups/tests/components/20260727_141447.163_KlineBasic.spec.ts +439 -0
  135. package/.argus/backups/tests/components/20260727_141505.454_KlineBasic.spec.ts +427 -0
  136. package/.argus/backups/tests/components/20260728_010148.792_User.spec.ts +126 -0
  137. package/.argus/backups/tests/components/20260728_010436.092_TreeMap.spec.ts +100 -0
  138. package/.argus/backups/tests/components/20260728_010546.696_CustomFunction.spec.ts +185 -0
  139. package/.argus/backups/tests/components/20260728_010606.217_CustomFunction.spec.ts +185 -0
  140. package/.argus/backups/tests/components/20260728_010739.144_FactorWarning.spec.ts +285 -0
  141. package/.argus/backups/tests/components/20260728_050815.875_VirtualTable.spec.ts +234 -0
  142. package/.argus/backups/tests/components/20260728_092436.589_KlinePlus.spec.ts +151 -0
  143. package/.argus/backups/tests/components/20260728_092516.096_KlinePlus.spec.ts +273 -0
  144. package/.argus/backups/tests/components/20260728_092531.745_KlinePlus.spec.ts +274 -0
  145. package/.argus/backups/tests/components/20260728_092545.921_KlinePlus.spec.ts +275 -0
  146. package/.argus/backups/tests/components/20260728_092605.498_KlinePlus.spec.ts +276 -0
  147. package/.argus/backups/tests/components/20260728_092659.872_KlinePlus.spec.ts +277 -0
  148. package/.argus/backups/tests/components/20260728_092713.040_KlinePlus.spec.ts +278 -0
  149. package/.argus/backups/tests/components/20260728_092726.343_KlinePlus.spec.ts +279 -0
  150. package/.argus/backups/tests/components/20260728_092750.935_KlinePlus.spec.ts +281 -0
  151. package/.argus/backups/tests/components/20260728_092800.572_KlinePlus.spec.ts +283 -0
  152. package/.argus/backups/tests/components/20260728_092837.797_KlinePlus.spec.ts +284 -0
  153. package/.argus/backups/tests/mocks/20260727_023418.231_st-func.mock.ts +29 -0
  154. package/.argus/backups/tests/mocks/20260727_024337.409_st-func.mock.ts +37 -0
  155. package/.argus/backups/tests/mocks/20260727_024344.807_st-func.mock.ts +40 -0
  156. package/.argus/backups/tests/mocks/20260727_041047.900_monaco.mock.ts +27 -0
  157. package/.argus/backups/tests/mocks/20260727_041129.076_monaco.mock.ts +31 -0
  158. package/.argus/backups/tests/mocks/20260727_044924.603_st-func.mock.ts +44 -0
  159. package/.argus/backups/tests/mocks/20260727_045612.059_echarts.kline.mock.ts +33 -0
  160. package/.argus/backups/tests/mocks/20260727_050955.894_echarts.kline.mock.ts +35 -0
  161. package/.argus/backups/tests/mocks/20260727_065402.557_st-func.mock.ts +52 -0
  162. package/.argus/backups/tests/mocks/20260727_065525.410_st-func.mock.ts +52 -0
  163. package/.argus/backups/tests/mocks/20260727_140844.233_echarts.kline.mock.ts +40 -0
  164. package/.argus/backups/tests/mocks/20260727_140913.119_echarts.kline.mock.ts +42 -0
  165. package/.argus/backups/tests/mocks/20260727_140921.846_echarts.kline.mock.ts +42 -0
  166. package/.argus/backups/tests/mocks/20260727_140939.427_echarts.kline.mock.ts +41 -0
  167. package/.argus/bgtasks.json +229 -0
  168. package/.argus/coldstore/013c3c794e7b7c29.jsonl +2 -0
  169. package/.argus/coldstore/0e331b8a3b0d8880.jsonl +16 -0
  170. package/.argus/coldstore/5d9a9409cc3f63f2.jsonl +7 -0
  171. package/.argus/coldstore/5f928dc976ac6d8a.jsonl +1 -0
  172. package/.argus/coldstore/60094b3c17412a84.jsonl +3 -0
  173. package/.argus/coldstore/76b2ec805ca5837c.jsonl +1 -0
  174. package/.argus/coldstore/859e7008fa48fc1b.jsonl +1 -0
  175. package/.argus/coldstore/85f91d3daeab41ca.jsonl +1595 -0
  176. package/.argus/coldstore/9278244bf4eaf9c6.jsonl +2 -0
  177. package/.argus/coldstore/9bb5e3ec04a11742.jsonl +1 -0
  178. package/.argus/coldstore/9c00baba2fa5f259.jsonl +3 -0
  179. package/.argus/coldstore/b72af6a1286c4ff8.jsonl +3 -0
  180. package/.argus/coldstore/cf0c7a7843dd408d.jsonl +1 -0
  181. package/.argus/coldstore/d1638960d5dc3db4.jsonl +4 -0
  182. package/.argus/coldstore/e6432235b17215cb.jsonl +6 -0
  183. package/.argus/coldstore/fae1501de047b46f.jsonl +1 -0
  184. package/.argus/compress_context/20260727T013726.528Z_classifier_9c00baba2fa5f259.txt +16 -0
  185. package/.argus/compress_context/20260727T020603.082Z_classifier_85f91d3daeab41ca.txt +2339 -0
  186. package/.argus/compress_context/20260727T023245.640Z_classifier_fae1501de047b46f.txt +16 -0
  187. package/.argus/compress_context/20260727T030908.737Z_classifier_e6432235b17215cb.txt +16 -0
  188. package/.argus/compress_context/20260727T032428.553Z_classifier_cf0c7a7843dd408d.txt +16 -0
  189. package/.argus/compress_context/20260727T032636.912Z_classifier_85f91d3daeab41ca.txt +7419 -0
  190. package/.argus/compress_context/20260727T041443.286Z_classifier_5d9a9409cc3f63f2.txt +16 -0
  191. package/.argus/compress_context/20260727T050601.474Z_classifier_60094b3c17412a84.txt +16 -0
  192. package/.argus/compress_context/20260727T052133.391Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
  193. package/.argus/compress_context/20260727T052212.178Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
  194. package/.argus/compress_context/20260727T052324.111Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
  195. package/.argus/compress_context/20260727T054653.767Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
  196. package/.argus/compress_context/20260727T071236.629Z_classifier_85f91d3daeab41ca.txt +16527 -0
  197. package/.argus/compress_context/20260727T072148.598Z_classifier_0e331b8a3b0d8880.txt +16 -0
  198. package/.argus/compress_context/20260727T073105.913Z_classifier_76b2ec805ca5837c.txt +16 -0
  199. package/.argus/compress_context/20260727T073345.593Z_classifier_d1638960d5dc3db4.txt +16 -0
  200. package/.argus/compress_context/20260727T092505.960Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
  201. package/.argus/compress_context/20260727T113928.931Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
  202. package/.argus/compress_context/20260727T123224.070Z_classifier_85f91d3daeab41ca.txt +10993 -0
  203. package/.argus/compress_context/20260727T141545.843Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
  204. package/.argus/compress_context/20260728T010629.442Z_classifier_85f91d3daeab41ca.txt +24561 -0
  205. package/.argus/compress_context/20260728T010950.439Z_classifier_9278244bf4eaf9c6.txt +16 -0
  206. package/.argus/compress_context/20260728T011152.613Z_classifier_013c3c794e7b7c29.txt +16 -0
  207. package/.argus/compress_context/20260728T085939.340Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
  208. package/.argus/compress_context/20260728T091110.581Z_classifier_b72af6a1286c4ff8.txt +16 -0
  209. package/.argus/compress_context/20260728T091324.113Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
  210. package/.argus/compress_context/20260728T093934.076Z_classifier_85f91d3daeab41ca.txt +26262 -0
  211. package/.argus/compress_context/20260729T011307.637Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
  212. package/.argus/compress_context/20260802T081344.640Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
  213. package/.argus/compress_context/20260802T082844.660Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
  214. package/.argus/compress_context/20260802T083022.436Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
  215. package/.argus/compress_context/20260802T083336.095Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
  216. package/.argus/compress_context/20260903T053304.203Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
  217. package/.argus/compress_context/20260903T053851.653Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
  218. package/.argus/compress_context/20260903T054344.177Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
  219. package/.argus/compress_context/20260903T060025.617Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
  220. package/.argus/compress_context/20260903T060858.200Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
  221. package/.argus/config.toml +15 -0
  222. package/.argus/memory/.INDEX.md.lock +0 -0
  223. package/.argus/memory/INDEX.md +166 -0
  224. package/.argus/memory/dev_build_commands_build_targets_lib_vs_demo.md +14 -0
  225. package/.argus/memory/dev_build_commands_st_comp_build_scripts.md +13 -0
  226. package/.argus/memory/dev_coding_conventions_component_test_setupstate_override_pattern.md +14 -0
  227. package/.argus/memory/dev_coding_conventions_customfunction_ai_query_no_prefix.md +14 -0
  228. package/.argus/memory/dev_coding_conventions_fix_tests_not_packages_source.md +14 -0
  229. package/.argus/memory/dev_coding_conventions_git_workflow_branch_nds.md +14 -0
  230. package/.argus/memory/dev_coding_conventions_managedialog_ai_dialog_test_pattern.md +8 -0
  231. package/.argus/memory/dev_coding_conventions_no_packages_source_changes.md +14 -0
  232. package/.argus/memory/dev_coding_conventions_st_comp_component_spec_conventions.md +13 -0
  233. package/.argus/memory/dev_coding_conventions_st_comp_component_test_mocking_pattern.md +14 -0
  234. package/.argus/memory/dev_coding_conventions_st_comp_coverage_scope_rules.md +14 -0
  235. package/.argus/memory/dev_coding_conventions_st_comp_exposed_methods_via_wrapper_vm.md +13 -0
  236. package/.argus/memory/dev_coding_conventions_st_comp_full_import_only.md +13 -0
  237. package/.argus/memory/dev_coding_conventions_st_comp_klinebasic_error_rethrow.md +13 -0
  238. package/.argus/memory/dev_coding_conventions_st_comp_monaco_mock_extend.md +13 -0
  239. package/.argus/memory/dev_coding_conventions_st_comp_no_modify_packages_constraint.md +14 -0
  240. package/.argus/memory/dev_coding_conventions_st_comp_no_packages_changes.md +14 -0
  241. package/.argus/memory/dev_coding_conventions_st_comp_no_packages_code_changes.md +14 -0
  242. package/.argus/memory/dev_coding_conventions_st_comp_no_packages_modification.md +14 -0
  243. package/.argus/memory/dev_coding_conventions_st_comp_no_packages_source_changes.md +14 -0
  244. package/.argus/memory/dev_coding_conventions_st_comp_packages_read_only_for_test_work.md +13 -0
  245. package/.argus/memory/dev_coding_conventions_st_comp_packages_readonly_when_testing.md +13 -0
  246. package/.argus/memory/dev_coding_conventions_st_comp_seven_phase_workflow.md +13 -0
  247. package/.argus/memory/dev_coding_conventions_st_comp_spec_mock_patterns.md +13 -0
  248. package/.argus/memory/dev_coding_conventions_st_comp_spec_mount_pattern.md +13 -0
  249. package/.argus/memory/dev_coding_conventions_st_comp_test_component_patterns.md +13 -0
  250. package/.argus/memory/dev_coding_conventions_st_comp_test_constraint_no_packages_changes.md +14 -0
  251. package/.argus/memory/dev_coding_conventions_st_comp_test_conventions.md +13 -0
  252. package/.argus/memory/dev_coding_conventions_st_comp_test_mock_conventions.md +13 -0
  253. package/.argus/memory/dev_coding_conventions_st_comp_test_phase_constraints.md +14 -0
  254. package/.argus/memory/dev_coding_conventions_st_comp_test_work_no_packages_changes.md +14 -0
  255. package/.argus/memory/dev_coding_conventions_st_comp_testing_exposed_methods.md +13 -0
  256. package/.argus/memory/dev_coding_conventions_st_comp_tests_must_not_touch_packages.md +14 -0
  257. package/.argus/memory/dev_coding_conventions_st_comp_varietysearch_setupstate.md +13 -0
  258. package/.argus/memory/dev_coding_conventions_st_comp_vi_mock_pattern.md +13 -0
  259. package/.argus/memory/dev_coding_conventions_st_comp_vitest_cache_handlers_false.md +14 -0
  260. package/.argus/memory/dev_coding_conventions_stcomp_props_emits_conventions.md +13 -0
  261. package/.argus/memory/dev_coding_conventions_stconfig_request_injection.md +14 -0
  262. package/.argus/memory/dev_coding_conventions_test_isolation_and_coverage_thresholds.md +14 -0
  263. package/.argus/memory/dev_coding_conventions_test_mock_strategy_layers.md +14 -0
  264. package/.argus/memory/dev_deps_project_ui_deps_echarts_monaco.md +14 -0
  265. package/.argus/memory/dev_deps_st_comp_tech_stack.md +13 -0
  266. package/.argus/memory/dev_deps_st_comp_test_stack.md +13 -0
  267. package/.argus/memory/dev_deps_st_comp_test_stack_versions.md +13 -0
  268. package/.argus/memory/dev_deps_stcomp_heavy_deps_per_component.md +13 -0
  269. package/.argus/memory/dev_deps_variety_ai_helper_api.md +14 -0
  270. package/.argus/memory/dev_deps_variety_ai_helper_endpoint.md +14 -0
  271. package/.argus/memory/dev_deps_vitest_034_coverage_threshold_format.md +14 -0
  272. package/.argus/memory/dev_key_modules_ai_helper_streaming_api.md +14 -0
  273. package/.argus/memory/dev_key_modules_ai_tools_sse_client.md +14 -0
  274. package/.argus/memory/dev_key_modules_custom_function_api_endpoints.md +14 -0
  275. package/.argus/memory/dev_key_modules_custom_function_manage_dialog.md +14 -0
  276. package/.argus/memory/dev_key_modules_custom_function_panel_structure.md +14 -0
  277. package/.argus/memory/dev_key_modules_customfunction_manage_dialog.md +14 -0
  278. package/.argus/memory/dev_key_modules_kline_echarts_mock_requirements.md +14 -0
  279. package/.argus/memory/dev_key_modules_shared_editor_varselect_components.md +14 -0
  280. package/.argus/memory/dev_key_modules_st_comp_extractvariables_syntax.md +13 -0
  281. package/.argus/memory/dev_key_modules_st_comp_kline_component_family.md +13 -0
  282. package/.argus/memory/dev_key_modules_st_comp_kline_components_test_mocks.md +14 -0
  283. package/.argus/memory/dev_key_modules_st_comp_l2_kline_components.md +14 -0
  284. package/.argus/memory/dev_key_modules_st_comp_packages_components.md +13 -0
  285. package/.argus/memory/dev_key_modules_st_comp_test_mocks_behavior.md +13 -0
  286. package/.argus/memory/dev_key_modules_st_comp_vite_plugins.md +13 -0
  287. package/.argus/memory/dev_key_modules_st_func_mock_helper.md +14 -0
  288. package/.argus/memory/dev_key_modules_stcomp_http_via_stfunc_no_axios.md +13 -0
  289. package/.argus/memory/dev_key_modules_stcomp_stconfig_provide_inject_contract.md +13 -0
  290. package/.argus/memory/dev_key_modules_test_shared_helpers.md +14 -0
  291. package/.argus/memory/dev_key_modules_vitest_vue_cachehandlers_false.md +14 -0
  292. package/.argus/memory/dev_known_issues_klinebasic_unhandled_rejection_noise.md +14 -0
  293. package/.argus/memory/dev_known_issues_low_func_coverage_components.md +14 -0
  294. package/.argus/memory/dev_known_issues_low_function_coverage_components.md +14 -0
  295. package/.argus/memory/dev_known_issues_missing_component_tests_backlog.md +14 -0
  296. package/.argus/memory/dev_known_issues_monaco_editor_baseline_test_failures.md +14 -0
  297. package/.argus/memory/dev_known_issues_pending_component_test_coverage.md +14 -0
  298. package/.argus/memory/dev_known_issues_st_comp_baseline_failing_specs.md +14 -0
  299. package/.argus/memory/dev_known_issues_st_comp_build_gaps.md +13 -0
  300. package/.argus/memory/dev_known_issues_st_comp_contextmenu_attachto_breaks.md +13 -0
  301. package/.argus/memory/dev_known_issues_st_comp_deferred_tests_factorwarning_monacoeditor_varietyaihelper.md +14 -0
  302. package/.argus/memory/dev_known_issues_st_comp_definemodel_setupstate_test_pitfall.md +13 -0
  303. package/.argus/memory/dev_known_issues_st_comp_elmessage_auto_import_tests.md +13 -0
  304. package/.argus/memory/dev_known_issues_st_comp_elmessage_missing_in_tests.md +13 -0
  305. package/.argus/memory/dev_known_issues_st_comp_eltable_render_timing.md +13 -0
  306. package/.argus/memory/dev_known_issues_st_comp_hardcoded_server_password.md +13 -0
  307. package/.argus/memory/dev_known_issues_st_comp_jsdom_resizeobserver_stub.md +13 -0
  308. package/.argus/memory/dev_known_issues_st_comp_klinebasic_resize_coverage_gap.md +13 -0
  309. package/.argus/memory/dev_known_issues_st_comp_klinebasic_unhandled_rejection_noise.md +13 -0
  310. package/.argus/memory/dev_known_issues_st_comp_known_gaps.md +13 -0
  311. package/.argus/memory/dev_known_issues_st_comp_preexisting_spec_failures.md +13 -0
  312. package/.argus/memory/dev_known_issues_st_comp_stfunc_mock_stmath_incomplete.md +13 -0
  313. package/.argus/memory/dev_known_issues_st_comp_test_elmessage_autoimport.md +13 -0
  314. package/.argus/memory/dev_known_issues_st_comp_test_env_pitfalls.md +13 -0
  315. package/.argus/memory/dev_known_issues_st_comp_test_teleport_cleanup.md +13 -0
  316. package/.argus/memory/dev_known_issues_st_comp_varietytextcopy_global_elmessage.md +13 -0
  317. package/.argus/memory/dev_known_issues_st_comp_vitest_cache_handlers_false.md +13 -0
  318. package/.argus/memory/dev_known_issues_st_comp_vitest_cachehandlers_coverage.md +13 -0
  319. package/.argus/memory/dev_known_issues_st_func_mock_addresizelistener_return_shape.md +14 -0
  320. package/.argus/memory/dev_known_issues_stcomp_klineconfig_defineemits_string_bug.md +13 -0
  321. package/.argus/memory/dev_known_issues_t1_uncovered_test_gaps.md +14 -0
  322. package/.argus/memory/dev_known_issues_vitest_034_windows_import_meta_url.md +14 -0
  323. package/.argus/memory/dev_known_issues_vitest_baseline_failing_specs.md +14 -0
  324. package/.argus/memory/dev_known_issues_vitest_vue_plugin_cache_handlers_false.md +14 -0
  325. package/.argus/memory/dev_project_layout_custom_function_manage_dialog.md +14 -0
  326. package/.argus/memory/dev_project_layout_docs_phase_artifacts.md +14 -0
  327. package/.argus/memory/dev_project_layout_docs_tasks_md_planning_file.md +14 -0
  328. package/.argus/memory/dev_project_layout_frontend_component_test_scope.md +14 -0
  329. package/.argus/memory/dev_project_layout_local_only_dirs_not_committed.md +14 -0
  330. package/.argus/memory/dev_project_layout_nds_local_tool_dirs_untracked.md +14 -0
  331. package/.argus/memory/dev_project_layout_packages_component_layout.md +14 -0
  332. package/.argus/memory/dev_project_layout_packages_dir_always_empty.md +14 -0
  333. package/.argus/memory/dev_project_layout_phased_workflow_docs.md +14 -0
  334. package/.argus/memory/dev_project_layout_st_comp_docs_phase_workflow.md +14 -0
  335. package/.argus/memory/dev_project_layout_st_comp_docs_task_tracking.md +14 -0
  336. package/.argus/memory/dev_project_layout_st_comp_layout_and_aliases.md +13 -0
  337. package/.argus/memory/dev_project_layout_st_comp_layout_and_docs_plan.md +14 -0
  338. package/.argus/memory/dev_project_layout_st_comp_layout_and_stack.md +13 -0
  339. package/.argus/memory/dev_project_layout_st_comp_layout_and_task_tracking.md +14 -0
  340. package/.argus/memory/dev_project_layout_st_comp_project_layout.md +13 -0
  341. package/.argus/memory/dev_project_layout_st_comp_project_overview.md +14 -0
  342. package/.argus/memory/dev_project_layout_st_comp_project_root_and_purpose.md +14 -0
  343. package/.argus/memory/dev_project_layout_st_comp_repo_layout.md +13 -0
  344. package/.argus/memory/dev_project_layout_st_comp_test_layout.md +13 -0
  345. package/.argus/memory/dev_project_layout_st_comp_test_layout_and_aliases.md +13 -0
  346. package/.argus/memory/dev_project_layout_st_comp_top_level_layout.md +13 -0
  347. package/.argus/memory/dev_project_layout_stcomp_packages_layout.md +13 -0
  348. package/.argus/memory/dev_project_layout_test_release_plugin_sftp_config.md +14 -0
  349. package/.argus/memory/dev_project_layout_tests_dir_and_vitest_config.md +14 -0
  350. package/.argus/memory/dev_test_commands_component_test_baseline_and_layout.md +14 -0
  351. package/.argus/memory/dev_test_commands_coverage_gate_80_baseline_exclusions.md +14 -0
  352. package/.argus/memory/dev_test_commands_coverage_thresholds.md +14 -0
  353. package/.argus/memory/dev_test_commands_coverage_thresholds_enforced.md +14 -0
  354. package/.argus/memory/dev_test_commands_func_coverage_threshold_80.md +14 -0
  355. package/.argus/memory/dev_test_commands_st_comp_component_test_command.md +14 -0
  356. package/.argus/memory/dev_test_commands_st_comp_coverage_commands.md +14 -0
  357. package/.argus/memory/dev_test_commands_st_comp_coverage_scope_and_threshold.md +13 -0
  358. package/.argus/memory/dev_test_commands_st_comp_coverage_thresholds.md +14 -0
  359. package/.argus/memory/dev_test_commands_st_comp_run_component_tests.md +14 -0
  360. package/.argus/memory/dev_test_commands_st_comp_vitest_commands.md +13 -0
  361. package/.argus/memory/dev_test_commands_st_comp_vitest_component_suite.md +14 -0
  362. package/.argus/memory/dev_test_commands_st_comp_vitest_component_tests.md +14 -0
  363. package/.argus/memory/dev_test_commands_st_comp_vitest_components.md +14 -0
  364. package/.argus/memory/dev_test_commands_st_comp_vitest_coverage_config.md +14 -0
  365. package/.argus/memory/dev_test_commands_st_comp_vitest_coverage_thresholds.md +14 -0
  366. package/.argus/memory/dev_test_commands_st_comp_vitest_must_use_local_bin.md +13 -0
  367. package/.argus/memory/dev_test_commands_st_comp_vitest_run.md +13 -0
  368. package/.argus/memory/dev_test_commands_st_comp_vitest_run_and_coverage.md +14 -0
  369. package/.argus/memory/dev_test_commands_st_comp_vitest_run_command.md +13 -0
  370. package/.argus/memory/dev_test_commands_st_comp_vitest_run_commands.md +13 -0
  371. package/.argus/memory/dev_test_commands_st_comp_vitest_run_coverage.md +14 -0
  372. package/.argus/memory/dev_test_commands_st_comp_vitest_run_spec.md +13 -0
  373. package/.argus/memory/dev_test_commands_test_stack_vitest_vue.md +14 -0
  374. package/.argus/memory/dev_test_commands_test_suite_baseline.md +14 -0
  375. package/.argus/memory/dev_test_commands_vitest_cache_handlers_disabled_for_coverage.md +14 -0
  376. package/.argus/memory/dev_test_commands_vitest_component_test_plan_tiers.md +14 -0
  377. package/.argus/memory/dev_test_commands_vitest_component_testing_setup.md +14 -0
  378. package/.argus/memory/dev_test_commands_vitest_run_and_coverage.md +14 -0
  379. package/.argus/memory/dev_test_commands_vitest_test_infra_setup.md +14 -0
  380. package/.argus/memory/ops_credentials_locations_sftp_cred_testrelese_ts.md +14 -0
  381. package/.argus/memory/ops_credentials_locations_st_comp_test_server_root_password_hardcoded.md +13 -0
  382. package/.argus/memory/ops_deploy_workflow_build_outputs_lib_vs_demo.md +14 -0
  383. package/.argus/memory/ops_deploy_workflow_sftp_deploy_via_vite_plugin.md +14 -0
  384. package/.argus/memory/ops_deploy_workflow_st_comp_test_deploy_via_testrelese_plugin.md +13 -0
  385. package/.argus/memory/ops_servers_test_server_192_168_12_49.md +14 -0
  386. package/.argus/scheduled_tasks.json +467 -0
  387. package/.cliworks/.cliworks/input_history.jsonl +44 -0
  388. package/.cliworks/chat/acp/39525acf-0832-40e4-90e5-f058f1bccb8d/2026-07-27.json +17623 -0
  389. package/.cliworks/chat/acp/39525acf-0832-40e4-90e5-f058f1bccb8d/2026-07-28.json +6349 -0
  390. package/.cliworks/chat/acp/39525acf-0832-40e4-90e5-f058f1bccb8d/2026-07-29.json +33 -0
  391. package/.cliworks/chat/acp/39525acf-0832-40e4-90e5-f058f1bccb8d/2026-08-02.json +1174 -0
  392. package/.cliworks/chat/acp/39525acf-0832-40e4-90e5-f058f1bccb8d/2026-09-03.json +2354 -0
  393. package/.cliworks/hooks/on_create.md +6 -0
  394. package/.cliworks/hooks/on_open.md +11 -0
  395. package/.cliworks/project.json +5 -0
  396. package/coverage/ChartLayout/index.html +116 -0
  397. package/coverage/ChartLayout/index.vue.html +274 -0
  398. package/coverage/ConfigProvider/index.html +116 -0
  399. package/coverage/ConfigProvider/index.vue.html +283 -0
  400. package/coverage/Contextmenu/index.html +116 -0
  401. package/coverage/Contextmenu/index.vue.html +487 -0
  402. package/coverage/CustomFunction/index.html +116 -0
  403. package/coverage/CustomFunction/index.vue.html +685 -0
  404. package/coverage/FactorWarning/index.html +116 -0
  405. package/coverage/FactorWarning/index.vue.html +2347 -0
  406. package/coverage/HeatMap/index.html +116 -0
  407. package/coverage/HeatMap/index.vue.html +508 -0
  408. package/coverage/Kline/index.html +116 -0
  409. package/coverage/Kline/index.vue.html +2758 -0
  410. package/coverage/KlineBasic/index.html +116 -0
  411. package/coverage/KlineBasic/index.vue.html +2602 -0
  412. package/coverage/KlineConfig/index.html +116 -0
  413. package/coverage/KlineConfig/index.vue.html +1153 -0
  414. package/coverage/KlinePlus/index.html +116 -0
  415. package/coverage/KlinePlus/index.vue.html +3286 -0
  416. package/coverage/LinearLegend/index.html +116 -0
  417. package/coverage/LinearLegend/index.vue.html +418 -0
  418. package/coverage/Map/index.html +116 -0
  419. package/coverage/Map/index.vue.html +526 -0
  420. package/coverage/MonacoEditor/index.html +116 -0
  421. package/coverage/MonacoEditor/index.vue.html +3508 -0
  422. package/coverage/Pagination/index.html +116 -0
  423. package/coverage/Pagination/index.vue.html +346 -0
  424. package/coverage/PasswordPrompt/index.html +116 -0
  425. package/coverage/PasswordPrompt/index.vue.html +886 -0
  426. package/coverage/Pie/index.html +116 -0
  427. package/coverage/Pie/index.vue.html +529 -0
  428. package/coverage/Table/index.html +116 -0
  429. package/coverage/Table/index.vue.html +484 -0
  430. package/coverage/TreeMap/index.html +116 -0
  431. package/coverage/TreeMap/index.vue.html +643 -0
  432. package/coverage/User/index.html +116 -0
  433. package/coverage/User/index.vue.html +436 -0
  434. package/coverage/VarSelectDialog/index.html +116 -0
  435. package/coverage/VarSelectDialog/index.vue.html +1054 -0
  436. package/coverage/VarietyAiHelper/index.html +116 -0
  437. package/coverage/VarietyAiHelper/index.vue.html +2815 -0
  438. package/coverage/VarietyAutoComplete/index.html +116 -0
  439. package/coverage/VarietyAutoComplete/index.vue.html +352 -0
  440. package/coverage/VarietySearch/index.html +116 -0
  441. package/coverage/VarietySearch/index.vue.html +2149 -0
  442. package/coverage/VarietyTextCopy/index.html +116 -0
  443. package/coverage/VarietyTextCopy/index.vue.html +493 -0
  444. package/coverage/VirtualTable/index.html +116 -0
  445. package/coverage/VirtualTable/index.vue.html +808 -0
  446. package/coverage/base.css +224 -0
  447. package/coverage/block-navigation.js +87 -0
  448. package/coverage/clover.xml +9392 -0
  449. package/coverage/coverage-final.json +26 -0
  450. package/coverage/favicon.png +0 -0
  451. package/coverage/index.html +476 -0
  452. package/coverage/prettify.css +1 -0
  453. package/coverage/prettify.js +2 -0
  454. package/coverage/sort-arrow-sprite.png +0 -0
  455. package/coverage/sorter.js +210 -0
  456. package/docs/api-design.md +120 -0
  457. package/docs/architecture.md +110 -0
  458. package/docs/bugs.md +13 -0
  459. package/docs/requirements.md +63 -0
  460. package/docs/review.md +80 -0
  461. package/docs/security.md +83 -0
  462. package/docs/tasks.md +112 -0
  463. package/docs/test-plan.md +119 -0
  464. package/es/CustomFunction.cjs +2 -2
  465. package/es/CustomFunction.js +514 -308
  466. package/es/FactorWarning.cjs +1 -1
  467. package/es/FactorWarning.js +25 -25
  468. package/es/Kline.cjs +1 -1
  469. package/es/Kline.js +10 -10
  470. package/es/KlineBasic.cjs +1 -1
  471. package/es/KlineBasic.js +18 -18
  472. package/es/KlineConfig.cjs +1 -1
  473. package/es/KlineConfig.js +15 -15
  474. package/es/KlineNew.cjs +1 -1
  475. package/es/KlineNew.js +9 -9
  476. package/es/KlinePlus.cjs +1 -1
  477. package/es/KlinePlus.js +11 -11
  478. package/es/MonacoEditor.cjs +1 -1
  479. package/es/MonacoEditor.js +17 -17
  480. package/es/Pagination.cjs +1 -1
  481. package/es/Pagination.js +76 -76
  482. package/es/PasswordPrompt.cjs +1 -1
  483. package/es/PasswordPrompt.js +2 -2
  484. package/es/Table.cjs +1 -1
  485. package/es/Table.js +22 -22
  486. package/es/User.cjs +1 -1
  487. package/es/User.js +18 -18
  488. package/es/VarSelectDialog.cjs +1 -1
  489. package/es/VarSelectDialog.js +18 -18
  490. package/es/VarietyAiHelper.cjs +1 -1
  491. package/es/VarietyAiHelper.js +39 -39
  492. package/es/VarietyAutoComplete.cjs +1 -1
  493. package/es/VarietyAutoComplete.js +7 -7
  494. package/es/VarietySearch.cjs +1 -1
  495. package/es/VarietySearch.js +29 -29
  496. package/es/{VarietySelect-610903f0.cjs → VarietySelect-5fee5520.cjs} +1 -1
  497. package/es/{VarietySelect-6a166293.js → VarietySelect-e563b7a6.js} +3 -3
  498. package/es/VarietyTextCopy.cjs +1 -1
  499. package/es/VarietyTextCopy.js +10 -10
  500. package/es/VirtualTable.cjs +1 -1
  501. package/es/VirtualTable.js +5 -5
  502. package/es/{_initCloneObject-152b4f4e.js → _initCloneObject-5e73c9c8.js} +2 -2
  503. package/es/{_initCloneObject-76e116d0.cjs → _initCloneObject-a5832933.cjs} +1 -1
  504. package/es/{config-provider-4c784baf.cjs → config-provider-06ea6b42.cjs} +1 -1
  505. package/es/{config-provider-7a3aca55.js → config-provider-88b637a8.js} +3 -3
  506. package/es/{dropdown-987c47fb.cjs → dropdown-4ce4c3e2.cjs} +1 -1
  507. package/es/{dropdown-01e09205.js → dropdown-72fbc15d.js} +2 -2
  508. package/es/{el-autocomplete-342ae823.js → el-autocomplete-6cafcdf1.js} +5 -5
  509. package/es/{el-autocomplete-16f66b34.cjs → el-autocomplete-e0857c5b.cjs} +1 -1
  510. package/es/{el-button-13dc915f.cjs → el-button-613e0bb2.cjs} +1 -1
  511. package/es/{el-button-314171a0.js → el-button-94d3de38.js} +3 -3
  512. package/es/{el-checkbox-5899681f.js → el-checkbox-6d4cb393.js} +3 -3
  513. package/es/{el-checkbox-bdf64663.cjs → el-checkbox-e90762df.cjs} +1 -1
  514. package/es/{el-dialog-0ef95df6.cjs → el-dialog-02942e22.cjs} +1 -1
  515. package/es/{el-dialog-86a3eec2.js → el-dialog-5e30161f.js} +4 -4
  516. package/es/{el-form-item-77ef6784.cjs → el-form-item-44f060d8.cjs} +1 -1
  517. package/es/{el-form-item-cda4d93c.js → el-form-item-9e8969ea.js} +5 -5
  518. package/es/{el-input-fa1445ad.js → el-input-342b2def.js} +13 -13
  519. package/es/{el-input-89222943.cjs → el-input-9a9a7f7f.cjs} +1 -1
  520. package/es/{el-input-number-d3338e5e.cjs → el-input-number-65c847d6.cjs} +1 -1
  521. package/es/{el-input-number-8f6dbf74.js → el-input-number-c22b803a.js} +35 -35
  522. package/es/{el-loading-84dde1a8.cjs → el-loading-8179b497.cjs} +1 -1
  523. package/es/{el-loading-9b671203.js → el-loading-bcc51e3d.js} +1 -1
  524. package/es/{el-menu-item-535fef90.js → el-menu-item-339baf6d.js} +21 -21
  525. package/es/{el-menu-item-4531fd0e.cjs → el-menu-item-83186444.cjs} +1 -1
  526. package/es/{el-message-box-621ed2f1.js → el-message-box-035b699c.js} +9 -9
  527. package/es/{el-message-box-f5717070.cjs → el-message-box-c62d3217.cjs} +1 -1
  528. package/es/{el-overlay-23de4324.js → el-overlay-3e17604b.js} +3 -3
  529. package/es/{el-overlay-151708cb.cjs → el-overlay-8f1da9e8.cjs} +1 -1
  530. package/es/{el-popconfirm-b8aa490e.cjs → el-popconfirm-4e32ec1b.cjs} +1 -1
  531. package/es/{el-popconfirm-bcff0aa5.js → el-popconfirm-f8a86e2c.js} +4 -4
  532. package/es/{el-popper-43ec37f4.cjs → el-popper-a4f3ae4d.cjs} +1 -1
  533. package/es/{el-popper-03988662.js → el-popper-fbd0dcea.js} +1 -1
  534. package/es/{el-segmented-db3a86be.js → el-segmented-56bd58a8.js} +2 -2
  535. package/es/{el-segmented-79a1367c.cjs → el-segmented-833ac177.cjs} +1 -1
  536. package/es/{el-select-4bd0010d.js → el-select-44fa547d.js} +8 -8
  537. package/es/{el-select-ec04e7ce.cjs → el-select-70806166.cjs} +1 -1
  538. package/es/{el-table-column-35e47229.cjs → el-table-column-3e2cdfca.cjs} +1 -1
  539. package/es/{el-table-column-7af2bec7.js → el-table-column-b74a857d.js} +9 -9
  540. package/es/{el-tag-bef9e83d.js → el-tag-66c83156.js} +2 -2
  541. package/es/{el-tag-5d5608e0.cjs → el-tag-9c2f329f.cjs} +1 -1
  542. package/es/{el-text-f998902c.js → el-text-034bd3f4.js} +1 -1
  543. package/es/{el-text-abf10fdf.cjs → el-text-6b2374bb.cjs} +1 -1
  544. package/es/index-00f6ca75.cjs +1 -0
  545. package/es/{index-a00e0534.cjs → index-185792a7.cjs} +1 -1
  546. package/es/{index-d1b554ac.js → index-1e2a38ab.js} +2 -2
  547. package/es/{index-f3f6ee27.js → index-27416486.js} +9 -9
  548. package/es/{index-2d7ac156.cjs → index-47c9eb63.cjs} +2 -2
  549. package/es/{index-0986e373.cjs → index-4cd74df9.cjs} +1 -1
  550. package/es/{index-ce21e2ce.js → index-5216d5f5.js} +5 -5
  551. package/es/{index-cfcd60ca.cjs → index-5c0dd943.cjs} +1 -1
  552. package/es/{index-cfd00899.cjs → index-870b6c9d.cjs} +1 -1
  553. package/es/{index-a83ec4b7.js → index-8c2d7e05.js} +1 -1
  554. package/es/{index-db846633.cjs → index-9d16cea8.cjs} +1 -1
  555. package/es/{index-936e7dec.js → index-a9785a4f.js} +1 -1
  556. package/es/{index-60c69dd1.cjs → index-ac8dc53d.cjs} +1 -1
  557. package/es/{index-102edf6c.js → index-c5f2d372.js} +2 -2
  558. package/es/{index-6290ae0f.js → index-c6584658.js} +2 -2
  559. package/es/{index-5c44d71a.js → index-eb96e074.js} +149 -119
  560. package/es/{index-5ed42e9c.js → index-f034b910.js} +2 -2
  561. package/es/{index-c58e90e9.cjs → index-f58b2920.cjs} +1 -1
  562. package/es/{python-71f59893.cjs → python-2623e545.cjs} +1 -1
  563. package/es/{python-6cc6ec1b.js → python-85a62852.js} +17 -17
  564. package/es/style.css +1 -1
  565. package/es/{use-form-common-props-02be4928.cjs → use-form-common-props-ac666630.cjs} +1 -1
  566. package/es/{use-form-common-props-76a09d89.js → use-form-common-props-ed72e914.js} +11 -11
  567. package/es/{use-global-config-31b3ec57.cjs → use-global-config-23472471.cjs} +1 -1
  568. package/es/{use-global-config-0f43458b.js → use-global-config-ee406d58.js} +2 -2
  569. package/es/{validator-ea292506.cjs → validator-366dbf39.cjs} +1 -1
  570. package/es/{validator-0e037618.js → validator-c60a8956.js} +1 -1
  571. package/es/{zh-cn-1227eb8a.js → zh-cn-b59a0910.js} +1 -1
  572. package/es/{zh-cn-0edc7234.cjs → zh-cn-c21d12d8.cjs} +1 -1
  573. package/introduce.md +41 -0
  574. package/lib/bundle.js +1 -1
  575. package/lib/bundle.umd.cjs +189 -189
  576. package/lib/{index-2a269748.js → index-72506c43.js} +20667 -20433
  577. package/lib/{python-41da18e5.js → python-d3119b5a.js} +1 -1
  578. package/lib/style.css +1 -1
  579. package/package.json +9 -2
  580. package/packages/CustomFunction/components/ManageDialog.vue +300 -3
  581. package/tests/components/ChartLayout.spec.ts +67 -0
  582. package/tests/components/ConfigProvider.spec.ts +99 -0
  583. package/tests/components/Contextmenu.spec.ts +79 -0
  584. package/tests/components/CustomFunction.spec.ts +185 -0
  585. package/tests/components/FactorWarning.spec.ts +287 -0
  586. package/tests/components/HeatMap.spec.ts +83 -0
  587. package/tests/components/Kline.spec.ts +140 -0
  588. package/tests/components/Kline2.spec.ts +311 -0
  589. package/tests/components/KlineBasic.spec.ts +429 -0
  590. package/tests/components/KlineConfig.spec.ts +278 -0
  591. package/tests/components/KlineNew.spec.ts +278 -0
  592. package/tests/components/KlinePlus.spec.ts +284 -0
  593. package/tests/components/LinearLegend.spec.ts +69 -0
  594. package/tests/components/ManageDialog.spec.ts +253 -0
  595. package/tests/components/Map.spec.ts +71 -0
  596. package/tests/components/MonacoEditor.spec.ts +530 -0
  597. package/tests/components/Pagination.spec.ts +59 -0
  598. package/tests/components/PasswordPrompt.spec.ts +72 -0
  599. package/tests/components/Pie.spec.ts +96 -0
  600. package/tests/components/Table.spec.ts +186 -0
  601. package/tests/components/TreeMap.spec.ts +100 -0
  602. package/tests/components/User.spec.ts +130 -0
  603. package/tests/components/VarSelectDialog.spec.ts +131 -0
  604. package/tests/components/VarietyAiHelper.spec.ts +164 -0
  605. package/tests/components/VarietyAutoComplete.spec.ts +110 -0
  606. package/tests/components/VarietySearch.spec.ts +526 -0
  607. package/tests/components/VarietyTextCopy.spec.ts +86 -0
  608. package/tests/components/VirtualTable.spec.ts +285 -0
  609. package/tests/helpers/mountWithPlugins.ts +19 -0
  610. package/tests/mocks/echarts.kline.mock.ts +41 -0
  611. package/tests/mocks/echarts.mock.ts +38 -0
  612. package/tests/mocks/monaco.mock.ts +37 -0
  613. package/tests/mocks/st-func.mock.ts +52 -0
  614. package/tests/mocks/talib.mock.ts +13 -0
  615. package/tests/setup.ts +65 -0
  616. package/tests/smoke.spec.ts +12 -0
  617. package/vitest.config.ts +56 -0
  618. package/workflow.md +33 -0
  619. package/es/index-476c4459.cjs +0 -1
package/es/KlinePlus.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";require("./base-ef747d02.cjs");const ge=require("./el-loading-84dde1a8.cjs"),Ie=require("./el-empty-1697ded8.cjs");require("./el-tag-5d5608e0.cjs");const ye=require("./el-select-ec04e7ce.cjs");require("./el-scrollbar-bc3f790d.cjs");require("./el-popper-43ec37f4.cjs");const a=require("vue"),I=require("./dayjs.min-2c20abe6.cjs"),Ye=require("echarts"),Z=require("./index-8901a38c.cjs"),ce=require("./_plugin-vue_export-helper-f246444f.cjs");require("./use-global-config-31b3ec57.cjs");require("./use-form-common-props-02be4928.cjs");require("./index-9780a537.cjs");require("./index-476c4459.cjs");require("./index-bb833443.cjs");require("./index-cfcd60ca.cjs");require("./index-a00e0534.cjs");require("./index-60c69dd1.cjs");require("./castArray-35947698.cjs");require("./index-cfd00899.cjs");require("./scroll-b108dabd.cjs");require("./debounce-62f5b6e8.cjs");require("./vnode-b906ae6d.cjs");function Le(n){const N=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const l in n)if(l!=="default"){const c=Object.getOwnPropertyDescriptor(n,l);Object.defineProperty(N,l,c.get?c:{enumerable:!0,get:()=>n[l]})}}return N.default=n,Object.freeze(N)}const ie=Le(Ye),me="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjgzNzAzMjM4NzI1IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ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:500,loadAddCount:2e3},we={1:240,2:48,3:16,4:8,5:4,6:1,7:.2,8:.033},de=({startTime:n,endTime:N,cycle:l,type:c="end"})=>{const{maxValueSpan:u}=q,A=Math.ceil((u+1e3)/we[l]),d=I.dayjs(n);if(I.dayjs(N).diff(d,"day")<=A)return[n,N];if(c==="end")return[I.dayjs(N).subtract(A,"day").format("YYYY-MM-DD HH:mm:ss"),N];if(c==="middle"){const v=I.dayjs((I.dayjs(n).valueOf()+I.dayjs(N).valueOf())/2).format("YYYY-MM-DD HH:mm:ss");return console.log("超过一屏数量上限, 进行中间时间计算",v,A/2),[I.dayjs(v).subtract(A/2,"day").format("YYYY-MM-DD HH:mm:ss"),I.dayjs(v).add(A/2,"day").format("YYYY-MM-DD HH:mm:ss")]}},xe=(n,N)=>{const l=n[N],c=N===0?n[N]:n[N-1];return l[0]===l[1]?l[0]>=c[1]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}:l[1]>l[0]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}},Oe=(n,N,l)=>{var u,A,d,e;const c=n.subIndicator.map(D=>{if(D.series==="bar")return{name:"subMain",xAxisIndex:0,yAxisIndex:1,type:"bar",silent:!0,symbol:"none",data:D.data.map((v,P)=>D.seriesColor==="kline"?{value:v,itemStyle:xe(n.data,P)}:D.seriesColor==="value"?{value:v,itemStyle:{color:v>=0?"#FF0000":"#00FFFF"}}:{value:v,itemStyle:{color:D.seriesColor}})};if(D.series==="line")return{xAxisIndex:0,yAxisIndex:D.yAxis==="right"?2:1,name:D.key,type:"line",silent:!0,symbol:"none",data:D.data,lineStyle:{width:1},itemStyle:{color:D.color}}});return{animation:!1,grid:{top:"10px",left:"60px",right:"20px",bottom:"10px"},dataZoom:[{type:"inside",startValue:N,endValue:l,maxValueSpan:q.maxValueSpan}],tooltip:{show:!1},axisPointer:{show:!0,triggerTooltip:!1,label:{rich:{},formatter:D=>{const{axisDimension:v,value:P}=D;if(v==="x")return null;if(D.axisIndex===1)return String(pe(P))}}},xAxis:{type:"category",data:n.time,axisLine:{show:!0},splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{position:"right"},{position:"left",min:((u=n.subIndicator[0])==null?void 0:u.leftYAxisRange)==="cover"?D=>D.min:null,max:((A=n.subIndicator[0])==null?void 0:A.leftYAxisRange)==="cover"?D=>D.max:null,splitNumber:1,axisLine:{show:!0},splitLine:{show:!0,lineStyle:{type:"dotted",color:"#333"}}},{position:"right",min:((d=n.subIndicator[0])==null?void 0:d.rightYAxisRange)==="cover"?D=>D.min:null,max:((e=n.subIndicator[0])==null?void 0:e.rightYAxisRange)==="cover"?D=>D.max:null,splitNumber:1,axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}}],series:c}},re=(n,N,l="strict")=>{let c=0,u=n.length-1,A=-1;for(;c<=u;){let d=Math.floor((c+u)/2);if(l==="strict"){if(n[d]===N)return d;n[d]<N?c=d+1:u=d-1}else l==="gte"&&(n[d]>=N?(A=d,u=d-1):c=d+1)}return l==="strict"?-1:A},Ce=n=>{const N=[];return n.reduce((l,c)=>{const u=`${c.coord[0]}+${c.label.position}`,A=c.label.position==="top"?-16:16,d=l.get(u);return d?(l.set(u,d+1),c.symbolOffset[1]=A*(d+1)):(l.set(u,1),c.symbolOffset[1]=c.label.position==="top"?-7:7),N.push(c),l},new Map),N},De=(n,N)=>({data:[...n.data,...N.data.slice(1)],mainIndicator:n.mainIndicator.map((l,c)=>({...l,data:[...l.data,...N.mainIndicator[c].data.slice(1)]})),subIndicator:n.subIndicator.map((l,c)=>({...l,data:[...l.data,...N.subIndicator[c].data.slice(1)]})),time:[...n.time,...N.time.slice(1)]}),se=(n,N,l)=>{switch(l){case"5":{let Y=[...new Set(n.slice(-20).map(j=>{const o=new Date(j),g=String(o.getHours()).padStart(2,"0"),z=String(o.getMinutes()).padStart(2,"0"),O=String(o.getSeconds()).padStart(2,"0");return`${g}:${z}:${O}`}))];Y.includes("00:00:00")&&(Y.splice(Y.indexOf("00:00:00"),1),Y.push("24:00:00")),Y=Y.sort((j,o)=>new Date(`2000-01-30 ${j}`).getTime()-new Date(`2000-01-30 ${o}`).getTime());const f=new Date(N),s=f.getFullYear(),t=String(f.getMonth()+1).padStart(2,"0"),T=String(f.getDate()).padStart(2,"0"),x=String(f.getHours()).padStart(2,"0"),p=String(f.getMinutes()).padStart(2,"0"),i=String(f.getSeconds()).padStart(2,"0");if(`${x}:${p}:${i}`=="00:00:00")return`${s}-${t}-${T} 01:00:00`;{let j=null;for(let o=0;o<Y.length;o++){const g=Y[o].split(":");if(+`${g[0]}${g[1]}${g[2]}`>=+`${x}${p}${i}`){j=Y[o];break}}if(j==="24:00:00"){const o=new Date(N);o.setDate(o.getDate()+1);const g=o.getFullYear(),z=String(o.getMonth()+1).padStart(2,"0"),O=String(o.getDate()).padStart(2,"0");return`${g}-${z}-${O} 00:00:00`}return`${s}-${t}-${T} ${j}`}}case"6":{const Y=new Date(N),f=Y.getHours();if(f>=4&&f<21){const s=Y.getFullYear(),t=String(Y.getMonth()+1).padStart(2,"0"),T=String(Y.getDate()).padStart(2,"0");return`${s}-${t}-${T} 09:00:00`}else{const s=new Date(N);s.getHours()>=21&&s.setDate(s.getDate()+1);const t=s.getFullYear(),T=String(s.getMonth()+1).padStart(2,"0"),x=String(s.getDate()).padStart(2,"0"),p=`${t}-${T}-${x} 09:00:00`,i=re(n,p,"gte");return i===-1?p:n[i]}}case"7":{const Y=new Date(N),f=new Date(Y);f.setDate(Y.getDate()-Y.getDay()),f.setHours(0,0,0,0);const s=new Date(f);s.setDate(f.getDate()+5),s.setHours(23,59,59,0);const t=new Date(f);t.setDate(f.getDate()+12),t.setHours(9,0,0,0);const T=Y<=s?s:t,x=T.getFullYear(),p=String(T.getMonth()+1).padStart(2,"0"),i=String(T.getDate()).padStart(2,"0");return`${x}-${p}-${i} 09:00:00`}case"8":{const Y=new Date(N),f=new Date(Y.getFullYear(),Y.getMonth()+1,1),s=new Date(f);s.setDate(f.getDate()-1),s.setHours(9,0,0,0);const t=s.getFullYear(),T=String(s.getMonth()+1).padStart(2,"0"),x=String(s.getDate()).padStart(2,"0");return`${t}-${T}-${x} 09:00:00`}}const c=new Date(N),u=c.getFullYear(),A=c.getMonth(),d=c.getDate(),e=c.getHours(),D=c.getMinutes(),v=c.getSeconds(),P=Y=>{let f=null;const s=Math.floor(D/Y);D%Y===0&&v===0?f=D:f=(s+1)*Y;const t=Math.floor(f/60),T=e+t,x=f%60,p=new Date(u,A,d,T,x,0),i=Q=>String(Q).padStart(2,"0"),j=p.getFullYear(),o=i(p.getMonth()+1),g=i(p.getDate()),z=i(p.getHours()),O=i(p.getMinutes());return`${j}-${o}-${g} ${z}:${O}:00`};switch(l){case"1":return P(1);case"2":return P(5);case"3":return P(15);case"4":return P(30);default:throw new Error(`Unsupported cycle: ${N} ${l}`)}},ne=(n,N,l)=>{let c=null,u=null;const[A,d]=N;switch(l){case"6":{c=n.find(e=>new Date(I.dayjs(e).format("YYYY-MM-DD 23:59:59")).getTime()>=new Date(A).getTime()),u=n.findLast(e=>new Date(I.dayjs(e).format("YYYY-MM-DD 00:00:00")).getTime()<=new Date(d).getTime());break}case"7":{const e=I.dayjs(d).endOf("week").add(1,"day").format("YYYY-MM-DD 23:59:59");c=n.find(D=>I.dayjs(D).endOf("week").add(1,"day").format("YYYY-MM-DD")===I.dayjs(A).endOf("week").add(1,"day").format("YYYY-MM-DD")),u=n.findLast(D=>new Date(D).getTime()<=new Date(e).getTime());break}case"8":{c=n.find(e=>I.dayjs(e).format("YYYY-MM")===I.dayjs(A).format("YYYY-MM")),u=n.findLast(e=>I.dayjs(e).format("YYYY-MM")===I.dayjs(d).format("YYYY-MM"));break}default:c=n.find(e=>new Date(e).getTime()>=new Date(A).getTime()),u=n.findLast(e=>new Date(e).getTime()<=new Date(d).getTime())}return[c,u]},ke=(n,N,l,c,u,A)=>{const d=(s,t)=>{const{direction:T="",tradeAction:x="",tradeType:p=""}=s,i=p??T+x;switch(t){case 0:return new Map([["开多","买"],["平多","卖"],["开空","卖"],["平空","买"]]).get(i);case 1:return p??T+x}},e=(s,t,T,x)=>s.reduce((p,i)=>{var F;const j=d(i,0),o=s.filter(V=>V.klineTime===i.klineTime),g=[...new Set(o.map(V=>d(V,0)))];let z=null;g.length>1?z="image://"+new URL("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjgzNzAzMjI4MjAyIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjMwNzgiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTE5OC4wMTYgMTA5LjczODY2N0E3Ny44NjY2NjcgNzcuODY2NjY3IDAgMCAwIDE3MC42NjY2NjcgMTY3LjY4bDAuNTEyIDQxOC45NDRjMCAyMi44NjkzMzMgNi40IDQ4IDE5LjAyOTMzMyA3NS4zMDY2NjcgMTIuNjcyIDI3LjIyMTMzMyAyNy45ODkzMzMgNDguOTM4NjY3IDQ1Ljk1MiA2NC45Mzg2NjZsMjExLjE1NzMzMyAxODguMjAyNjY3YzE3LjA2NjY2NyAxNS40ODggNDAuNTc2IDIzLjk3ODY2NyA2NC45Mzg2NjcgMjMuNTk0NjY3IDI1LjY4NTMzMy0wLjA4NTMzMyA0Ny4zNi03LjkzNiA2NC45ODEzMzMtMjMuNTk0NjY3bDIxMS4yLTE4OC4yMDI2NjdjMTcuOTItMTYgMzMuMTk0NjY3LTM3L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ExNi40OFYyNDguNDQ4aC0zMDcuNjI2NjY3djU3Ljk0MTMzM2gxMTcuNjc0NjY3eiIgZmlsbD0iI0ZGRkZGRiIgcC1pZD0iMzA4MSI+PC9wYXRoPjwvc3ZnPg==",self.location).href:z="image://"+new URL(Object.assign({"./images/buy.svg":me,"./images/sell.svg":Ae,"./images/t.svg":fe})[`./images/${j==="买"?"buy":"sell"}.svg`],self.location).href;const O=re(T,i.klineTime),Q=(F=x[O])==null?void 0:F[3];return t.forEach(V=>{var J;const R=j==="买"?0:1;V.range[R]===i.klineTime&&(V.rangeValue[R]=(J=x[O])==null?void 0:J[j==="买"?2:3])}),p.push({symbol:z,symbolSize:25,symbolRotate:0,symbolOffset:[0,0],label:{show:!1,position:"top"},coord:[i.klineTime,Q],silent:!0,animation:!1,customData:{tradeType:j,amount:i.amount,part:i.part,profitAndLoss:i.profitAndLoss,openPriceAll:i.openPriceAll,closePriceAll:i.closePriceAll}}),p},[]),D=(s,t,T,x)=>{const{sellBuyByPrice:p}=A,i=s.reduce((j,o,g)=>{var F,V;const z=d(o,1),O=["开多","开空"].includes(z)?"top":"bottom";let Q=null;if(p)Q=O==="top"?(o.openPriceAll/o.amount).toFixed(2):(o.closePriceAll/o.amount).toFixed(2);else{const R=re(T,o.klineTime);Q=O==="top"?(F=x[R])==null?void 0:F[3]:(V=x[R])==null?void 0:V[2]}return t.forEach(R=>{(O==="top"?R.range[0]:R.range[1])===o.klineTime&&(R.rangeValue[O==="top"?0:1]=Q)}),j.push({symbol:"triangle",symbolSize:[10,12],symbolRotate:O==="top"?180:0,symbolOffset:[0,0],label:{show:!0,position:O,color:"#fff",formatter:`${z} ${O==="top"?"+":"-"} ${o.amount}手 ${o.part?`(${o.part}份)`:""}`},itemStyle:{color:O==="top"?"#FF0000":"#389e0d"},coord:[o.klineTime,Q],silent:!0,animation:!1,customData:{tradeType:z,amount:o.amount,part:o.part,profitAndLoss:o.profitAndLoss,openPriceAll:o.openPriceAll,closePriceAll:o.closePriceAll}}),j},[]);return p?i:Ce(i)},v=(s,t,T)=>{const{basePointData:x,baseLineData:p}=s.reduce((g,z)=>{const O={pointTime:z.openTime,tradeAction:"开",tradeDirection:z.tradeDirection?"空":"多",tradeType:`开${z.tradeDirection?"空":"多"}`,part:null,amount:z.tradeVolume,profitAndLoss:z.profitAndLoss,openPriceAll:z.openPrice*z.tradeVolume,closePriceAll:z.closePrice*z.tradeVolume,klineTime:se(T,z.openTime,t)},Q={pointTime:z.closeTime,tradeAction:"平",tradeDirection:z.tradeDirection?"空":"多",tradeType:`平${z.tradeDirection?"空":"多"}`,part:null,amount:z.tradeVolume,profitAndLoss:z.profitAndLoss,openPriceAll:z.openPrice*z.tradeVolume,closePriceAll:z.closePrice*z.tradeVolume,klineTime:se(T,z.closeTime,t)},F={range:[O.klineTime,Q.klineTime],rangeValue:[null,null],color:Q.profitAndLoss>0?"#FF0000":"#389e0d"};return g.basePointData.push(O,Q),g.baseLineData.push(F),g},{basePointData:[],baseLineData:[]}),j=[...x.reduce((g,z)=>{const O=JSON.parse(JSON.stringify(z)),Q=O.klineTime+O.tradeType;if(g.has(Q)){const F=g.get(Q);O.amount+=F.amount,O.part+=F.part,O.profitAndLoss+=F.profitAndLoss,O.openPriceAll+=F.openPriceAll,O.closePriceAll+=F.closePriceAll}return g.set(Q,O),g},new Map([])).values()].sort((g,z)=>new Date(g.klineTime)-new Date(z.klineTime)),o=p.filter(({range:g})=>g[0]!==g[1]);return{pointData:j,lineData:o}},{pointData:P,lineData:Y}=v(n,N,c);return{tradePointData:(l===0?e:D)(P,Y,c,u),tradeLineData:Y.map(({range:s,rangeValue:t,color:T})=>[{symbol:"none",coord:[s[0],t[0]],lineStyle:{color:T,width:2,type:"solid"},silent:!0,animation:!1},{symbol:"none",coord:[s[1],t[1]],silent:!0,animation:!1}])}},be=(n,N)=>{let l=[];if(Number(N)<=5)l=n.map(({tradeDate:c,netPositionValue:u})=>[I.dayjs(c).format("YYYY-MM-DD HH:mm:ss"),u]);else if(Number(N)===6){const c=n.reduce((u,A)=>{const{tradeDate:d,netPositionValue:e}=A;return u.set(I.dayjs(d).format("YYYY-MM-DD 09:00:00"),e),u},new Map);l=Array.from(c,([u,A])=>[u,A])}else l=[];return{netPositionLineData:l}},he=(n,N,l,c)=>{let u=[];if(["6","7","8"].includes(N)){const A=n.reduce((d,e)=>{const D=se(c,e.date,N),v=e[l===0?"simple":"compound"];return d.set(D,v),d},new Map);u=Array.from(A,([d,e])=>[d,e])}else u=[];return{tradeIncomeRateLineData:u}};const ve={class:"tips"},Ee={__name:"Tips",props:{data:{type:Array,default:()=>[]}},setup(n){return(N,l)=>(a.openBlock(),a.createElementBlock("div",ve,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.data,(c,u)=>(a.openBlock(),a.createElementBlock("span",{key:u,class:"item",style:a.normalizeStyle({color:c.color})},a.toDisplayString(c.label)+" "+a.toDisplayString(c.value),5))),128))]))}},oe=ce._export_sfc(Ee,[["__scopeId","data-v-df1caefe"]]);const Se={__name:"SliderChart",props:{screenTimeRange:{type:Array,required:!0},varietyCode:{type:String,required:!0},varietyStock:{type:Number,required:!0},rightType:{type:[Number,null],default:null},klineType:{type:[Number,null],default:null},deleteFirstNumber:{type:Number,default:1},withoutPermission:{type:Number,default:0}},emits:["change"],setup(n,{expose:N,emit:l}){const{request:c}=a.inject("stConfig");let u=null;const A=a.ref(null),d=l,e=n,D=a.ref({data:[],mainIndicator:[],subIndicator:[],time:[]}),v=async()=>{const s={varietyCode:e.varietyCode,cycle:"6",right:e.varietyStock===1?e.rightType:0,contractType:e.varietyStock?null:e.klineType,startTime:"1999-01-01 00:00:00",endTime:I.dayjs().format("YYYY-MM-DD 23:59:59"),deleteFirstNumber:e.deleteFirstNumber,withoutPermission:e.withoutPermission},{body:t}=await c.post("/middleLayer/kline/getKline",s);t?D.value=t:D.value={data:[],mainIndicator:[],subIndicator:[],time:[]},f("init")},P=Z.G(s=>{if(!s.dataZoomId)return;const t=u.getOption();if(t!=null&&t.dataZoom[0]){const{startValue:T,endValue:x}=u.getOption().dataZoom[0],{time:p}=D.value,i=`${p[T].split(" ")[0]} 00:00:00`,j=`${p[x].split(" ")[0]} 23:59:59`;console.log(`检测到拖拽轴被拖动, 时间区间: ${i} - ${j}`),d("change",{startTime:i,endTime:j})}},200),Y=Z.G(({startTime:s,endTime:t})=>{f("reset",{startTime:s,endTime:t})},100),f=(s,t)=>{switch(s){case"init":{const{data:T,time:x}=D.value,{xAxisData:p,lineData:i}=T.reduce((o,g,z)=>(o.xAxisData.push(x[z].split(" ")[0]),o.lineData.push(g[1]),o),{xAxisData:[],lineData:[]}),j={grid:{height:0,left:"100px",right:"80px"},xAxis:{type:"category",data:p,show:!1},yAxis:{type:"value"},dataZoom:[{show:!0,startValue:0,endValue:0,textStyle:{color:"#ccc"}},{type:"inside",startValue:0,endValue:0}],series:[{data:i,type:"line"}]};if(u.setOption(j,!0),e.screenTimeRange.length){const[o,g]=e.screenTimeRange;Y({startTime:o,endTime:g})}break}case"reset":{const{time:T}=D.value,x=I.dayjs(t.startTime).format("YYYY-MM-DD"),p=I.dayjs(t.endTime).format("YYYY-MM-DD");let i=-1,j=-1;for(let o=0;o<T.length;o++){const g=I.dayjs(T[o]).format("YYYY-MM-DD");if(i!==-1&&j!==-1)break;i===-1&&(new Date(g)===new Date(x)?i=o:new Date(g)>new Date(x)&&(i=o-1)),j===-1&&(new Date(g)===new Date(p)?j=o:new Date(g)>new Date(p)&&(j=o-1))}j===-1&&(j=T.length-1),u.dispatchAction({type:"dataZoom",startValue:i,endValue:j});break}}};return a.onMounted(()=>{a.nextTick(()=>{u=ie.init(A.value),u.on("datazoom",P),v()})}),a.watch(()=>e.screenTimeRange,s=>{const[t,T]=s;Y({startTime:t,endTime:T})},{deep:!0}),a.onUnmounted(()=>{u.off("datazoom"),u.dispose()}),N({resize:Z.G(()=>u.resize(),100)}),(s,t)=>(a.openBlock(),a.createElementBlock("div",{class:"chart",ref_key:"sliderChartRef",ref:A},null,512))}},Qe=ce._export_sfc(Se,[["__scopeId","data-v-0c715da1"]]);const Pe={class:"main-chart"},Fe={class:"indicator"},Re={key:0,class:"screen-time-range"},Ue={key:0,class:"sub-chart"},Ve={class:"indicator"},Be={class:"title"},_e={key:1,class:"slider-chart"},He={__name:"index",props:{varietyCode:{type:String,required:!0},varietyStock:{type:Number,required:!0},indicatorStore:{type:Object,required:!0},userKlineConfig:{type:Object,required:!0},cycle:{type:String,required:!0},sellBuy:{type:Number,default:1},rightType:{type:[Number,null],default:null},klineType:{type:[Number,null],default:null},incomeType:{type:Number,default:0},initTimeRange:{type:Array,required:!0},mainIndicator:{type:String,required:!0},tradeLog:{type:Array,default:()=>[]},netPositionData:{type:Array,default:()=>[]},tradeIncomeRateData:{type:Array,default:()=>[]},positionTime:{type:[String,null],default:null},syncBrushRange:{type:Object,default:()=>({cycleList:[],startTime:null,endTime:null})},deleteFirstNumber:{type:Number,default:1},withoutPermission:{type:Number,default:0}},setup(n,{expose:N}){const{round:l,formatValue:c}=Z.x,{request:u}=a.inject("stConfig"),A=a.ref(!1),d=a.ref(!1),e=n;let D=!1,v=!1,P=!1,Y=!1,f=null,s=null,t=null;const T=a.ref(null),x=a.ref(null),p=a.ref(null),i=a.ref({data:[],mainIndicator:[],subIndicator:[],time:[]}),j=a.ref(0),o=a.ref([]),g=a.ref(null),z=a.ref("VOL"),O=a.computed(()=>{const M=i.value.data[j.value];if(!M)return[{label:"开",value:"-"},{label:"高",value:"-"},{label:"低",value:"-"},{label:"收",value:"-"},{label:"额",value:"-"},{label:"涨跌",value:"-"}];const r=[{label:"开",value:M[0]},{label:"高",value:M[3]},{label:"低",value:M[2]},{label:"收",value:M[1]}];M[4]!==null&&r.push({label:"额",value:c(M[4])});let y;return M[6]>0?y="red":M[6]<0&&(y="green"),r.push({label:"涨跌",value:`${l(M[6])}%`,color:y}),r}),Q=a.computed(()=>{var M,r;return((r=(M=i.value)==null?void 0:M.mainIndicator)==null?void 0:r.map(y=>({label:y.key,value:l(y.data[j.value]),color:y.color})))||[]}),F=a.computed(()=>{var M,r;return((r=(M=i.value)==null?void 0:M.subIndicator)==null?void 0:r.map(y=>({label:y.key,color:y.color,value:y.data[j.value]||"-"})))||[]}),V=()=>{if(!T.value)return console.warn("[K线] 主图DOM元素不存在,取消初始化"),!1;if(t)return!0;try{return t=ie.init(T.value),t.on("highlight",Z.G(M=>{var r;M.dataIndex?j.value=M.dataIndex:j.value=((r=M.batch)==null?void 0:r[0].dataIndex)??-1},10)),t.on("datazoom",Z.G(async()=>{var C;const{loadCheckCount:M}=q,{startValue:r,endValue:y}=((C=t.getOption())==null?void 0:C.dataZoom[0])??{};P===!1&&Y===!1&&r<M&&await J("history"),D===!1&&v===!1&&y>i.value.time.length-M&&await J("new"),le(),Ne()})),t.on("globalout",()=>{if(t){const M=t.getOption();j.value=M.dataZoom[0].endValue}}),t.getZr().on("contextmenu",()=>{var M;g.value=(M=i.value)==null?void 0:M.time[j.value]}),window.addEventListener("keydown",ue),e.userKlineConfig.enable_subChart&&x.value&&(s=ie.init(x.value),ie.connect([t,s])),T.value&&(f=Z.D(T.value),f.listen(()=>{requestAnimationFrame(()=>{var M;t==null||t.resize(),s==null||s.resize(),(M=p.value)==null||M.resize()})})),!0}catch(M){return console.error("[st-klinePlus]: 初始化异常:",M),!1}},R=async({startTime:M,endTime:r})=>{P=!1,Y=!1,D=!1,v=!1;try{A.value=!0;const y={varietyCode:e.varietyCode,cycle:e.cycle,right:e.varietyStock===1?e.rightType:0,contractType:e.varietyStock?null:e.klineType,mainIndicatorList:e.indicatorStore.getIndicatorParams(e.mainIndicator),subIndicator:z.value,deleteFirstNumber:e.deleteFirstNumber,withoutPermission:e.withoutPermission};["1","2","3","4","5"].includes(e.cycle)?Object.assign(y,{startTime:I.dayjs(M).subtract(1,"day").format("YYYY-MM-DD HH:mm:ss"),endTime:I.dayjs(r).add(1,"day").format("YYYY-MM-DD HH:mm:ss")}):["6","7"].includes(e.cycle)?Object.assign(y,{startTime:I.dayjs(M).subtract(50,"day").format("YYYY-MM-DD HH:mm:ss"),endTime:I.dayjs(r).add(50,"day").format("YYYY-MM-DD HH:mm:ss")}):Object.assign(y,{startTime:I.dayjs(M).subtract(10,"month").format("YYYY-MM-DD HH:mm:ss"),endTime:I.dayjs(r).add(10,"month").format("YYYY-MM-DD HH:mm:ss")});const{body:C}=await u.post("/middleLayer/kline/getKline",y);i.value=C??{data:[],mainIndicator:[],subIndicator:[],time:[]};let L=-1,m=-1;for(let w=0;w<i.value.time.length;w++){const S=I.dayjs(i.value.time[w]).format("YYYY-MM-DD");if(L!==-1&&m!==-1)break;L===-1&&(new Date(S)===new Date(M)?L=w:new Date(S)>new Date(M)&&(L=w-1)),m===-1&&(new Date(S)===new Date(r)?m=w:new Date(S)>new Date(r)&&(m=w-1))}m===-1&&(m=i.value.time.length-1),Me({startValue:L===-1?0:L,endValue:m===-1?i.value.time.length-1:m})}finally{A.value=!1}},J=async M=>{var S,K;const{loadAddCount:r}=q;switch(M){case"history":{P=!0;const U={varietyCode:e.varietyCode,cycle:e.cycle,right:e.varietyStock===1?e.rightType:0,contractType:e.varietyStock?null:e.klineType,endTime:i.value.time[0],limit:r,mainIndicatorList:e.indicatorStore.getIndicatorParams(e.mainIndicator),subIndicator:z.value,deleteFirstNumber:e.deleteFirstNumber,withoutPermission:e.withoutPermission},{body:B}=await u.post("/middleLayer/kline/getKline",U);i.value=De(B,i.value),B.data.length<r&&(console.log("[K线] 获取更多数据: 左侧已全部获取完毕, 关闭"),Y=!0),P=!1;break}case"new":{D=!0;const U={varietyCode:e.varietyCode,cycle:e.cycle,right:e.varietyStock===1?e.rightType:0,contractType:e.varietyStock?null:e.klineType,startTime:i.value.time[i.value.time.length-1],limit:r,mainIndicatorList:e.indicatorStore.getIndicatorParams(e.mainIndicator),subIndicator:z.value,deleteFirstNumber:e.deleteFirstNumber,withoutPermission:e.withoutPermission},{body:B}=await u.post("/middleLayer/kline/getKline",U);i.value=De(i.value,B),B.data.length<r&&(console.log("[K线] 获取更多数据: 右侧已全部获取完毕, 关闭"),v=!0),D=!1;break}}const{startValue:y,endValue:C}=((S=t.getOption())==null?void 0:S.dataZoom[0])??{},L=(K=t.getOption())==null?void 0:K.xAxis[0].data,m=i.value.time.findIndex(U=>new Date(U)>=new Date(L[y])),w=i.value.time.findIndex(U=>new Date(U)>=new Date(L[C]));Me({startValue:m===-1?0:m,endValue:w===-1?i.value.time.length-1:w})},le=()=>{var m;if(!i.value.time.length)return o.value=[];const{time:M}=i.value,{startValue:r,endValue:y}=((m=t.getOption())==null?void 0:m.dataZoom[0])??{},C=M[r],L=M[y];["6","7","8"].includes(e.cycle)?o.value=[I.dayjs(C).format("YYYY-MM-DD"),I.dayjs(L).format("YYYY-MM-DD")]:o.value=[C,L]},Me=(M={startValue:0,endValue:0})=>{if(!V()||!t)return console.warn("[st-klinePlus]: 图表未准备就绪, 跳过绘制");if(!i.value.time.length)return console.warn("[st-klinePlus]: 图表无数据, 跳过绘制");const{maxValueSpan:y}=q,{time:C,data:L,mainIndicator:m}=i.value,w=M.endValue-M.startValue>y?M.endValue-y:M.startValue,S=M.endValue,K=m.map(k=>({name:k.key,type:"line",silent:!0,symbol:"none",data:k.data,lineStyle:{width:k.width||1},itemStyle:{color:k.color}})),{netPositionLineData:U}=be(e.netPositionData,e.cycle),{tradeIncomeRateLineData:B}=he(e.tradeIncomeRateData,e.cycle,e.incomeType,C),{tradePointData:_,tradeLineData:H}=ke(e.tradeLog,e.cycle,e.sellBuy,C,L,e.userKlineConfig);t.setOption({animation:!1,grid:{top:"40px",left:"60px",right:"20px",bottom:"20px"},dataZoom:[{type:"inside",startValue:w,endValue:S,minValueSpan:q.minValueSpan,maxValueSpan:q.maxValueSpan}],tooltip:{trigger:"axis",appendToBody:!0,confine:!0,axisPointer:{type:"cross",label:{rich:{},formatter:k=>{const{axisDimension:b,value:h}=k;return b==="x"?["6","7","8"].includes(e.cycle)?I.dayjs(h).format("YYYY-MM-DD"):h:String(l(h))}}},formatter:k=>{if(!(k!=null&&k.length))return null;let b="";if(k.forEach(E=>{if(E.seriesName==="netPosition"&&E.data!==null&&(b+=`<div>资产持仓净值: ${E.data[1]}</div>`),E.componentSubType==="candlestick")if(e.sellBuy===0){const X=_.filter(G=>(G==null?void 0:G.coord[0])===E.axisValue);let W=0,$=0;X.forEach(G=>{const{tradeType:ee,amount:ae}=G.customData;ee==="买"&&(W+=ae),ee==="卖"&&($+=ae)}),W&&(b+=`<div>买: ${W}</div>`),$&&(b+=`<div>卖: ${$}</div>`)}else _.forEach(X=>{if((X==null?void 0:X.coord[0])===E.axisValue){const{tradeType:W,amount:$,profitAndLoss:G,openPriceAll:ee,closePriceAll:ae}=X.customData;let te=`<div>${W}: ${$}手</div>`;if(W.includes("开")&&(te+=`<div>开仓价: ${(ee/$).toFixed(2)}</div>`),W.includes("平")){const je=(ee/$).toFixed(2),ze=(ae/$).toFixed(2);te+=`<div>平仓价: ${ze}</div>`,te+=`<div>盈亏: ${G==null?void 0:G.toFixed(2)}</div>`,te+=`<div>盈亏比率: ${((ze-je)/je*100).toFixed(2)} %</div>`}b+=te}})}),!b)return null;let h=k[0].axisValue;return["6","7","8"].includes(e.cycle)&&(h=I.dayjs(h).format("YYYY-MM-DD")),`
1
+ "use strict";require("./base-ef747d02.cjs");const ge=require("./el-loading-8179b497.cjs"),Ie=require("./el-empty-1697ded8.cjs");require("./el-tag-9c2f329f.cjs");const ye=require("./el-select-70806166.cjs");require("./el-scrollbar-bc3f790d.cjs");require("./el-popper-a4f3ae4d.cjs");const a=require("vue"),I=require("./dayjs.min-2c20abe6.cjs"),Ye=require("echarts"),Z=require("./index-8901a38c.cjs"),ce=require("./_plugin-vue_export-helper-f246444f.cjs");require("./use-global-config-23472471.cjs");require("./use-form-common-props-ac666630.cjs");require("./index-9780a537.cjs");require("./index-00f6ca75.cjs");require("./index-bb833443.cjs");require("./index-5c0dd943.cjs");require("./index-185792a7.cjs");require("./index-ac8dc53d.cjs");require("./castArray-35947698.cjs");require("./index-870b6c9d.cjs");require("./scroll-b108dabd.cjs");require("./debounce-62f5b6e8.cjs");require("./vnode-b906ae6d.cjs");function Le(n){const N=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const l in n)if(l!=="default"){const c=Object.getOwnPropertyDescriptor(n,l);Object.defineProperty(N,l,c.get?c:{enumerable:!0,get:()=>n[l]})}}return N.default=n,Object.freeze(N)}const ie=Le(Ye),me="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjgzNzAzMjM4NzI1IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI2MjUiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTE5OC4wMTYgMTA5LjczODY2N0E3Ny44NjY2NjcgNzcuODY2NjY3IDAgMCAwIDE3MC42NjY2NjcgMTY3LjY4bDAuNTEyIDQxOC45NDRjMCAyMi44NjkzMzMgNi40IDQ4IDE5LjAyOTMzMyA3NS4zMDY2NjcgMTIuNjcyIDI3LjIyMTMzMyAyNy45ODkzMzMgNDguOTM4NjY3IDQ1Ljk1MiA2NC45Mzg2NjZsMjExLjE1NzMzMyAxODguMjAyNjY3YzE3LjA2NjY2NyAxNS40ODggNDAuNTc2IDIzLjk3ODY2NyA2NC45Mzg2NjcgMjMuNTk0NjY3IDI1LjY4NTMzMy0wLjA4NTMzMyA0Ny4zNi03LjkzNiA2NC45ODEz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N2MwLTkuODk4NjY3LTMuNTg0LTE3LjYyMTMzMy0xMi41MDEzMzQtMjUuNkE1NC42OTg2NjcgNTQuNjk4NjY3IDAgMCAwIDc2MS42IDEyOGwtNDk5LjYyNjY2NyAwLjQ2OTMzM2E1MS4zMjggNTEuMzI4IDAgMCAwLTM1Ljc1NDY2NiAxMy4yNjkzMzQgMzYuNTY1MzMzIDM2LjU2NTMzMyAwIDAgMC0xMi41MDEzMzQgMjEuNTA0bC0wLjQyNjY2NiA0LjY5MzMzM3oiIGZpbGw9IiNBRTQ0RkYiIHAtaWQ9IjMwODAiPjwvcGF0aD48cGF0aCBkPSJNNDc1LjMwNjY2NyA2NTguMjE4NjY3aDczLjQ3MlYzMDYuMzg5MzMzaDExNi40OFYyNDguNDQ4aC0zMDcuNjI2NjY3djU3Ljk0MTMzM2gxMTcuNjc0NjY3eiIgZmlsbD0iI0ZGRkZGRiIgcC1pZD0iMzA4MSI+PC9wYXRoPjwvc3ZnPg==",{round:pe}=Z.x,q={minValueSpan:5,maxValueSpan:2e3,loadCheckCount:500,loadAddCount:2e3},we={1:240,2:48,3:16,4:8,5:4,6:1,7:.2,8:.033},de=({startTime:n,endTime:N,cycle:l,type:c="end"})=>{const{maxValueSpan:u}=q,A=Math.ceil((u+1e3)/we[l]),d=I.dayjs(n);if(I.dayjs(N).diff(d,"day")<=A)return[n,N];if(c==="end")return[I.dayjs(N).subtract(A,"day").format("YYYY-MM-DD HH:mm:ss"),N];if(c==="middle"){const v=I.dayjs((I.dayjs(n).valueOf()+I.dayjs(N).valueOf())/2).format("YYYY-MM-DD HH:mm:ss");return console.log("超过一屏数量上限, 进行中间时间计算",v,A/2),[I.dayjs(v).subtract(A/2,"day").format("YYYY-MM-DD HH:mm:ss"),I.dayjs(v).add(A/2,"day").format("YYYY-MM-DD HH:mm:ss")]}},xe=(n,N)=>{const l=n[N],c=N===0?n[N]:n[N-1];return l[0]===l[1]?l[0]>=c[1]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}:l[1]>l[0]?{color:"transparent",borderColor:"#FF0000"}:{color:"#00FFFF"}},Oe=(n,N,l)=>{var u,A,d,e;const c=n.subIndicator.map(D=>{if(D.series==="bar")return{name:"subMain",xAxisIndex:0,yAxisIndex:1,type:"bar",silent:!0,symbol:"none",data:D.data.map((v,P)=>D.seriesColor==="kline"?{value:v,itemStyle:xe(n.data,P)}:D.seriesColor==="value"?{value:v,itemStyle:{color:v>=0?"#FF0000":"#00FFFF"}}:{value:v,itemStyle:{color:D.seriesColor}})};if(D.series==="line")return{xAxisIndex:0,yAxisIndex:D.yAxis==="right"?2:1,name:D.key,type:"line",silent:!0,symbol:"none",data:D.data,lineStyle:{width:1},itemStyle:{color:D.color}}});return{animation:!1,grid:{top:"10px",left:"60px",right:"20px",bottom:"10px"},dataZoom:[{type:"inside",startValue:N,endValue:l,maxValueSpan:q.maxValueSpan}],tooltip:{show:!1},axisPointer:{show:!0,triggerTooltip:!1,label:{rich:{},formatter:D=>{const{axisDimension:v,value:P}=D;if(v==="x")return null;if(D.axisIndex===1)return String(pe(P))}}},xAxis:{type:"category",data:n.time,axisLine:{show:!0},splitLine:{show:!1},axisLabel:{show:!1}},yAxis:[{position:"right"},{position:"left",min:((u=n.subIndicator[0])==null?void 0:u.leftYAxisRange)==="cover"?D=>D.min:null,max:((A=n.subIndicator[0])==null?void 0:A.leftYAxisRange)==="cover"?D=>D.max:null,splitNumber:1,axisLine:{show:!0},splitLine:{show:!0,lineStyle:{type:"dotted",color:"#333"}}},{position:"right",min:((d=n.subIndicator[0])==null?void 0:d.rightYAxisRange)==="cover"?D=>D.min:null,max:((e=n.subIndicator[0])==null?void 0:e.rightYAxisRange)==="cover"?D=>D.max:null,splitNumber:1,axisLine:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}}],series:c}},re=(n,N,l="strict")=>{let c=0,u=n.length-1,A=-1;for(;c<=u;){let d=Math.floor((c+u)/2);if(l==="strict"){if(n[d]===N)return d;n[d]<N?c=d+1:u=d-1}else l==="gte"&&(n[d]>=N?(A=d,u=d-1):c=d+1)}return l==="strict"?-1:A},Ce=n=>{const N=[];return n.reduce((l,c)=>{const u=`${c.coord[0]}+${c.label.position}`,A=c.label.position==="top"?-16:16,d=l.get(u);return d?(l.set(u,d+1),c.symbolOffset[1]=A*(d+1)):(l.set(u,1),c.symbolOffset[1]=c.label.position==="top"?-7:7),N.push(c),l},new Map),N},De=(n,N)=>({data:[...n.data,...N.data.slice(1)],mainIndicator:n.mainIndicator.map((l,c)=>({...l,data:[...l.data,...N.mainIndicator[c].data.slice(1)]})),subIndicator:n.subIndicator.map((l,c)=>({...l,data:[...l.data,...N.subIndicator[c].data.slice(1)]})),time:[...n.time,...N.time.slice(1)]}),se=(n,N,l)=>{switch(l){case"5":{let Y=[...new Set(n.slice(-20).map(j=>{const o=new Date(j),g=String(o.getHours()).padStart(2,"0"),z=String(o.getMinutes()).padStart(2,"0"),O=String(o.getSeconds()).padStart(2,"0");return`${g}:${z}:${O}`}))];Y.includes("00:00:00")&&(Y.splice(Y.indexOf("00:00:00"),1),Y.push("24:00:00")),Y=Y.sort((j,o)=>new Date(`2000-01-30 ${j}`).getTime()-new Date(`2000-01-30 ${o}`).getTime());const f=new Date(N),s=f.getFullYear(),t=String(f.getMonth()+1).padStart(2,"0"),T=String(f.getDate()).padStart(2,"0"),x=String(f.getHours()).padStart(2,"0"),p=String(f.getMinutes()).padStart(2,"0"),i=String(f.getSeconds()).padStart(2,"0");if(`${x}:${p}:${i}`=="00:00:00")return`${s}-${t}-${T} 01:00:00`;{let j=null;for(let o=0;o<Y.length;o++){const g=Y[o].split(":");if(+`${g[0]}${g[1]}${g[2]}`>=+`${x}${p}${i}`){j=Y[o];break}}if(j==="24:00:00"){const o=new Date(N);o.setDate(o.getDate()+1);const g=o.getFullYear(),z=String(o.getMonth()+1).padStart(2,"0"),O=String(o.getDate()).padStart(2,"0");return`${g}-${z}-${O} 00:00:00`}return`${s}-${t}-${T} ${j}`}}case"6":{const Y=new Date(N),f=Y.getHours();if(f>=4&&f<21){const s=Y.getFullYear(),t=String(Y.getMonth()+1).padStart(2,"0"),T=String(Y.getDate()).padStart(2,"0");return`${s}-${t}-${T} 09:00:00`}else{const s=new Date(N);s.getHours()>=21&&s.setDate(s.getDate()+1);const t=s.getFullYear(),T=String(s.getMonth()+1).padStart(2,"0"),x=String(s.getDate()).padStart(2,"0"),p=`${t}-${T}-${x} 09:00:00`,i=re(n,p,"gte");return i===-1?p:n[i]}}case"7":{const Y=new Date(N),f=new Date(Y);f.setDate(Y.getDate()-Y.getDay()),f.setHours(0,0,0,0);const s=new Date(f);s.setDate(f.getDate()+5),s.setHours(23,59,59,0);const t=new Date(f);t.setDate(f.getDate()+12),t.setHours(9,0,0,0);const T=Y<=s?s:t,x=T.getFullYear(),p=String(T.getMonth()+1).padStart(2,"0"),i=String(T.getDate()).padStart(2,"0");return`${x}-${p}-${i} 09:00:00`}case"8":{const Y=new Date(N),f=new Date(Y.getFullYear(),Y.getMonth()+1,1),s=new Date(f);s.setDate(f.getDate()-1),s.setHours(9,0,0,0);const t=s.getFullYear(),T=String(s.getMonth()+1).padStart(2,"0"),x=String(s.getDate()).padStart(2,"0");return`${t}-${T}-${x} 09:00:00`}}const c=new Date(N),u=c.getFullYear(),A=c.getMonth(),d=c.getDate(),e=c.getHours(),D=c.getMinutes(),v=c.getSeconds(),P=Y=>{let f=null;const s=Math.floor(D/Y);D%Y===0&&v===0?f=D:f=(s+1)*Y;const t=Math.floor(f/60),T=e+t,x=f%60,p=new Date(u,A,d,T,x,0),i=Q=>String(Q).padStart(2,"0"),j=p.getFullYear(),o=i(p.getMonth()+1),g=i(p.getDate()),z=i(p.getHours()),O=i(p.getMinutes());return`${j}-${o}-${g} ${z}:${O}:00`};switch(l){case"1":return P(1);case"2":return P(5);case"3":return P(15);case"4":return P(30);default:throw new Error(`Unsupported cycle: ${N} ${l}`)}},ne=(n,N,l)=>{let c=null,u=null;const[A,d]=N;switch(l){case"6":{c=n.find(e=>new Date(I.dayjs(e).format("YYYY-MM-DD 23:59:59")).getTime()>=new Date(A).getTime()),u=n.findLast(e=>new Date(I.dayjs(e).format("YYYY-MM-DD 00:00:00")).getTime()<=new Date(d).getTime());break}case"7":{const e=I.dayjs(d).endOf("week").add(1,"day").format("YYYY-MM-DD 23:59:59");c=n.find(D=>I.dayjs(D).endOf("week").add(1,"day").format("YYYY-MM-DD")===I.dayjs(A).endOf("week").add(1,"day").format("YYYY-MM-DD")),u=n.findLast(D=>new Date(D).getTime()<=new Date(e).getTime());break}case"8":{c=n.find(e=>I.dayjs(e).format("YYYY-MM")===I.dayjs(A).format("YYYY-MM")),u=n.findLast(e=>I.dayjs(e).format("YYYY-MM")===I.dayjs(d).format("YYYY-MM"));break}default:c=n.find(e=>new Date(e).getTime()>=new Date(A).getTime()),u=n.findLast(e=>new Date(e).getTime()<=new Date(d).getTime())}return[c,u]},ke=(n,N,l,c,u,A)=>{const d=(s,t)=>{const{direction:T="",tradeAction:x="",tradeType:p=""}=s,i=p??T+x;switch(t){case 0:return new Map([["开多","买"],["平多","卖"],["开空","卖"],["平空","买"]]).get(i);case 1:return p??T+x}},e=(s,t,T,x)=>s.reduce((p,i)=>{var F;const j=d(i,0),o=s.filter(V=>V.klineTime===i.klineTime),g=[...new Set(o.map(V=>d(V,0)))];let z=null;g.length>1?z="image://"+new URL("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjgzNzAzMjI4MjAyIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9I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NTQ2NjctMTEuOTQ2NjY3IDI1LjMwMTMzMy0yOC44NDI2NjcgMzUuNjI2NjY2LTUxLjA3MiAxMC4xMTItMjEuNzYgMTQuNzYyNjY3LTQwLjUzMzMzMyAxNC41MDY2NjctNTcuMDAyNjY3TDgxMC42NjY2NjcgMTY3LjIxMDY2N2MwLTkuODk4NjY3LTMuNTg0LTE3LjYyMTMzMy0xMi41MDEzMzQtMjUuNkE1NC42OTg2NjcgNTQuNjk4NjY3IDAgMCAwIDc2MS42IDEyOGwtNDk5LjYyNjY2NyAwLjQ2OTMzM2E1MS4zMjggNTEuMzI4IDAgMCAwLTM1Ljc1NDY2NiAxMy4yNjkzMzQgMzYuNTY1MzMzIDM2LjU2NTMzMyAwIDAgMC0xMi41MDEzMzQgMjEuNTA0bC0wLjQyNjY2NiA0LjY5MzMzM3oiIGZpbGw9IiNBRTQ0RkYiIHAtaWQ9IjMwODAiPjwvcGF0aD48cGF0aCBkPSJNNDc1LjMwNjY2NyA2NTguMjE4NjY3aDczLjQ3MlYzMDYuMzg5MzMzaDExNi40OFYyNDguNDQ4aC0zMDcuNjI2NjY3djU3Ljk0MTMzM2gxMTcuNjc0NjY3eiIgZmlsbD0iI0ZGRkZGRiIgcC1pZD0iMzA4MSI+PC9wYXRoPjwvc3ZnPg==",self.location).href:z="image://"+new URL(Object.assign({"./images/buy.svg":me,"./images/sell.svg":Ae,"./images/t.svg":fe})[`./images/${j==="买"?"buy":"sell"}.svg`],self.location).href;const O=re(T,i.klineTime),Q=(F=x[O])==null?void 0:F[3];return t.forEach(V=>{var J;const R=j==="买"?0:1;V.range[R]===i.klineTime&&(V.rangeValue[R]=(J=x[O])==null?void 0:J[j==="买"?2:3])}),p.push({symbol:z,symbolSize:25,symbolRotate:0,symbolOffset:[0,0],label:{show:!1,position:"top"},coord:[i.klineTime,Q],silent:!0,animation:!1,customData:{tradeType:j,amount:i.amount,part:i.part,profitAndLoss:i.profitAndLoss,openPriceAll:i.openPriceAll,closePriceAll:i.closePriceAll}}),p},[]),D=(s,t,T,x)=>{const{sellBuyByPrice:p}=A,i=s.reduce((j,o,g)=>{var F,V;const z=d(o,1),O=["开多","开空"].includes(z)?"top":"bottom";let Q=null;if(p)Q=O==="top"?(o.openPriceAll/o.amount).toFixed(2):(o.closePriceAll/o.amount).toFixed(2);else{const R=re(T,o.klineTime);Q=O==="top"?(F=x[R])==null?void 0:F[3]:(V=x[R])==null?void 0:V[2]}return t.forEach(R=>{(O==="top"?R.range[0]:R.range[1])===o.klineTime&&(R.rangeValue[O==="top"?0:1]=Q)}),j.push({symbol:"triangle",symbolSize:[10,12],symbolRotate:O==="top"?180:0,symbolOffset:[0,0],label:{show:!0,position:O,color:"#fff",formatter:`${z} ${O==="top"?"+":"-"} ${o.amount}手 ${o.part?`(${o.part}份)`:""}`},itemStyle:{color:O==="top"?"#FF0000":"#389e0d"},coord:[o.klineTime,Q],silent:!0,animation:!1,customData:{tradeType:z,amount:o.amount,part:o.part,profitAndLoss:o.profitAndLoss,openPriceAll:o.openPriceAll,closePriceAll:o.closePriceAll}}),j},[]);return p?i:Ce(i)},v=(s,t,T)=>{const{basePointData:x,baseLineData:p}=s.reduce((g,z)=>{const O={pointTime:z.openTime,tradeAction:"开",tradeDirection:z.tradeDirection?"空":"多",tradeType:`开${z.tradeDirection?"空":"多"}`,part:null,amount:z.tradeVolume,profitAndLoss:z.profitAndLoss,openPriceAll:z.openPrice*z.tradeVolume,closePriceAll:z.closePrice*z.tradeVolume,klineTime:se(T,z.openTime,t)},Q={pointTime:z.closeTime,tradeAction:"平",tradeDirection:z.tradeDirection?"空":"多",tradeType:`平${z.tradeDirection?"空":"多"}`,part:null,amount:z.tradeVolume,profitAndLoss:z.profitAndLoss,openPriceAll:z.openPrice*z.tradeVolume,closePriceAll:z.closePrice*z.tradeVolume,klineTime:se(T,z.closeTime,t)},F={range:[O.klineTime,Q.klineTime],rangeValue:[null,null],color:Q.profitAndLoss>0?"#FF0000":"#389e0d"};return g.basePointData.push(O,Q),g.baseLineData.push(F),g},{basePointData:[],baseLineData:[]}),j=[...x.reduce((g,z)=>{const O=JSON.parse(JSON.stringify(z)),Q=O.klineTime+O.tradeType;if(g.has(Q)){const F=g.get(Q);O.amount+=F.amount,O.part+=F.part,O.profitAndLoss+=F.profitAndLoss,O.openPriceAll+=F.openPriceAll,O.closePriceAll+=F.closePriceAll}return g.set(Q,O),g},new Map([])).values()].sort((g,z)=>new Date(g.klineTime)-new Date(z.klineTime)),o=p.filter(({range:g})=>g[0]!==g[1]);return{pointData:j,lineData:o}},{pointData:P,lineData:Y}=v(n,N,c);return{tradePointData:(l===0?e:D)(P,Y,c,u),tradeLineData:Y.map(({range:s,rangeValue:t,color:T})=>[{symbol:"none",coord:[s[0],t[0]],lineStyle:{color:T,width:2,type:"solid"},silent:!0,animation:!1},{symbol:"none",coord:[s[1],t[1]],silent:!0,animation:!1}])}},be=(n,N)=>{let l=[];if(Number(N)<=5)l=n.map(({tradeDate:c,netPositionValue:u})=>[I.dayjs(c).format("YYYY-MM-DD HH:mm:ss"),u]);else if(Number(N)===6){const c=n.reduce((u,A)=>{const{tradeDate:d,netPositionValue:e}=A;return u.set(I.dayjs(d).format("YYYY-MM-DD 09:00:00"),e),u},new Map);l=Array.from(c,([u,A])=>[u,A])}else l=[];return{netPositionLineData:l}},he=(n,N,l,c)=>{let u=[];if(["6","7","8"].includes(N)){const A=n.reduce((d,e)=>{const D=se(c,e.date,N),v=e[l===0?"simple":"compound"];return d.set(D,v),d},new Map);u=Array.from(A,([d,e])=>[d,e])}else u=[];return{tradeIncomeRateLineData:u}};const ve={class:"tips"},Ee={__name:"Tips",props:{data:{type:Array,default:()=>[]}},setup(n){return(N,l)=>(a.openBlock(),a.createElementBlock("div",ve,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.data,(c,u)=>(a.openBlock(),a.createElementBlock("span",{key:u,class:"item",style:a.normalizeStyle({color:c.color})},a.toDisplayString(c.label)+" "+a.toDisplayString(c.value),5))),128))]))}},oe=ce._export_sfc(Ee,[["__scopeId","data-v-df1caefe"]]);const Se={__name:"SliderChart",props:{screenTimeRange:{type:Array,required:!0},varietyCode:{type:String,required:!0},varietyStock:{type:Number,required:!0},rightType:{type:[Number,null],default:null},klineType:{type:[Number,null],default:null},deleteFirstNumber:{type:Number,default:1},withoutPermission:{type:Number,default:0}},emits:["change"],setup(n,{expose:N,emit:l}){const{request:c}=a.inject("stConfig");let u=null;const A=a.ref(null),d=l,e=n,D=a.ref({data:[],mainIndicator:[],subIndicator:[],time:[]}),v=async()=>{const s={varietyCode:e.varietyCode,cycle:"6",right:e.varietyStock===1?e.rightType:0,contractType:e.varietyStock?null:e.klineType,startTime:"1999-01-01 00:00:00",endTime:I.dayjs().format("YYYY-MM-DD 23:59:59"),deleteFirstNumber:e.deleteFirstNumber,withoutPermission:e.withoutPermission},{body:t}=await c.post("/middleLayer/kline/getKline",s);t?D.value=t:D.value={data:[],mainIndicator:[],subIndicator:[],time:[]},f("init")},P=Z.G(s=>{if(!s.dataZoomId)return;const t=u.getOption();if(t!=null&&t.dataZoom[0]){const{startValue:T,endValue:x}=u.getOption().dataZoom[0],{time:p}=D.value,i=`${p[T].split(" ")[0]} 00:00:00`,j=`${p[x].split(" ")[0]} 23:59:59`;console.log(`检测到拖拽轴被拖动, 时间区间: ${i} - ${j}`),d("change",{startTime:i,endTime:j})}},200),Y=Z.G(({startTime:s,endTime:t})=>{f("reset",{startTime:s,endTime:t})},100),f=(s,t)=>{switch(s){case"init":{const{data:T,time:x}=D.value,{xAxisData:p,lineData:i}=T.reduce((o,g,z)=>(o.xAxisData.push(x[z].split(" ")[0]),o.lineData.push(g[1]),o),{xAxisData:[],lineData:[]}),j={grid:{height:0,left:"100px",right:"80px"},xAxis:{type:"category",data:p,show:!1},yAxis:{type:"value"},dataZoom:[{show:!0,startValue:0,endValue:0,textStyle:{color:"#ccc"}},{type:"inside",startValue:0,endValue:0}],series:[{data:i,type:"line"}]};if(u.setOption(j,!0),e.screenTimeRange.length){const[o,g]=e.screenTimeRange;Y({startTime:o,endTime:g})}break}case"reset":{const{time:T}=D.value,x=I.dayjs(t.startTime).format("YYYY-MM-DD"),p=I.dayjs(t.endTime).format("YYYY-MM-DD");let i=-1,j=-1;for(let o=0;o<T.length;o++){const g=I.dayjs(T[o]).format("YYYY-MM-DD");if(i!==-1&&j!==-1)break;i===-1&&(new Date(g)===new Date(x)?i=o:new Date(g)>new Date(x)&&(i=o-1)),j===-1&&(new Date(g)===new Date(p)?j=o:new Date(g)>new Date(p)&&(j=o-1))}j===-1&&(j=T.length-1),u.dispatchAction({type:"dataZoom",startValue:i,endValue:j});break}}};return a.onMounted(()=>{a.nextTick(()=>{u=ie.init(A.value),u.on("datazoom",P),v()})}),a.watch(()=>e.screenTimeRange,s=>{const[t,T]=s;Y({startTime:t,endTime:T})},{deep:!0}),a.onUnmounted(()=>{u.off("datazoom"),u.dispose()}),N({resize:Z.G(()=>u.resize(),100)}),(s,t)=>(a.openBlock(),a.createElementBlock("div",{class:"chart",ref_key:"sliderChartRef",ref:A},null,512))}},Qe=ce._export_sfc(Se,[["__scopeId","data-v-0c715da1"]]);const Pe={class:"main-chart"},Fe={class:"indicator"},Re={key:0,class:"screen-time-range"},Ue={key:0,class:"sub-chart"},Ve={class:"indicator"},Be={class:"title"},_e={key:1,class:"slider-chart"},He={__name:"index",props:{varietyCode:{type:String,required:!0},varietyStock:{type:Number,required:!0},indicatorStore:{type:Object,required:!0},userKlineConfig:{type:Object,required:!0},cycle:{type:String,required:!0},sellBuy:{type:Number,default:1},rightType:{type:[Number,null],default:null},klineType:{type:[Number,null],default:null},incomeType:{type:Number,default:0},initTimeRange:{type:Array,required:!0},mainIndicator:{type:String,required:!0},tradeLog:{type:Array,default:()=>[]},netPositionData:{type:Array,default:()=>[]},tradeIncomeRateData:{type:Array,default:()=>[]},positionTime:{type:[String,null],default:null},syncBrushRange:{type:Object,default:()=>({cycleList:[],startTime:null,endTime:null})},deleteFirstNumber:{type:Number,default:1},withoutPermission:{type:Number,default:0}},setup(n,{expose:N}){const{round:l,formatValue:c}=Z.x,{request:u}=a.inject("stConfig"),A=a.ref(!1),d=a.ref(!1),e=n;let D=!1,v=!1,P=!1,Y=!1,f=null,s=null,t=null;const T=a.ref(null),x=a.ref(null),p=a.ref(null),i=a.ref({data:[],mainIndicator:[],subIndicator:[],time:[]}),j=a.ref(0),o=a.ref([]),g=a.ref(null),z=a.ref("VOL"),O=a.computed(()=>{const M=i.value.data[j.value];if(!M)return[{label:"开",value:"-"},{label:"高",value:"-"},{label:"低",value:"-"},{label:"收",value:"-"},{label:"额",value:"-"},{label:"涨跌",value:"-"}];const r=[{label:"开",value:M[0]},{label:"高",value:M[3]},{label:"低",value:M[2]},{label:"收",value:M[1]}];M[4]!==null&&r.push({label:"额",value:c(M[4])});let y;return M[6]>0?y="red":M[6]<0&&(y="green"),r.push({label:"涨跌",value:`${l(M[6])}%`,color:y}),r}),Q=a.computed(()=>{var M,r;return((r=(M=i.value)==null?void 0:M.mainIndicator)==null?void 0:r.map(y=>({label:y.key,value:l(y.data[j.value]),color:y.color})))||[]}),F=a.computed(()=>{var M,r;return((r=(M=i.value)==null?void 0:M.subIndicator)==null?void 0:r.map(y=>({label:y.key,color:y.color,value:y.data[j.value]||"-"})))||[]}),V=()=>{if(!T.value)return console.warn("[K线] 主图DOM元素不存在,取消初始化"),!1;if(t)return!0;try{return t=ie.init(T.value),t.on("highlight",Z.G(M=>{var r;M.dataIndex?j.value=M.dataIndex:j.value=((r=M.batch)==null?void 0:r[0].dataIndex)??-1},10)),t.on("datazoom",Z.G(async()=>{var C;const{loadCheckCount:M}=q,{startValue:r,endValue:y}=((C=t.getOption())==null?void 0:C.dataZoom[0])??{};P===!1&&Y===!1&&r<M&&await J("history"),D===!1&&v===!1&&y>i.value.time.length-M&&await J("new"),le(),Ne()})),t.on("globalout",()=>{if(t){const M=t.getOption();j.value=M.dataZoom[0].endValue}}),t.getZr().on("contextmenu",()=>{var M;g.value=(M=i.value)==null?void 0:M.time[j.value]}),window.addEventListener("keydown",ue),e.userKlineConfig.enable_subChart&&x.value&&(s=ie.init(x.value),ie.connect([t,s])),T.value&&(f=Z.D(T.value),f.listen(()=>{requestAnimationFrame(()=>{var M;t==null||t.resize(),s==null||s.resize(),(M=p.value)==null||M.resize()})})),!0}catch(M){return console.error("[st-klinePlus]: 初始化异常:",M),!1}},R=async({startTime:M,endTime:r})=>{P=!1,Y=!1,D=!1,v=!1;try{A.value=!0;const y={varietyCode:e.varietyCode,cycle:e.cycle,right:e.varietyStock===1?e.rightType:0,contractType:e.varietyStock?null:e.klineType,mainIndicatorList:e.indicatorStore.getIndicatorParams(e.mainIndicator),subIndicator:z.value,deleteFirstNumber:e.deleteFirstNumber,withoutPermission:e.withoutPermission};["1","2","3","4","5"].includes(e.cycle)?Object.assign(y,{startTime:I.dayjs(M).subtract(1,"day").format("YYYY-MM-DD HH:mm:ss"),endTime:I.dayjs(r).add(1,"day").format("YYYY-MM-DD HH:mm:ss")}):["6","7"].includes(e.cycle)?Object.assign(y,{startTime:I.dayjs(M).subtract(50,"day").format("YYYY-MM-DD HH:mm:ss"),endTime:I.dayjs(r).add(50,"day").format("YYYY-MM-DD HH:mm:ss")}):Object.assign(y,{startTime:I.dayjs(M).subtract(10,"month").format("YYYY-MM-DD HH:mm:ss"),endTime:I.dayjs(r).add(10,"month").format("YYYY-MM-DD HH:mm:ss")});const{body:C}=await u.post("/middleLayer/kline/getKline",y);i.value=C??{data:[],mainIndicator:[],subIndicator:[],time:[]};let L=-1,m=-1;for(let w=0;w<i.value.time.length;w++){const S=I.dayjs(i.value.time[w]).format("YYYY-MM-DD");if(L!==-1&&m!==-1)break;L===-1&&(new Date(S)===new Date(M)?L=w:new Date(S)>new Date(M)&&(L=w-1)),m===-1&&(new Date(S)===new Date(r)?m=w:new Date(S)>new Date(r)&&(m=w-1))}m===-1&&(m=i.value.time.length-1),Me({startValue:L===-1?0:L,endValue:m===-1?i.value.time.length-1:m})}finally{A.value=!1}},J=async M=>{var S,K;const{loadAddCount:r}=q;switch(M){case"history":{P=!0;const U={varietyCode:e.varietyCode,cycle:e.cycle,right:e.varietyStock===1?e.rightType:0,contractType:e.varietyStock?null:e.klineType,endTime:i.value.time[0],limit:r,mainIndicatorList:e.indicatorStore.getIndicatorParams(e.mainIndicator),subIndicator:z.value,deleteFirstNumber:e.deleteFirstNumber,withoutPermission:e.withoutPermission},{body:B}=await u.post("/middleLayer/kline/getKline",U);i.value=De(B,i.value),B.data.length<r&&(console.log("[K线] 获取更多数据: 左侧已全部获取完毕, 关闭"),Y=!0),P=!1;break}case"new":{D=!0;const U={varietyCode:e.varietyCode,cycle:e.cycle,right:e.varietyStock===1?e.rightType:0,contractType:e.varietyStock?null:e.klineType,startTime:i.value.time[i.value.time.length-1],limit:r,mainIndicatorList:e.indicatorStore.getIndicatorParams(e.mainIndicator),subIndicator:z.value,deleteFirstNumber:e.deleteFirstNumber,withoutPermission:e.withoutPermission},{body:B}=await u.post("/middleLayer/kline/getKline",U);i.value=De(i.value,B),B.data.length<r&&(console.log("[K线] 获取更多数据: 右侧已全部获取完毕, 关闭"),v=!0),D=!1;break}}const{startValue:y,endValue:C}=((S=t.getOption())==null?void 0:S.dataZoom[0])??{},L=(K=t.getOption())==null?void 0:K.xAxis[0].data,m=i.value.time.findIndex(U=>new Date(U)>=new Date(L[y])),w=i.value.time.findIndex(U=>new Date(U)>=new Date(L[C]));Me({startValue:m===-1?0:m,endValue:w===-1?i.value.time.length-1:w})},le=()=>{var m;if(!i.value.time.length)return o.value=[];const{time:M}=i.value,{startValue:r,endValue:y}=((m=t.getOption())==null?void 0:m.dataZoom[0])??{},C=M[r],L=M[y];["6","7","8"].includes(e.cycle)?o.value=[I.dayjs(C).format("YYYY-MM-DD"),I.dayjs(L).format("YYYY-MM-DD")]:o.value=[C,L]},Me=(M={startValue:0,endValue:0})=>{if(!V()||!t)return console.warn("[st-klinePlus]: 图表未准备就绪, 跳过绘制");if(!i.value.time.length)return console.warn("[st-klinePlus]: 图表无数据, 跳过绘制");const{maxValueSpan:y}=q,{time:C,data:L,mainIndicator:m}=i.value,w=M.endValue-M.startValue>y?M.endValue-y:M.startValue,S=M.endValue,K=m.map(k=>({name:k.key,type:"line",silent:!0,symbol:"none",data:k.data,lineStyle:{width:k.width||1},itemStyle:{color:k.color}})),{netPositionLineData:U}=be(e.netPositionData,e.cycle),{tradeIncomeRateLineData:B}=he(e.tradeIncomeRateData,e.cycle,e.incomeType,C),{tradePointData:_,tradeLineData:H}=ke(e.tradeLog,e.cycle,e.sellBuy,C,L,e.userKlineConfig);t.setOption({animation:!1,grid:{top:"40px",left:"60px",right:"20px",bottom:"20px"},dataZoom:[{type:"inside",startValue:w,endValue:S,minValueSpan:q.minValueSpan,maxValueSpan:q.maxValueSpan}],tooltip:{trigger:"axis",appendToBody:!0,confine:!0,axisPointer:{type:"cross",label:{rich:{},formatter:k=>{const{axisDimension:b,value:h}=k;return b==="x"?["6","7","8"].includes(e.cycle)?I.dayjs(h).format("YYYY-MM-DD"):h:String(l(h))}}},formatter:k=>{if(!(k!=null&&k.length))return null;let b="";if(k.forEach(E=>{if(E.seriesName==="netPosition"&&E.data!==null&&(b+=`<div>资产持仓净值: ${E.data[1]}</div>`),E.componentSubType==="candlestick")if(e.sellBuy===0){const X=_.filter(G=>(G==null?void 0:G.coord[0])===E.axisValue);let W=0,$=0;X.forEach(G=>{const{tradeType:ee,amount:ae}=G.customData;ee==="买"&&(W+=ae),ee==="卖"&&($+=ae)}),W&&(b+=`<div>买: ${W}</div>`),$&&(b+=`<div>卖: ${$}</div>`)}else _.forEach(X=>{if((X==null?void 0:X.coord[0])===E.axisValue){const{tradeType:W,amount:$,profitAndLoss:G,openPriceAll:ee,closePriceAll:ae}=X.customData;let te=`<div>${W}: ${$}手</div>`;if(W.includes("开")&&(te+=`<div>开仓价: ${(ee/$).toFixed(2)}</div>`),W.includes("平")){const je=(ee/$).toFixed(2),ze=(ae/$).toFixed(2);te+=`<div>平仓价: ${ze}</div>`,te+=`<div>盈亏: ${G==null?void 0:G.toFixed(2)}</div>`,te+=`<div>盈亏比率: ${((ze-je)/je*100).toFixed(2)} %</div>`}b+=te}})}),!b)return null;let h=k[0].axisValue;return["6","7","8"].includes(e.cycle)&&(h=I.dayjs(h).format("YYYY-MM-DD")),`
2
2
  <div>
3
3
  <span style="font-weight: bold;">${h}</span>
4
4
  ${b}
package/es/KlinePlus.js CHANGED
@@ -1,25 +1,25 @@
1
1
  import "./base-a5af3db3.js";
2
- import { v as ke } from "./el-loading-9b671203.js";
2
+ import { v as ke } from "./el-loading-bcc51e3d.js";
3
3
  import { E as ve } from "./el-empty-33cb66f1.js";
4
- import "./el-tag-bef9e83d.js";
5
- import { E as Ee, a as Se } from "./el-select-4bd0010d.js";
4
+ import "./el-tag-66c83156.js";
5
+ import { E as Ee, a as Se } from "./el-select-44fa547d.js";
6
6
  import "./el-scrollbar-323542e7.js";
7
- import "./el-popper-03988662.js";
7
+ import "./el-popper-fbd0dcea.js";
8
8
  import { openBlock as _, createElementBlock as G, Fragment as fe, renderList as we, normalizeStyle as Qe, toDisplayString as oe, inject as xe, ref as U, onMounted as Oe, nextTick as Pe, watch as ne, onUnmounted as Ce, computed as ue, withDirectives as Re, createElementVNode as K, createVNode as ie, createCommentVNode as ce, withCtx as Fe, createBlock as me } from "vue";
9
9
  import { d as g } from "./dayjs.min-8313b006.js";
10
10
  import * as Ne from "echarts";
11
11
  import { x as be, G as re, D as Ue } from "./index-7ed0999e.js";
12
12
  import { _ as De } from "./_plugin-vue_export-helper-dad06003.js";
13
- import "./use-global-config-0f43458b.js";
14
- import "./use-form-common-props-76a09d89.js";
13
+ import "./use-global-config-ee406d58.js";
14
+ import "./use-form-common-props-ed72e914.js";
15
15
  import "./index-960806da.js";
16
- import "./index-5c44d71a.js";
16
+ import "./index-eb96e074.js";
17
17
  import "./index-d77a7336.js";
18
- import "./index-a83ec4b7.js";
19
- import "./index-102edf6c.js";
20
- import "./index-d1b554ac.js";
18
+ import "./index-8c2d7e05.js";
19
+ import "./index-c5f2d372.js";
20
+ import "./index-1e2a38ab.js";
21
21
  import "./castArray-7741a212.js";
22
- import "./index-5ed42e9c.js";
22
+ import "./index-f034b910.js";
23
23
  import "./scroll-679bd6bf.js";
24
24
  import "./debounce-8d53f4dd.js";
25
25
  import "./vnode-5ddb7ed1.js";
@@ -1 +1 @@
1
- "use strict";const r=require("./index-2d7ac156.cjs");require("./base-ef747d02.cjs");require("vue");require("./el-button-13dc915f.cjs");require("./index-476c4459.cjs");require("./index-f1c702f6.cjs");require("./use-global-config-31b3ec57.cjs");require("./use-form-common-props-02be4928.cjs");require("./index-9780a537.cjs");require("./index-bb833443.cjs");require("./index-cfcd60ca.cjs");require("./index-eea0bcb3.cjs");require("./el-tag-5d5608e0.cjs");require("./el-popper-43ec37f4.cjs");require("./el-select-ec04e7ce.cjs");require("./index-a00e0534.cjs");require("./el-scrollbar-bc3f790d.cjs");require("./index-60c69dd1.cjs");require("./castArray-35947698.cjs");require("./index-cfd00899.cjs");require("./scroll-b108dabd.cjs");require("./debounce-62f5b6e8.cjs");require("./vnode-b906ae6d.cjs");require("./el-input-89222943.cjs");require("./typescript-b63f8e83.cjs");require("./el-tooltip-0ea8fbf8.cjs");require("./index-8901a38c.cjs");require("./VarietySelect-610903f0.cjs");require("./el-autocomplete-16f66b34.cjs");require("./_plugin-vue_export-helper-f246444f.cjs");require("./el-message-0ea8fbf8.cjs");require("./index-c58e90e9.cjs");require("./config-provider-4c784baf.cjs");const i={install(e){e.component("st-monacoEditor",r.MonacoEditor)}};module.exports=i;
1
+ "use strict";const r=require("./index-47c9eb63.cjs");require("./base-ef747d02.cjs");require("vue");require("./el-button-613e0bb2.cjs");require("./index-00f6ca75.cjs");require("./index-f1c702f6.cjs");require("./use-global-config-23472471.cjs");require("./use-form-common-props-ac666630.cjs");require("./index-9780a537.cjs");require("./index-bb833443.cjs");require("./index-5c0dd943.cjs");require("./index-eea0bcb3.cjs");require("./el-tag-9c2f329f.cjs");require("./el-popper-a4f3ae4d.cjs");require("./el-select-70806166.cjs");require("./index-185792a7.cjs");require("./el-scrollbar-bc3f790d.cjs");require("./index-ac8dc53d.cjs");require("./castArray-35947698.cjs");require("./index-870b6c9d.cjs");require("./scroll-b108dabd.cjs");require("./debounce-62f5b6e8.cjs");require("./vnode-b906ae6d.cjs");require("./el-input-9a9a7f7f.cjs");require("./typescript-b63f8e83.cjs");require("./el-tooltip-0ea8fbf8.cjs");require("./index-8901a38c.cjs");require("./VarietySelect-5fee5520.cjs");require("./el-autocomplete-e0857c5b.cjs");require("./_plugin-vue_export-helper-f246444f.cjs");require("./el-message-0ea8fbf8.cjs");require("./index-f58b2920.cjs");require("./config-provider-06ea6b42.cjs");const i={install(e){e.component("st-monacoEditor",r.MonacoEditor)}};module.exports=i;
@@ -1,36 +1,36 @@
1
- import { M as t } from "./index-f3f6ee27.js";
1
+ import { M as t } from "./index-27416486.js";
2
2
  import "./base-a5af3db3.js";
3
3
  import "vue";
4
- import "./el-button-314171a0.js";
5
- import "./index-5c44d71a.js";
4
+ import "./el-button-94d3de38.js";
5
+ import "./index-eb96e074.js";
6
6
  import "./index-2e331d74.js";
7
- import "./use-global-config-0f43458b.js";
8
- import "./use-form-common-props-76a09d89.js";
7
+ import "./use-global-config-ee406d58.js";
8
+ import "./use-form-common-props-ed72e914.js";
9
9
  import "./index-960806da.js";
10
10
  import "./index-d77a7336.js";
11
- import "./index-a83ec4b7.js";
11
+ import "./index-8c2d7e05.js";
12
12
  import "./index-657047bb.js";
13
- import "./el-tag-bef9e83d.js";
14
- import "./el-popper-03988662.js";
15
- import "./el-select-4bd0010d.js";
16
- import "./index-102edf6c.js";
13
+ import "./el-tag-66c83156.js";
14
+ import "./el-popper-fbd0dcea.js";
15
+ import "./el-select-44fa547d.js";
16
+ import "./index-c5f2d372.js";
17
17
  import "./el-scrollbar-323542e7.js";
18
- import "./index-d1b554ac.js";
18
+ import "./index-1e2a38ab.js";
19
19
  import "./castArray-7741a212.js";
20
- import "./index-5ed42e9c.js";
20
+ import "./index-f034b910.js";
21
21
  import "./scroll-679bd6bf.js";
22
22
  import "./debounce-8d53f4dd.js";
23
23
  import "./vnode-5ddb7ed1.js";
24
- import "./el-input-fa1445ad.js";
24
+ import "./el-input-342b2def.js";
25
25
  import "./typescript-7ae59c4c.js";
26
26
  import "./el-tooltip-4ed993c7.js";
27
27
  import "./index-7ed0999e.js";
28
- import "./VarietySelect-6a166293.js";
29
- import "./el-autocomplete-342ae823.js";
28
+ import "./VarietySelect-e563b7a6.js";
29
+ import "./el-autocomplete-6cafcdf1.js";
30
30
  import "./_plugin-vue_export-helper-dad06003.js";
31
31
  import "./el-message-4ed993c7.js";
32
- import "./index-ce21e2ce.js";
33
- import "./config-provider-7a3aca55.js";
32
+ import "./index-5216d5f5.js";
33
+ import "./config-provider-88b637a8.js";
34
34
  const I = {
35
35
  install(o) {
36
36
  o.component("st-monacoEditor", t);
package/es/Pagination.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const i=require("./base-ef747d02.cjs"),V=require("./zh-cn-0edc7234.cjs");require("./el-tag-5d5608e0.cjs");const A=require("./el-select-ec04e7ce.cjs");require("./el-scrollbar-bc3f790d.cjs");const $=require("./el-popper-43ec37f4.cjs"),H=require("./el-input-89222943.cjs"),e=require("vue"),N=require("./index-476c4459.cjs"),B=require("./use-form-common-props-02be4928.cjs"),x=require("./index-bb833443.cjs"),j=require("./typescript-b63f8e83.cjs"),K=require("./index-cfcd60ca.cjs"),G=require("./index-f1c702f6.cjs"),O=require("./_plugin-vue_export-helper-f246444f.cjs");require("./config-provider-4c784baf.cjs");require("./use-global-config-31b3ec57.cjs");require("./index-9780a537.cjs");require("./index-a00e0534.cjs");require("./index-60c69dd1.cjs");require("./castArray-35947698.cjs");require("./index-cfd00899.cjs");require("./scroll-b108dabd.cjs");require("./debounce-62f5b6e8.cjs");require("./vnode-b906ae6d.cjs");const U=Symbol("elPaginationKey"),W=i.buildProps({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:B.iconPropType}}),J={click:a=>a instanceof MouseEvent},R=e.defineComponent({name:"ElPaginationPrev"}),Q=e.defineComponent({...R,props:W,emits:J,setup(a){const u=a,{t:r}=x.useLocale(),s=e.computed(()=>u.disabled||u.currentPage<=1);return(l,d)=>(e.openBlock(),e.createElementBlock("button",{type:"button",class:"btn-prev",disabled:e.unref(s),"aria-label":l.prevText||e.unref(r)("el.pagination.prev"),"aria-disabled":e.unref(s),onClick:f=>l.$emit("click",f)},[l.prevText?(e.openBlock(),e.createElementBlock("span",{key:0},e.toDisplayString(l.prevText),1)):(e.openBlock(),e.createBlock(e.unref(N.ElIcon),{key:1},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.prevIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var X=i._export_sfc(Q,[["__file","prev.vue"]]);const Y=i.buildProps({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:B.iconPropType}}),Z=e.defineComponent({name:"ElPaginationNext"}),ee=e.defineComponent({...Z,props:Y,emits:["click"],setup(a){const u=a,{t:r}=x.useLocale(),s=e.computed(()=>u.disabled||u.currentPage===u.pageCount||u.pageCount===0);return(l,d)=>(e.openBlock(),e.createElementBlock("button",{type:"button",class:"btn-next",disabled:e.unref(s),"aria-label":l.nextText||e.unref(r)("el.pagination.next"),"aria-disabled":e.unref(s),onClick:f=>l.$emit("click",f)},[l.nextText?(e.openBlock(),e.createElementBlock("span",{key:0},e.toDisplayString(l.nextText),1)):(e.openBlock(),e.createBlock(e.unref(N.ElIcon),{key:1},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.nextIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var ae=i._export_sfc(ee,[["__file","next.vue"]]);const L=()=>e.inject(U,{}),ne=i.buildProps({pageSize:{type:Number,required:!0},pageSizes:{type:i.definePropType(Array),default:()=>j.mutable([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:B.componentSizes},appendSizeTo:String}),te=e.defineComponent({name:"ElPaginationSizes"}),re=e.defineComponent({...te,props:ne,emits:["page-size-change"],setup(a,{emit:u}){const r=a,{t:s}=x.useLocale(),l=i.useNamespace("pagination"),d=L(),f=e.ref(r.pageSize);e.watch(()=>r.pageSizes,(c,P)=>{if(!K.isEqual(c,P)&&i.isArray(c)){const p=c.includes(r.pageSize)?r.pageSize:r.pageSizes[0];u("page-size-change",p)}}),e.watch(()=>r.pageSize,c=>{f.value=c});const b=e.computed(()=>r.pageSizes);function C(c){var P;c!==f.value&&(f.value=c,(P=d.handleSizeChange)==null||P.call(d,Number(c)))}return(c,P)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(l).e("sizes"))},[e.createVNode(e.unref(A.ElSelect),{"model-value":f.value,disabled:c.disabled,"popper-class":c.popperClass,size:c.size,teleported:c.teleported,"validate-event":!1,"append-to":c.appendSizeTo,onChange:C},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(b),p=>(e.openBlock(),e.createBlock(e.unref(A.ElOption),{key:p,value:p,label:p+e.unref(s)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported","append-to"])],2))}});var oe=i._export_sfc(re,[["__file","sizes.vue"]]);const le=i.buildProps({size:{type:String,values:B.componentSizes}}),ie=e.defineComponent({name:"ElPaginationJumper"}),ue=e.defineComponent({...ie,props:le,setup(a){const{t:u}=x.useLocale(),r=i.useNamespace("pagination"),{pageCount:s,disabled:l,currentPage:d,changeEvent:f}=L(),b=e.ref(),C=e.computed(()=>{var p;return(p=b.value)!=null?p:d==null?void 0:d.value});function c(p){b.value=p?+p:""}function P(p){p=Math.trunc(+p),f==null||f(p),b.value=void 0}return(p,q)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(r).e("jump")),disabled:e.unref(l)},[e.createElementVNode("span",{class:e.normalizeClass([e.unref(r).e("goto")])},e.toDisplayString(e.unref(u)("el.pagination.goto")),3),e.createVNode(e.unref(H.ElInput),{size:p.size,class:e.normalizeClass([e.unref(r).e("editor"),e.unref(r).is("in-pagination")]),min:1,max:e.unref(s),disabled:e.unref(l),"model-value":e.unref(C),"validate-event":!1,"aria-label":e.unref(u)("el.pagination.page"),type:"number","onUpdate:modelValue":c,onChange:P},null,8,["size","class","max","disabled","model-value","aria-label"]),e.createElementVNode("span",{class:e.normalizeClass([e.unref(r).e("classifier")])},e.toDisplayString(e.unref(u)("el.pagination.pageClassifier")),3)],10,["disabled"]))}});var se=i._export_sfc(ue,[["__file","jumper.vue"]]);const ce=i.buildProps({total:{type:Number,default:1e3}}),pe=e.defineComponent({name:"ElPaginationTotal"}),de=e.defineComponent({...pe,props:ce,setup(a){const{t:u}=x.useLocale(),r=i.useNamespace("pagination"),{disabled:s}=L();return(l,d)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(r).e("total")),disabled:e.unref(s)},e.toDisplayString(e.unref(u)("el.pagination.total",{total:l.total})),11,["disabled"]))}});var ge=i._export_sfc(de,[["__file","total.vue"]]);const fe=i.buildProps({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),me=e.defineComponent({name:"ElPaginationPager"}),be=e.defineComponent({...me,props:fe,emits:[$.CHANGE_EVENT],setup(a,{emit:u}){const r=a,s=i.useNamespace("pager"),l=i.useNamespace("icon"),{t:d}=x.useLocale(),f=e.ref(!1),b=e.ref(!1),C=e.ref(!1),c=e.ref(!1),P=e.ref(!1),p=e.ref(!1),q=e.computed(()=>{const o=r.pagerCount,n=(o-1)/2,t=Number(r.currentPage),v=Number(r.pageCount);let m=!1,k=!1;v>o&&(t>o-n&&(m=!0),t<v-n&&(k=!0));const S=[];if(m&&!k){const h=v-(o-2);for(let y=h;y<v;y++)S.push(y)}else if(!m&&k)for(let h=2;h<o;h++)S.push(h);else if(m&&k){const h=Math.floor(o/2)-1;for(let y=t-h;y<=t+h;y++)S.push(y)}else for(let h=2;h<v;h++)S.push(h);return S}),E=e.computed(()=>["more","btn-quickprev",l.b(),s.is("disabled",r.disabled)]),_=e.computed(()=>["more","btn-quicknext",l.b(),s.is("disabled",r.disabled)]),g=e.computed(()=>r.disabled?-1:0);e.watch(()=>[r.pageCount,r.pagerCount,r.currentPage],([o,n,t])=>{const v=(n-1)/2;let m=!1,k=!1;o>n&&(m=t>n-v,k=t<o-v),C.value&&(C.value=m),c.value&&(c.value=k),f.value=m,b.value=k},{immediate:!0});function T(o=!1){r.disabled||(o?C.value=!0:c.value=!0)}function M(o=!1){o?P.value=!0:p.value=!0}function I(o){const n=o.target;if(n.tagName.toLowerCase()==="li"&&Array.from(n.classList).includes("number")){const t=Number(n.textContent);t!==r.currentPage&&u($.CHANGE_EVENT,t)}else n.tagName.toLowerCase()==="li"&&Array.from(n.classList).includes("more")&&D(o)}function D(o){const n=o.target;if(n.tagName.toLowerCase()==="ul"||r.disabled)return;let t=Number(n.textContent);const v=r.pageCount,m=r.currentPage,k=r.pagerCount-2;n.className.includes("more")&&(n.className.includes("quickprev")?t=m-k:n.className.includes("quicknext")&&(t=m+k)),Number.isNaN(+t)||(t<1&&(t=1),t>v&&(t=v)),t!==m&&u($.CHANGE_EVENT,t)}return(o,n)=>(e.openBlock(),e.createElementBlock("ul",{class:e.normalizeClass(e.unref(s).b()),onClick:D,onKeyup:e.withKeys(I,["enter"])},[o.pageCount>0?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([[e.unref(s).is("active",o.currentPage===1),e.unref(s).is("disabled",o.disabled)],"number"]),"aria-current":o.currentPage===1,"aria-label":e.unref(d)("el.pagination.currentPage",{pager:1}),tabindex:e.unref(g)}," 1 ",10,["aria-current","aria-label","tabindex"])):e.createCommentVNode("v-if",!0),f.value?(e.openBlock(),e.createElementBlock("li",{key:1,class:e.normalizeClass(e.unref(E)),tabindex:e.unref(g),"aria-label":e.unref(d)("el.pagination.prevPages",{pager:o.pagerCount-2}),onMouseenter:t=>T(!0),onMouseleave:t=>C.value=!1,onFocus:t=>M(!0),onBlur:t=>P.value=!1},[(C.value||P.value)&&!o.disabled?(e.openBlock(),e.createBlock(e.unref(N.d_arrow_left_default),{key:0})):(e.openBlock(),e.createBlock(e.unref(N.more_filled_default),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):e.createCommentVNode("v-if",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(q),t=>(e.openBlock(),e.createElementBlock("li",{key:t,class:e.normalizeClass([[e.unref(s).is("active",o.currentPage===t),e.unref(s).is("disabled",o.disabled)],"number"]),"aria-current":o.currentPage===t,"aria-label":e.unref(d)("el.pagination.currentPage",{pager:t}),tabindex:e.unref(g)},e.toDisplayString(t),11,["aria-current","aria-label","tabindex"]))),128)),b.value?(e.openBlock(),e.createElementBlock("li",{key:2,class:e.normalizeClass(e.unref(_)),tabindex:e.unref(g),"aria-label":e.unref(d)("el.pagination.nextPages",{pager:o.pagerCount-2}),onMouseenter:t=>T(),onMouseleave:t=>c.value=!1,onFocus:t=>M(),onBlur:t=>p.value=!1},[(c.value||p.value)&&!o.disabled?(e.openBlock(),e.createBlock(e.unref(N.d_arrow_right_default),{key:0})):(e.openBlock(),e.createBlock(e.unref(N.more_filled_default),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):e.createCommentVNode("v-if",!0),o.pageCount>1?(e.openBlock(),e.createElementBlock("li",{key:3,class:e.normalizeClass([[e.unref(s).is("active",o.currentPage===o.pageCount),e.unref(s).is("disabled",o.disabled)],"number"]),"aria-current":o.currentPage===o.pageCount,"aria-label":e.unref(d)("el.pagination.currentPage",{pager:o.pageCount}),tabindex:e.unref(g)},e.toDisplayString(o.pageCount),11,["aria-current","aria-label","tabindex"])):e.createCommentVNode("v-if",!0)],42,["onKeyup"]))}});var ve=i._export_sfc(be,[["__file","pager.vue"]]);const z=a=>typeof a!="number",Ce=i.buildProps({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:a=>i.isNumber(a)&&Math.trunc(a)===a&&a>4&&a<22&&a%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:i.definePropType(Array),default:()=>j.mutable([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:B.iconPropType,default:()=>N.arrow_left_default},nextText:{type:String,default:""},nextIcon:{type:B.iconPropType,default:()=>N.arrow_right_default},teleported:{type:Boolean,default:!0},small:Boolean,size:B.useSizeProp,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),Pe={"update:current-page":a=>i.isNumber(a),"update:page-size":a=>i.isNumber(a),"size-change":a=>i.isNumber(a),change:(a,u)=>i.isNumber(a)&&i.isNumber(u),"current-change":a=>i.isNumber(a),"prev-click":a=>i.isNumber(a),"next-click":a=>i.isNumber(a)},F="ElPagination";var ze=e.defineComponent({name:F,props:Ce,emits:Pe,setup(a,{emit:u,slots:r}){const{t:s}=x.useLocale(),l=i.useNamespace("pagination"),d=e.getCurrentInstance().vnode.props||{},f=B.useGlobalSize(),b=e.computed(()=>{var n;return a.small?"small":(n=a.size)!=null?n:f.value});G.useDeprecated({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},e.computed(()=>!!a.small));const C="onUpdate:currentPage"in d||"onUpdate:current-page"in d||"onCurrentChange"in d,c="onUpdate:pageSize"in d||"onUpdate:page-size"in d||"onSizeChange"in d,P=e.computed(()=>{if(z(a.total)&&z(a.pageCount)||!z(a.currentPage)&&!C)return!1;if(a.layout.includes("sizes")){if(z(a.pageCount)){if(!z(a.total)&&!z(a.pageSize)&&!c)return!1}else if(!c)return!1}return!0}),p=e.ref(z(a.defaultPageSize)?10:a.defaultPageSize),q=e.ref(z(a.defaultCurrentPage)?1:a.defaultCurrentPage),E=e.computed({get(){return z(a.pageSize)?p.value:a.pageSize},set(n){z(a.pageSize)&&(p.value=n),c&&(u("update:page-size",n),u("size-change",n))}}),_=e.computed(()=>{let n=0;return z(a.pageCount)?z(a.total)||(n=Math.max(1,Math.ceil(a.total/E.value))):n=a.pageCount,n}),g=e.computed({get(){return z(a.currentPage)?q.value:a.currentPage},set(n){let t=n;n<1?t=1:n>_.value&&(t=_.value),z(a.currentPage)&&(q.value=t),C&&(u("update:current-page",t),u("current-change",t))}});e.watch(_,n=>{g.value>n&&(g.value=n)}),e.watch([g,E],n=>{u($.CHANGE_EVENT,...n)},{flush:"post"});function T(n){g.value=n}function M(n){E.value=n;const t=_.value;g.value>t&&(g.value=t)}function I(){a.disabled||(g.value-=1,u("prev-click",g.value))}function D(){a.disabled||(g.value+=1,u("next-click",g.value))}function o(n,t){n&&(n.props||(n.props={}),n.props.class=[n.props.class,t].join(" "))}return e.provide(U,{pageCount:_,disabled:e.computed(()=>a.disabled),currentPage:g,changeEvent:T,handleSizeChange:M}),()=>{var n,t;if(!P.value)return $.debugWarn(F,s("el.pagination.deprecationWarning")),null;if(!a.layout||a.hideOnSinglePage&&_.value<=1)return null;const v=[],m=[],k=e.h("div",{class:l.e("rightwrapper")},m),S={prev:e.h(X,{disabled:a.disabled,currentPage:g.value,prevText:a.prevText,prevIcon:a.prevIcon,onClick:I}),jumper:e.h(se,{size:b.value}),pager:e.h(ve,{currentPage:g.value,pageCount:_.value,pagerCount:a.pagerCount,onChange:T,disabled:a.disabled}),next:e.h(ae,{disabled:a.disabled,currentPage:g.value,pageCount:_.value,nextText:a.nextText,nextIcon:a.nextIcon,onClick:D}),sizes:e.h(oe,{pageSize:E.value,pageSizes:a.pageSizes,popperClass:a.popperClass,disabled:a.disabled,teleported:a.teleported,size:b.value,appendSizeTo:a.appendSizeTo}),slot:(t=(n=r==null?void 0:r.default)==null?void 0:n.call(r))!=null?t:null,total:e.h(ge,{total:z(a.total)?0:a.total})},h=a.layout.split(",").map(w=>w.trim());let y=!1;return h.forEach(w=>{if(w==="->"){y=!0;return}y?m.push(S[w]):v.push(S[w])}),o(v[0],l.is("first")),o(v[v.length-1],l.is("last")),y&&m.length>0&&(o(m[0],l.is("first")),o(m[m.length-1],l.is("last")),v.push(k)),e.h("div",{class:[l.b(),l.is("background",a.background),l.m(b.value)]},v)}}});const he=i.withInstall(ze);const ke=e.defineComponent({__name:"index",props:{pageData:{type:Object,default:()=>({pageNum:1,pageSize:10})},total:{type:Number,default:0},pageSizes:{type:Array,default:()=>[10,20,30,50]},background:{type:Boolean,default:!0},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"}},emits:["update:pageData","change"],setup(a,{emit:u}){const r=u,s=a,l=e.computed({get(){return s.pageData.pageNum},set(b){r("update:pageData",{...s.pageData,pageNum:b})}}),d=e.computed({get(){return s.pageData.pageSize},set(b){r("update:pageData",{...s.pageData,pageSize:b})}}),f=()=>{r("change",s.pageData)};return(b,C)=>{const c=he,P=V.ElConfigProvider;return e.openBlock(),e.createBlock(P,{locale:e.unref(V.zhCn)},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(c,e.mergeProps({class:"st-pagination",currentPage:l.value,"onUpdate:currentPage":C[0]||(C[0]=p=>l.value=p),"page-size":d.value,"onUpdate:pageSize":C[1]||(C[1]=p=>d.value=p),total:a.total,background:a.background,"page-sizes":a.pageSizes,layout:a.layout},b.$attrs,{onSizeChange:f,onCurrentChange:f}),null,16,["currentPage","page-size","total","background","page-sizes","layout"]),[[e.vShow,a.total]])]),_:1},8,["locale"])}}});const ye=O._export_sfc(ke,[["__scopeId","data-v-61b7745b"]]),_e={install(a){a.component("st-pagination",ye)}};module.exports=_e;
1
+ "use strict";const i=require("./base-ef747d02.cjs"),V=require("./zh-cn-c21d12d8.cjs");require("./el-tag-9c2f329f.cjs");const A=require("./el-select-70806166.cjs");require("./el-scrollbar-bc3f790d.cjs");const $=require("./el-popper-a4f3ae4d.cjs"),H=require("./el-input-9a9a7f7f.cjs"),e=require("vue"),N=require("./index-00f6ca75.cjs"),B=require("./use-form-common-props-ac666630.cjs"),x=require("./index-bb833443.cjs"),j=require("./typescript-b63f8e83.cjs"),K=require("./index-5c0dd943.cjs"),G=require("./index-f1c702f6.cjs"),O=require("./_plugin-vue_export-helper-f246444f.cjs");require("./config-provider-06ea6b42.cjs");require("./use-global-config-23472471.cjs");require("./index-9780a537.cjs");require("./index-185792a7.cjs");require("./index-ac8dc53d.cjs");require("./castArray-35947698.cjs");require("./index-870b6c9d.cjs");require("./scroll-b108dabd.cjs");require("./debounce-62f5b6e8.cjs");require("./vnode-b906ae6d.cjs");const U=Symbol("elPaginationKey"),W=i.buildProps({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:B.iconPropType}}),J={click:a=>a instanceof MouseEvent},R=e.defineComponent({name:"ElPaginationPrev"}),Q=e.defineComponent({...R,props:W,emits:J,setup(a){const u=a,{t:r}=x.useLocale(),s=e.computed(()=>u.disabled||u.currentPage<=1);return(l,d)=>(e.openBlock(),e.createElementBlock("button",{type:"button",class:"btn-prev",disabled:e.unref(s),"aria-label":l.prevText||e.unref(r)("el.pagination.prev"),"aria-disabled":e.unref(s),onClick:f=>l.$emit("click",f)},[l.prevText?(e.openBlock(),e.createElementBlock("span",{key:0},e.toDisplayString(l.prevText),1)):(e.openBlock(),e.createBlock(e.unref(N.ElIcon),{key:1},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.prevIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var X=i._export_sfc(Q,[["__file","prev.vue"]]);const Y=i.buildProps({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:B.iconPropType}}),Z=e.defineComponent({name:"ElPaginationNext"}),ee=e.defineComponent({...Z,props:Y,emits:["click"],setup(a){const u=a,{t:r}=x.useLocale(),s=e.computed(()=>u.disabled||u.currentPage===u.pageCount||u.pageCount===0);return(l,d)=>(e.openBlock(),e.createElementBlock("button",{type:"button",class:"btn-next",disabled:e.unref(s),"aria-label":l.nextText||e.unref(r)("el.pagination.next"),"aria-disabled":e.unref(s),onClick:f=>l.$emit("click",f)},[l.nextText?(e.openBlock(),e.createElementBlock("span",{key:0},e.toDisplayString(l.nextText),1)):(e.openBlock(),e.createBlock(e.unref(N.ElIcon),{key:1},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.nextIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var ae=i._export_sfc(ee,[["__file","next.vue"]]);const L=()=>e.inject(U,{}),ne=i.buildProps({pageSize:{type:Number,required:!0},pageSizes:{type:i.definePropType(Array),default:()=>j.mutable([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:B.componentSizes},appendSizeTo:String}),te=e.defineComponent({name:"ElPaginationSizes"}),re=e.defineComponent({...te,props:ne,emits:["page-size-change"],setup(a,{emit:u}){const r=a,{t:s}=x.useLocale(),l=i.useNamespace("pagination"),d=L(),f=e.ref(r.pageSize);e.watch(()=>r.pageSizes,(c,P)=>{if(!K.isEqual(c,P)&&i.isArray(c)){const p=c.includes(r.pageSize)?r.pageSize:r.pageSizes[0];u("page-size-change",p)}}),e.watch(()=>r.pageSize,c=>{f.value=c});const b=e.computed(()=>r.pageSizes);function C(c){var P;c!==f.value&&(f.value=c,(P=d.handleSizeChange)==null||P.call(d,Number(c)))}return(c,P)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(l).e("sizes"))},[e.createVNode(e.unref(A.ElSelect),{"model-value":f.value,disabled:c.disabled,"popper-class":c.popperClass,size:c.size,teleported:c.teleported,"validate-event":!1,"append-to":c.appendSizeTo,onChange:C},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(b),p=>(e.openBlock(),e.createBlock(e.unref(A.ElOption),{key:p,value:p,label:p+e.unref(s)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported","append-to"])],2))}});var oe=i._export_sfc(re,[["__file","sizes.vue"]]);const le=i.buildProps({size:{type:String,values:B.componentSizes}}),ie=e.defineComponent({name:"ElPaginationJumper"}),ue=e.defineComponent({...ie,props:le,setup(a){const{t:u}=x.useLocale(),r=i.useNamespace("pagination"),{pageCount:s,disabled:l,currentPage:d,changeEvent:f}=L(),b=e.ref(),C=e.computed(()=>{var p;return(p=b.value)!=null?p:d==null?void 0:d.value});function c(p){b.value=p?+p:""}function P(p){p=Math.trunc(+p),f==null||f(p),b.value=void 0}return(p,q)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(r).e("jump")),disabled:e.unref(l)},[e.createElementVNode("span",{class:e.normalizeClass([e.unref(r).e("goto")])},e.toDisplayString(e.unref(u)("el.pagination.goto")),3),e.createVNode(e.unref(H.ElInput),{size:p.size,class:e.normalizeClass([e.unref(r).e("editor"),e.unref(r).is("in-pagination")]),min:1,max:e.unref(s),disabled:e.unref(l),"model-value":e.unref(C),"validate-event":!1,"aria-label":e.unref(u)("el.pagination.page"),type:"number","onUpdate:modelValue":c,onChange:P},null,8,["size","class","max","disabled","model-value","aria-label"]),e.createElementVNode("span",{class:e.normalizeClass([e.unref(r).e("classifier")])},e.toDisplayString(e.unref(u)("el.pagination.pageClassifier")),3)],10,["disabled"]))}});var se=i._export_sfc(ue,[["__file","jumper.vue"]]);const ce=i.buildProps({total:{type:Number,default:1e3}}),pe=e.defineComponent({name:"ElPaginationTotal"}),de=e.defineComponent({...pe,props:ce,setup(a){const{t:u}=x.useLocale(),r=i.useNamespace("pagination"),{disabled:s}=L();return(l,d)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(e.unref(r).e("total")),disabled:e.unref(s)},e.toDisplayString(e.unref(u)("el.pagination.total",{total:l.total})),11,["disabled"]))}});var ge=i._export_sfc(de,[["__file","total.vue"]]);const fe=i.buildProps({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),me=e.defineComponent({name:"ElPaginationPager"}),be=e.defineComponent({...me,props:fe,emits:[$.CHANGE_EVENT],setup(a,{emit:u}){const r=a,s=i.useNamespace("pager"),l=i.useNamespace("icon"),{t:d}=x.useLocale(),f=e.ref(!1),b=e.ref(!1),C=e.ref(!1),c=e.ref(!1),P=e.ref(!1),p=e.ref(!1),q=e.computed(()=>{const o=r.pagerCount,n=(o-1)/2,t=Number(r.currentPage),v=Number(r.pageCount);let m=!1,k=!1;v>o&&(t>o-n&&(m=!0),t<v-n&&(k=!0));const S=[];if(m&&!k){const h=v-(o-2);for(let y=h;y<v;y++)S.push(y)}else if(!m&&k)for(let h=2;h<o;h++)S.push(h);else if(m&&k){const h=Math.floor(o/2)-1;for(let y=t-h;y<=t+h;y++)S.push(y)}else for(let h=2;h<v;h++)S.push(h);return S}),E=e.computed(()=>["more","btn-quickprev",l.b(),s.is("disabled",r.disabled)]),_=e.computed(()=>["more","btn-quicknext",l.b(),s.is("disabled",r.disabled)]),g=e.computed(()=>r.disabled?-1:0);e.watch(()=>[r.pageCount,r.pagerCount,r.currentPage],([o,n,t])=>{const v=(n-1)/2;let m=!1,k=!1;o>n&&(m=t>n-v,k=t<o-v),C.value&&(C.value=m),c.value&&(c.value=k),f.value=m,b.value=k},{immediate:!0});function T(o=!1){r.disabled||(o?C.value=!0:c.value=!0)}function M(o=!1){o?P.value=!0:p.value=!0}function I(o){const n=o.target;if(n.tagName.toLowerCase()==="li"&&Array.from(n.classList).includes("number")){const t=Number(n.textContent);t!==r.currentPage&&u($.CHANGE_EVENT,t)}else n.tagName.toLowerCase()==="li"&&Array.from(n.classList).includes("more")&&D(o)}function D(o){const n=o.target;if(n.tagName.toLowerCase()==="ul"||r.disabled)return;let t=Number(n.textContent);const v=r.pageCount,m=r.currentPage,k=r.pagerCount-2;n.className.includes("more")&&(n.className.includes("quickprev")?t=m-k:n.className.includes("quicknext")&&(t=m+k)),Number.isNaN(+t)||(t<1&&(t=1),t>v&&(t=v)),t!==m&&u($.CHANGE_EVENT,t)}return(o,n)=>(e.openBlock(),e.createElementBlock("ul",{class:e.normalizeClass(e.unref(s).b()),onClick:D,onKeyup:e.withKeys(I,["enter"])},[o.pageCount>0?(e.openBlock(),e.createElementBlock("li",{key:0,class:e.normalizeClass([[e.unref(s).is("active",o.currentPage===1),e.unref(s).is("disabled",o.disabled)],"number"]),"aria-current":o.currentPage===1,"aria-label":e.unref(d)("el.pagination.currentPage",{pager:1}),tabindex:e.unref(g)}," 1 ",10,["aria-current","aria-label","tabindex"])):e.createCommentVNode("v-if",!0),f.value?(e.openBlock(),e.createElementBlock("li",{key:1,class:e.normalizeClass(e.unref(E)),tabindex:e.unref(g),"aria-label":e.unref(d)("el.pagination.prevPages",{pager:o.pagerCount-2}),onMouseenter:t=>T(!0),onMouseleave:t=>C.value=!1,onFocus:t=>M(!0),onBlur:t=>P.value=!1},[(C.value||P.value)&&!o.disabled?(e.openBlock(),e.createBlock(e.unref(N.d_arrow_left_default),{key:0})):(e.openBlock(),e.createBlock(e.unref(N.more_filled_default),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):e.createCommentVNode("v-if",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(q),t=>(e.openBlock(),e.createElementBlock("li",{key:t,class:e.normalizeClass([[e.unref(s).is("active",o.currentPage===t),e.unref(s).is("disabled",o.disabled)],"number"]),"aria-current":o.currentPage===t,"aria-label":e.unref(d)("el.pagination.currentPage",{pager:t}),tabindex:e.unref(g)},e.toDisplayString(t),11,["aria-current","aria-label","tabindex"]))),128)),b.value?(e.openBlock(),e.createElementBlock("li",{key:2,class:e.normalizeClass(e.unref(_)),tabindex:e.unref(g),"aria-label":e.unref(d)("el.pagination.nextPages",{pager:o.pagerCount-2}),onMouseenter:t=>T(),onMouseleave:t=>c.value=!1,onFocus:t=>M(),onBlur:t=>p.value=!1},[(c.value||p.value)&&!o.disabled?(e.openBlock(),e.createBlock(e.unref(N.d_arrow_right_default),{key:0})):(e.openBlock(),e.createBlock(e.unref(N.more_filled_default),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):e.createCommentVNode("v-if",!0),o.pageCount>1?(e.openBlock(),e.createElementBlock("li",{key:3,class:e.normalizeClass([[e.unref(s).is("active",o.currentPage===o.pageCount),e.unref(s).is("disabled",o.disabled)],"number"]),"aria-current":o.currentPage===o.pageCount,"aria-label":e.unref(d)("el.pagination.currentPage",{pager:o.pageCount}),tabindex:e.unref(g)},e.toDisplayString(o.pageCount),11,["aria-current","aria-label","tabindex"])):e.createCommentVNode("v-if",!0)],42,["onKeyup"]))}});var ve=i._export_sfc(be,[["__file","pager.vue"]]);const z=a=>typeof a!="number",Ce=i.buildProps({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:a=>i.isNumber(a)&&Math.trunc(a)===a&&a>4&&a<22&&a%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:i.definePropType(Array),default:()=>j.mutable([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:B.iconPropType,default:()=>N.arrow_left_default},nextText:{type:String,default:""},nextIcon:{type:B.iconPropType,default:()=>N.arrow_right_default},teleported:{type:Boolean,default:!0},small:Boolean,size:B.useSizeProp,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),Pe={"update:current-page":a=>i.isNumber(a),"update:page-size":a=>i.isNumber(a),"size-change":a=>i.isNumber(a),change:(a,u)=>i.isNumber(a)&&i.isNumber(u),"current-change":a=>i.isNumber(a),"prev-click":a=>i.isNumber(a),"next-click":a=>i.isNumber(a)},F="ElPagination";var ze=e.defineComponent({name:F,props:Ce,emits:Pe,setup(a,{emit:u,slots:r}){const{t:s}=x.useLocale(),l=i.useNamespace("pagination"),d=e.getCurrentInstance().vnode.props||{},f=B.useGlobalSize(),b=e.computed(()=>{var n;return a.small?"small":(n=a.size)!=null?n:f.value});G.useDeprecated({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},e.computed(()=>!!a.small));const C="onUpdate:currentPage"in d||"onUpdate:current-page"in d||"onCurrentChange"in d,c="onUpdate:pageSize"in d||"onUpdate:page-size"in d||"onSizeChange"in d,P=e.computed(()=>{if(z(a.total)&&z(a.pageCount)||!z(a.currentPage)&&!C)return!1;if(a.layout.includes("sizes")){if(z(a.pageCount)){if(!z(a.total)&&!z(a.pageSize)&&!c)return!1}else if(!c)return!1}return!0}),p=e.ref(z(a.defaultPageSize)?10:a.defaultPageSize),q=e.ref(z(a.defaultCurrentPage)?1:a.defaultCurrentPage),E=e.computed({get(){return z(a.pageSize)?p.value:a.pageSize},set(n){z(a.pageSize)&&(p.value=n),c&&(u("update:page-size",n),u("size-change",n))}}),_=e.computed(()=>{let n=0;return z(a.pageCount)?z(a.total)||(n=Math.max(1,Math.ceil(a.total/E.value))):n=a.pageCount,n}),g=e.computed({get(){return z(a.currentPage)?q.value:a.currentPage},set(n){let t=n;n<1?t=1:n>_.value&&(t=_.value),z(a.currentPage)&&(q.value=t),C&&(u("update:current-page",t),u("current-change",t))}});e.watch(_,n=>{g.value>n&&(g.value=n)}),e.watch([g,E],n=>{u($.CHANGE_EVENT,...n)},{flush:"post"});function T(n){g.value=n}function M(n){E.value=n;const t=_.value;g.value>t&&(g.value=t)}function I(){a.disabled||(g.value-=1,u("prev-click",g.value))}function D(){a.disabled||(g.value+=1,u("next-click",g.value))}function o(n,t){n&&(n.props||(n.props={}),n.props.class=[n.props.class,t].join(" "))}return e.provide(U,{pageCount:_,disabled:e.computed(()=>a.disabled),currentPage:g,changeEvent:T,handleSizeChange:M}),()=>{var n,t;if(!P.value)return $.debugWarn(F,s("el.pagination.deprecationWarning")),null;if(!a.layout||a.hideOnSinglePage&&_.value<=1)return null;const v=[],m=[],k=e.h("div",{class:l.e("rightwrapper")},m),S={prev:e.h(X,{disabled:a.disabled,currentPage:g.value,prevText:a.prevText,prevIcon:a.prevIcon,onClick:I}),jumper:e.h(se,{size:b.value}),pager:e.h(ve,{currentPage:g.value,pageCount:_.value,pagerCount:a.pagerCount,onChange:T,disabled:a.disabled}),next:e.h(ae,{disabled:a.disabled,currentPage:g.value,pageCount:_.value,nextText:a.nextText,nextIcon:a.nextIcon,onClick:D}),sizes:e.h(oe,{pageSize:E.value,pageSizes:a.pageSizes,popperClass:a.popperClass,disabled:a.disabled,teleported:a.teleported,size:b.value,appendSizeTo:a.appendSizeTo}),slot:(t=(n=r==null?void 0:r.default)==null?void 0:n.call(r))!=null?t:null,total:e.h(ge,{total:z(a.total)?0:a.total})},h=a.layout.split(",").map(w=>w.trim());let y=!1;return h.forEach(w=>{if(w==="->"){y=!0;return}y?m.push(S[w]):v.push(S[w])}),o(v[0],l.is("first")),o(v[v.length-1],l.is("last")),y&&m.length>0&&(o(m[0],l.is("first")),o(m[m.length-1],l.is("last")),v.push(k)),e.h("div",{class:[l.b(),l.is("background",a.background),l.m(b.value)]},v)}}});const he=i.withInstall(ze);const ke=e.defineComponent({__name:"index",props:{pageData:{type:Object,default:()=>({pageNum:1,pageSize:10})},total:{type:Number,default:0},pageSizes:{type:Array,default:()=>[10,20,30,50]},background:{type:Boolean,default:!0},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"}},emits:["update:pageData","change"],setup(a,{emit:u}){const r=u,s=a,l=e.computed({get(){return s.pageData.pageNum},set(b){r("update:pageData",{...s.pageData,pageNum:b})}}),d=e.computed({get(){return s.pageData.pageSize},set(b){r("update:pageData",{...s.pageData,pageSize:b})}}),f=()=>{r("change",s.pageData)};return(b,C)=>{const c=he,P=V.ElConfigProvider;return e.openBlock(),e.createBlock(P,{locale:e.unref(V.zhCn)},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(c,e.mergeProps({class:"st-pagination",currentPage:l.value,"onUpdate:currentPage":C[0]||(C[0]=p=>l.value=p),"page-size":d.value,"onUpdate:pageSize":C[1]||(C[1]=p=>d.value=p),total:a.total,background:a.background,"page-sizes":a.pageSizes,layout:a.layout},b.$attrs,{onSizeChange:f,onCurrentChange:f}),null,16,["currentPage","page-size","total","background","page-sizes","layout"]),[[e.vShow,a.total]])]),_:1},8,["locale"])}}});const ye=O._export_sfc(ke,[["__scopeId","data-v-61b7745b"]]),_e={install(a){a.component("st-pagination",ye)}};module.exports=_e;