st-comp 0.0.276 → 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 (627) 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 +7 -7
  491. package/es/VarietyAiHelper.js +306 -279
  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 +30 -30
  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/{aiTools-d7bd47c3.js → aiTools-a3b095f6.js} +19 -19
  505. package/es/aiTools-f36136a4.cjs +2 -0
  506. package/es/aiTools.js +4 -0
  507. package/es/{config-provider-4c784baf.cjs → config-provider-06ea6b42.cjs} +1 -1
  508. package/es/{config-provider-7a3aca55.js → config-provider-88b637a8.js} +3 -3
  509. package/es/{dropdown-987c47fb.cjs → dropdown-4ce4c3e2.cjs} +1 -1
  510. package/es/{dropdown-01e09205.js → dropdown-72fbc15d.js} +2 -2
  511. package/es/{el-autocomplete-342ae823.js → el-autocomplete-6cafcdf1.js} +5 -5
  512. package/es/{el-autocomplete-16f66b34.cjs → el-autocomplete-e0857c5b.cjs} +1 -1
  513. package/es/{el-button-13dc915f.cjs → el-button-613e0bb2.cjs} +1 -1
  514. package/es/{el-button-314171a0.js → el-button-94d3de38.js} +3 -3
  515. package/es/{el-checkbox-5899681f.js → el-checkbox-6d4cb393.js} +3 -3
  516. package/es/{el-checkbox-bdf64663.cjs → el-checkbox-e90762df.cjs} +1 -1
  517. package/es/{el-dialog-0ef95df6.cjs → el-dialog-02942e22.cjs} +1 -1
  518. package/es/{el-dialog-86a3eec2.js → el-dialog-5e30161f.js} +4 -4
  519. package/es/{el-form-item-77ef6784.cjs → el-form-item-44f060d8.cjs} +1 -1
  520. package/es/{el-form-item-cda4d93c.js → el-form-item-9e8969ea.js} +5 -5
  521. package/es/{el-input-fa1445ad.js → el-input-342b2def.js} +13 -13
  522. package/es/{el-input-89222943.cjs → el-input-9a9a7f7f.cjs} +1 -1
  523. package/es/{el-input-number-d3338e5e.cjs → el-input-number-65c847d6.cjs} +1 -1
  524. package/es/{el-input-number-8f6dbf74.js → el-input-number-c22b803a.js} +35 -35
  525. package/es/{el-loading-84dde1a8.cjs → el-loading-8179b497.cjs} +1 -1
  526. package/es/{el-loading-9b671203.js → el-loading-bcc51e3d.js} +1 -1
  527. package/es/{el-menu-item-535fef90.js → el-menu-item-339baf6d.js} +21 -21
  528. package/es/{el-menu-item-4531fd0e.cjs → el-menu-item-83186444.cjs} +1 -1
  529. package/es/{el-message-box-621ed2f1.js → el-message-box-035b699c.js} +9 -9
  530. package/es/{el-message-box-f5717070.cjs → el-message-box-c62d3217.cjs} +1 -1
  531. package/es/{el-overlay-23de4324.js → el-overlay-3e17604b.js} +3 -3
  532. package/es/{el-overlay-151708cb.cjs → el-overlay-8f1da9e8.cjs} +1 -1
  533. package/es/{el-popconfirm-b8aa490e.cjs → el-popconfirm-4e32ec1b.cjs} +1 -1
  534. package/es/{el-popconfirm-bcff0aa5.js → el-popconfirm-f8a86e2c.js} +4 -4
  535. package/es/{el-popper-43ec37f4.cjs → el-popper-a4f3ae4d.cjs} +1 -1
  536. package/es/{el-popper-03988662.js → el-popper-fbd0dcea.js} +1 -1
  537. package/es/{el-segmented-db3a86be.js → el-segmented-56bd58a8.js} +2 -2
  538. package/es/{el-segmented-79a1367c.cjs → el-segmented-833ac177.cjs} +1 -1
  539. package/es/{el-select-4bd0010d.js → el-select-44fa547d.js} +8 -8
  540. package/es/{el-select-ec04e7ce.cjs → el-select-70806166.cjs} +1 -1
  541. package/es/{el-table-column-35e47229.cjs → el-table-column-3e2cdfca.cjs} +1 -1
  542. package/es/{el-table-column-7af2bec7.js → el-table-column-b74a857d.js} +9 -9
  543. package/es/{el-tag-bef9e83d.js → el-tag-66c83156.js} +2 -2
  544. package/es/{el-tag-5d5608e0.cjs → el-tag-9c2f329f.cjs} +1 -1
  545. package/es/{el-text-f998902c.js → el-text-034bd3f4.js} +1 -1
  546. package/es/{el-text-abf10fdf.cjs → el-text-6b2374bb.cjs} +1 -1
  547. package/es/index-00f6ca75.cjs +1 -0
  548. package/es/{index-a00e0534.cjs → index-185792a7.cjs} +1 -1
  549. package/es/{index-d1b554ac.js → index-1e2a38ab.js} +2 -2
  550. package/es/{index-f3f6ee27.js → index-27416486.js} +9 -9
  551. package/es/{index-2d7ac156.cjs → index-47c9eb63.cjs} +2 -2
  552. package/es/{index-0986e373.cjs → index-4cd74df9.cjs} +1 -1
  553. package/es/{index-ce21e2ce.js → index-5216d5f5.js} +5 -5
  554. package/es/{index-cfcd60ca.cjs → index-5c0dd943.cjs} +1 -1
  555. package/es/{index-cfd00899.cjs → index-870b6c9d.cjs} +1 -1
  556. package/es/{index-a83ec4b7.js → index-8c2d7e05.js} +1 -1
  557. package/es/{index-db846633.cjs → index-9d16cea8.cjs} +1 -1
  558. package/es/{index-936e7dec.js → index-a9785a4f.js} +1 -1
  559. package/es/{index-60c69dd1.cjs → index-ac8dc53d.cjs} +1 -1
  560. package/es/{index-102edf6c.js → index-c5f2d372.js} +2 -2
  561. package/es/{index-6290ae0f.js → index-c6584658.js} +2 -2
  562. package/es/{index-5c44d71a.js → index-eb96e074.js} +149 -119
  563. package/es/{index-5ed42e9c.js → index-f034b910.js} +2 -2
  564. package/es/{index-c58e90e9.cjs → index-f58b2920.cjs} +1 -1
  565. package/es/{python-71f59893.cjs → python-2623e545.cjs} +1 -1
  566. package/es/{python-6cc6ec1b.js → python-85a62852.js} +17 -17
  567. package/es/style.css +1 -1
  568. package/es/{use-form-common-props-02be4928.cjs → use-form-common-props-ac666630.cjs} +1 -1
  569. package/es/{use-form-common-props-76a09d89.js → use-form-common-props-ed72e914.js} +11 -11
  570. package/es/{use-global-config-31b3ec57.cjs → use-global-config-23472471.cjs} +1 -1
  571. package/es/{use-global-config-0f43458b.js → use-global-config-ee406d58.js} +2 -2
  572. package/es/{validator-ea292506.cjs → validator-366dbf39.cjs} +1 -1
  573. package/es/{validator-0e037618.js → validator-c60a8956.js} +1 -1
  574. package/es/{zh-cn-1227eb8a.js → zh-cn-b59a0910.js} +1 -1
  575. package/es/{zh-cn-0edc7234.cjs → zh-cn-c21d12d8.cjs} +1 -1
  576. package/introduce.md +41 -0
  577. package/lib/aiTools.js +4 -0
  578. package/lib/bundle.js +1 -1
  579. package/lib/bundle.umd.cjs +189 -189
  580. package/lib/{index-8b55d8c8.js → index-72506c43.js} +20695 -20434
  581. package/lib/{python-f164f783.js → python-d3119b5a.js} +1 -1
  582. package/lib/style.css +1 -1
  583. package/package.json +9 -2
  584. package/packages/CustomFunction/components/ManageDialog.vue +300 -3
  585. package/packages/VarietyAiHelper/index.vue +42 -6
  586. package/public/aiTools.js +4 -0
  587. package/src/App.vue +16 -16
  588. package/tests/components/ChartLayout.spec.ts +67 -0
  589. package/tests/components/ConfigProvider.spec.ts +99 -0
  590. package/tests/components/Contextmenu.spec.ts +79 -0
  591. package/tests/components/CustomFunction.spec.ts +185 -0
  592. package/tests/components/FactorWarning.spec.ts +287 -0
  593. package/tests/components/HeatMap.spec.ts +83 -0
  594. package/tests/components/Kline.spec.ts +140 -0
  595. package/tests/components/Kline2.spec.ts +311 -0
  596. package/tests/components/KlineBasic.spec.ts +429 -0
  597. package/tests/components/KlineConfig.spec.ts +278 -0
  598. package/tests/components/KlineNew.spec.ts +278 -0
  599. package/tests/components/KlinePlus.spec.ts +284 -0
  600. package/tests/components/LinearLegend.spec.ts +69 -0
  601. package/tests/components/ManageDialog.spec.ts +253 -0
  602. package/tests/components/Map.spec.ts +71 -0
  603. package/tests/components/MonacoEditor.spec.ts +530 -0
  604. package/tests/components/Pagination.spec.ts +59 -0
  605. package/tests/components/PasswordPrompt.spec.ts +72 -0
  606. package/tests/components/Pie.spec.ts +96 -0
  607. package/tests/components/Table.spec.ts +186 -0
  608. package/tests/components/TreeMap.spec.ts +100 -0
  609. package/tests/components/User.spec.ts +130 -0
  610. package/tests/components/VarSelectDialog.spec.ts +131 -0
  611. package/tests/components/VarietyAiHelper.spec.ts +164 -0
  612. package/tests/components/VarietyAutoComplete.spec.ts +110 -0
  613. package/tests/components/VarietySearch.spec.ts +526 -0
  614. package/tests/components/VarietyTextCopy.spec.ts +86 -0
  615. package/tests/components/VirtualTable.spec.ts +285 -0
  616. package/tests/helpers/mountWithPlugins.ts +19 -0
  617. package/tests/mocks/echarts.kline.mock.ts +41 -0
  618. package/tests/mocks/echarts.mock.ts +38 -0
  619. package/tests/mocks/monaco.mock.ts +37 -0
  620. package/tests/mocks/st-func.mock.ts +52 -0
  621. package/tests/mocks/talib.mock.ts +13 -0
  622. package/tests/setup.ts +65 -0
  623. package/tests/smoke.spec.ts +12 -0
  624. package/vitest.config.ts +56 -0
  625. package/workflow.md +33 -0
  626. package/es/aiTools-9fd42de8.cjs +0 -2
  627. package/es/index-476c4459.cjs +0 -1
