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.
- package/.argus/backups/.argus/20260727_072225.525_patch_klinebasic.py +339 -0
- package/.argus/backups/.argus/20260727_072458.864_fix_klinebasic.py +42 -0
- package/.argus/backups/.argus/20260727_072554.676_fix_klinebasic.py +45 -0
- package/.argus/backups/20260727_020847.846_package.json +48 -0
- package/.argus/backups/20260727_021018.627_vitest.config.ts +37 -0
- package/.argus/backups/20260727_021033.462_vitest.config.ts +37 -0
- package/.argus/backups/20260727_021041.704_vitest.config.ts +37 -0
- package/.argus/backups/20260727_021122.389_vitest.config.ts +36 -0
- package/.argus/backups/20260727_021159.250_vitest.config.ts +36 -0
- package/.argus/backups/20260727_065913.421_vitest.config.ts +38 -0
- package/.argus/backups/20260727_071318.099_vitest.config.ts +42 -0
- package/.argus/backups/20260728_005238.495_vitest.config.ts +53 -0
- package/.argus/backups/20260728_005424.767_vitest.config.ts +58 -0
- package/.argus/backups/20260728_005444.216_vitest.config.ts +58 -0
- package/.argus/backups/20260728_005613.603_vitest.config.ts +57 -0
- package/.argus/backups/docs/20260727_012301.521_tasks.md +22 -0
- package/.argus/backups/docs/20260727_013404.413_requirements.md +61 -0
- package/.argus/backups/docs/20260727_013916.866_tasks.md +22 -0
- package/.argus/backups/docs/20260727_015657.696_tasks.md +22 -0
- package/.argus/backups/docs/20260727_015737.998_tasks.md +22 -0
- package/.argus/backups/docs/20260727_021309.668_tasks.md +88 -0
- package/.argus/backups/docs/20260727_023430.573_tasks.md +88 -0
- package/.argus/backups/docs/20260727_031705.498_tasks.md +88 -0
- package/.argus/backups/docs/20260727_033858.862_tasks.md +88 -0
- package/.argus/backups/docs/20260727_033909.221_tasks.md +88 -0
- package/.argus/backups/docs/20260727_065645.168_tasks.md +90 -0
- package/.argus/backups/docs/20260728_005711.090_tasks.md +90 -0
- package/.argus/backups/docs/20260728_093519.026_tasks.md +96 -0
- package/.argus/backups/docs/20260728_093845.838_tasks.md +95 -0
- package/.argus/backups/docs/20260728_093956.037_tasks.md +95 -0
- package/.argus/backups/docs/20260728_094111.219_tasks.md +95 -0
- package/.argus/backups/docs/20260802_082651.083_tasks.md +95 -0
- package/.argus/backups/docs/20260802_082659.919_tasks.md +95 -0
- package/.argus/backups/docs/20260802_082817.843_test-plan.md +119 -0
- package/.argus/backups/docs/20260802_082825.291_test-plan.md +119 -0
- package/.argus/backups/tests/20260727_020937.620_smoke.spec.ts +12 -0
- package/.argus/backups/tests/20260727_021105.040_smoke.spec.ts +12 -0
- package/.argus/backups/tests/20260727_021129.257_smoke.spec.ts +12 -0
- package/.argus/backups/tests/components/20260727_021655.533_Pagination.spec.ts +59 -0
- package/.argus/backups/tests/components/20260727_021718.547_Pagination.spec.ts +59 -0
- package/.argus/backups/tests/components/20260727_021858.422_Table.spec.ts +71 -0
- package/.argus/backups/tests/components/20260727_022144.098_VirtualTable.spec.ts +90 -0
- package/.argus/backups/tests/components/20260727_022154.585_VirtualTable.spec.ts +88 -0
- package/.argus/backups/tests/components/20260727_022225.501_VirtualTable.spec.ts +89 -0
- package/.argus/backups/tests/components/20260727_022502.366_PasswordPrompt.spec.ts +72 -0
- package/.argus/backups/tests/components/20260727_022512.945_PasswordPrompt.spec.ts +72 -0
- package/.argus/backups/tests/components/20260727_023011.481_VarietyTextCopy.spec.ts +86 -0
- package/.argus/backups/tests/components/20260727_023108.189_VarietyTextCopy.spec.ts +89 -0
- package/.argus/backups/tests/components/20260727_024356.151_ConfigProvider.spec.ts +101 -0
- package/.argus/backups/tests/components/20260727_024430.348_ConfigProvider.spec.ts +100 -0
- package/.argus/backups/tests/components/20260727_024635.923_User.spec.ts +82 -0
- package/.argus/backups/tests/components/20260727_024836.707_VarSelectDialog.spec.ts +131 -0
- package/.argus/backups/tests/components/20260727_024852.191_VarSelectDialog.spec.ts +111 -0
- package/.argus/backups/tests/components/20260727_024858.884_VarSelectDialog.spec.ts +130 -0
- package/.argus/backups/tests/components/20260727_024905.552_VarSelectDialog.spec.ts +130 -0
- package/.argus/backups/tests/components/20260727_024935.877_VarSelectDialog.spec.ts +130 -0
- package/.argus/backups/tests/components/20260727_025017.207_VarSelectDialog.spec.ts +131 -0
- package/.argus/backups/tests/components/20260727_025222.178_CustomFunction.spec.ts +107 -0
- package/.argus/backups/tests/components/20260727_025533.944_VarietySearch.spec.ts +238 -0
- package/.argus/backups/tests/components/20260727_025738.354_VarietySearch.spec.ts +233 -0
- package/.argus/backups/tests/components/20260727_025853.506_VarietySearch.spec.ts +242 -0
- package/.argus/backups/tests/components/20260727_030036.628_VarietySearch.spec.ts +242 -0
- package/.argus/backups/tests/components/20260727_030236.640_VarietySearch.spec.ts +244 -0
- package/.argus/backups/tests/components/20260727_030355.487_VarietySearch.spec.ts +253 -0
- package/.argus/backups/tests/components/20260727_031231.694_VarietySearch.spec.ts +258 -0
- package/.argus/backups/tests/components/20260727_031334.734_VarietySearch.spec.ts +260 -0
- package/.argus/backups/tests/components/20260727_031351.660_VarietySearch.spec.ts +259 -0
- package/.argus/backups/tests/components/20260727_031410.450_VarietySearch.spec.ts +260 -0
- package/.argus/backups/tests/components/20260727_031425.598_VarietySearch.spec.ts +259 -0
- package/.argus/backups/tests/components/20260727_031456.187_VarietySearch.spec.ts +258 -0
- package/.argus/backups/tests/components/20260727_031508.243_VarietySearch.spec.ts +257 -0
- package/.argus/backups/tests/components/20260727_035911.421_FactorWarning.spec.ts +45 -0
- package/.argus/backups/tests/components/20260727_040217.402_FactorWarning.spec.ts +44 -0
- package/.argus/backups/tests/components/20260727_040313.577_FactorWarning.spec.ts +115 -0
- package/.argus/backups/tests/components/20260727_040443.842_FactorWarning.spec.ts +116 -0
- package/.argus/backups/tests/components/20260727_040543.676_FactorWarning.spec.ts +119 -0
- package/.argus/backups/tests/components/20260727_040552.567_FactorWarning.spec.ts +120 -0
- package/.argus/backups/tests/components/20260727_040615.706_FactorWarning.spec.ts +122 -0
- package/.argus/backups/tests/components/20260727_040626.121_FactorWarning.spec.ts +123 -0
- package/.argus/backups/tests/components/20260727_040717.265_MonacoEditor.spec.ts +83 -0
- package/.argus/backups/tests/components/20260727_040828.121_MonacoEditor.spec.ts +76 -0
- package/.argus/backups/tests/components/20260727_040904.972_MonacoEditor.spec.ts +78 -0
- package/.argus/backups/tests/components/20260727_041018.032_MonacoEditor.spec.ts +81 -0
- package/.argus/backups/tests/components/20260727_041314.621_VarietyAiHelper.spec.ts +163 -0
- package/.argus/backups/tests/components/20260727_041325.276_VarietyAiHelper.spec.ts +163 -0
- package/.argus/backups/tests/components/20260727_041334.762_VarietyAiHelper.spec.ts +165 -0
- package/.argus/backups/tests/components/20260727_041343.202_VarietyAiHelper.spec.ts +166 -0
- package/.argus/backups/tests/components/20260727_044733.056_KlineBasic.spec.ts +143 -0
- package/.argus/backups/tests/components/20260727_045002.981_KlineBasic.spec.ts +143 -0
- package/.argus/backups/tests/components/20260727_045140.574_KlineBasic.spec.ts +144 -0
- package/.argus/backups/tests/components/20260727_045425.611_KlineBasic.spec.ts +145 -0
- package/.argus/backups/tests/components/20260727_045715.412_Kline.spec.ts +113 -0
- package/.argus/backups/tests/components/20260727_045724.184_Kline.spec.ts +125 -0
- package/.argus/backups/tests/components/20260727_045825.069_Kline.spec.ts +126 -0
- package/.argus/backups/tests/components/20260727_045834.378_Kline.spec.ts +136 -0
- package/.argus/backups/tests/components/20260727_045841.348_Kline.spec.ts +137 -0
- package/.argus/backups/tests/components/20260727_045940.821_Kline.spec.ts +136 -0
- package/.argus/backups/tests/components/20260727_045949.967_Kline.spec.ts +137 -0
- package/.argus/backups/tests/components/20260727_050143.995_Kline.spec.ts +138 -0
- package/.argus/backups/tests/components/20260727_050209.308_Kline.spec.ts +142 -0
- package/.argus/backups/tests/components/20260727_050232.575_Kline.spec.ts +145 -0
- package/.argus/backups/tests/components/20260727_050520.150_Kline.spec.ts +149 -0
- package/.argus/backups/tests/components/20260727_050528.961_Kline.spec.ts +144 -0
- package/.argus/backups/tests/components/20260727_050539.132_Kline.spec.ts +140 -0
- package/.argus/backups/tests/components/20260727_050600.606_Kline.spec.ts +141 -0
- package/.argus/backups/tests/components/20260727_051012.712_Kline.spec.ts +145 -0
- package/.argus/backups/tests/components/20260727_051030.112_Kline.spec.ts +140 -0
- package/.argus/backups/tests/components/20260727_051039.759_Kline.spec.ts +140 -0
- package/.argus/backups/tests/components/20260727_064959.298_KlineNew.spec.ts +265 -0
- package/.argus/backups/tests/components/20260727_065038.479_KlineNew.spec.ts +278 -0
- package/.argus/backups/tests/components/20260727_065213.245_KlinePlus.spec.ts +151 -0
- package/.argus/backups/tests/components/20260727_065245.945_KlinePlus.spec.ts +151 -0
- package/.argus/backups/tests/components/20260727_070847.720_MonacoEditor.spec.ts +105 -0
- package/.argus/backups/tests/components/20260727_070916.945_MonacoEditor.spec.ts +473 -0
- package/.argus/backups/tests/components/20260727_070928.260_MonacoEditor.spec.ts +516 -0
- package/.argus/backups/tests/components/20260727_071228.326_MonacoEditor.spec.ts +517 -0
- package/.argus/backups/tests/components/20260727_071243.734_MonacoEditor.spec.ts +521 -0
- package/.argus/backups/tests/components/20260727_071305.582_MonacoEditor.spec.ts +521 -0
- package/.argus/backups/tests/components/20260727_071350.809_MonacoEditor.spec.ts +525 -0
- package/.argus/backups/tests/components/20260727_071407.272_MonacoEditor.spec.ts +525 -0
- package/.argus/backups/tests/components/20260727_071425.763_MonacoEditor.spec.ts +525 -0
- package/.argus/backups/tests/components/20260727_071444.203_MonacoEditor.spec.ts +525 -0
- package/.argus/backups/tests/components/20260727_071813.277_Kline2.spec.ts +269 -0
- package/.argus/backups/tests/components/20260727_071825.633_Kline2.spec.ts +275 -0
- package/.argus/backups/tests/components/20260727_071836.063_Kline2.spec.ts +275 -0
- package/.argus/backups/tests/components/20260727_071926.767_Kline2.spec.ts +275 -0
- package/.argus/backups/tests/components/20260727_072027.172_Kline2.spec.ts +285 -0
- package/.argus/backups/tests/components/20260727_123101.129_Kline2.spec.ts +292 -0
- package/.argus/backups/tests/components/20260727_135819.231_Kline2.spec.ts +293 -0
- package/.argus/backups/tests/components/20260727_135858.777_Kline2.spec.ts +304 -0
- package/.argus/backups/tests/components/20260727_141205.699_KlineBasic.spec.ts +429 -0
- package/.argus/backups/tests/components/20260727_141254.206_Kline2.spec.ts +304 -0
- package/.argus/backups/tests/components/20260727_141349.322_KlineBasic.spec.ts +437 -0
- package/.argus/backups/tests/components/20260727_141447.163_KlineBasic.spec.ts +439 -0
- package/.argus/backups/tests/components/20260727_141505.454_KlineBasic.spec.ts +427 -0
- package/.argus/backups/tests/components/20260728_010148.792_User.spec.ts +126 -0
- package/.argus/backups/tests/components/20260728_010436.092_TreeMap.spec.ts +100 -0
- package/.argus/backups/tests/components/20260728_010546.696_CustomFunction.spec.ts +185 -0
- package/.argus/backups/tests/components/20260728_010606.217_CustomFunction.spec.ts +185 -0
- package/.argus/backups/tests/components/20260728_010739.144_FactorWarning.spec.ts +285 -0
- package/.argus/backups/tests/components/20260728_050815.875_VirtualTable.spec.ts +234 -0
- package/.argus/backups/tests/components/20260728_092436.589_KlinePlus.spec.ts +151 -0
- package/.argus/backups/tests/components/20260728_092516.096_KlinePlus.spec.ts +273 -0
- package/.argus/backups/tests/components/20260728_092531.745_KlinePlus.spec.ts +274 -0
- package/.argus/backups/tests/components/20260728_092545.921_KlinePlus.spec.ts +275 -0
- package/.argus/backups/tests/components/20260728_092605.498_KlinePlus.spec.ts +276 -0
- package/.argus/backups/tests/components/20260728_092659.872_KlinePlus.spec.ts +277 -0
- package/.argus/backups/tests/components/20260728_092713.040_KlinePlus.spec.ts +278 -0
- package/.argus/backups/tests/components/20260728_092726.343_KlinePlus.spec.ts +279 -0
- package/.argus/backups/tests/components/20260728_092750.935_KlinePlus.spec.ts +281 -0
- package/.argus/backups/tests/components/20260728_092800.572_KlinePlus.spec.ts +283 -0
- package/.argus/backups/tests/components/20260728_092837.797_KlinePlus.spec.ts +284 -0
- package/.argus/backups/tests/mocks/20260727_023418.231_st-func.mock.ts +29 -0
- package/.argus/backups/tests/mocks/20260727_024337.409_st-func.mock.ts +37 -0
- package/.argus/backups/tests/mocks/20260727_024344.807_st-func.mock.ts +40 -0
- package/.argus/backups/tests/mocks/20260727_041047.900_monaco.mock.ts +27 -0
- package/.argus/backups/tests/mocks/20260727_041129.076_monaco.mock.ts +31 -0
- package/.argus/backups/tests/mocks/20260727_044924.603_st-func.mock.ts +44 -0
- package/.argus/backups/tests/mocks/20260727_045612.059_echarts.kline.mock.ts +33 -0
- package/.argus/backups/tests/mocks/20260727_050955.894_echarts.kline.mock.ts +35 -0
- package/.argus/backups/tests/mocks/20260727_065402.557_st-func.mock.ts +52 -0
- package/.argus/backups/tests/mocks/20260727_065525.410_st-func.mock.ts +52 -0
- package/.argus/backups/tests/mocks/20260727_140844.233_echarts.kline.mock.ts +40 -0
- package/.argus/backups/tests/mocks/20260727_140913.119_echarts.kline.mock.ts +42 -0
- package/.argus/backups/tests/mocks/20260727_140921.846_echarts.kline.mock.ts +42 -0
- package/.argus/backups/tests/mocks/20260727_140939.427_echarts.kline.mock.ts +41 -0
- package/.argus/bgtasks.json +229 -0
- package/.argus/coldstore/013c3c794e7b7c29.jsonl +2 -0
- package/.argus/coldstore/0e331b8a3b0d8880.jsonl +16 -0
- package/.argus/coldstore/5d9a9409cc3f63f2.jsonl +7 -0
- package/.argus/coldstore/5f928dc976ac6d8a.jsonl +1 -0
- package/.argus/coldstore/60094b3c17412a84.jsonl +3 -0
- package/.argus/coldstore/76b2ec805ca5837c.jsonl +1 -0
- package/.argus/coldstore/859e7008fa48fc1b.jsonl +1 -0
- package/.argus/coldstore/85f91d3daeab41ca.jsonl +1595 -0
- package/.argus/coldstore/9278244bf4eaf9c6.jsonl +2 -0
- package/.argus/coldstore/9bb5e3ec04a11742.jsonl +1 -0
- package/.argus/coldstore/9c00baba2fa5f259.jsonl +3 -0
- package/.argus/coldstore/b72af6a1286c4ff8.jsonl +3 -0
- package/.argus/coldstore/cf0c7a7843dd408d.jsonl +1 -0
- package/.argus/coldstore/d1638960d5dc3db4.jsonl +4 -0
- package/.argus/coldstore/e6432235b17215cb.jsonl +6 -0
- package/.argus/coldstore/fae1501de047b46f.jsonl +1 -0
- package/.argus/compress_context/20260727T013726.528Z_classifier_9c00baba2fa5f259.txt +16 -0
- package/.argus/compress_context/20260727T020603.082Z_classifier_85f91d3daeab41ca.txt +2339 -0
- package/.argus/compress_context/20260727T023245.640Z_classifier_fae1501de047b46f.txt +16 -0
- package/.argus/compress_context/20260727T030908.737Z_classifier_e6432235b17215cb.txt +16 -0
- package/.argus/compress_context/20260727T032428.553Z_classifier_cf0c7a7843dd408d.txt +16 -0
- package/.argus/compress_context/20260727T032636.912Z_classifier_85f91d3daeab41ca.txt +7419 -0
- package/.argus/compress_context/20260727T041443.286Z_classifier_5d9a9409cc3f63f2.txt +16 -0
- package/.argus/compress_context/20260727T050601.474Z_classifier_60094b3c17412a84.txt +16 -0
- package/.argus/compress_context/20260727T052133.391Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
- package/.argus/compress_context/20260727T052212.178Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
- package/.argus/compress_context/20260727T052324.111Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
- package/.argus/compress_context/20260727T054653.767Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
- package/.argus/compress_context/20260727T071236.629Z_classifier_85f91d3daeab41ca.txt +16527 -0
- package/.argus/compress_context/20260727T072148.598Z_classifier_0e331b8a3b0d8880.txt +16 -0
- package/.argus/compress_context/20260727T073105.913Z_classifier_76b2ec805ca5837c.txt +16 -0
- package/.argus/compress_context/20260727T073345.593Z_classifier_d1638960d5dc3db4.txt +16 -0
- package/.argus/compress_context/20260727T092505.960Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
- package/.argus/compress_context/20260727T113928.931Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
- package/.argus/compress_context/20260727T123224.070Z_classifier_85f91d3daeab41ca.txt +10993 -0
- package/.argus/compress_context/20260727T141545.843Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
- package/.argus/compress_context/20260728T010629.442Z_classifier_85f91d3daeab41ca.txt +24561 -0
- package/.argus/compress_context/20260728T010950.439Z_classifier_9278244bf4eaf9c6.txt +16 -0
- package/.argus/compress_context/20260728T011152.613Z_classifier_013c3c794e7b7c29.txt +16 -0
- package/.argus/compress_context/20260728T085939.340Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
- package/.argus/compress_context/20260728T091110.581Z_classifier_b72af6a1286c4ff8.txt +16 -0
- package/.argus/compress_context/20260728T091324.113Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
- package/.argus/compress_context/20260728T093934.076Z_classifier_85f91d3daeab41ca.txt +26262 -0
- package/.argus/compress_context/20260729T011307.637Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
- package/.argus/compress_context/20260802T081344.640Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
- package/.argus/compress_context/20260802T082844.660Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
- package/.argus/compress_context/20260802T083022.436Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
- package/.argus/compress_context/20260802T083336.095Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
- package/.argus/compress_context/20260903T053304.203Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
- package/.argus/compress_context/20260903T053851.653Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
- package/.argus/compress_context/20260903T054344.177Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
- package/.argus/compress_context/20260903T060025.617Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
- package/.argus/compress_context/20260903T060858.200Z_classifier_FAILED_85f91d3daeab41ca.txt +30 -0
- package/.argus/config.toml +15 -0
- package/.argus/memory/.INDEX.md.lock +0 -0
- package/.argus/memory/INDEX.md +166 -0
- package/.argus/memory/dev_build_commands_build_targets_lib_vs_demo.md +14 -0
- package/.argus/memory/dev_build_commands_st_comp_build_scripts.md +13 -0
- package/.argus/memory/dev_coding_conventions_component_test_setupstate_override_pattern.md +14 -0
- package/.argus/memory/dev_coding_conventions_customfunction_ai_query_no_prefix.md +14 -0
- package/.argus/memory/dev_coding_conventions_fix_tests_not_packages_source.md +14 -0
- package/.argus/memory/dev_coding_conventions_git_workflow_branch_nds.md +14 -0
- package/.argus/memory/dev_coding_conventions_managedialog_ai_dialog_test_pattern.md +8 -0
- package/.argus/memory/dev_coding_conventions_no_packages_source_changes.md +14 -0
- package/.argus/memory/dev_coding_conventions_st_comp_component_spec_conventions.md +13 -0
- package/.argus/memory/dev_coding_conventions_st_comp_component_test_mocking_pattern.md +14 -0
- package/.argus/memory/dev_coding_conventions_st_comp_coverage_scope_rules.md +14 -0
- package/.argus/memory/dev_coding_conventions_st_comp_exposed_methods_via_wrapper_vm.md +13 -0
- package/.argus/memory/dev_coding_conventions_st_comp_full_import_only.md +13 -0
- package/.argus/memory/dev_coding_conventions_st_comp_klinebasic_error_rethrow.md +13 -0
- package/.argus/memory/dev_coding_conventions_st_comp_monaco_mock_extend.md +13 -0
- package/.argus/memory/dev_coding_conventions_st_comp_no_modify_packages_constraint.md +14 -0
- package/.argus/memory/dev_coding_conventions_st_comp_no_packages_changes.md +14 -0
- package/.argus/memory/dev_coding_conventions_st_comp_no_packages_code_changes.md +14 -0
- package/.argus/memory/dev_coding_conventions_st_comp_no_packages_modification.md +14 -0
- package/.argus/memory/dev_coding_conventions_st_comp_no_packages_source_changes.md +14 -0
- package/.argus/memory/dev_coding_conventions_st_comp_packages_read_only_for_test_work.md +13 -0
- package/.argus/memory/dev_coding_conventions_st_comp_packages_readonly_when_testing.md +13 -0
- package/.argus/memory/dev_coding_conventions_st_comp_seven_phase_workflow.md +13 -0
- package/.argus/memory/dev_coding_conventions_st_comp_spec_mock_patterns.md +13 -0
- package/.argus/memory/dev_coding_conventions_st_comp_spec_mount_pattern.md +13 -0
- package/.argus/memory/dev_coding_conventions_st_comp_test_component_patterns.md +13 -0
- package/.argus/memory/dev_coding_conventions_st_comp_test_constraint_no_packages_changes.md +14 -0
- package/.argus/memory/dev_coding_conventions_st_comp_test_conventions.md +13 -0
- package/.argus/memory/dev_coding_conventions_st_comp_test_mock_conventions.md +13 -0
- package/.argus/memory/dev_coding_conventions_st_comp_test_phase_constraints.md +14 -0
- package/.argus/memory/dev_coding_conventions_st_comp_test_work_no_packages_changes.md +14 -0
- package/.argus/memory/dev_coding_conventions_st_comp_testing_exposed_methods.md +13 -0
- package/.argus/memory/dev_coding_conventions_st_comp_tests_must_not_touch_packages.md +14 -0
- package/.argus/memory/dev_coding_conventions_st_comp_varietysearch_setupstate.md +13 -0
- package/.argus/memory/dev_coding_conventions_st_comp_vi_mock_pattern.md +13 -0
- package/.argus/memory/dev_coding_conventions_st_comp_vitest_cache_handlers_false.md +14 -0
- package/.argus/memory/dev_coding_conventions_stcomp_props_emits_conventions.md +13 -0
- package/.argus/memory/dev_coding_conventions_stconfig_request_injection.md +14 -0
- package/.argus/memory/dev_coding_conventions_test_isolation_and_coverage_thresholds.md +14 -0
- package/.argus/memory/dev_coding_conventions_test_mock_strategy_layers.md +14 -0
- package/.argus/memory/dev_deps_project_ui_deps_echarts_monaco.md +14 -0
- package/.argus/memory/dev_deps_st_comp_tech_stack.md +13 -0
- package/.argus/memory/dev_deps_st_comp_test_stack.md +13 -0
- package/.argus/memory/dev_deps_st_comp_test_stack_versions.md +13 -0
- package/.argus/memory/dev_deps_stcomp_heavy_deps_per_component.md +13 -0
- package/.argus/memory/dev_deps_variety_ai_helper_api.md +14 -0
- package/.argus/memory/dev_deps_variety_ai_helper_endpoint.md +14 -0
- package/.argus/memory/dev_deps_vitest_034_coverage_threshold_format.md +14 -0
- package/.argus/memory/dev_key_modules_ai_helper_streaming_api.md +14 -0
- package/.argus/memory/dev_key_modules_ai_tools_sse_client.md +14 -0
- package/.argus/memory/dev_key_modules_custom_function_api_endpoints.md +14 -0
- package/.argus/memory/dev_key_modules_custom_function_manage_dialog.md +14 -0
- package/.argus/memory/dev_key_modules_custom_function_panel_structure.md +14 -0
- package/.argus/memory/dev_key_modules_customfunction_manage_dialog.md +14 -0
- package/.argus/memory/dev_key_modules_kline_echarts_mock_requirements.md +14 -0
- package/.argus/memory/dev_key_modules_shared_editor_varselect_components.md +14 -0
- package/.argus/memory/dev_key_modules_st_comp_extractvariables_syntax.md +13 -0
- package/.argus/memory/dev_key_modules_st_comp_kline_component_family.md +13 -0
- package/.argus/memory/dev_key_modules_st_comp_kline_components_test_mocks.md +14 -0
- package/.argus/memory/dev_key_modules_st_comp_l2_kline_components.md +14 -0
- package/.argus/memory/dev_key_modules_st_comp_packages_components.md +13 -0
- package/.argus/memory/dev_key_modules_st_comp_test_mocks_behavior.md +13 -0
- package/.argus/memory/dev_key_modules_st_comp_vite_plugins.md +13 -0
- package/.argus/memory/dev_key_modules_st_func_mock_helper.md +14 -0
- package/.argus/memory/dev_key_modules_stcomp_http_via_stfunc_no_axios.md +13 -0
- package/.argus/memory/dev_key_modules_stcomp_stconfig_provide_inject_contract.md +13 -0
- package/.argus/memory/dev_key_modules_test_shared_helpers.md +14 -0
- package/.argus/memory/dev_key_modules_vitest_vue_cachehandlers_false.md +14 -0
- package/.argus/memory/dev_known_issues_klinebasic_unhandled_rejection_noise.md +14 -0
- package/.argus/memory/dev_known_issues_low_func_coverage_components.md +14 -0
- package/.argus/memory/dev_known_issues_low_function_coverage_components.md +14 -0
- package/.argus/memory/dev_known_issues_missing_component_tests_backlog.md +14 -0
- package/.argus/memory/dev_known_issues_monaco_editor_baseline_test_failures.md +14 -0
- package/.argus/memory/dev_known_issues_pending_component_test_coverage.md +14 -0
- package/.argus/memory/dev_known_issues_st_comp_baseline_failing_specs.md +14 -0
- package/.argus/memory/dev_known_issues_st_comp_build_gaps.md +13 -0
- package/.argus/memory/dev_known_issues_st_comp_contextmenu_attachto_breaks.md +13 -0
- package/.argus/memory/dev_known_issues_st_comp_deferred_tests_factorwarning_monacoeditor_varietyaihelper.md +14 -0
- package/.argus/memory/dev_known_issues_st_comp_definemodel_setupstate_test_pitfall.md +13 -0
- package/.argus/memory/dev_known_issues_st_comp_elmessage_auto_import_tests.md +13 -0
- package/.argus/memory/dev_known_issues_st_comp_elmessage_missing_in_tests.md +13 -0
- package/.argus/memory/dev_known_issues_st_comp_eltable_render_timing.md +13 -0
- package/.argus/memory/dev_known_issues_st_comp_hardcoded_server_password.md +13 -0
- package/.argus/memory/dev_known_issues_st_comp_jsdom_resizeobserver_stub.md +13 -0
- package/.argus/memory/dev_known_issues_st_comp_klinebasic_resize_coverage_gap.md +13 -0
- package/.argus/memory/dev_known_issues_st_comp_klinebasic_unhandled_rejection_noise.md +13 -0
- package/.argus/memory/dev_known_issues_st_comp_known_gaps.md +13 -0
- package/.argus/memory/dev_known_issues_st_comp_preexisting_spec_failures.md +13 -0
- package/.argus/memory/dev_known_issues_st_comp_stfunc_mock_stmath_incomplete.md +13 -0
- package/.argus/memory/dev_known_issues_st_comp_test_elmessage_autoimport.md +13 -0
- package/.argus/memory/dev_known_issues_st_comp_test_env_pitfalls.md +13 -0
- package/.argus/memory/dev_known_issues_st_comp_test_teleport_cleanup.md +13 -0
- package/.argus/memory/dev_known_issues_st_comp_varietytextcopy_global_elmessage.md +13 -0
- package/.argus/memory/dev_known_issues_st_comp_vitest_cache_handlers_false.md +13 -0
- package/.argus/memory/dev_known_issues_st_comp_vitest_cachehandlers_coverage.md +13 -0
- package/.argus/memory/dev_known_issues_st_func_mock_addresizelistener_return_shape.md +14 -0
- package/.argus/memory/dev_known_issues_stcomp_klineconfig_defineemits_string_bug.md +13 -0
- package/.argus/memory/dev_known_issues_t1_uncovered_test_gaps.md +14 -0
- package/.argus/memory/dev_known_issues_vitest_034_windows_import_meta_url.md +14 -0
- package/.argus/memory/dev_known_issues_vitest_baseline_failing_specs.md +14 -0
- package/.argus/memory/dev_known_issues_vitest_vue_plugin_cache_handlers_false.md +14 -0
- package/.argus/memory/dev_project_layout_custom_function_manage_dialog.md +14 -0
- package/.argus/memory/dev_project_layout_docs_phase_artifacts.md +14 -0
- package/.argus/memory/dev_project_layout_docs_tasks_md_planning_file.md +14 -0
- package/.argus/memory/dev_project_layout_frontend_component_test_scope.md +14 -0
- package/.argus/memory/dev_project_layout_local_only_dirs_not_committed.md +14 -0
- package/.argus/memory/dev_project_layout_nds_local_tool_dirs_untracked.md +14 -0
- package/.argus/memory/dev_project_layout_packages_component_layout.md +14 -0
- package/.argus/memory/dev_project_layout_packages_dir_always_empty.md +14 -0
- package/.argus/memory/dev_project_layout_phased_workflow_docs.md +14 -0
- package/.argus/memory/dev_project_layout_st_comp_docs_phase_workflow.md +14 -0
- package/.argus/memory/dev_project_layout_st_comp_docs_task_tracking.md +14 -0
- package/.argus/memory/dev_project_layout_st_comp_layout_and_aliases.md +13 -0
- package/.argus/memory/dev_project_layout_st_comp_layout_and_docs_plan.md +14 -0
- package/.argus/memory/dev_project_layout_st_comp_layout_and_stack.md +13 -0
- package/.argus/memory/dev_project_layout_st_comp_layout_and_task_tracking.md +14 -0
- package/.argus/memory/dev_project_layout_st_comp_project_layout.md +13 -0
- package/.argus/memory/dev_project_layout_st_comp_project_overview.md +14 -0
- package/.argus/memory/dev_project_layout_st_comp_project_root_and_purpose.md +14 -0
- package/.argus/memory/dev_project_layout_st_comp_repo_layout.md +13 -0
- package/.argus/memory/dev_project_layout_st_comp_test_layout.md +13 -0
- package/.argus/memory/dev_project_layout_st_comp_test_layout_and_aliases.md +13 -0
- package/.argus/memory/dev_project_layout_st_comp_top_level_layout.md +13 -0
- package/.argus/memory/dev_project_layout_stcomp_packages_layout.md +13 -0
- package/.argus/memory/dev_project_layout_test_release_plugin_sftp_config.md +14 -0
- package/.argus/memory/dev_project_layout_tests_dir_and_vitest_config.md +14 -0
- package/.argus/memory/dev_test_commands_component_test_baseline_and_layout.md +14 -0
- package/.argus/memory/dev_test_commands_coverage_gate_80_baseline_exclusions.md +14 -0
- package/.argus/memory/dev_test_commands_coverage_thresholds.md +14 -0
- package/.argus/memory/dev_test_commands_coverage_thresholds_enforced.md +14 -0
- package/.argus/memory/dev_test_commands_func_coverage_threshold_80.md +14 -0
- package/.argus/memory/dev_test_commands_st_comp_component_test_command.md +14 -0
- package/.argus/memory/dev_test_commands_st_comp_coverage_commands.md +14 -0
- package/.argus/memory/dev_test_commands_st_comp_coverage_scope_and_threshold.md +13 -0
- package/.argus/memory/dev_test_commands_st_comp_coverage_thresholds.md +14 -0
- package/.argus/memory/dev_test_commands_st_comp_run_component_tests.md +14 -0
- package/.argus/memory/dev_test_commands_st_comp_vitest_commands.md +13 -0
- package/.argus/memory/dev_test_commands_st_comp_vitest_component_suite.md +14 -0
- package/.argus/memory/dev_test_commands_st_comp_vitest_component_tests.md +14 -0
- package/.argus/memory/dev_test_commands_st_comp_vitest_components.md +14 -0
- package/.argus/memory/dev_test_commands_st_comp_vitest_coverage_config.md +14 -0
- package/.argus/memory/dev_test_commands_st_comp_vitest_coverage_thresholds.md +14 -0
- package/.argus/memory/dev_test_commands_st_comp_vitest_must_use_local_bin.md +13 -0
- package/.argus/memory/dev_test_commands_st_comp_vitest_run.md +13 -0
- package/.argus/memory/dev_test_commands_st_comp_vitest_run_and_coverage.md +14 -0
- package/.argus/memory/dev_test_commands_st_comp_vitest_run_command.md +13 -0
- package/.argus/memory/dev_test_commands_st_comp_vitest_run_commands.md +13 -0
- package/.argus/memory/dev_test_commands_st_comp_vitest_run_coverage.md +14 -0
- package/.argus/memory/dev_test_commands_st_comp_vitest_run_spec.md +13 -0
- package/.argus/memory/dev_test_commands_test_stack_vitest_vue.md +14 -0
- package/.argus/memory/dev_test_commands_test_suite_baseline.md +14 -0
- package/.argus/memory/dev_test_commands_vitest_cache_handlers_disabled_for_coverage.md +14 -0
- package/.argus/memory/dev_test_commands_vitest_component_test_plan_tiers.md +14 -0
- package/.argus/memory/dev_test_commands_vitest_component_testing_setup.md +14 -0
- package/.argus/memory/dev_test_commands_vitest_run_and_coverage.md +14 -0
- package/.argus/memory/dev_test_commands_vitest_test_infra_setup.md +14 -0
- package/.argus/memory/ops_credentials_locations_sftp_cred_testrelese_ts.md +14 -0
- package/.argus/memory/ops_credentials_locations_st_comp_test_server_root_password_hardcoded.md +13 -0
- package/.argus/memory/ops_deploy_workflow_build_outputs_lib_vs_demo.md +14 -0
- package/.argus/memory/ops_deploy_workflow_sftp_deploy_via_vite_plugin.md +14 -0
- package/.argus/memory/ops_deploy_workflow_st_comp_test_deploy_via_testrelese_plugin.md +13 -0
- package/.argus/memory/ops_servers_test_server_192_168_12_49.md +14 -0
- package/.argus/scheduled_tasks.json +467 -0
- package/.cliworks/.cliworks/input_history.jsonl +44 -0
- package/.cliworks/chat/acp/39525acf-0832-40e4-90e5-f058f1bccb8d/2026-07-27.json +17623 -0
- package/.cliworks/chat/acp/39525acf-0832-40e4-90e5-f058f1bccb8d/2026-07-28.json +6349 -0
- package/.cliworks/chat/acp/39525acf-0832-40e4-90e5-f058f1bccb8d/2026-07-29.json +33 -0
- package/.cliworks/chat/acp/39525acf-0832-40e4-90e5-f058f1bccb8d/2026-08-02.json +1174 -0
- package/.cliworks/chat/acp/39525acf-0832-40e4-90e5-f058f1bccb8d/2026-09-03.json +2354 -0
- package/.cliworks/hooks/on_create.md +6 -0
- package/.cliworks/hooks/on_open.md +11 -0
- package/.cliworks/project.json +5 -0
- package/coverage/ChartLayout/index.html +116 -0
- package/coverage/ChartLayout/index.vue.html +274 -0
- package/coverage/ConfigProvider/index.html +116 -0
- package/coverage/ConfigProvider/index.vue.html +283 -0
- package/coverage/Contextmenu/index.html +116 -0
- package/coverage/Contextmenu/index.vue.html +487 -0
- package/coverage/CustomFunction/index.html +116 -0
- package/coverage/CustomFunction/index.vue.html +685 -0
- package/coverage/FactorWarning/index.html +116 -0
- package/coverage/FactorWarning/index.vue.html +2347 -0
- package/coverage/HeatMap/index.html +116 -0
- package/coverage/HeatMap/index.vue.html +508 -0
- package/coverage/Kline/index.html +116 -0
- package/coverage/Kline/index.vue.html +2758 -0
- package/coverage/KlineBasic/index.html +116 -0
- package/coverage/KlineBasic/index.vue.html +2602 -0
- package/coverage/KlineConfig/index.html +116 -0
- package/coverage/KlineConfig/index.vue.html +1153 -0
- package/coverage/KlinePlus/index.html +116 -0
- package/coverage/KlinePlus/index.vue.html +3286 -0
- package/coverage/LinearLegend/index.html +116 -0
- package/coverage/LinearLegend/index.vue.html +418 -0
- package/coverage/Map/index.html +116 -0
- package/coverage/Map/index.vue.html +526 -0
- package/coverage/MonacoEditor/index.html +116 -0
- package/coverage/MonacoEditor/index.vue.html +3508 -0
- package/coverage/Pagination/index.html +116 -0
- package/coverage/Pagination/index.vue.html +346 -0
- package/coverage/PasswordPrompt/index.html +116 -0
- package/coverage/PasswordPrompt/index.vue.html +886 -0
- package/coverage/Pie/index.html +116 -0
- package/coverage/Pie/index.vue.html +529 -0
- package/coverage/Table/index.html +116 -0
- package/coverage/Table/index.vue.html +484 -0
- package/coverage/TreeMap/index.html +116 -0
- package/coverage/TreeMap/index.vue.html +643 -0
- package/coverage/User/index.html +116 -0
- package/coverage/User/index.vue.html +436 -0
- package/coverage/VarSelectDialog/index.html +116 -0
- package/coverage/VarSelectDialog/index.vue.html +1054 -0
- package/coverage/VarietyAiHelper/index.html +116 -0
- package/coverage/VarietyAiHelper/index.vue.html +2815 -0
- package/coverage/VarietyAutoComplete/index.html +116 -0
- package/coverage/VarietyAutoComplete/index.vue.html +352 -0
- package/coverage/VarietySearch/index.html +116 -0
- package/coverage/VarietySearch/index.vue.html +2149 -0
- package/coverage/VarietyTextCopy/index.html +116 -0
- package/coverage/VarietyTextCopy/index.vue.html +493 -0
- package/coverage/VirtualTable/index.html +116 -0
- package/coverage/VirtualTable/index.vue.html +808 -0
- package/coverage/base.css +224 -0
- package/coverage/block-navigation.js +87 -0
- package/coverage/clover.xml +9392 -0
- package/coverage/coverage-final.json +26 -0
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +476 -0
- package/coverage/prettify.css +1 -0
- package/coverage/prettify.js +2 -0
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +210 -0
- package/docs/api-design.md +120 -0
- package/docs/architecture.md +110 -0
- package/docs/bugs.md +13 -0
- package/docs/requirements.md +63 -0
- package/docs/review.md +80 -0
- package/docs/security.md +83 -0
- package/docs/tasks.md +112 -0
- package/docs/test-plan.md +119 -0
- package/es/CustomFunction.cjs +2 -2
- package/es/CustomFunction.js +514 -308
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +25 -25
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +10 -10
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +18 -18
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +15 -15
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +9 -9
- package/es/KlinePlus.cjs +1 -1
- package/es/KlinePlus.js +11 -11
- package/es/MonacoEditor.cjs +1 -1
- package/es/MonacoEditor.js +17 -17
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +76 -76
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +2 -2
- package/es/Table.cjs +1 -1
- package/es/Table.js +22 -22
- package/es/User.cjs +1 -1
- package/es/User.js +18 -18
- package/es/VarSelectDialog.cjs +1 -1
- package/es/VarSelectDialog.js +18 -18
- package/es/VarietyAiHelper.cjs +7 -7
- package/es/VarietyAiHelper.js +306 -279
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +7 -7
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +30 -30
- package/es/{VarietySelect-610903f0.cjs → VarietySelect-5fee5520.cjs} +1 -1
- package/es/{VarietySelect-6a166293.js → VarietySelect-e563b7a6.js} +3 -3
- package/es/VarietyTextCopy.cjs +1 -1
- package/es/VarietyTextCopy.js +10 -10
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +5 -5
- package/es/{_initCloneObject-152b4f4e.js → _initCloneObject-5e73c9c8.js} +2 -2
- package/es/{_initCloneObject-76e116d0.cjs → _initCloneObject-a5832933.cjs} +1 -1
- package/es/{aiTools-d7bd47c3.js → aiTools-a3b095f6.js} +19 -19
- package/es/aiTools-f36136a4.cjs +2 -0
- package/es/aiTools.js +4 -0
- package/es/{config-provider-4c784baf.cjs → config-provider-06ea6b42.cjs} +1 -1
- package/es/{config-provider-7a3aca55.js → config-provider-88b637a8.js} +3 -3
- package/es/{dropdown-987c47fb.cjs → dropdown-4ce4c3e2.cjs} +1 -1
- package/es/{dropdown-01e09205.js → dropdown-72fbc15d.js} +2 -2
- package/es/{el-autocomplete-342ae823.js → el-autocomplete-6cafcdf1.js} +5 -5
- package/es/{el-autocomplete-16f66b34.cjs → el-autocomplete-e0857c5b.cjs} +1 -1
- package/es/{el-button-13dc915f.cjs → el-button-613e0bb2.cjs} +1 -1
- package/es/{el-button-314171a0.js → el-button-94d3de38.js} +3 -3
- package/es/{el-checkbox-5899681f.js → el-checkbox-6d4cb393.js} +3 -3
- package/es/{el-checkbox-bdf64663.cjs → el-checkbox-e90762df.cjs} +1 -1
- package/es/{el-dialog-0ef95df6.cjs → el-dialog-02942e22.cjs} +1 -1
- package/es/{el-dialog-86a3eec2.js → el-dialog-5e30161f.js} +4 -4
- package/es/{el-form-item-77ef6784.cjs → el-form-item-44f060d8.cjs} +1 -1
- package/es/{el-form-item-cda4d93c.js → el-form-item-9e8969ea.js} +5 -5
- package/es/{el-input-fa1445ad.js → el-input-342b2def.js} +13 -13
- package/es/{el-input-89222943.cjs → el-input-9a9a7f7f.cjs} +1 -1
- package/es/{el-input-number-d3338e5e.cjs → el-input-number-65c847d6.cjs} +1 -1
- package/es/{el-input-number-8f6dbf74.js → el-input-number-c22b803a.js} +35 -35
- package/es/{el-loading-84dde1a8.cjs → el-loading-8179b497.cjs} +1 -1
- package/es/{el-loading-9b671203.js → el-loading-bcc51e3d.js} +1 -1
- package/es/{el-menu-item-535fef90.js → el-menu-item-339baf6d.js} +21 -21
- package/es/{el-menu-item-4531fd0e.cjs → el-menu-item-83186444.cjs} +1 -1
- package/es/{el-message-box-621ed2f1.js → el-message-box-035b699c.js} +9 -9
- package/es/{el-message-box-f5717070.cjs → el-message-box-c62d3217.cjs} +1 -1
- package/es/{el-overlay-23de4324.js → el-overlay-3e17604b.js} +3 -3
- package/es/{el-overlay-151708cb.cjs → el-overlay-8f1da9e8.cjs} +1 -1
- package/es/{el-popconfirm-b8aa490e.cjs → el-popconfirm-4e32ec1b.cjs} +1 -1
- package/es/{el-popconfirm-bcff0aa5.js → el-popconfirm-f8a86e2c.js} +4 -4
- package/es/{el-popper-43ec37f4.cjs → el-popper-a4f3ae4d.cjs} +1 -1
- package/es/{el-popper-03988662.js → el-popper-fbd0dcea.js} +1 -1
- package/es/{el-segmented-db3a86be.js → el-segmented-56bd58a8.js} +2 -2
- package/es/{el-segmented-79a1367c.cjs → el-segmented-833ac177.cjs} +1 -1
- package/es/{el-select-4bd0010d.js → el-select-44fa547d.js} +8 -8
- package/es/{el-select-ec04e7ce.cjs → el-select-70806166.cjs} +1 -1
- package/es/{el-table-column-35e47229.cjs → el-table-column-3e2cdfca.cjs} +1 -1
- package/es/{el-table-column-7af2bec7.js → el-table-column-b74a857d.js} +9 -9
- package/es/{el-tag-bef9e83d.js → el-tag-66c83156.js} +2 -2
- package/es/{el-tag-5d5608e0.cjs → el-tag-9c2f329f.cjs} +1 -1
- package/es/{el-text-f998902c.js → el-text-034bd3f4.js} +1 -1
- package/es/{el-text-abf10fdf.cjs → el-text-6b2374bb.cjs} +1 -1
- package/es/index-00f6ca75.cjs +1 -0
- package/es/{index-a00e0534.cjs → index-185792a7.cjs} +1 -1
- package/es/{index-d1b554ac.js → index-1e2a38ab.js} +2 -2
- package/es/{index-f3f6ee27.js → index-27416486.js} +9 -9
- package/es/{index-2d7ac156.cjs → index-47c9eb63.cjs} +2 -2
- package/es/{index-0986e373.cjs → index-4cd74df9.cjs} +1 -1
- package/es/{index-ce21e2ce.js → index-5216d5f5.js} +5 -5
- package/es/{index-cfcd60ca.cjs → index-5c0dd943.cjs} +1 -1
- package/es/{index-cfd00899.cjs → index-870b6c9d.cjs} +1 -1
- package/es/{index-a83ec4b7.js → index-8c2d7e05.js} +1 -1
- package/es/{index-db846633.cjs → index-9d16cea8.cjs} +1 -1
- package/es/{index-936e7dec.js → index-a9785a4f.js} +1 -1
- package/es/{index-60c69dd1.cjs → index-ac8dc53d.cjs} +1 -1
- package/es/{index-102edf6c.js → index-c5f2d372.js} +2 -2
- package/es/{index-6290ae0f.js → index-c6584658.js} +2 -2
- package/es/{index-5c44d71a.js → index-eb96e074.js} +149 -119
- package/es/{index-5ed42e9c.js → index-f034b910.js} +2 -2
- package/es/{index-c58e90e9.cjs → index-f58b2920.cjs} +1 -1
- package/es/{python-71f59893.cjs → python-2623e545.cjs} +1 -1
- package/es/{python-6cc6ec1b.js → python-85a62852.js} +17 -17
- package/es/style.css +1 -1
- package/es/{use-form-common-props-02be4928.cjs → use-form-common-props-ac666630.cjs} +1 -1
- package/es/{use-form-common-props-76a09d89.js → use-form-common-props-ed72e914.js} +11 -11
- package/es/{use-global-config-31b3ec57.cjs → use-global-config-23472471.cjs} +1 -1
- package/es/{use-global-config-0f43458b.js → use-global-config-ee406d58.js} +2 -2
- package/es/{validator-ea292506.cjs → validator-366dbf39.cjs} +1 -1
- package/es/{validator-0e037618.js → validator-c60a8956.js} +1 -1
- package/es/{zh-cn-1227eb8a.js → zh-cn-b59a0910.js} +1 -1
- package/es/{zh-cn-0edc7234.cjs → zh-cn-c21d12d8.cjs} +1 -1
- package/introduce.md +41 -0
- package/lib/aiTools.js +4 -0
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +189 -189
- package/lib/{index-8b55d8c8.js → index-72506c43.js} +20695 -20434
- package/lib/{python-f164f783.js → python-d3119b5a.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +9 -2
- package/packages/CustomFunction/components/ManageDialog.vue +300 -3
- package/packages/VarietyAiHelper/index.vue +42 -6
- package/public/aiTools.js +4 -0
- package/src/App.vue +16 -16
- package/tests/components/ChartLayout.spec.ts +67 -0
- package/tests/components/ConfigProvider.spec.ts +99 -0
- package/tests/components/Contextmenu.spec.ts +79 -0
- package/tests/components/CustomFunction.spec.ts +185 -0
- package/tests/components/FactorWarning.spec.ts +287 -0
- package/tests/components/HeatMap.spec.ts +83 -0
- package/tests/components/Kline.spec.ts +140 -0
- package/tests/components/Kline2.spec.ts +311 -0
- package/tests/components/KlineBasic.spec.ts +429 -0
- package/tests/components/KlineConfig.spec.ts +278 -0
- package/tests/components/KlineNew.spec.ts +278 -0
- package/tests/components/KlinePlus.spec.ts +284 -0
- package/tests/components/LinearLegend.spec.ts +69 -0
- package/tests/components/ManageDialog.spec.ts +253 -0
- package/tests/components/Map.spec.ts +71 -0
- package/tests/components/MonacoEditor.spec.ts +530 -0
- package/tests/components/Pagination.spec.ts +59 -0
- package/tests/components/PasswordPrompt.spec.ts +72 -0
- package/tests/components/Pie.spec.ts +96 -0
- package/tests/components/Table.spec.ts +186 -0
- package/tests/components/TreeMap.spec.ts +100 -0
- package/tests/components/User.spec.ts +130 -0
- package/tests/components/VarSelectDialog.spec.ts +131 -0
- package/tests/components/VarietyAiHelper.spec.ts +164 -0
- package/tests/components/VarietyAutoComplete.spec.ts +110 -0
- package/tests/components/VarietySearch.spec.ts +526 -0
- package/tests/components/VarietyTextCopy.spec.ts +86 -0
- package/tests/components/VirtualTable.spec.ts +285 -0
- package/tests/helpers/mountWithPlugins.ts +19 -0
- package/tests/mocks/echarts.kline.mock.ts +41 -0
- package/tests/mocks/echarts.mock.ts +38 -0
- package/tests/mocks/monaco.mock.ts +37 -0
- package/tests/mocks/st-func.mock.ts +52 -0
- package/tests/mocks/talib.mock.ts +13 -0
- package/tests/setup.ts +65 -0
- package/tests/smoke.spec.ts +12 -0
- package/vitest.config.ts +56 -0
- package/workflow.md +33 -0
- package/es/aiTools-9fd42de8.cjs +0 -2
- package/es/index-476c4459.cjs +0 -1
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { vi } from 'vitest'
|
|
2
|
+
|
|
3
|
+
vi.mock('st-func', () => import('@test/mocks/st-func.mock.ts'))
|
|
4
|
+
|
|
5
|
+
import { flushPromises } from '@vue/test-utils'
|
|
6
|
+
import { mountWithPlugins } from '@test/helpers/mountWithPlugins.ts'
|
|
7
|
+
import CustomFunction from '@package/CustomFunction/index.vue'
|
|
8
|
+
|
|
9
|
+
const postMock = vi.fn()
|
|
10
|
+
const mountComponent = (props: any = {}) =>
|
|
11
|
+
mountWithPlugins(CustomFunction, {
|
|
12
|
+
props,
|
|
13
|
+
global: {
|
|
14
|
+
provide: {
|
|
15
|
+
stConfig: { env: {}, request: { get: vi.fn(), post: postMock } },
|
|
16
|
+
},
|
|
17
|
+
stubs: {
|
|
18
|
+
ManageDialog: {
|
|
19
|
+
template: '<div class="manage-dialog-stub" />',
|
|
20
|
+
methods: { open: vi.fn() },
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
const options = [
|
|
27
|
+
{ id: 1, funcName: '主力筛选', funcExpression: 'EXPR_1' },
|
|
28
|
+
{ id: 2, funcName: '放量', funcExpression: 'EXPR_2' },
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
describe('CustomFunction', () => {
|
|
32
|
+
beforeEach(() => {
|
|
33
|
+
vi.clearAllMocks()
|
|
34
|
+
postMock.mockResolvedValue({ body: options })
|
|
35
|
+
// 组件未 import ElMessage (依赖自动导入), 测试中挂到 globalThis
|
|
36
|
+
;(globalThis as any).ElMessage = { error: vi.fn(), success: vi.fn(), warning: vi.fn(), info: vi.fn() }
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
it('挂载后请求函数列表 /common/qt/querySearchFunctions', async () => {
|
|
40
|
+
mountComponent()
|
|
41
|
+
await flushPromises()
|
|
42
|
+
expect(postMock).toHaveBeenCalledWith('/common/qt/querySearchFunctions')
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
it('默认渲染: 选择框 + 插入按钮 + 函数管理按钮', async () => {
|
|
46
|
+
const wrapper = mountComponent()
|
|
47
|
+
await flushPromises()
|
|
48
|
+
const buttons = wrapper.findAll('button').map((b) => b.text())
|
|
49
|
+
expect(buttons.some((t) => t.includes('插入'))).toBe(true)
|
|
50
|
+
expect(buttons.some((t) => t.includes('函数管理'))).toBe(true)
|
|
51
|
+
expect(wrapper.find('.el-select').exists()).toBe(true)
|
|
52
|
+
})
|
|
53
|
+
|
|
54
|
+
it('handleChange: 选中 funcName 时记录对应 id; 清空时 id 置 null', async () => {
|
|
55
|
+
const wrapper = mountComponent()
|
|
56
|
+
await flushPromises()
|
|
57
|
+
const vm = wrapper.vm as any
|
|
58
|
+
vm.handleChange('放量')
|
|
59
|
+
expect(vm.customFunctionId).toBe(2)
|
|
60
|
+
vm.handleChange(undefined)
|
|
61
|
+
expect(vm.customFunctionId).toBeNull()
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
it('handleInsert: 未选择时 ElMessage.error 且不 emit', async () => {
|
|
65
|
+
const wrapper = mountComponent()
|
|
66
|
+
await flushPromises()
|
|
67
|
+
const vm = wrapper.vm as any
|
|
68
|
+
vm.handleInsert()
|
|
69
|
+
expect((globalThis as any).ElMessage.error).toHaveBeenCalledWith('请先选择自定义函数后, 再执行插入')
|
|
70
|
+
expect(wrapper.emitted('insert')).toBeUndefined()
|
|
71
|
+
})
|
|
72
|
+
|
|
73
|
+
it('handleInsert: 已选择时 emit("insert", funcName, funcExpression)', async () => {
|
|
74
|
+
const wrapper = mountComponent()
|
|
75
|
+
await flushPromises()
|
|
76
|
+
const vm = wrapper.vm as any
|
|
77
|
+
vm.handleChange('主力筛选')
|
|
78
|
+
vm.handleInsert()
|
|
79
|
+
expect(wrapper.emitted('insert')).toEqual([['主力筛选', 'EXPR_1']])
|
|
80
|
+
})
|
|
81
|
+
|
|
82
|
+
it('handleCustomFuncManage("open"): emit actionState 并打开管理窗口', async () => {
|
|
83
|
+
const wrapper = mountComponent()
|
|
84
|
+
await flushPromises()
|
|
85
|
+
const vm = wrapper.vm as any
|
|
86
|
+
vm.handleCustomFuncManage('open')
|
|
87
|
+
expect(wrapper.emitted('actionState')).toEqual([['因子筛选', '函数管理']])
|
|
88
|
+
})
|
|
89
|
+
|
|
90
|
+
it('handleCustomFuncManage("delete"): 调用删除接口并刷新列表', async () => {
|
|
91
|
+
postMock.mockResolvedValue({ body: options })
|
|
92
|
+
const wrapper = mountComponent()
|
|
93
|
+
await flushPromises()
|
|
94
|
+
postMock.mockClear()
|
|
95
|
+
await (wrapper.vm as any).handleCustomFuncManage('delete', { id: 9 })
|
|
96
|
+
expect(postMock).toHaveBeenCalledWith('/common/qt/deleteSearchFunctionById', { id: 9 })
|
|
97
|
+
// 删除后重新拉取
|
|
98
|
+
expect(postMock).toHaveBeenCalledWith('/common/qt/querySearchFunctions')
|
|
99
|
+
})
|
|
100
|
+
|
|
101
|
+
it('请求返回 null body 时 options 为空数组', async () => {
|
|
102
|
+
postMock.mockResolvedValue({ body: null })
|
|
103
|
+
const wrapper = mountComponent()
|
|
104
|
+
await flushPromises()
|
|
105
|
+
expect((wrapper.vm as any).customFunctionOptions).toEqual([])
|
|
106
|
+
})
|
|
107
|
+
})
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { ref } from 'vue'
|
|
2
|
+
import { mountWithPlugins } from '@test/helpers/mountWithPlugins.ts'
|
|
3
|
+
import VarietySearch from '@package/VarietySearch/index.vue'
|
|
4
|
+
|
|
5
|
+
const mountComponent = (config: any = {}, searchData: any = {}) =>
|
|
6
|
+
mountWithPlugins(VarietySearch, {
|
|
7
|
+
props: {
|
|
8
|
+
config,
|
|
9
|
+
searchData: ref(searchData),
|
|
10
|
+
},
|
|
11
|
+
global: {
|
|
12
|
+
provide: {
|
|
13
|
+
stConfig: { env: {}, request: { get: () => Promise.resolve({}), post: () => Promise.resolve({}) } },
|
|
14
|
+
},
|
|
15
|
+
stubs: {
|
|
16
|
+
FactorScreen: { template: '<div class="factor-screen-stub" />' },
|
|
17
|
+
CommonIndicator: { template: '<div class="common-indicator-stub" />' },
|
|
18
|
+
CompositeOrder: { template: '<div class="composite-order-stub" />' },
|
|
19
|
+
AddTag: { template: '<div class="add-tag-stub" />' },
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
const fullConfig = {
|
|
25
|
+
varietyMarket: {
|
|
26
|
+
show: true,
|
|
27
|
+
options: [
|
|
28
|
+
{ label: 'ETF', value: 2, memo: [] },
|
|
29
|
+
{ label: 'A股', value: 3, memo: [4, 6] },
|
|
30
|
+
],
|
|
31
|
+
},
|
|
32
|
+
commonOption: {
|
|
33
|
+
show: true,
|
|
34
|
+
options: [
|
|
35
|
+
{ label: '常用股票指数', value: 4 },
|
|
36
|
+
{ label: '行业板块指数', value: 6 },
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
marketIds: {
|
|
40
|
+
show: true,
|
|
41
|
+
options: [
|
|
42
|
+
{ label: '沪深主板', value: 1, varietyMarketIds: [3] },
|
|
43
|
+
{ label: '沪港通', value: 4096, varietyMarketIds: [5] },
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
jcTranslate: { show: true, jcOptions: [{ label: 'jc1', value: 1 }] },
|
|
47
|
+
factorScreen: { show: true },
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
describe('VarietySearch', () => {
|
|
51
|
+
it('默认渲染: 渲染各筛选行', () => {
|
|
52
|
+
const wrapper = mountComponent(fullConfig)
|
|
53
|
+
expect(wrapper.text()).toContain('品种市场')
|
|
54
|
+
expect(wrapper.text()).toContain('常用选项')
|
|
55
|
+
expect(wrapper.text()).toContain('上市板块')
|
|
56
|
+
expect(wrapper.text()).toContain('价差转换')
|
|
57
|
+
expect(wrapper.find('.factor-screen-stub').exists()).toBe(true)
|
|
58
|
+
})
|
|
59
|
+
|
|
60
|
+
it('config 未指定 show 时, 默认配置 show=true 保留', () => {
|
|
61
|
+
const wrapper = mountComponent()
|
|
62
|
+
// 默认 config 各项 show=true, 即使 options 为空也渲染价差转换/自定标签行
|
|
63
|
+
expect(wrapper.text()).toContain('价差转换')
|
|
64
|
+
expect(wrapper.text()).toContain('自定标签')
|
|
65
|
+
})
|
|
66
|
+
|
|
67
|
+
it('config.varietyMarket.show=false 时不渲染该行', () => {
|
|
68
|
+
const wrapper = mountComponent({
|
|
69
|
+
...fullConfig,
|
|
70
|
+
varietyMarket: { show: false, options: fullConfig.varietyMarket.options },
|
|
71
|
+
})
|
|
72
|
+
expect(wrapper.text()).not.toContain('品种市场')
|
|
73
|
+
})
|
|
74
|
+
|
|
75
|
+
it('选中品种市场后, 常用选项按 memo 过滤排序', async () => {
|
|
76
|
+
const searchData = ref<any>({})
|
|
77
|
+
const wrapper = mountComponent(fullConfig, searchData)
|
|
78
|
+
const vm = wrapper.vm as any
|
|
79
|
+
// 初始: 全部常用选项
|
|
80
|
+
expect(vm.commonOptionDict.length).toBe(2)
|
|
81
|
+
// 选中 A股 (memo=[4,6]) → 两个都保留且按 memo 顺序
|
|
82
|
+
searchData.value.varietyMarket = 3
|
|
83
|
+
await wrapper.vm.$nextTick()
|
|
84
|
+
expect(vm.commonOptionDict.map((i: any) => i.value)).toEqual([4, 6])
|
|
85
|
+
// 选中 ETF (memo=[]) → 空
|
|
86
|
+
searchData.value.varietyMarket = 2
|
|
87
|
+
await wrapper.vm.$nextTick()
|
|
88
|
+
expect(vm.commonOptionDict.length).toBe(0)
|
|
89
|
+
})
|
|
90
|
+
|
|
91
|
+
it('上市板块按 varietyMarketIds 过滤', async () => {
|
|
92
|
+
const searchData = ref<any>({})
|
|
93
|
+
const wrapper = mountComponent(fullConfig, searchData)
|
|
94
|
+
const vm = wrapper.vm as any
|
|
95
|
+
expect(vm.marketIdsOptionDict.length).toBe(2)
|
|
96
|
+
searchData.value.varietyMarket = 3
|
|
97
|
+
await wrapper.vm.$nextTick()
|
|
98
|
+
expect(vm.marketIdsOptionDict.map((i: any) => i.value)).toEqual([1])
|
|
99
|
+
})
|
|
100
|
+
|
|
101
|
+
it('clearRow: 清空对应字段', () => {
|
|
102
|
+
const searchData = ref<any>({ varietyMarket: 3, commonOption: [4], marketIds: [1] })
|
|
103
|
+
const wrapper = mountComponent(fullConfig, searchData)
|
|
104
|
+
const vm = wrapper.vm as any
|
|
105
|
+
vm.clearRow('varietyMarket')
|
|
106
|
+
expect(searchData.value.varietyMarket).toBeNull()
|
|
107
|
+
vm.clearRow('commonOption')
|
|
108
|
+
expect(searchData.value.commonOption).toEqual([])
|
|
109
|
+
vm.clearRow('marketIds')
|
|
110
|
+
expect(searchData.value.marketIds).toEqual([])
|
|
111
|
+
vm.clearRow('jcTranslate')
|
|
112
|
+
expect(searchData.value.jcTranslate).toEqual({ type: null, jcList: [] })
|
|
113
|
+
})
|
|
114
|
+
|
|
115
|
+
it('formatData: 基础字段映射 (exchangeId/optionId/marketIds/tagIds)', () => {
|
|
116
|
+
const searchData = ref<any>({
|
|
117
|
+
varietyMarket: 3,
|
|
118
|
+
commonOption: [4, 6],
|
|
119
|
+
marketIds: [1],
|
|
120
|
+
customTag: [10, 11],
|
|
121
|
+
})
|
|
122
|
+
const wrapper = mountComponent(fullConfig, searchData)
|
|
123
|
+
const params = (wrapper.vm as any).formatData(searchData.value)
|
|
124
|
+
expect(params.exchangeId).toBe('3')
|
|
125
|
+
expect(params.optionId).toBe('4,6')
|
|
126
|
+
expect(params.marketIds).toEqual([1])
|
|
127
|
+
expect(params.tagIds).toEqual([10, 11])
|
|
128
|
+
})
|
|
129
|
+
|
|
130
|
+
it('formatData: 价差转换 type=1 输出 jcType, type=2 只输出 translateType', () => {
|
|
131
|
+
const searchData = ref<any>({ jcTranslate: { type: 1, jcList: [7, 8] } })
|
|
132
|
+
const wrapper = mountComponent(fullConfig, searchData)
|
|
133
|
+
let params = (wrapper.vm as any).formatData(searchData.value)
|
|
134
|
+
expect(params.translateType).toBe(1)
|
|
135
|
+
expect(params.jcType).toBe('7,8')
|
|
136
|
+
|
|
137
|
+
searchData.value.jcTranslate = { type: 2, jcList: [] }
|
|
138
|
+
params = (wrapper.vm as any).formatData(searchData.value)
|
|
139
|
+
expect(params.translateType).toBe(2)
|
|
140
|
+
expect(params.jcType).toBeUndefined()
|
|
141
|
+
})
|
|
142
|
+
|
|
143
|
+
it('formatData: 因子筛选常规条件 → tbFeatureFactorScores', () => {
|
|
144
|
+
const searchData = ref<any>({
|
|
145
|
+
factorScreen: {
|
|
146
|
+
list: [{ key: 'normal', cycle: 5, factor: 100, score: [60, 90] }],
|
|
147
|
+
sqlEnable: 0,
|
|
148
|
+
sqlValue: null,
|
|
149
|
+
factorSelectExpr: 'MA5 > MA10',
|
|
150
|
+
},
|
|
151
|
+
})
|
|
152
|
+
const wrapper = mountComponent(fullConfig, searchData)
|
|
153
|
+
const params = (wrapper.vm as any).formatData(searchData.value)
|
|
154
|
+
expect(params.tbFeatureFactorScores).toEqual([
|
|
155
|
+
{ freqId: 5, factorId: 100, startScore: 60, endScore: 90 },
|
|
156
|
+
])
|
|
157
|
+
expect(params.enableSql).toBe(1)
|
|
158
|
+
expect(params.factorSelectExpr).toBe('MA5 > MA10')
|
|
159
|
+
})
|
|
160
|
+
|
|
161
|
+
it('formatData: 因子对比条件 → compareType 结构', () => {
|
|
162
|
+
const searchData = ref<any>({
|
|
163
|
+
factorScreen: {
|
|
164
|
+
list: [{ key: 'compare', cycle: 5, factor: 100, compareType: '>', cycle2: 10, factor2: 200 }],
|
|
165
|
+
sqlEnable: 0,
|
|
166
|
+
sqlValue: null,
|
|
167
|
+
factorSelectExpr: '',
|
|
168
|
+
},
|
|
169
|
+
})
|
|
170
|
+
const wrapper = mountComponent(fullConfig, searchData)
|
|
171
|
+
const params = (wrapper.vm as any).formatData(searchData.value)
|
|
172
|
+
expect(params.tbFeatureFactorScores).toEqual([
|
|
173
|
+
{ freqId: 5, factorId: 100, compareType: '>', freqId2: 10, factorId2: 200 },
|
|
174
|
+
])
|
|
175
|
+
})
|
|
176
|
+
|
|
177
|
+
it('formatData: sqlEnable=1 时 enableSql=2 并替换条件占位符', () => {
|
|
178
|
+
const searchData = ref<any>({
|
|
179
|
+
factorScreen: {
|
|
180
|
+
list: [{ key: 'normal', cycle: 5, factor: 100, score: [60, 90] }],
|
|
181
|
+
sqlEnable: 1,
|
|
182
|
+
sqlValue: '条件1 or 条件1',
|
|
183
|
+
factorSelectExpr: '',
|
|
184
|
+
},
|
|
185
|
+
})
|
|
186
|
+
const wrapper = mountComponent({
|
|
187
|
+
...fullConfig,
|
|
188
|
+
factorScreen: { show: true, cycleShow: true },
|
|
189
|
+
}, searchData)
|
|
190
|
+
const params = (wrapper.vm as any).formatData(searchData.value)
|
|
191
|
+
expect(params.enableSql).toBe(2)
|
|
192
|
+
expect(params.sqlExpression).toBe('条件1 or 条件1')
|
|
193
|
+
expect(params.sql).toContain('freq_id = 5 and factor_id = 100 and score >= 60 and score <= 90')
|
|
194
|
+
})
|
|
195
|
+
|
|
196
|
+
it('formatData: 组合排序透传 name/value', () => {
|
|
197
|
+
const searchData = ref<any>({
|
|
198
|
+
compositeOrder: [{ name: '总市值', value: 'desc', extra: 'x' }],
|
|
199
|
+
})
|
|
200
|
+
const wrapper = mountComponent(fullConfig, searchData)
|
|
201
|
+
const params = (wrapper.vm as any).formatData(searchData.value)
|
|
202
|
+
expect(params.compositeOrder).toEqual([{ name: '总市值', value: 'desc' }])
|
|
203
|
+
})
|
|
204
|
+
|
|
205
|
+
it('formatData: 常用指标基本面 range 换算 (亿单位)', () => {
|
|
206
|
+
const searchData = ref<any>({
|
|
207
|
+
commonIndicator: [{ key: 'totalMarketValue', range: [10, 100], unit: ['亿', '亿'] }],
|
|
208
|
+
})
|
|
209
|
+
const wrapper = mountComponent(fullConfig, searchData)
|
|
210
|
+
const params = (wrapper.vm as any).formatData(searchData.value)
|
|
211
|
+
expect(params.query).toEqual([
|
|
212
|
+
{ column: 'totalMarketValue', start: 10 * 100000000, end: 100 * 100000000 },
|
|
213
|
+
])
|
|
214
|
+
})
|
|
215
|
+
|
|
216
|
+
it('reset: 重置 searchData 为初始结构', () => {
|
|
217
|
+
const searchData = ref<any>({ varietyMarket: 3, commonOption: [4] })
|
|
218
|
+
const wrapper = mountComponent(fullConfig, searchData)
|
|
219
|
+
;(wrapper.vm as any).reset()
|
|
220
|
+
expect(searchData.value).toEqual({
|
|
221
|
+
varietyMarket: null,
|
|
222
|
+
commonOption: [],
|
|
223
|
+
marketIds: [],
|
|
224
|
+
customTag: [],
|
|
225
|
+
jcTranslate: { type: null, jcList: [] },
|
|
226
|
+
factorScreen: { list: [], sqlEnable: 0, sqlValue: null, factorSelectExpr: '' },
|
|
227
|
+
commonIndicator: [],
|
|
228
|
+
compositeOrder: [],
|
|
229
|
+
})
|
|
230
|
+
})
|
|
231
|
+
|
|
232
|
+
it('空 searchData 挂载不报错, formatData 返回空对象', () => {
|
|
233
|
+
const searchData = ref<any>({})
|
|
234
|
+
const wrapper = mountComponent(fullConfig, searchData)
|
|
235
|
+
const params = (wrapper.vm as any).formatData(searchData.value)
|
|
236
|
+
expect(params).toEqual({ enableSql: 1 })
|
|
237
|
+
})
|
|
238
|
+
})
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { ref } from 'vue'
|
|
2
|
+
import { mountWithPlugins } from '@test/helpers/mountWithPlugins.ts'
|
|
3
|
+
import VarietySearch from '@package/VarietySearch/index.vue'
|
|
4
|
+
|
|
5
|
+
const mountComponent = (config: any = {}, searchDataInit: any = {}) => {
|
|
6
|
+
const searchData = ref(searchDataInit)
|
|
7
|
+
const wrapper = mountWithPlugins(VarietySearch, {
|
|
8
|
+
props: {
|
|
9
|
+
config,
|
|
10
|
+
searchData,
|
|
11
|
+
},
|
|
12
|
+
global: {
|
|
13
|
+
provide: {
|
|
14
|
+
stConfig: { env: {}, request: { get: () => Promise.resolve({}), post: () => Promise.resolve({}) } },
|
|
15
|
+
},
|
|
16
|
+
stubs: {
|
|
17
|
+
FactorScreen: { template: '<div class="factor-screen-stub" />' },
|
|
18
|
+
CommonIndicator: { template: '<div class="common-indicator-stub" />' },
|
|
19
|
+
CompositeOrder: { template: '<div class="composite-order-stub" />' },
|
|
20
|
+
AddTag: { template: '<div class="add-tag-stub" />' },
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
})
|
|
24
|
+
return wrapper
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// 取组件内部实际使用的 searchData (setup 里被 Object.assign 填充默认结构)
|
|
28
|
+
const sd = (wrapper: any) => wrapper.props('searchData').value
|
|
29
|
+
|
|
30
|
+
const fullConfig = {
|
|
31
|
+
varietyMarket: {
|
|
32
|
+
show: true,
|
|
33
|
+
options: [
|
|
34
|
+
{ label: 'ETF', value: 2, memo: [] },
|
|
35
|
+
{ label: 'A股', value: 3, memo: [4, 6] },
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
commonOption: {
|
|
39
|
+
show: true,
|
|
40
|
+
options: [
|
|
41
|
+
{ label: '常用股票指数', value: 4 },
|
|
42
|
+
{ label: '行业板块指数', value: 6 },
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
marketIds: {
|
|
46
|
+
show: true,
|
|
47
|
+
options: [
|
|
48
|
+
{ label: '沪深主板', value: 1, varietyMarketIds: [3] },
|
|
49
|
+
{ label: '沪港通', value: 4096, varietyMarketIds: [5] },
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
jcTranslate: { show: true, jcOptions: [{ label: 'jc1', value: 1 }] },
|
|
53
|
+
factorScreen: { show: true },
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
describe('VarietySearch', () => {
|
|
57
|
+
it('默认渲染: 渲染各筛选行', () => {
|
|
58
|
+
const wrapper = mountComponent(fullConfig)
|
|
59
|
+
expect(wrapper.text()).toContain('品种市场')
|
|
60
|
+
expect(wrapper.text()).toContain('常用选项')
|
|
61
|
+
expect(wrapper.text()).toContain('上市板块')
|
|
62
|
+
expect(wrapper.text()).toContain('价差转换')
|
|
63
|
+
expect(wrapper.find('.factor-screen-stub').exists()).toBe(true)
|
|
64
|
+
})
|
|
65
|
+
|
|
66
|
+
it('config 未指定 show 时, 默认配置 show=true 保留', () => {
|
|
67
|
+
const wrapper = mountComponent()
|
|
68
|
+
expect(wrapper.text()).toContain('价差转换')
|
|
69
|
+
expect(wrapper.text()).toContain('自定标签')
|
|
70
|
+
})
|
|
71
|
+
|
|
72
|
+
it('config.varietyMarket.show=false 时不渲染该行', () => {
|
|
73
|
+
const wrapper = mountComponent({
|
|
74
|
+
...fullConfig,
|
|
75
|
+
varietyMarket: { show: false, options: fullConfig.varietyMarket.options },
|
|
76
|
+
})
|
|
77
|
+
expect(wrapper.text()).not.toContain('品种市场')
|
|
78
|
+
})
|
|
79
|
+
|
|
80
|
+
it('选中品种市场后, 常用选项按 memo 过滤排序', async () => {
|
|
81
|
+
const wrapper = mountComponent(fullConfig)
|
|
82
|
+
const vm = wrapper.vm as any
|
|
83
|
+
expect(vm.commonOptionDict.length).toBe(2)
|
|
84
|
+
sd(wrapper).varietyMarket = 3
|
|
85
|
+
await wrapper.vm.$nextTick()
|
|
86
|
+
expect(vm.commonOptionDict.map((i: any) => i.value)).toEqual([4, 6])
|
|
87
|
+
sd(wrapper).varietyMarket = 2
|
|
88
|
+
await wrapper.vm.$nextTick()
|
|
89
|
+
expect(vm.commonOptionDict.length).toBe(0)
|
|
90
|
+
})
|
|
91
|
+
|
|
92
|
+
it('上市板块按 varietyMarketIds 过滤', async () => {
|
|
93
|
+
const wrapper = mountComponent(fullConfig)
|
|
94
|
+
const vm = wrapper.vm as any
|
|
95
|
+
expect(vm.marketIdsOptionDict.length).toBe(2)
|
|
96
|
+
sd(wrapper).varietyMarket = 3
|
|
97
|
+
await wrapper.vm.$nextTick()
|
|
98
|
+
expect(vm.marketIdsOptionDict.map((i: any) => i.value)).toEqual([1])
|
|
99
|
+
})
|
|
100
|
+
|
|
101
|
+
it('clearRow: 清空对应字段', () => {
|
|
102
|
+
const wrapper = mountComponent(fullConfig, { varietyMarket: 3, commonOption: [4], marketIds: [1] })
|
|
103
|
+
const vm = wrapper.vm as any
|
|
104
|
+
vm.clearRow('varietyMarket')
|
|
105
|
+
expect(sd(wrapper).varietyMarket).toBeNull()
|
|
106
|
+
vm.clearRow('commonOption')
|
|
107
|
+
expect(sd(wrapper).commonOption).toEqual([])
|
|
108
|
+
vm.clearRow('marketIds')
|
|
109
|
+
expect(sd(wrapper).marketIds).toEqual([])
|
|
110
|
+
vm.clearRow('jcTranslate')
|
|
111
|
+
expect(sd(wrapper).jcTranslate).toEqual({ type: null, jcList: [] })
|
|
112
|
+
})
|
|
113
|
+
|
|
114
|
+
it('formatData: 基础字段映射 (exchangeId/optionId/marketIds/tagIds)', () => {
|
|
115
|
+
const wrapper = mountComponent(fullConfig, {
|
|
116
|
+
varietyMarket: 3,
|
|
117
|
+
commonOption: [4, 6],
|
|
118
|
+
marketIds: [1],
|
|
119
|
+
customTag: [10, 11],
|
|
120
|
+
})
|
|
121
|
+
const params = (wrapper.vm as any).formatData(sd(wrapper))
|
|
122
|
+
expect(params.exchangeId).toBe('3')
|
|
123
|
+
expect(params.optionId).toBe('4,6')
|
|
124
|
+
expect(params.marketIds).toEqual([1])
|
|
125
|
+
expect(params.tagIds).toEqual([10, 11])
|
|
126
|
+
})
|
|
127
|
+
|
|
128
|
+
it('formatData: 价差转换 type=1 输出 jcType, type=2 只输出 translateType', () => {
|
|
129
|
+
const wrapper = mountComponent(fullConfig, { jcTranslate: { type: 1, jcList: [7, 8] } })
|
|
130
|
+
let params = (wrapper.vm as any).formatData(sd(wrapper))
|
|
131
|
+
expect(params.translateType).toBe(1)
|
|
132
|
+
expect(params.jcType).toBe('7,8')
|
|
133
|
+
|
|
134
|
+
sd(wrapper).jcTranslate = { type: 2, jcList: [] }
|
|
135
|
+
params = (wrapper.vm as any).formatData(sd(wrapper))
|
|
136
|
+
expect(params.translateType).toBe(2)
|
|
137
|
+
expect(params.jcType).toBeUndefined()
|
|
138
|
+
})
|
|
139
|
+
|
|
140
|
+
it('formatData: 因子筛选常规条件 → tbFeatureFactorScores', () => {
|
|
141
|
+
const wrapper = mountComponent(fullConfig, {
|
|
142
|
+
factorScreen: {
|
|
143
|
+
list: [{ key: 'normal', cycle: 5, factor: 100, score: [60, 90] }],
|
|
144
|
+
sqlEnable: 0,
|
|
145
|
+
sqlValue: null,
|
|
146
|
+
factorSelectExpr: 'MA5 > MA10',
|
|
147
|
+
},
|
|
148
|
+
})
|
|
149
|
+
const params = (wrapper.vm as any).formatData(sd(wrapper))
|
|
150
|
+
expect(params.tbFeatureFactorScores).toEqual([
|
|
151
|
+
{ freqId: 5, factorId: 100, startScore: 60, endScore: 90 },
|
|
152
|
+
])
|
|
153
|
+
expect(params.enableSql).toBe(1)
|
|
154
|
+
expect(params.factorSelectExpr).toBe('MA5 > MA10')
|
|
155
|
+
})
|
|
156
|
+
|
|
157
|
+
it('formatData: 因子对比条件 → compareType 结构', () => {
|
|
158
|
+
const wrapper = mountComponent(fullConfig, {
|
|
159
|
+
factorScreen: {
|
|
160
|
+
list: [{ key: 'compare', cycle: 5, factor: 100, compareType: '>', cycle2: 10, factor2: 200 }],
|
|
161
|
+
sqlEnable: 0,
|
|
162
|
+
sqlValue: null,
|
|
163
|
+
factorSelectExpr: '',
|
|
164
|
+
},
|
|
165
|
+
})
|
|
166
|
+
const params = (wrapper.vm as any).formatData(sd(wrapper))
|
|
167
|
+
expect(params.tbFeatureFactorScores).toEqual([
|
|
168
|
+
{ freqId: 5, factorId: 100, compareType: '>', freqId2: 10, factorId2: 200 },
|
|
169
|
+
])
|
|
170
|
+
})
|
|
171
|
+
|
|
172
|
+
it('formatData: sqlEnable=1 时 enableSql=2 并替换条件占位符', () => {
|
|
173
|
+
const wrapper = mountComponent({
|
|
174
|
+
...fullConfig,
|
|
175
|
+
factorScreen: { show: true, cycleShow: true },
|
|
176
|
+
}, {
|
|
177
|
+
factorScreen: {
|
|
178
|
+
list: [{ key: 'normal', cycle: 5, factor: 100, score: [60, 90] }],
|
|
179
|
+
sqlEnable: 1,
|
|
180
|
+
sqlValue: '条件1 or 条件1',
|
|
181
|
+
factorSelectExpr: '',
|
|
182
|
+
},
|
|
183
|
+
})
|
|
184
|
+
const params = (wrapper.vm as any).formatData(sd(wrapper))
|
|
185
|
+
expect(params.enableSql).toBe(2)
|
|
186
|
+
expect(params.sqlExpression).toBe('条件1 or 条件1')
|
|
187
|
+
expect(params.sql).toContain('freq_id = 5 and factor_id = 100 and score >= 60 and score <= 90')
|
|
188
|
+
})
|
|
189
|
+
|
|
190
|
+
it('formatData: 组合排序透传 name/value', () => {
|
|
191
|
+
const wrapper = mountComponent(fullConfig, {
|
|
192
|
+
compositeOrder: [{ name: '总市值', value: 'desc', extra: 'x' }],
|
|
193
|
+
})
|
|
194
|
+
const params = (wrapper.vm as any).formatData(sd(wrapper))
|
|
195
|
+
expect(params.compositeOrder).toEqual([{ name: '总市值', value: 'desc' }])
|
|
196
|
+
})
|
|
197
|
+
|
|
198
|
+
it('formatData: 常用指标基本面 range 换算 (亿单位)', () => {
|
|
199
|
+
const wrapper = mountComponent(fullConfig, {
|
|
200
|
+
commonIndicator: [{ key: 'totalMarketValue', range: [10, 100], unit: ['亿', '亿'] }],
|
|
201
|
+
})
|
|
202
|
+
const params = (wrapper.vm as any).formatData(sd(wrapper))
|
|
203
|
+
expect(params.query).toEqual([
|
|
204
|
+
{ column: 'totalMarketValue', start: 10 * 100000000, end: 100 * 100000000 },
|
|
205
|
+
])
|
|
206
|
+
})
|
|
207
|
+
|
|
208
|
+
it('reset: 重置 searchData 为初始结构', () => {
|
|
209
|
+
const wrapper = mountComponent(fullConfig, { varietyMarket: 3, commonOption: [4] })
|
|
210
|
+
;(wrapper.vm as any).reset()
|
|
211
|
+
expect(sd(wrapper)).toEqual({
|
|
212
|
+
varietyMarket: null,
|
|
213
|
+
commonOption: [],
|
|
214
|
+
marketIds: [],
|
|
215
|
+
customTag: [],
|
|
216
|
+
jcTranslate: { type: null, jcList: [] },
|
|
217
|
+
factorScreen: { list: [], sqlEnable: 0, sqlValue: null, factorSelectExpr: '' },
|
|
218
|
+
commonIndicator: [],
|
|
219
|
+
compositeOrder: [],
|
|
220
|
+
})
|
|
221
|
+
})
|
|
222
|
+
|
|
223
|
+
it('空 searchData 挂载后, 组件内部自动补齐默认结构', () => {
|
|
224
|
+
const wrapper = mountComponent(fullConfig)
|
|
225
|
+
expect(sd(wrapper)).toMatchObject({
|
|
226
|
+
varietyMarket: null,
|
|
227
|
+
commonOption: [],
|
|
228
|
+
jcTranslate: { type: null, jcList: [] },
|
|
229
|
+
})
|
|
230
|
+
const params = (wrapper.vm as any).formatData(sd(wrapper))
|
|
231
|
+
expect(params).toEqual({ enableSql: 1 })
|
|
232
|
+
})
|
|
233
|
+
})
|