@@ -0,0 +1,210 @@
1
+ /* eslint-disable */
2
+ var addSorting = (function() {
3
+ 'use strict';
4
+ var cols,
5
+ currentSort = {
6
+ index: 0,
7
+ desc: false
8
+ };
9
+
10
+ // returns the summary table element
11
+ function getTable() {
12
+ return document.querySelector('.coverage-summary');
13
+ }
14
+ // returns the thead element of the summary table
15
+ function getTableHeader() {
16
+ return getTable().querySelector('thead tr');
17
+ }
18
+ // returns the tbody element of the summary table
19
+ function getTableBody() {
20
+ return getTable().querySelector('tbody');
21
+ }
22
+ // returns the th element for nth column
23
+ function getNthColumn(n) {
24
+ return getTableHeader().querySelectorAll('th')[n];
25
+ }
26
+
27
+ function onFilterInput() {
28
+ const searchValue = document.getElementById('fileSearch').value;
29
+ const rows = document.getElementsByTagName('tbody')[0].children;
30
+
31
+ // Try to create a RegExp from the searchValue. If it fails (invalid regex),
32
+ // it will be treated as a plain text search
33
+ let searchRegex;
34
+ try {
35
+ searchRegex = new RegExp(searchValue, 'i'); // 'i' for case-insensitive
36
+ } catch (error) {
37
+ searchRegex = null;
38
+ }
39
+
40
+ for (let i = 0; i < rows.length; i++) {
41
+ const row = rows[i];
42
+ let isMatch = false;
43
+
44
+ if (searchRegex) {
45
+ // If a valid regex was created, use it for matching
46
+ isMatch = searchRegex.test(row.textContent);
47
+ } else {
48
+ // Otherwise, fall back to the original plain text search
49
+ isMatch = row.textContent
50
+ .toLowerCase()
51
+ .includes(searchValue.toLowerCase());
52
+ }
53
+
54
+ row.style.display = isMatch ? '' : 'none';
55
+ }
56
+ }
57
+
58
+ // loads the search box
59
+ function addSearchBox() {
60
+ var template = document.getElementById('filterTemplate');
61
+ var templateClone = template.content.cloneNode(true);
62
+ templateClone.getElementById('fileSearch').oninput = onFilterInput;
63
+ template.parentElement.appendChild(templateClone);
64
+ }
65
+
66
+ // loads all columns
67
+ function loadColumns() {
68
+ var colNodes = getTableHeader().querySelectorAll('th'),
69
+ colNode,
70
+ cols = [],
71
+ col,
72
+ i;
73
+
74
+ for (i = 0; i < colNodes.length; i += 1) {
75
+ colNode = colNodes[i];
76
+ col = {
77
+ key: colNode.getAttribute('data-col'),
78
+ sortable: !colNode.getAttribute('data-nosort'),
79
+ type: colNode.getAttribute('data-type') || 'string'
80
+ };
81
+ cols.push(col);
82
+ if (col.sortable) {
83
+ col.defaultDescSort = col.type === 'number';
84
+ colNode.innerHTML =
85
+ colNode.innerHTML + '<span class="sorter"></span>';
86
+ }
87
+ }
88
+ return cols;
89
+ }
90
+ // attaches a data attribute to every tr element with an object
91
+ // of data values keyed by column name
92
+ function loadRowData(tableRow) {
93
+ var tableCols = tableRow.querySelectorAll('td'),
94
+ colNode,
95
+ col,
96
+ data = {},
97
+ i,
98
+ val;
99
+ for (i = 0; i < tableCols.length; i += 1) {
100
+ colNode = tableCols[i];
101
+ col = cols[i];
102
+ val = colNode.getAttribute('data-value');
103
+ if (col.type === 'number') {
104
+ val = Number(val);
105
+ }
106
+ data[col.key] = val;
107
+ }
108
+ return data;
109
+ }
110
+ // loads all row data
111
+ function loadData() {
112
+ var rows = getTableBody().querySelectorAll('tr'),
113
+ i;
114
+
115
+ for (i = 0; i < rows.length; i += 1) {
116
+ rows[i].data = loadRowData(rows[i]);
117
+ }
118
+ }
119
+ // sorts the table using the data for the ith column
120
+ function sortByIndex(index, desc) {
121
+ var key = cols[index].key,
122
+ sorter = function(a, b) {
123
+ a = a.data[key];
124
+ b = b.data[key];
125
+ return a < b ? -1 : a > b ? 1 : 0;
126
+ },
127
+ finalSorter = sorter,
128
+ tableBody = document.querySelector('.coverage-summary tbody'),
129
+ rowNodes = tableBody.querySelectorAll('tr'),
130
+ rows = [],
131
+ i;
132
+
133
+ if (desc) {
134
+ finalSorter = function(a, b) {
135
+ return -1 * sorter(a, b);
136
+ };
137
+ }
138
+
139
+ for (i = 0; i < rowNodes.length; i += 1) {
140
+ rows.push(rowNodes[i]);
141
+ tableBody.removeChild(rowNodes[i]);
142
+ }
143
+
144
+ rows.sort(finalSorter);
145
+
146
+ for (i = 0; i < rows.length; i += 1) {
147
+ tableBody.appendChild(rows[i]);
148
+ }
149
+ }
150
+ // removes sort indicators for current column being sorted
151
+ function removeSortIndicators() {
152
+ var col = getNthColumn(currentSort.index),
153
+ cls = col.className;
154
+
155
+ cls = cls.replace(/ sorted$/, '').replace(/ sorted-desc$/, '');
156
+ col.className = cls;
157
+ }
158
+ // adds sort indicators for current column being sorted
159
+ function addSortIndicators() {
160
+ getNthColumn(currentSort.index).className += currentSort.desc
161
+ ? ' sorted-desc'
162
+ : ' sorted';
163
+ }
164
+ // adds event listeners for all sorter widgets
165
+ function enableUI() {
166
+ var i,
167
+ el,
168
+ ithSorter = function ithSorter(i) {
169
+ var col = cols[i];
170
+
171
+ return function() {
172
+ var desc = col.defaultDescSort;
173
+
174
+ if (currentSort.index === i) {
175
+ desc = !currentSort.desc;
176
+ }
177
+ sortByIndex(i, desc);
178
+ removeSortIndicators();
179
+ currentSort.index = i;
180
+ currentSort.desc = desc;
181
+ addSortIndicators();
182
+ };
183
+ };
184
+ for (i = 0; i < cols.length; i += 1) {
185
+ if (cols[i].sortable) {
186
+ // add the click event handler on the th so users
187
+ // dont have to click on those tiny arrows
188
+ el = getNthColumn(i).querySelector('.sorter').parentElement;
189
+ if (el.addEventListener) {
190
+ el.addEventListener('click', ithSorter(i));
191
+ } else {
192
+ el.attachEvent('onclick', ithSorter(i));
193
+ }
194
+ }
195
+ }
196
+ }
197
+ // adds sorting functionality to the UI
198
+ return function() {
199
+ if (!getTable()) {
200
+ return;
201
+ }
202
+ cols = loadColumns();
203
+ loadData();
204
+ addSearchBox();
205
+ addSortIndicators();
206
+ enableUI();
207
+ };
208
+ })();
209
+
210
+ window.addEventListener('load', addSorting);
@@ -0,0 +1,120 @@
1
+ # 测试接口约定(api-design.md)
2
+
3
+ > Phase 2 输出物 | 本项目的"API"指测试体系的公共接口:setup / helpers / mocks 的调用约定
4
+
5
+ ## 1. mountWithPlugins — 统一挂载入口
6
+
7
+ `tests/helpers/mount.ts`
8
+
9
+ ```ts
10
+ import { mount, type MountingOptions } from '@vue/test-utils'
11
+ import ElementPlus from 'element-plus'
12
+
13
+ export function mountWithPlugins(
14
+ component: any,
15
+ options: MountingOptions<any> = {}
16
+ ) {
17
+ return mount(component, {
18
+ global: {
19
+ plugins: [ElementPlus],
20
+ stubs: { transition: false, 'transition-group': false },
21
+ ...(options.global ?? {})
22
+ },
23
+ ...options
24
+ })
25
+ }
26
+ ```
27
+
28
+ 约定:
29
+ - 所有 spec 用 `mountWithPlugins` 替代裸 `mount`,保证 Element Plus 组件真实渲染(测试 el-* 结构)
30
+ - 需要浅渲染时显式传 `shallow: true`
31
+
32
+ ## 2. mocks 模块契约
33
+
34
+ ### 2.1 `tests/mocks/st-func.ts`
35
+
36
+ ```ts
37
+ export const getToken = vi.fn(() => 'mock-token')
38
+ export const getUserData = vi.fn(() => ({ id: 1, name: 'tester', mobile: '13800000000' }))
39
+ export const initRequest = vi.fn()
40
+ export const request = {
41
+ get: vi.fn(() => Promise.resolve({ code: 0, data: [] })),
42
+ post: vi.fn(() => Promise.resolve({ code: 0, data: {} }))
43
+ }
44
+ export const stMath = { /* 按真实 st-func 导出的数学函数签名补齐,返回确定值 */ }
45
+ export const debounce = vi.fn((fn: Function, _wait?: number) => fn) // 同步执行便于断言
46
+ export const addResizeListener = vi.fn()
47
+ export const removeResizeListener = vi.fn()
48
+ ```
49
+
50
+ 用法:spec 顶部 `vi.mock('st-func', async () => await import('../mocks/st-func'))`,然后 `import { request } from 'st-func'` 拿同一引用做调用断言。
51
+
52
+ ### 2.2 `tests/mocks/echarts.ts`
53
+
54
+ ```ts
55
+ export function createEchartsMock() {
56
+ const instance = {
57
+ setOption: vi.fn(),
58
+ resize: vi.fn(),
59
+ dispose: vi.fn(),
60
+ on: vi.fn(),
61
+ off: vi.fn(),
62
+ getOption: vi.fn(() => ({}))
63
+ }
64
+ return {
65
+ init: vi.fn(() => instance),
66
+ __instance: instance // spec 用它断言 setOption 收到的 option
67
+ }
68
+ }
69
+ ```
70
+
71
+ 约定:每个 echarts 系 spec 用 `vi.mock('echarts', () => createEchartsMock())`;断言对象是 `__instance.setOption.mock.calls[0][0]` 的关键字段(series 类型、data 映射),不做全量 option 快照。
72
+
73
+ ### 2.3 `tests/mocks/monaco.ts`
74
+
75
+ ```ts
76
+ export const editorInstance = {
77
+ getValue: vi.fn(() => ''),
78
+ setValue: vi.fn(),
79
+ onDidChangeModelContent: vi.fn(),
80
+ dispose: vi.fn(),
81
+ layout: vi.fn()
82
+ }
83
+ export const monacoMock = {
84
+ editor: { create: vi.fn(() => editorInstance), defineTheme: vi.fn(), setTheme: vi.fn() },
85
+ languages: { register: vi.fn(), setMonarchTokensProvider: vi.fn() }
86
+ }
87
+ ```
88
+
89
+ ### 2.4 `tests/mocks/talib.ts`
90
+
91
+ 指标函数(MA/MACD/KDJ…)统一签名:`(data: number[], period: number) => number[]`,mock 返回长度与输入一致的固定数组,保证 Kline 数据管道可断言。
92
+
93
+ ## 3. setup.ts 全局行为
94
+
95
+ 1. `config.global`:无(由 mountWithPlugins 注入)
96
+ 2. stub:`ElMessage` 各方法、`localStorage`(内存实现)、`ResizeObserver`、`matchMedia`
97
+ 3. canvas:`HTMLCanvasElement.prototype.getContext = vi.fn(() => ({}))`
98
+ 4. 每个用例后 `vi.restoreAllMocks()`(vitest 配置 `restoreMocks: true`)
99
+
100
+ ## 4. spec 文件模板
101
+
102
+ ```ts
103
+ import { describe, it, expect, vi } from 'vitest'
104
+ import { mountWithPlugins } from '../helpers/mount'
105
+ import StPagination from '@package/Pagination/index.vue'
106
+
107
+ vi.mock('st-func', async () => await import('../mocks/st-func'))
108
+
109
+ describe('StPagination', () => {
110
+ it('按 total/pageSize 渲染页数', () => { /* ... */ })
111
+ it('翻页触发 current-change emit', async () => { /* ... */ })
112
+ it('total=0 时边界处理', () => { /* ... */ })
113
+ })
114
+ ```
115
+
116
+ ## 5. 覆盖率度量口径
117
+
118
+ - 统计范围:`packages/**/*.{ts,vue}`(排除 `packages/index.ts`)
119
+ - 通过线:statements ≥ 80%、functions ≥ 80%、lines ≥ 80%、branches ≥ 75%
120
+ - 报告:`text`(终端)+ `html`(coverage/ 目录,本地查看)
@@ -0,0 +1,110 @@
1
+ # 测试架构设计(st-comp)
2
+
3
+ > Phase 2 输出物 | 范围:仅测试体系,不改动现有功能代码
4
+
5
+ ## 1. 目标与约束
6
+
7
+ - 为 packages/ 下 26 个组件补齐单元测试,**语句覆盖率 ≥ 80%**
8
+ - 不改组件源码;测试代码全部放在 `tests/` 独立目录
9
+ - Node v20.18.0 / Vite 4.4 / Vue 3.3 / TS 5 —— 选型须与此兼容
10
+
11
+ ## 2. 技术选型
12
+
13
+ | 用途 | 选型 | 版本约束 | 理由 |
14
+ |---|---|---|---|
15
+ | 测试框架 | **vitest** | ^0.34.x | 与 Vite 4 配套(vitest 1.x 要求 Vite 5);复用 vite.config.ts 的 alias/插件 |
16
+ | 组件挂载 | **@vue/test-utils** | ^2.4.x | Vue 3 官方测试工具 |
17
+ | DOM 环境 | **jsdom** | ^22 | vitest environment |
18
+ | 覆盖率 | **@vitest/coverage-v8** | ^0.34.x | v8 provider,比 istanbul 快且与 vitest 同版本锁定 |
19
+
20
+ 新增 devDependencies 仅此 4 项 + 既有 sass/typescript,不动 dependencies。
21
+
22
+ ## 3. 目录与文件结构
23
+
24
+ ```
25
+ st-comp/
26
+ ├── vitest.config.ts # 独立测试配置(不与 vite.config.ts 耦合,避免加载 ssh 上传插件)
27
+ ├── tests/
28
+ │ ├── setup.ts # 全局 setup:stub 浏览器 API、注册 Element Plus、全局 mock
29
+ │ ├── helpers/
30
+ │ │ ├── mount.ts # mountWithPlugins():统一挂载约定(ElementPlus 全局注册 + stubs)
31
+ │ │ └── mock-data.ts # 公共假数据(K线 OHLC、表格行、品种列表)
32
+ │ ├── mocks/
33
+ │ │ ├── st-func.ts # __mocks__:initRequest/getToken/getUserData/stMath/debounce/addResizeListener
34
+ │ │ ├── echarts.ts # echarts.init 假实例:setOption/resize/dispose/on 记录调用
35
+ │ │ ├── monaco.ts # monaco.editor.create 假实例:getValue/setValue/onDidChangeModelContent
36
+ │ │ └── talib.ts # talib.js 指标函数返回固定数组
37
+ │ └── components/ # 与 packages/ 同构的测试文件
38
+ │ ├── Pagination.spec.ts
39
+ │ ├── Table.spec.ts
40
+ │ └── ...(26 个)
41
+ └── docs/test-plan.md # Phase 5 输出
42
+ ```
43
+
44
+ **为什么测试放 `tests/` 而非组件旁的 `__tests__`**:packages/ 会被 `build:all` 整体打包进 UMD 产物,测试代码与组件物理隔离可确保产物零污染、零配置改动。
45
+
46
+ ## 4. 分层 mock 策略
47
+
48
+ 按外部依赖把 26 个组件分三层(来源:Phase 2 依赖调研):
49
+
50
+ ### L0 纯渲染/逻辑组件(直接挂载,无需重 mock)— 9 个
51
+ Pagination、Table、VirtualTable、ChartLayout、PasswordPrompt、Contextmenu、LinearLegend、Pie(props→option 转换)、VarietyTextCopy
52
+
53
+ 测试重点:props 渲染、emits 触发、插槽、边界值(空数组/越界页码)。
54
+
55
+ ### L1 单依赖组件(mock 1-2 个外部模块)
56
+ - **echarts 系**:HeatMap、TreeMap、Map、FactorWarning → `vi.mock('echarts')`,断言 `setOption` 收到的 option 结构
57
+ - **st-func 系**:ConfigProvider、User、CustomFunction、VarietySearch、VarietyAutoComplete、VarSelectDialog → `vi.mock('st-func')`(统一在 `tests/mocks/st-func.ts`,含登录态/请求函数)
58
+ - **monaco 系**:MonacoEditor → `vi.mock('monaco-editor')` 假实例(jsdom 跑不动真 monaco)
59
+ - **interactjs 系**:VarietyAiHelper(拖拽)→ mock interact()
60
+
61
+ ### L2 复合依赖组件(echarts + talib + st-func + dayjs + localStorage)
62
+ Kline、KlineBasic、KlineNew、KlinePlus、KlineConfig → 组合使用 echarts/talib/st-func 三套 mock + `localStorage` stub + 固定 `dayjs` 时间。策略:**不测渲染像素,只测数据管道**(props→指标计算→option 组装→emits)。
63
+
64
+ ### 全局 stub(tests/setup.ts)
65
+ - `ElMessage` / `ElMessageBox`:vi.fn 替身,断言调用参数
66
+ - `localStorage` / `sessionStorage`:内存实现
67
+ - `location.href` / `matchMedia` / `ResizeObserver`:jsdom 缺失 API 补齐
68
+ - `echarts` 的 canvas 依赖:`HTMLCanvasElement.prototype.getContext` 返回空对象(防御 echarts 未被 mock 的边角路径)
69
+
70
+ ## 5. 配置方案(vitest.config.ts 要点)
71
+
72
+ ```ts
73
+ export default defineConfig({
74
+ plugins: [vue()], // 只挂 vue 插件,不引入 auto-import/ssh 上传插件
75
+ resolve: { alias: { '@': '/src', '@package': '/packages' } },
76
+ test: {
77
+ environment: 'jsdom',
78
+ setupFiles: ['tests/setup.ts'],
79
+ include: ['tests/**/*.spec.ts'],
80
+ coverage: {
81
+ provider: 'v8',
82
+ include: ['packages/**/*.{ts,vue}'],
83
+ exclude: ['packages/index.ts'], // 纯聚合导出
84
+ thresholds: { statements: 80, branches: 75, functions: 80, lines: 80 }
85
+ }
86
+ }
87
+ })
88
+ ```
89
+
90
+ package.json 新增 scripts(追加,不改既有):
91
+ - `"test": "vitest run"`
92
+ - `"test:coverage": "vitest run --coverage"`
93
+
94
+ ## 6. 测试编写约定
95
+
96
+ 1. 每个组件一个 `tests/components/<Name>.spec.ts`
97
+ 2. 命名:`describe('StPagination', ...)` 用注册名
98
+ 3. 每组件至少覆盖:**默认渲染快照断言(结构类)→ props 变体 → 用户交互(trigger/emit)→ 边界 case**
99
+ 4. mock 一律经 `tests/mocks/` 集中管理,禁止在 spec 里散落 `vi.mock` 内联实现(路径用 `vi.mock('st-func', () => ...)` 引用集中文件)
100
+ 5. 禁止 snapshot 全量 html 快照(脆弱),只快照关键结构/option 对象
101
+ 6. 覆盖率按组件目录统计,任一组件 < 80% 语句覆盖即在 test-plan.md 中标注原因
102
+
103
+ ## 7. 风险与对策
104
+
105
+ | 风险 | 对策 |
106
+ |---|---|
107
+ | Kline 系组件逻辑深、依赖 4+ 外部模块,单测成本高 | 拆组件内部子组件(componentsNew/*)分别测;允许以"数据管道"断言替代 DOM 断言 |
108
+ | vue-tsc 对 tests/ 报错 | tsconfig 增加 `tests` include 或独立 tsconfig.test.json |
109
+ | vitest 0.34 与 unplugin-auto-import 生成的 d.ts 冲突 | vitest.config.ts 独立,不加载 auto-import 插件;测试中显式 import vue API |
110
+ | 覆盖率 80% 对个别重 UI 组件不现实 | 阈值全局 80% 兜底;个别组件例外需用户批准并在 test-plan.md 记录 |
package/docs/bugs.md ADDED
@@ -0,0 +1,13 @@
1
+ # Bug & Issue 跟踪
2
+
3
+ > 状态:🔴 未修复 / 🟡 处理中 / ✅ 已修复
4
+ > **规则:发现 Bug 立即追加,修复后更新状态,禁止保留已修复的旧条目不更新**
5
+
6
+ ---
7
+
8
+ <!-- 格式:
9
+ ### BUG-001: 标题
10
+ **状态:** 🔴 未修复
11
+ **描述:** ...
12
+ **修复:** ...
13
+ -->
@@ -0,0 +1,63 @@
1
+ # 需求分析(st-comp 组件库)
2
+
3
+ > Phase 1 输出物 | 日期:2026-07-27 | 状态:待确认
4
+
5
+ ## 1. 项目背景
6
+
7
+ `st-comp` 是一个基于 **Vue 3 + TypeScript + Element Plus** 的业务组件库,以 npm 包(`st-comp`,当前 v0.0.277)形式发布,供内部各前端项目全量引入使用。组件以 `st-xxx` 短横线命名全局注册(如 `<st-table>`)。
8
+
9
+ - 开发/演示:`npm run dev`(src/ 下的 demo 站点)
10
+ - 库打包:`npm run build`(UMD 全量输出到 `lib/`)
11
+ - 发布:`npm publish`
12
+
13
+ ## 2. 功能需求
14
+
15
+ ### 2.1 组件清单(26 个,按类别分组)
16
+
17
+ | 类别 | 组件 | 说明 |
18
+ |---|---|---|
19
+ | K线/图表 | Kline、KlineBasic、KlineNew、KlinePlus、KlineConfig | K 线图系列(基于 echarts / talib.js) |
20
+ | 图表 | ChartLayout、Pie、HeatMap、TreeMap、LinearLegend、Map、FactorWarning | 通用图表与图例、地图、因子预警 |
21
+ | 表格 | Table、VirtualTable | 常规表格、虚拟滚动大表格 |
22
+ | 编辑器/搜索 | MonacoEditor、VarietySearch、VarietyAutoComplete、VarietyTextCopy、VarietyAiHelper、VarSelectDialog | 代码编辑器、品种搜索/自动补全/文本复制/AI 助手/选择弹窗 |
23
+ | 基础/通用 | ConfigProvider、Contextmenu、CustomFunction、Pagination、PasswordPrompt、User | 全局配置、右键菜单、自定义函数、分页、密码弹窗、用户信息 |
24
+
25
+ ### 2.2 库级能力
26
+
27
+ 1. **全量引入**:`app.use(stComp)` 一键注册全部组件(`packages/index.ts` 聚合导出,由 vitePlugins/createExportFile 自动生成)。
28
+ 2. **样式分发**:构建产物包含 `lib/style.css`,使用方需显式引入。
29
+ 3. **依赖外置**:vue、element-plus、axios、echarts 等 10+ 依赖在 UMD 构建中标记 external,由使用方提供。
30
+ 4. **按需引入(待建设)**:`build:split` 目前仅占位(`echo 123`),README 明确"只支持全量引入"。
31
+ 5. **演示/文档站**:`src/` 为 demo 站点,`src/assets/json/组件库.md` 为组件使用文档源。
32
+
33
+ ### 2.3 工程化
34
+
35
+ 1. 自动生成聚合导出文件(createExportFile 插件)。
36
+ 2. 构建后经 SFTP 自动上传测试服务器(testRelese 插件)——⚠️ 当前硬编码了服务器密码,属安全隐患(Phase 7 处理)。
37
+ 3. 自动导入(unplugin-auto-import)与组件自动注册(unplugin-vue-components)。
38
+
39
+ ## 3. 非功能需求
40
+
41
+ | 类别 | 需求 |
42
+ |---|---|
43
+ | 技术栈 | Vue 3.3+、TypeScript 5、Vite 4、Element Plus 2.x、sass |
44
+ | 兼容性 | 现代浏览器(Vite 默认 baseline);Vue 3 only,不支持 Vue 2 |
45
+ | 测试 | 单元测试覆盖率 ≥ 80%(workflow 规定),当前**尚无测试基建**(无 vitest/jest 依赖) |
46
+ | 代码质量 | 充分的代码注释;commit 遵循 `<type>: <描述>` 规范 |
47
+ | 安全 | Phase 7 做 OWASP Top 10 排查;已发现硬编码密码问题 |
48
+ | 文档 | 全部 Markdown 存于 `docs/`;组件使用文档维护于 demo 站 |
49
+ | 发布 | npm 公开发布(`"public": true`),版本号语义化管理 |
50
+
51
+ ## 4. 范围确认(用户已拍板)
52
+
53
+ **本次工作范围:基于现有代码,只补测试,不做功能改动。** 即:
54
+
55
+ - ✅ 补齐测试基建(vitest + @vue/test-utils + 覆盖率工具)
56
+ - ✅ 为 26 个组件编写单元测试,目标覆盖率 ≥ 80%
57
+ - ❌ 不实现 `build:split` 按需引入
58
+ - ❌ 不改组件功能代码、不重构、不补 `.d.ts` 构建
59
+ - ⚠️ 硬编码密码问题仅在 Phase 7 安全报告中记录,不修改
60
+
61
+ ---
62
+
63
+ **请确认以上需求梳理是否完整、准确;确认后进入 Phase 2(架构设计)。**
package/docs/review.md ADDED
@@ -0,0 +1,80 @@
1
+ # 测试代码审查(review)
2
+
3
+ > 审查时间:2026-07-28
4
+ > 审查范围:tests/components/*.spec.ts(27 个)、tests/mocks/*、tests/helpers/*
5
+ > 审查标准:mock 集中度 / 断言精度 / 脆弱快照 / 行为 vs 实现 / 隔离性
6
+
7
+ ## 1. 总体评价
8
+
9
+ 测试代码整体质量良好:无快照滥用、mock 集中在 mocks/ 目录、断言以行为为主(DOM/emit/expose 方法调用)、未改动 packages/ 源码。存在少量可改进点,均为 should-fix 级别。
10
+
11
+ ## 2. 优点(保持)
12
+
13
+ - **mock 集中**:echarts / monaco / st-func / talib 统一放在 `tests/mocks/`,spec 通过 `vi.mock('echarts', () => import('@test/mocks/echarts.kline.mock.ts'))` 引用,无散落 mock
14
+ - **无脆弱快照**:27 个 spec 均未使用 `toMatchSnapshot`,断言基于具体值或行为
15
+ - **行为断言为主**:断言 emit 事件、DOM 文本、expose 方法调用结果,而非内部实现细节
16
+ - **隔离性好**:每个 spec 独立 mount,无跨用例状态共享
17
+ - **约束遵守**:`git diff packages/` 为空,所有修复通过调整测试或 mock 实现
18
+
19
+ ## 3. 发现的问题
20
+
21
+ ### [should-fix] KlinePlus.spec.ts: 连续 3 次 `flushPromises()` 过多
22
+
23
+ **位置**:`tests/components/KlinePlus.spec.ts` 多个用例(共 46 处 flushPromises)
24
+
25
+ **问题**:为等待 echarts 初始化 + request 回调 + setOption 链,连续写 3 次 `await flushPromises()`,语义不清且增加维护成本。
26
+
27
+ **建议**:封装 `await flushChart()` helper:
28
+ ```ts
29
+ // tests/helpers/flushChart.ts
30
+ export async function flushChart(times = 3) {
31
+ for (let i = 0; i < times; i++) await flushPromises()
32
+ }
33
+ ```
34
+ 或在 echarts mock 中让 `init` 同步触发,减少异步层级。
35
+
36
+ ### [should-fix] User.spec.ts: 11 处 `vi.mock` 过于密集
37
+
38
+ **位置**:`tests/components/User.spec.ts`
39
+
40
+ **问题**:单文件 11 个 `vi.mock` 调用,mock 了过多内部依赖,测试与实现耦合度高。
41
+
42
+ **建议**:检查是否所有 mock 都必要;考虑将部分 mock 收敛到 `tests/mocks/user.mock.ts`,spec 只保留 1-2 个顶层 `vi.mock`。
43
+
44
+ ### [nit] 部分 spec 通过 `wrapper.vm.xxx` 直接访问内部状态
45
+
46
+ **位置**:共 7 处(如 `wrapper.vm.klineData`、`wrapper.vm.mainTips`)
47
+
48
+ **问题**:直接读组件内部 ref/computed,属于实现细节断言。当内部命名变化时测试会脆断。
49
+
50
+ **建议**:优先断言 DOM 表现或 emit 事件;确需访问内部状态时,通过 `defineExpose` 暴露并在 spec 中调用 expose 方法。
51
+
52
+ ### [nit] Contextmenu branch 覆盖率 45.45% 偏低
53
+
54
+ **位置**:`tests/components/Contextmenu.spec.ts`
55
+
56
+ **问题**:分支覆盖率低于 50%,大量条件分支(如 `attachTo` 边界、嵌套菜单展开)未覆盖。
57
+
58
+ **建议**:补 2-3 个分支用例(空菜单、禁用项、嵌套 hover)。不阻塞当前发布,全局 branch 82.09% 已达标。
59
+
60
+ ## 4. 断言精度抽查
61
+
62
+ 抽查高断言数文件:
63
+
64
+ | 文件 | 断言数 | 精度评价 |
65
+ |------|--------|----------|
66
+ | VarietySearch.spec.ts | 85 | 精确(具体值/事件 payload) |
67
+ | KlineBasic.spec.ts | 70 | 精确(expose 方法返回值) |
68
+ | KlineConfig.spec.ts | 52 | 精确(emit payload 深比较) |
69
+ | MonacoEditor.spec.ts | 51 | 精确(monaco 实例方法调用参数) |
70
+ | KlineNew.spec.ts | 47 | 精确(子组件 props 传递) |
71
+
72
+ 未发现"包含 X 子串"式宽松断言。
73
+
74
+ ## 5. 结论
75
+
76
+ - **无 must-fix**:测试代码可随当前版本发布
77
+ - **should-fix 3 项**:flushPromises 封装、User.spec mock 收敛、wrapper.vm 直接访问
78
+ - **nit 1 项**:Contextmenu branch 补测
79
+
80
+ 建议将 should-fix 项纳入下一迭代(Phase 8 或维护窗口),不影响当前 Phase 4-5 验收。
@@ -0,0 +1,83 @@
1
+ # 安全审查(security)
2
+
3
+ > 审查时间:2026-07-28
4
+ > 审查范围:st-comp 仓库源码、构建配置、部署脚本
5
+ > 审查标准:OWASP Top 10 / 敏感信息泄露 / 注入风险 / XSS / 依赖安全
6
+
7
+ ## 1. 关键发现
8
+
9
+ ### [must-fix] vitePlugins/testRelese.ts: 硬编码服务器密码
10
+
11
+ **位置**:`vitePlugins/testRelese.ts:23`
12
+
13
+ **问题**:
14
+ ```ts
15
+ password: 'hzst2020', // 服务器登录密码
16
+ ```
17
+ 测试服务器(192.168.12.49)root 密码以明文形式硬编码在源码中,且该文件已提交到 git 仓库。任何能访问仓库的人都能直接 SSH 登录测试服务器。
18
+
19
+ **风险等级**:高(OWASP A02:2021 Cryptographic Failures / A07:2021 Identification and Authentication Failures)
20
+
21
+ **建议修复**:
22
+ 1. **立即**:将密码移至环境变量或 `.env` 文件(`.env` 加入 `.gitignore`):
23
+ ```ts
24
+ password: process.env.TEST_SERVER_PASSWORD || '',
25
+ ```
26
+ 2. **短期**:修改测试服务器 root 密码,避免旧密码在 git 历史中泄露
27
+ 3. **长期**:改用 SSH 密钥认证,禁用密码登录;或使用 CI/CD 变量注入
28
+
29
+ **注意**:git 历史中该密码已存在,仅从 HEAD 删除不够,需评估是否 `git filter-branch` 清理历史。
30
+
31
+ ---
32
+
33
+ ### [should-fix] vite.config.ts: 内网代理地址硬编码
34
+
35
+ **位置**:`vite.config.ts:87`
36
+
37
+ **问题**:
38
+ ```ts
39
+ target: "http://192.168.12.49:88/",
40
+ ```
41
+ 内网测试服务器 IP 硬编码。虽然内网地址泄露风险低于密码,但会暴露内部网络拓扑。
42
+
43
+ **建议**:移至环境变量:
44
+ ```ts
45
+ target: process.env.VITE_PROXY_TARGET || 'http://192.168.12.49:88/',
46
+ ```
47
+
48
+ ---
49
+
50
+ ## 2. 其他检查项
51
+
52
+ | 检查项 | 结果 | 说明 |
53
+ |--------|------|------|
54
+ | XSS / v-html | ✅ 未发现 | 全仓库未使用 `v-html` 渲染用户输入 |
55
+ | 用户输入注入 | ✅ 低风险 | 组件输入通过 props/emit 传递,无直接拼接 SQL/命令 |
56
+ | 敏感字段日志 | ✅ 未发现 | 无 `console.log` 输出密码/token |
57
+ | 依赖漏洞 | ⚠️ 未扫描 | 建议运行 `npm audit` 定期检查 |
58
+ | CSP / 安全头 | N/A | 组件库不直接控制响应头 |
59
+ | 路径穿越 | ✅ 未发现 | 无文件路径操作用户输入 |
60
+
61
+ ## 3. 密码强度逻辑说明
62
+
63
+ `PasswordPrompt/index.vue` 中的密码强度评分逻辑:
64
+ ```ts
65
+ if (password.length >= 8) score++;
66
+ if (password.length >= 12) score++;
67
+ ```
68
+ 这是前端 UI 提示,不构成安全控制。实际密码策略应由后端强制。
69
+
70
+ ## 4. 修复优先级
71
+
72
+ | 优先级 | 项 | 负责人 | 截止 |
73
+ |--------|-----|--------|------|
74
+ | P0 | testRelese.ts 密码环境变量化 + 改服务器密码 | 运维/前端 | 立即 |
75
+ | P1 | vite.config.ts 代理地址环境变量化 | 前端 | 本周 |
76
+ | P2 | `npm audit` 依赖漏洞扫描 | 前端 | 下次发布前 |
77
+
78
+ ## 5. 历史泄露处理
79
+
80
+ testRelese.ts 中的密码 `hzst2020` 已在 git 历史中。建议:
81
+ 1. 修改服务器密码(使旧密码失效)
82
+ 2. 评估是否需要 `git filter-branch` / BFG Repo-Cleaner 清理历史(会改写 commit hash,需团队协调)
83
+ 3. 在 `.gitignore` 中明确排除 `.env*` 文件