st-comp 0.0.277 → 0.0.278
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +1 -1
- package/es/VarietyAiHelper.js +39 -39
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +7 -7
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +29 -29
- 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/{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/bundle.js +1 -1
- package/lib/bundle.umd.cjs +189 -189
- package/lib/{index-2a269748.js → index-72506c43.js} +20667 -20433
- package/lib/{python-41da18e5.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/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/index-476c4459.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const l=require("vue"),ot=require("./index-a00e0534.cjs"),ce=require("./el-popper-43ec37f4.cjs"),w=require("./base-ef747d02.cjs"),rt=require("./use-global-config-31b3ec57.cjs"),fe=require("./index-cfcd60ca.cjs"),ae=require("./use-form-common-props-02be4928.cjs"),le=require("./index-9780a537.cjs"),ue=require("./_initCloneObject-76e116d0.cjs"),at=require("./el-tag-5d5608e0.cjs"),st=require("./castArray-35947698.cjs"),Re=require("./index-bb833443.cjs"),Le=require("./debounce-62f5b6e8.cjs"),me=require("./el-checkbox-bdf64663.cjs"),de=require("./index-476c4459.cjs"),qt=require("./raf-8249652f.cjs");function Ut(e,t){return ce.setToString(ce.overRest(e,t,ce.identity),e+"")}function Yt(e,t,n){if(!le.isObject(n))return!1;var o=typeof t;return(o=="number"?fe.isArrayLike(n)&&ae.isIndex(t,n.length):o=="string"&&t in n)?le.eq(n[t],e):!1}function Xt(e){return Ut(function(t,n){var o=-1,a=n.length,i=a>1?n[a-1]:void 0,u=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,u&&Yt(n[0],n[1],u)&&(i=a<3?void 0:i,a=1),t=Object(t);++o<a;){var r=n[o];r&&e(t,r,o,i)}return t})}var Gt="[object Object]",Qt=Function.prototype,Jt=Object.prototype,it=Qt.toString,Zt=Jt.hasOwnProperty,el=it.call(Object);function tl(e){if(!le.isObjectLike(e)||le.baseGetTag(e)!=Gt)return!1;var t=ue.getPrototype(e);if(t===null)return!0;var n=Zt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&it.call(n)==el}function ll(e){return function(t,n,o){for(var a=-1,i=Object(t),u=o(t),r=u.length;r--;){var c=u[e?r:++a];if(n(i[c],c,i)===!1)break}return t}}var nl=ll();const ut=nl;function ol(e,t){return e&&ut(e,t,fe.keys)}function rl(e,t){return function(n,o){if(n==null)return n;if(!fe.isArrayLike(n))return e(n,o);for(var a=n.length,i=t?a:-1,u=Object(n);(t?i--:++i<a)&&o(u[i],i,u)!==!1;);return n}}var al=rl(ol);const sl=al;function Ae(e,t,n){(n!==void 0&&!le.eq(e[t],n)||n===void 0&&!(t in e))&&ae.baseAssignValue(e,t,n)}function il(e){return le.isObjectLike(e)&&fe.isArrayLike(e)}function We(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function ul(e){return ue.copyObject(e,ue.keysIn(e))}function cl(e,t,n,o,a,i,u){var r=We(e,n),c=We(t,n),s=u.get(c);if(s){Ae(e,n,s);return}var d=i?i(r,c,n+"",e,t,u):void 0,h=d===void 0;if(h){var g=le.isArray(c),m=!g&&fe.isBuffer(c),p=!g&&!m&&fe.isTypedArray(c);d=c,g||m||p?le.isArray(r)?d=r:il(r)?d=ue.copyArray(r):m?(h=!1,d=ue.cloneBuffer(c,!0)):p?(h=!1,d=ue.cloneTypedArray(c,!0)):d=[]:tl(c)||ae.isArguments(c)?(d=r,ae.isArguments(r)?d=ul(r):(!le.isObject(r)||le.isFunction(r))&&(d=ue.initCloneObject(c))):h=!1}h&&(u.set(c,d),a(d,c,o,i,u),u.delete(c)),Ae(e,n,d)}function ct(e,t,n,o,a){e!==t&&ut(t,function(i,u){if(a||(a=new fe.Stack),le.isObject(i))cl(e,t,u,n,ct,o,a);else{var r=o?o(We(e,u),i,u+"",e,t,a):void 0;r===void 0&&(r=i),Ae(e,u,r)}},ue.keysIn)}function dl(e,t){var n=-1,o=fe.isArrayLike(e)?Array(e.length):[];return sl(e,function(a,i,u){o[++n]=t(a,i,u)}),o}function fl(e,t){var n=le.isArray(e)?le.arrayMap:dl;return n(e,at.baseIteratee(t))}function dt(e,t){return ce.baseFlatten(fl(e,t),1)}function Ce(e){return e===null}var hl=Xt(function(e,t,n){ct(e,t,n)});const ft=hl,ke=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},pl=function(e,t,n,o,a){if(!t&&!o&&(!a||w.isArray(a)&&!a.length))return e;w.isString(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const i=o?null:function(r,c){return a?dt(st.castArray(a),s=>w.isString(s)?Re.get(r,s):s(r,c,e)):(t!=="$key"&&w.isObject(r)&&"$value"in r&&(r=r.$value),[w.isObject(r)?t?Re.get(r,t):null:r])},u=function(r,c){var s,d,h,g,m,p;if(o)return o(r.value,c.value);for(let C=0,y=(d=(s=r.key)==null?void 0:s.length)!=null?d:0;C<y;C++){if(((h=r.key)==null?void 0:h[C])<((g=c.key)==null?void 0:g[C]))return-1;if(((m=r.key)==null?void 0:m[C])>((p=c.key)==null?void 0:p[C]))return 1}return 0};return e.map((r,c)=>({value:r,index:c,key:i?i(r,c):null})).sort((r,c)=>{let s=u(r,c);return s||(s=r.index-c.index),s*+n}).map(r=>r.value)},ht=function(e,t){let n=null;return e.columns.forEach(o=>{o.id===t&&(n=o)}),n},vl=function(e,t){let n=null;for(let o=0;o<e.columns.length;o++){const a=e.columns[o];if(a.columnKey===t){n=a;break}}return n||ce.throwError("ElTable",`No column matching with column-key: ${t}`),n},Ge=function(e,t,n){const o=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return o?ht(e,o[0]):null},J=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(w.isString(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let o=e;for(const a of n)o=o[a];return`${o}`}else if(w.isFunction(t))return t.call(null,e);return""},ve=function(e,t,n=!1,o="children"){const a=e||[],i={};return a.forEach((u,r)=>{if(i[J(u,t)]={row:u,index:r},n){const c=u[o];w.isArray(c)&&Object.assign(i,ve(c,t,!0,o))}}),i};function ml(e,t){const n={};let o;for(o in e)n[o]=e[o];for(o in t)if(w.hasOwn(t,o)){const a=t[o];w.isUndefined(a)||(n[o]=a)}return n}function De(e){return e===""||w.isUndefined(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function pt(e){return e===""||w.isUndefined(e)||(e=De(e),Number.isNaN(e)&&(e=80)),e}function gl(e){return w.isNumber(e)?e:w.isString(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function Cl(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...o)=>t(n(...o)))}function Fe(e,t,n,o,a,i,u){let r=i??0,c=!1;const d=(()=>{if(!u)return e.indexOf(t);const C=J(t,u);return e.findIndex(y=>J(y,u)===C)})(),h=d!==-1,g=a==null?void 0:a.call(null,t,r),m=C=>{C==="add"?e.push(t):e.splice(d,1),c=!0},p=C=>{let y=0;const T=(o==null?void 0:o.children)&&C[o.children];return T&&w.isArray(T)&&(y+=T.length,T.forEach(L=>{y+=p(L)})),y};return(!a||g)&&(w.isBoolean(n)?n&&!h?m("add"):!n&&h&&m("remove"):m(h?"remove":"add")),!(o!=null&&o.checkStrictly)&&(o!=null&&o.children)&&w.isArray(t[o.children])&&t[o.children].forEach(C=>{const y=Fe(e,C,n??!h,o,a,r+1,u);r+=p(C)+1,y&&(c=y)}),c}function yl(e,t,n="children",o="hasChildren",a=!1){const i=r=>!(w.isArray(r)&&r.length);function u(r,c,s){t(r,c,s),c.forEach(d=>{if(d[o]&&a){t(d,null,s+1);return}const h=d[n];i(h)||u(d,h,s+1)})}e.forEach(r=>{if(r[o]&&a){t(r,null,0);return}const c=r[n];i(c)||u(r,c,0)})}const bl=(e,t,n,o)=>{const a={strategy:"fixed",...e.popperOptions},i=w.isFunction(o==null?void 0:o.tooltipFormatter)?o.tooltipFormatter({row:n,column:o,cellValue:rt.getProp(n,o.property).value}):void 0;return l.isVNode(i)?{slotContent:i,content:null,...e,popperOptions:a}:{slotContent:null,content:i??t,...e,popperOptions:a}};let Z=null;function wl(e,t,n,o,a,i){var u;const r=bl(e,t,n,o),c={...r,slotContent:void 0};if((Z==null?void 0:Z.trigger)===a){const p=(u=Z.vm)==null?void 0:u.component;ft(p==null?void 0:p.props,c),p&&r.slotContent&&(p.slots.content=()=>[r.slotContent]);return}Z==null||Z();const s=i==null?void 0:i.refs.tableWrapper,d=s==null?void 0:s.dataset.prefix,h=l.createVNode(ce.ElTooltip,{virtualTriggering:!0,virtualRef:a,appendTo:s,placement:"top",transition:"none",offset:0,hideAfter:0,...c},r.slotContent?{content:()=>r.slotContent}:void 0);h.appContext={...i.appContext,...i};const g=document.createElement("div");l.render(h,g),h.component.exposed.onOpen();const m=s==null?void 0:s.querySelector(`.${d}-scrollbar__wrap`);Z=()=>{var p,C;(C=(p=h.component)==null?void 0:p.exposed)!=null&&C.onClose&&h.component.exposed.onClose(),l.render(null,g);const y=Z;m==null||m.removeEventListener("scroll",y),y.trigger=void 0,y.vm=void 0,Z=null},Z.trigger=a??void 0,Z.vm=h,m==null||m.addEventListener("scroll",Z)}function vt(e){return e.children?dt(e.children,vt):[e]}function Qe(e,t){return e+t.colSpan}const mt=(e,t,n,o)=>{let a=0,i=e;const u=n.states.columns.value;if(o){const c=vt(o[e]);a=u.slice(0,u.indexOf(c[0])).reduce(Qe,0),i=a+c.reduce(Qe,0)-1}else a=e;let r;switch(t){case"left":i<n.states.fixedLeafColumnsLength.value&&(r="left");break;case"right":a>=u.length-n.states.rightFixedLeafColumnsLength.value&&(r="right");break;default:i<n.states.fixedLeafColumnsLength.value?r="left":a>=u.length-n.states.rightFixedLeafColumnsLength.value&&(r="right")}return r?{direction:r,start:a,after:i}:{}},je=(e,t,n,o,a,i=0)=>{const u=[],{direction:r,start:c,after:s}=mt(t,n,o,a);if(r){const d=r==="left";u.push(`${e}-fixed-column--${r}`),d&&s+i===o.states.fixedLeafColumnsLength.value-1?u.push("is-last-column"):!d&&c-i===o.states.columns.value.length-o.states.rightFixedLeafColumnsLength.value&&u.push("is-first-column")}return u};function Je(e,t){return e+(Ce(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const qe=(e,t,n,o)=>{const{direction:a,start:i=0,after:u=0}=mt(e,t,n,o);if(!a)return;const r={},c=a==="left",s=n.states.columns.value;return c?r.left=s.slice(0,i).reduce(Je,0):r.right=s.slice(u+1).reverse().reduce(Je,0),r},ge=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function Sl(e){const t=l.getCurrentInstance(),n=l.ref(!1),o=l.ref([]);return{updateExpandRows:()=>{const c=e.data.value||[],s=e.rowKey.value;if(n.value)o.value=c.slice();else if(s){const d=ve(o.value,s);o.value=c.reduce((h,g)=>{const m=J(g,s);return d[m]&&h.push(g),h},[])}else o.value=[]},toggleRowExpansion:(c,s)=>{Fe(o.value,c,s,void 0,void 0,void 0,e.rowKey.value)&&t.emit("expand-change",c,o.value.slice())},setExpandRowKeys:c=>{t.store.assertRowKey();const s=e.data.value||[],d=e.rowKey.value,h=ve(s,d);o.value=c.reduce((g,m)=>{const p=h[m];return p&&g.push(p.row),g},[])},isRowExpanded:c=>{const s=e.rowKey.value;return s?!!ve(o.value,s)[J(c,s)]:o.value.includes(c)},states:{expandRows:o,defaultExpandAll:n}}}function El(e){const t=l.getCurrentInstance(),n=l.ref(null),o=l.ref(null),a=s=>{t.store.assertRowKey(),n.value=s,u(s)},i=()=>{n.value=null},u=s=>{var d;const{data:h,rowKey:g}=e;let m=null;g.value&&(m=(d=(l.unref(h)||[]).find(p=>J(p,g.value)===s))!=null?d:null),o.value=m??null,t.emit("current-change",o.value,null)};return{setCurrentRowKey:a,restoreCurrentRowKey:i,setCurrentRowByKey:u,updateCurrentRow:s=>{const d=o.value;if(s&&s!==d){o.value=s,t.emit("current-change",o.value,d);return}!s&&d&&(o.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const s=e.rowKey.value,d=e.data.value||[],h=o.value;if(h&&!d.includes(h)){if(s){const g=J(h,s);u(g)}else o.value=null;Ce(o.value)&&t.emit("current-change",null,h)}else n.value&&(u(n.value),i())},states:{_currentRowKey:n,currentRow:o}}}function xl(e){const t=l.ref([]),n=l.ref({}),o=l.ref(16),a=l.ref(!1),i=l.ref({}),u=l.ref("hasChildren"),r=l.ref("children"),c=l.ref(!1),s=l.getCurrentInstance(),d=l.computed(()=>{if(!e.rowKey.value)return{};const f=e.data.value||[];return g(f)}),h=l.computed(()=>{const f=e.rowKey.value,v=Object.keys(i.value),b={};return v.length&&v.forEach(S=>{if(i.value[S].length){const x={children:[]};i.value[S].forEach(N=>{const R=J(N,f);x.children.push(R),N[u.value]&&!b[R]&&(b[R]={children:[]})}),b[S]=x}}),b}),g=f=>{const v=e.rowKey.value,b={};return yl(f,(S,x,N)=>{const R=J(S,v);w.isArray(x)?b[R]={children:x.map(B=>J(B,v)),level:N}:a.value&&(b[R]={children:[],lazy:!0,level:N})},r.value,u.value,a.value),b},m=(f=!1,v)=>{var b,S;v||(v=(b=s.store)==null?void 0:b.states.defaultExpandAll.value);const x=d.value,N=h.value,R=Object.keys(x),B={};if(R.length){const W=l.unref(n),H=[],V=(_,F)=>{if(f)return t.value?v||t.value.includes(F):!!(v||_!=null&&_.expanded);{const A=v||t.value&&t.value.includes(F);return!!(_!=null&&_.expanded||A)}};R.forEach(_=>{const F=W[_],A={...x[_]};if(A.expanded=V(F,_),A.lazy){const{loaded:M=!1,loading:O=!1}=F||{};A.loaded=!!M,A.loading=!!O,H.push(_)}B[_]=A});const Y=Object.keys(N);a.value&&Y.length&&H.length&&Y.forEach(_=>{var F;const A=W[_],M=N[_].children;if(H.includes(_)){if(((F=B[_].children)==null?void 0:F.length)!==0)throw new Error("[ElTable]children must be an empty array.");B[_].children=M}else{const{loaded:O=!1,loading:z=!1}=A||{};B[_]={lazy:!0,loaded:!!O,loading:!!z,expanded:V(A,_),children:M,level:void 0}}})}n.value=B,(S=s.store)==null||S.updateTableScrollY()};l.watch(()=>t.value,()=>{m(!0)}),l.watch(()=>d.value,()=>{m()}),l.watch(()=>h.value,()=>{m()});const p=f=>{t.value=f,m()},C=f=>a.value&&f&&"loaded"in f&&!f.loaded,y=(f,v)=>{s.store.assertRowKey();const b=e.rowKey.value,S=J(f,b),x=S&&n.value[S];if(S&&x&&"expanded"in x){const N=x.expanded;v=w.isUndefined(v)?!x.expanded:v,n.value[S].expanded=v,N!==v&&s.emit("expand-change",f,v),C(x)&&L(f,S,x),s.store.updateTableScrollY()}},T=f=>{s.store.assertRowKey();const v=e.rowKey.value,b=J(f,v),S=n.value[b];C(S)?L(f,b,S):y(f,void 0)},L=(f,v,b)=>{const{load:S}=s.props;S&&!n.value[v].loaded&&(n.value[v].loading=!0,S(f,b,x=>{if(!w.isArray(x))throw new TypeError("[ElTable] data must be an array");n.value[v].loading=!1,n.value[v].loaded=!0,n.value[v].expanded=!0,x.length&&(i.value[v]=x),s.emit("expand-change",f,!0)}))};return{loadData:L,loadOrToggle:T,toggleTreeExpansion:y,updateTreeExpandKeys:p,updateTreeData:m,updateKeyChildren:(f,v)=>{const{lazy:b,rowKey:S}=s.props;if(b){if(!S)throw new Error("[Table] rowKey is required in updateKeyChild");i.value[f]&&(i.value[f]=v)}},normalize:g,states:{expandRowKeys:t,treeData:n,indent:o,lazy:a,lazyTreeNodeMap:i,lazyColumnIdentifier:u,childrenColumnName:r,checkStrictly:c}}}const Nl=(e,t)=>{const n=t.sortingColumn;return!n||w.isString(n.sortable)?e:pl(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Se=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,Se(n.children)):t.push(n)}),t};function Rl(){var e;const t=l.getCurrentInstance(),{size:n}=l.toRefs((e=t.proxy)==null?void 0:e.$props),o=l.ref(null),a=l.ref([]),i=l.ref([]),u=l.ref(!1),r=l.ref([]),c=l.ref([]),s=l.ref([]),d=l.ref([]),h=l.ref([]),g=l.ref([]),m=l.ref([]),p=l.ref([]),C=[],y=l.ref(0),T=l.ref(0),L=l.ref(0),E=l.ref(!1),f=l.ref([]),v=l.ref(!1),b=l.ref(!1),S=l.ref(null),x=l.ref({}),N=l.ref(null),R=l.ref(null),B=l.ref(null),W=l.ref(null),H=l.ref(null),V=l.computed(()=>o.value?ve(f.value,o.value):void 0);l.watch(a,()=>{var k;t.state&&(A(!1),t.props.tableLayout==="auto"&&((k=t.refs.tableHeaderRef)==null||k.updateFixedColumnStyle()))},{deep:!0});const Y=()=>{if(!o.value)throw new Error("[ElTable] prop row-key is required")},_=k=>{var P;(P=k.children)==null||P.forEach(I=>{I.fixed=k.fixed,_(I)})},F=()=>{r.value.forEach(q=>{_(q)}),d.value=r.value.filter(q=>[!0,"left"].includes(q.fixed));const k=r.value.find(q=>q.type==="selection");let P;k&&k.fixed!=="right"&&!d.value.includes(k)&&r.value.indexOf(k)===0&&d.value.length&&(d.value.unshift(k),P=!0),h.value=r.value.filter(q=>q.fixed==="right");const I=r.value.filter(q=>(P?q.type!=="selection":!0)&&!q.fixed);c.value=Array.from(d.value).concat(I).concat(h.value);const $=Se(I),K=Se(d.value),D=Se(h.value);y.value=$.length,T.value=K.length,L.value=D.length,s.value=Array.from(K).concat($).concat(D),u.value=d.value.length>0||h.value.length>0},A=(k,P=!1)=>{k&&F(),P?t.state.doLayout():t.state.debouncedUpdateLayout()},M=k=>V.value?!!V.value[J(k,o.value)]:f.value.includes(k),O=()=>{E.value=!1;const k=f.value;f.value=[],k.length&&t.emit("selection-change",[])},z=()=>{var k,P;let I;if(o.value){I=[];const $=(P=(k=t==null?void 0:t.store)==null?void 0:k.states)==null?void 0:P.childrenColumnName.value,K=ve(a.value,o.value,!0,$);for(const D in V.value)w.hasOwn(V.value,D)&&!K[D]&&I.push(V.value[D].row)}else I=f.value.filter($=>!a.value.includes($));if(I.length){const $=f.value.filter(K=>!I.includes(K));f.value=$,t.emit("selection-change",$.slice())}},j=()=>(f.value||[]).slice(),X=(k,P,I=!0,$=!1)=>{var K,D,q,se;const ie={children:(D=(K=t==null?void 0:t.store)==null?void 0:K.states)==null?void 0:D.childrenColumnName.value,checkStrictly:(se=(q=t==null?void 0:t.store)==null?void 0:q.states)==null?void 0:se.checkStrictly.value};if(Fe(f.value,k,P,ie,$?void 0:S.value,a.value.indexOf(k),o.value)){const be=(f.value||[]).slice();I&&t.emit("select",be,k),t.emit("selection-change",be)}},U=()=>{var k,P;const I=b.value?!E.value:!(E.value||f.value.length);E.value=I;let $=!1,K=0;const D=(P=(k=t==null?void 0:t.store)==null?void 0:k.states)==null?void 0:P.rowKey.value,{childrenColumnName:q}=t.store.states,se={children:q.value,checkStrictly:!1};a.value.forEach((ie,ye)=>{const be=ye+K;Fe(f.value,ie,I,se,S.value,be,D)&&($=!0),K+=Q(J(ie,D))}),$&&t.emit("selection-change",f.value?f.value.slice():[]),t.emit("select-all",(f.value||[]).slice())},G=()=>{var k;if(((k=a.value)==null?void 0:k.length)===0){E.value=!1;return}const{childrenColumnName:P}=t.store.states;let I=0,$=0;const K=q=>{var se;for(const ie of q){const ye=S.value&&S.value.call(null,ie,I);if(M(ie))$++;else if(!S.value||ye)return!1;if(I++,(se=ie[P.value])!=null&&se.length&&!K(ie[P.value]))return!1}return!0},D=K(a.value||[]);E.value=$===0?!1:D},Q=k=>{var P;if(!t||!t.store)return 0;const{treeData:I}=t.store.states;let $=0;const K=(P=I.value[k])==null?void 0:P.children;return K&&($+=K.length,K.forEach(D=>{$+=Q(D)})),$},ne=(k,P)=>{const I={};return st.castArray(k).forEach($=>{x.value[$.id]=P,I[$.columnKey||$.id]=P}),I},ee=(k,P,I)=>{R.value&&R.value!==k&&(R.value.order=null),R.value=k,B.value=P,W.value=I},oe=()=>{let k=l.unref(i);Object.keys(x.value).forEach(P=>{const I=x.value[P];if(!I||I.length===0)return;const $=ht({columns:s.value},P);$&&$.filterMethod&&(k=k.filter(K=>I.some(D=>$.filterMethod.call(null,D,K,$))))}),N.value=k},pe=()=>{var k;a.value=Nl((k=N.value)!=null?k:[],{sortingColumn:R.value,sortProp:B.value,sortOrder:W.value})},Oe=(k=void 0)=>{k!=null&&k.filter||oe(),pe()},kt=k=>{const{tableHeaderRef:P}=t.refs;if(!P)return;const I=Object.assign({},P.filterPanels),$=Object.keys(I);if($.length)if(w.isString(k)&&(k=[k]),w.isArray(k)){const K=k.map(D=>vl({columns:s.value},D));$.forEach(D=>{const q=K.find(se=>se.id===D);q&&(q.filteredValue=[])}),t.store.commit("filterChange",{column:K,values:[],silent:!0,multi:!0})}else $.forEach(K=>{const D=s.value.find(q=>q.id===K);D&&(D.filteredValue=[])}),x.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},Tt=()=>{R.value&&(ee(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:At,toggleRowExpansion:Xe,updateExpandRows:Wt,states:Mt,isRowExpanded:Bt}=Sl({data:a,rowKey:o}),{updateTreeExpandKeys:Ht,toggleTreeExpansion:Pt,updateTreeData:$t,updateKeyChildren:zt,loadOrToggle:_t,states:It}=xl({data:a,rowKey:o}),{updateCurrentRowData:Vt,updateCurrentRow:Kt,setCurrentRowKey:Dt,states:jt}=El({data:a,rowKey:o});return{assertRowKey:Y,updateColumns:F,scheduleLayout:A,isSelected:M,clearSelection:O,cleanSelection:z,getSelectionRows:j,toggleRowSelection:X,_toggleAllSelection:U,toggleAllSelection:null,updateAllSelected:G,updateFilters:ne,updateCurrentRow:Kt,updateSort:ee,execFilter:oe,execSort:pe,execQuery:Oe,clearFilter:kt,clearSort:Tt,toggleRowExpansion:Xe,setExpandRowKeysAdapter:k=>{At(k),Ht(k)},setCurrentRowKey:Dt,toggleRowExpansionAdapter:(k,P)=>{s.value.some(({type:$})=>$==="expand")?Xe(k,P):Pt(k,P)},isRowExpanded:Bt,updateExpandRows:Wt,updateCurrentRowData:Vt,loadOrToggle:_t,updateTreeData:$t,updateKeyChildren:zt,states:{tableSize:n,rowKey:o,data:a,_data:i,isComplex:u,_columns:r,originColumns:c,columns:s,fixedColumns:d,rightFixedColumns:h,leafColumns:g,fixedLeafColumns:m,rightFixedLeafColumns:p,updateOrderFns:C,leafColumnsLength:y,fixedLeafColumnsLength:T,rightFixedLeafColumnsLength:L,isAllSelected:E,selection:f,reserveSelection:v,selectOnIndeterminate:b,selectable:S,filters:x,filteredData:N,sortingColumn:R,sortProp:B,sortOrder:W,hoverRow:H,...Mt,...It,...jt}}}function Me(e,t){return e.map(n=>{var o;return n.id===t.id?t:((o=n.children)!=null&&o.length&&(n.children=Me(n.children,t)),n)})}function Be(e){e.forEach(t=>{var n,o;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(o=t.children)!=null&&o.length&&Be(t.children)}),e.sort((t,n)=>t.no-n.no)}function Ll(){const e=l.getCurrentInstance(),t=Rl();return{ns:w.useNamespace("table"),...t,mutations:{setData(u,r){const c=l.unref(u._data)!==r;u.data.value=r,u._data.value=r,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),l.unref(u.reserveSelection)?e.store.assertRowKey():c?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(u,r,c,s){var d;const h=l.unref(u._columns);let g=[];c?(c&&!c.children&&(c.children=[]),(d=c.children)==null||d.push(r),g=Me(h,c)):(h.push(r),g=h),Be(g),u._columns.value=g,u.updateOrderFns.push(s),r.type==="selection"&&(u.selectable.value=r.selectable,u.reserveSelection.value=r.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(u,r){var c;((c=r.getColumnIndex)==null?void 0:c.call(r))!==r.no&&(Be(u._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(u,r,c,s){var d;const h=l.unref(u._columns)||[];if(c)(d=c.children)==null||d.splice(c.children.findIndex(m=>m.id===r.id),1),l.nextTick(()=>{var m;((m=c.children)==null?void 0:m.length)===0&&delete c.children}),u._columns.value=Me(h,c);else{const m=h.indexOf(r);m>-1&&(h.splice(m,1),u._columns.value=h)}const g=u.updateOrderFns.indexOf(s);g>-1&&u.updateOrderFns.splice(g,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(u,r){const{prop:c,order:s,init:d}=r;if(c){const h=l.unref(u.columns).find(g=>g.property===c);h&&(h.order=s,e.store.updateSort(h,c,s),e.store.commit("changeSortCondition",{init:d}))}},changeSortCondition(u,r){const{sortingColumn:c,sortProp:s,sortOrder:d}=u,h=l.unref(c),g=l.unref(s),m=l.unref(d);Ce(m)&&(u.sortingColumn.value=null,u.sortProp.value=null);const p={filter:!0};e.store.execQuery(p),(!r||!(r.silent||r.init))&&e.emit("sort-change",{column:h,prop:g,order:m}),e.store.updateTableScrollY()},filterChange(u,r){const{column:c,values:s,silent:d}=r,h=e.store.updateFilters(c,s);e.store.execQuery(),d||e.emit("filter-change",h),e.store.updateTableScrollY()},toggleAllSelection(){var u,r;(r=(u=e.store).toggleAllSelection)==null||r.call(u)},rowSelectedChanged(u,r){e.store.toggleRowSelection(r),e.store.updateAllSelected()},setHoverRow(u,r){u.hoverRow.value=r},setCurrentRow(u,r){e.store.updateCurrentRow(r)}},commit:function(u,...r){const c=e.store.mutations;if(c[u])c[u].apply(e,[e.store.states,...r]);else throw new Error(`Action not found: ${u}`)},updateTableScrollY:function(){l.nextTick(()=>e.layout.updateScrollY.apply(e.layout))}}}const Ue={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function Fl(e,t){if(!e)throw new Error("Table is required.");const n=Ll();return n.toggleAllSelection=Le.debounce(n._toggleAllSelection,10),Object.keys(Ue).forEach(o=>{gt(Ct(t,o),o,n)}),Ol(n,t),n}function Ol(e,t){Object.keys(Ue).forEach(n=>{l.watch(()=>Ct(t,n),o=>{gt(o,n,e)})})}function gt(e,t,n){let o=e,a=Ue[t];w.isObject(a)&&(o=o||a.default,a=a.key),n.states[a].value=o}function Ct(e,t){if(t.includes(".")){const n=t.split(".");let o=e;return n.forEach(a=>{o=o[a]}),o}else return e[t]}class kl{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=l.ref(null),this.scrollX=l.ref(!1),this.scrollY=l.ref(!1),this.bodyWidth=l.ref(null),this.fixedWidth=l.ref(null),this.rightFixedWidth=l.ref(null),this.gutterWidth=0;for(const n in t)w.hasOwn(t,n)&&(l.isRef(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const t=this.height.value;if(Ce(t))return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let o=!0;const a=this.scrollY.value;return o=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=o,a!==o}return!1}setHeight(t,n="height"){if(!w.isClient)return;const o=this.table.vnode.el;if(t=gl(t),this.height.value=Number(t),!o&&(t||t===0)){l.nextTick(()=>this.setHeight(t,n));return}o&&w.isNumber(t)?(o.style[n]=`${t}px`,this.updateElsHeight()):o&&w.isString(t)&&(o.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(o=>{o.isColumnGroup?t.push.apply(t,o.columns):t.push(o)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){var t;if(!w.isClient)return;const n=this.fit,o=(t=this.table.vnode.el)==null?void 0:t.clientWidth;let a=0;const i=this.getFlattenColumns(),u=i.filter(s=>!w.isNumber(s.width));if(i.forEach(s=>{w.isNumber(s.width)&&s.realWidth&&(s.realWidth=null)}),u.length>0&&n){if(i.forEach(s=>{a+=Number(s.width||s.minWidth||80)}),a<=o){this.scrollX.value=!1;const s=o-a;if(u.length===1)u[0].realWidth=Number(u[0].minWidth||80)+s;else{const d=u.reduce((m,p)=>m+Number(p.minWidth||80),0),h=s/d;let g=0;u.forEach((m,p)=>{if(p===0)return;const C=Math.floor(Number(m.minWidth||80)*h);g+=C,m.realWidth=Number(m.minWidth||80)+C}),u[0].realWidth=Number(u[0].minWidth||80)+s-g}}else this.scrollX.value=!0,u.forEach(s=>{s.realWidth=Number(s.minWidth)});this.bodyWidth.value=Math.max(a,o),this.table.state.resizeState.value.width=this.bodyWidth.value}else i.forEach(s=>{!s.width&&!s.minWidth?s.realWidth=80:s.realWidth=Number(s.width||s.minWidth),a+=s.realWidth}),this.scrollX.value=a>o,this.bodyWidth.value=a;const r=this.store.states.fixedColumns.value;if(r.length>0){let s=0;r.forEach(d=>{s+=Number(d.realWidth||d.width)}),this.fixedWidth.value=s}const c=this.store.states.rightFixedColumns.value;if(c.length>0){let s=0;c.forEach(d=>{s+=Number(d.realWidth||d.width)}),this.rightFixedWidth.value=s}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(o=>{var a,i;switch(t){case"columns":(a=o.state)==null||a.onColumnsChange(this);break;case"scrollable":(i=o.state)==null||i.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:Tl}=me.ElCheckbox,Al=l.defineComponent({name:"ElTableFilterPanel",components:{ElCheckbox:me.ElCheckbox,ElCheckboxGroup:Tl,ElScrollbar:ot.ElScrollbar,ElTooltip:ce.ElTooltip,ElIcon:de.ElIcon,ArrowDown:de.arrow_down_default,ArrowUp:de.arrow_up_default},directives:{ClickOutside:at.ClickOutside},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:ce.useTooltipContentProps.appendTo},setup(e){const t=l.getCurrentInstance(),{t:n}=Re.useLocale(),o=w.useNamespace("table-filter"),a=t==null?void 0:t.parent;e.column&&!a.filterPanels.value[e.column.id]&&(a.filterPanels.value[e.column.id]=t);const i=l.ref(!1),u=l.ref(null),r=l.computed(()=>e.column&&e.column.filters),c=l.computed(()=>e.column&&e.column.filterClassName?`${o.b()} ${e.column.filterClassName}`:o.b()),s=l.computed({get:()=>{var v;return(((v=e.column)==null?void 0:v.filteredValue)||[])[0]},set:v=>{d.value&&(w.isPropAbsent(v)?d.value.splice(0,1):d.value.splice(0,1,v))}}),d=l.computed({get(){return e.column?e.column.filteredValue||[]:[]},set(v){var b;e.column&&((b=e.upDataColumn)==null||b.call(e,"filteredValue",v))}}),h=l.computed(()=>e.column?e.column.filterMultiple:!0),g=v=>v.value===s.value,m=()=>{i.value=!1},p=v=>{v.stopPropagation(),i.value=!i.value},C=()=>{i.value=!1},y=()=>{E(d.value),m()},T=()=>{d.value=[],E(d.value),m()},L=v=>{s.value=v,w.isPropAbsent(v)?E([]):E(d.value),m()},E=v=>{var b,S;(b=e.store)==null||b.commit("filterChange",{column:e.column,values:v}),(S=e.store)==null||S.updateAllSelected()};l.watch(i,v=>{var b;e.column&&((b=e.upDataColumn)==null||b.call(e,"filterOpened",v))},{immediate:!0});const f=l.computed(()=>{var v,b;return(b=(v=u.value)==null?void 0:v.popperRef)==null?void 0:b.contentRef});return{tooltipVisible:i,multiple:h,filterClassName:c,filteredValue:d,filterValue:s,filters:r,handleConfirm:y,handleReset:T,handleSelect:L,isPropAbsent:w.isPropAbsent,isActive:g,t:n,ns:o,showFilterPanel:p,hideFilterPanel:C,popperPaneRef:f,tooltip:u}}});function Wl(e,t,n,o,a,i){const u=l.resolveComponent("el-checkbox"),r=l.resolveComponent("el-checkbox-group"),c=l.resolveComponent("el-scrollbar"),s=l.resolveComponent("arrow-up"),d=l.resolveComponent("arrow-down"),h=l.resolveComponent("el-icon"),g=l.resolveComponent("el-tooltip"),m=l.resolveDirective("click-outside");return l.openBlock(),l.createBlock(g,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo},{content:l.withCtx(()=>[e.multiple?(l.openBlock(),l.createElementBlock("div",{key:0},[l.createElementVNode("div",{class:l.normalizeClass(e.ns.e("content"))},[l.createVNode(c,{"wrap-class":e.ns.e("wrap")},{default:l.withCtx(()=>[l.createVNode(r,{modelValue:e.filteredValue,"onUpdate:modelValue":p=>e.filteredValue=p,class:l.normalizeClass(e.ns.e("checkbox-group"))},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.filters,p=>(l.openBlock(),l.createBlock(u,{key:p.value,value:p.value},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(p.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"])]),_:1},8,["wrap-class"])],2),l.createElementVNode("div",{class:l.normalizeClass(e.ns.e("bottom"))},[l.createElementVNode("button",{class:l.normalizeClass({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:e.handleConfirm},l.toDisplayString(e.t("el.table.confirmFilter")),11,["disabled","onClick"]),l.createElementVNode("button",{type:"button",onClick:e.handleReset},l.toDisplayString(e.t("el.table.resetFilter")),9,["onClick"])],2)])):(l.openBlock(),l.createElementBlock("ul",{key:1,class:l.normalizeClass(e.ns.e("list"))},[l.createElementVNode("li",{class:l.normalizeClass([e.ns.e("list-item"),{[e.ns.is("active")]:e.isPropAbsent(e.filterValue)}]),onClick:p=>e.handleSelect(null)},l.toDisplayString(e.t("el.table.clearFilter")),11,["onClick"]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.filters,p=>(l.openBlock(),l.createElementBlock("li",{key:p.value,class:l.normalizeClass([e.ns.e("list-item"),e.ns.is("active",e.isActive(p))]),label:p.value,onClick:C=>e.handleSelect(p.value)},l.toDisplayString(p.text),11,["label","onClick"]))),128))],2))]),default:l.withCtx(()=>[l.withDirectives((l.openBlock(),l.createElementBlock("span",{class:l.normalizeClass([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:e.showFilterPanel},[l.createVNode(h,null,{default:l.withCtx(()=>[l.renderSlot(e.$slots,"filter-icon",{},()=>{var p;return[(p=e.column)!=null&&p.filterOpened?(l.openBlock(),l.createBlock(s,{key:0})):(l.openBlock(),l.createBlock(d,{key:1}))]})]),_:3})],10,["onClick"])),[[m,e.hideFilterPanel,e.popperPaneRef]])]),_:3},8,["visible","placement","popper-class","append-to"])}var Ml=w._export_sfc(Al,[["render",Wl],["__file","filter-panel.vue"]]);function Ye(e){const t=l.getCurrentInstance();l.onBeforeMount(()=>{n.value.addObserver(t)}),l.onMounted(()=>{o(n.value),a(n.value)}),l.onUpdated(()=>{o(n.value),a(n.value)}),l.onUnmounted(()=>{n.value.removeObserver(t)});const n=l.computed(()=>{const i=e.layout;if(!i)throw new Error("Can not find table layout.");return i}),o=i=>{var u;const r=((u=e.vnode.el)==null?void 0:u.querySelectorAll("colgroup > col"))||[];if(!r.length)return;const c=i.getFlattenColumns(),s={};c.forEach(d=>{s[d.id]=d});for(let d=0,h=r.length;d<h;d++){const g=r[d],m=g.getAttribute("name"),p=s[m];p&&g.setAttribute("width",p.realWidth||p.width)}},a=i=>{var u,r;const c=((u=e.vnode.el)==null?void 0:u.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,h=c.length;d<h;d++)c[d].setAttribute("width",i.scrollY.value?i.gutterWidth:"0");const s=((r=e.vnode.el)==null?void 0:r.querySelectorAll("th.gutter"))||[];for(let d=0,h=s.length;d<h;d++){const g=s[d];g.style.width=i.scrollY.value?`${i.gutterWidth}px`:"0",g.style.display=i.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:o,onScrollableChange:a}}const re=Symbol("ElTable");function Bl(e,t){const n=l.getCurrentInstance(),o=l.inject(re),a=C=>{C.stopPropagation()},i=(C,y)=>{!y.filters&&y.sortable?p(C,y,!1):y.filterable&&!y.sortable&&a(C),o==null||o.emit("header-click",y,C)},u=(C,y)=>{o==null||o.emit("header-contextmenu",y,C)},r=l.ref(null),c=l.ref(!1),s=l.ref(),d=(C,y)=>{var T,L;if(w.isClient&&!(y.children&&y.children.length>0)&&r.value&&e.border){c.value=!0;const E=o;t("set-drag-visible",!0);const f=E==null?void 0:E.vnode.el,v=f==null?void 0:f.getBoundingClientRect().left,b=(L=(T=n==null?void 0:n.vnode)==null?void 0:T.el)==null?void 0:L.querySelector(`th.${y.id}`),S=b.getBoundingClientRect(),x=S.left-v+30;w.addClass(b,"noclick"),s.value={startMouseLeft:C.clientX,startLeft:S.right-v,startColumnLeft:S.left-v,tableLeft:v};const N=E==null?void 0:E.refs.resizeProxy;N.style.left=`${s.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const R=W=>{const H=W.clientX-s.value.startMouseLeft,V=s.value.startLeft+H;N.style.left=`${Math.max(x,V)}px`},B=()=>{if(c.value){const{startColumnLeft:W,startLeft:H}=s.value,Y=Number.parseInt(N.style.left,10)-W;y.width=y.realWidth=Y,E==null||E.emit("header-dragend",y.width,H-W,y,C),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",c.value=!1,r.value=null,s.value=void 0,t("set-drag-visible",!1)}document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",B),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{w.removeClass(b,"noclick")},0)};document.addEventListener("mousemove",R),document.addEventListener("mouseup",B)}},h=(C,y)=>{var T;if(y.children&&y.children.length>0)return;const L=C.target;if(!w.isElement(L))return;const E=L==null?void 0:L.closest("th");if(!(!y||!y.resizable||!E)&&!c.value&&e.border){const f=E.getBoundingClientRect(),v=document.body.style,b=((T=E.parentNode)==null?void 0:T.lastElementChild)===E,S=e.allowDragLastColumn||!b;f.width>12&&f.right-C.clientX<8&&S?(v.cursor="col-resize",w.hasClass(E,"is-sortable")&&(E.style.cursor="col-resize"),r.value=y):c.value||(v.cursor="",w.hasClass(E,"is-sortable")&&(E.style.cursor="pointer"),r.value=null)}},g=()=>{w.isClient&&(document.body.style.cursor="")},m=({order:C,sortOrders:y})=>{if(C==="")return y[0];const T=y.indexOf(C||null);return y[T>y.length-2?0:T+1]},p=(C,y,T)=>{var L;C.stopPropagation();const E=y.order===T?null:T||m(y),f=(L=C.target)==null?void 0:L.closest("th");if(f&&w.hasClass(f,"noclick")){w.removeClass(f,"noclick");return}if(!y.sortable)return;const v=C.currentTarget;if(["ascending","descending"].some(R=>w.hasClass(v,R)&&!y.sortOrders.includes(R)))return;const b=e.store.states;let S=b.sortProp.value,x;const N=b.sortingColumn.value;(N!==y||N===y&&Ce(N.order))&&(N&&(N.order=null),b.sortingColumn.value=y,S=y.property),E?x=y.order=E:x=y.order=null,b.sortProp.value=S,b.sortOrder.value=x,o==null||o.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:u,handleMouseDown:d,handleMouseMove:h,handleMouseOut:g,handleSortClick:p,handleFilterClick:a}}function Hl(e){const t=l.inject(re),n=w.useNamespace("table");return{getHeaderRowStyle:r=>{const c=t==null?void 0:t.props.headerRowStyle;return w.isFunction(c)?c.call(null,{rowIndex:r}):c},getHeaderRowClass:r=>{const c=[],s=t==null?void 0:t.props.headerRowClassName;return w.isString(s)?c.push(s):w.isFunction(s)&&c.push(s.call(null,{rowIndex:r})),c.join(" ")},getHeaderCellStyle:(r,c,s,d)=>{var h;let g=(h=t==null?void 0:t.props.headerCellStyle)!=null?h:{};w.isFunction(g)&&(g=g.call(null,{rowIndex:r,columnIndex:c,row:s,column:d}));const m=qe(c,d.fixed,e.store,s);return ge(m,"left"),ge(m,"right"),Object.assign({},g,m)},getHeaderCellClass:(r,c,s,d)=>{const h=je(n.b(),c,d.fixed,e.store,s),g=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...h];d.children||g.push("is-leaf"),d.sortable&&g.push("is-sortable");const m=t==null?void 0:t.props.headerCellClassName;return w.isString(m)?g.push(m):w.isFunction(m)&&g.push(m.call(null,{rowIndex:r,columnIndex:c,row:s,column:d})),g.push(n.e("cell")),g.filter(p=>!!p).join(" ")}}}const yt=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,yt(n.children))):t.push(n)}),t},bt=e=>{let t=1;const n=(i,u)=>{if(u&&(i.level=u.level+1,t<i.level&&(t=i.level)),i.children){let r=0;i.children.forEach(c=>{n(c,i),r+=c.colSpan}),i.colSpan=r}else i.colSpan=1};e.forEach(i=>{i.level=1,n(i,void 0)});const o=[];for(let i=0;i<t;i++)o.push([]);return yt(e).forEach(i=>{i.children?(i.rowSpan=1,i.children.forEach(u=>u.isSubColumn=!0)):i.rowSpan=t-i.level+1,o[i.level-1].push(i)}),o};function Pl(e){const t=l.inject(re),n=l.computed(()=>bt(e.store.states.originColumns.value));return{isGroup:l.computed(()=>{const i=n.value.length>1;return i&&t&&(t.state.isGroup.value=!0),i}),toggleAllSelection:i=>{i.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var $l=l.defineComponent({name:"ElTableHeader",components:{ElCheckbox:me.ElCheckbox},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const n=l.getCurrentInstance(),o=l.inject(re),a=w.useNamespace("table"),i=l.ref({}),{onColumnsChange:u,onScrollableChange:r}=Ye(o),c=(o==null?void 0:o.props.tableLayout)==="auto",s=l.reactive(new Map),d=l.ref();let h;const g=()=>{h=setTimeout(()=>{s.size>0&&(s.forEach((B,W)=>{const H=d.value.querySelector(`.${W.replace(/\s/g,".")}`);if(H){const V=H.getBoundingClientRect().width;B.width=V||B.width}}),s.clear())})};l.watch(s,g),l.onBeforeUnmount(()=>{h&&(clearTimeout(h),h=void 0)}),l.onMounted(async()=>{await l.nextTick(),await l.nextTick();const{prop:B,order:W}=e.defaultSort;o==null||o.store.commit("sort",{prop:B,order:W,init:!0}),g()});const{handleHeaderClick:m,handleHeaderContextMenu:p,handleMouseDown:C,handleMouseMove:y,handleMouseOut:T,handleSortClick:L,handleFilterClick:E}=Bl(e,t),{getHeaderRowStyle:f,getHeaderRowClass:v,getHeaderCellStyle:b,getHeaderCellClass:S}=Hl(e),{isGroup:x,toggleAllSelection:N,columnRows:R}=Pl(e);return n.state={onColumnsChange:u,onScrollableChange:r},n.filterPanels=i,{ns:a,filterPanels:i,onColumnsChange:u,onScrollableChange:r,columnRows:R,getHeaderRowClass:v,getHeaderRowStyle:f,getHeaderCellClass:S,getHeaderCellStyle:b,handleHeaderClick:m,handleHeaderContextMenu:p,handleMouseDown:C,handleMouseMove:y,handleMouseOut:T,handleSortClick:L,handleFilterClick:E,isGroup:x,toggleAllSelection:N,saveIndexSelection:s,isTableLayoutAuto:c,theadRef:d,updateFixedColumnStyle:g}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:o,getHeaderCellClass:a,getHeaderRowClass:i,getHeaderRowStyle:u,handleHeaderClick:r,handleHeaderContextMenu:c,handleMouseDown:s,handleMouseMove:d,handleSortClick:h,handleMouseOut:g,store:m,$parent:p,saveIndexSelection:C,isTableLayoutAuto:y}=this;let T=1;return l.h("thead",{ref:"theadRef",class:{[e.is("group")]:t}},n.map((L,E)=>l.h("tr",{class:i(E),key:E,style:u(E)},L.map((f,v)=>{f.rowSpan>T&&(T=f.rowSpan);const b=a(E,v,L,f);return y&&f.fixed&&C.set(b,f),l.h("th",{class:b,colspan:f.colSpan,key:`${f.id}-thead`,rowspan:f.rowSpan,style:o(E,v,L,f),onClick:S=>{var x;(x=S.currentTarget)!=null&&x.classList.contains("noclick")||r(S,f)},onContextmenu:S=>c(S,f),onMousedown:S=>s(S,f),onMousemove:S=>d(S,f),onMouseout:g},[l.h("div",{class:["cell",f.filteredValue&&f.filteredValue.length>0?"highlight":""]},[f.renderHeader?f.renderHeader({column:f,$index:v,store:m,_self:p}):f.label,f.sortable&&l.h("span",{onClick:S=>h(S,f),class:"caret-wrapper"},[l.h("i",{onClick:S=>h(S,f,"ascending"),class:"sort-caret ascending"}),l.h("i",{onClick:S=>h(S,f,"descending"),class:"sort-caret descending"})]),f.filterable&&l.h(Ml,{store:m,placement:f.filterPlacement||"bottom-start",appendTo:p==null?void 0:p.appendFilterPanelTo,column:f,upDataColumn:(S,x)=>{f[S]=x}},{"filter-icon":()=>f.renderFilterIcon?f.renderFilterIcon({filterOpened:f.filterOpened}):null})])])}))))}});function Te(e,t,n=.03){return e-t>n}function zl(e){const t=l.inject(re),n=l.ref(""),o=l.ref(l.h("div")),a=(p,C,y)=>{var T,L,E;const f=t,v=ke(p);let b=null;const S=(T=f==null?void 0:f.vnode.el)==null?void 0:T.dataset.prefix;v&&(b=Ge({columns:(E=(L=e.store)==null?void 0:L.states.columns.value)!=null?E:[]},v,S),b&&(f==null||f.emit(`cell-${y}`,C,b,v,p))),f==null||f.emit(`row-${y}`,C,b,p)},i=(p,C)=>{a(p,C,"dblclick")},u=(p,C)=>{var y;(y=e.store)==null||y.commit("setCurrentRow",C),a(p,C,"click")},r=(p,C)=>{a(p,C,"contextmenu")},c=Le.debounce(p=>{var C;(C=e.store)==null||C.commit("setHoverRow",p)},30),s=Le.debounce(()=>{var p;(p=e.store)==null||p.commit("setHoverRow",null)},30),d=p=>{const C=window.getComputedStyle(p,null),y=Number.parseInt(C.paddingLeft,10)||0,T=Number.parseInt(C.paddingRight,10)||0,L=Number.parseInt(C.paddingTop,10)||0,E=Number.parseInt(C.paddingBottom,10)||0;return{left:y,right:T,top:L,bottom:E}},h=(p,C,y)=>{var T;let L=(T=C==null?void 0:C.target)==null?void 0:T.parentNode;for(;p>1&&(L=L==null?void 0:L.nextSibling,!(!L||L.nodeName!=="TR"));)y(L,"hover-row hover-fixed-row"),p--};return{handleDoubleClick:i,handleClick:u,handleContextMenu:r,handleMouseEnter:c,handleMouseLeave:s,handleCellMouseEnter:(p,C,y)=>{var T,L,E,f,v,b,S,x;if(!t)return;const N=t,R=ke(p),B=(T=N==null?void 0:N.vnode.el)==null?void 0:T.dataset.prefix;let W=null;if(R){if(W=Ge({columns:(E=(L=e.store)==null?void 0:L.states.columns.value)!=null?E:[]},R,B),!W)return;R.rowSpan>1&&h(R.rowSpan,p,w.addClass);const G=N.hoverState={cell:R,column:W,row:C};N==null||N.emit("cell-mouse-enter",G.row,G.column,G.cell,p)}if(!y){((f=Z)==null?void 0:f.trigger)===R&&((v=Z)==null||v());return}const H=p.target.querySelector(".cell");if(!(w.hasClass(H,`${B}-tooltip`)&&H.childNodes.length))return;const V=document.createRange();V.setStart(H,0),V.setEnd(H,H.childNodes.length);const{width:Y,height:_}=V.getBoundingClientRect(),{width:F,height:A}=H.getBoundingClientRect(),{top:M,left:O,right:z,bottom:j}=d(H),X=O+z,U=M+j;Te(Y+X,F)||Te(_+U,A)||Te(H.scrollWidth,F)?wl(y,(b=(R==null?void 0:R.innerText)||(R==null?void 0:R.textContent))!=null?b:"",C,W,R,N):((S=Z)==null?void 0:S.trigger)===R&&((x=Z)==null||x())},handleCellMouseLeave:p=>{const C=ke(p);if(!C)return;C.rowSpan>1&&h(C.rowSpan,p,w.removeClass);const y=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",y==null?void 0:y.row,y==null?void 0:y.column,y==null?void 0:y.cell,p)},tooltipContent:n,tooltipTrigger:o}}function _l(e){const t=l.inject(re),n=w.useNamespace("table");return{getRowStyle:(s,d)=>{const h=t==null?void 0:t.props.rowStyle;return w.isFunction(h)?h.call(null,{row:s,rowIndex:d}):h||null},getRowClass:(s,d,h)=>{var g;const m=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&s===((g=e.store)==null?void 0:g.states.currentRow.value)&&m.push("current-row"),e.stripe&&h%2===1&&m.push(n.em("row","striped"));const p=t==null?void 0:t.props.rowClassName;return w.isString(p)?m.push(p):w.isFunction(p)&&m.push(p.call(null,{row:s,rowIndex:d})),m},getCellStyle:(s,d,h,g)=>{const m=t==null?void 0:t.props.cellStyle;let p=m??{};w.isFunction(m)&&(p=m.call(null,{rowIndex:s,columnIndex:d,row:h,column:g}));const C=qe(d,e==null?void 0:e.fixed,e.store);return ge(C,"left"),ge(C,"right"),Object.assign({},p,C)},getCellClass:(s,d,h,g,m)=>{const p=je(n.b(),d,e==null?void 0:e.fixed,e.store,void 0,m),C=[g.id,g.align,g.className,...p],y=t==null?void 0:t.props.cellClassName;return w.isString(y)?C.push(y):w.isFunction(y)&&C.push(y.call(null,{rowIndex:s,columnIndex:d,row:h,column:g})),C.push(n.e("cell")),C.filter(T=>!!T).join(" ")},getSpan:(s,d,h,g)=>{let m=1,p=1;const C=t==null?void 0:t.props.spanMethod;if(w.isFunction(C)){const y=C({row:s,column:d,rowIndex:h,columnIndex:g});w.isArray(y)?(m=y[0],p=y[1]):w.isObject(y)&&(m=y.rowspan,p=y.colspan)}return{rowspan:m,colspan:p}},getColspanRealWidth:(s,d,h)=>{if(d<1)return s[h].realWidth;const g=s.map(({realWidth:m,width:p})=>m||p).slice(h,h+d);return Number(g.reduce((m,p)=>Number(m)+Number(p),-1))}}}const Il=l.defineComponent({name:"TableTdWrapper"}),Vl=l.defineComponent({...Il,props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("td",{colspan:e.colspan,rowspan:e.rowspan},[l.renderSlot(t.$slots,"default")],8,["colspan","rowspan"]))}});var Kl=w._export_sfc(Vl,[["__file","td-wrapper.vue"]]);function Dl(e){const t=l.inject(re),n=w.useNamespace("table"),{handleDoubleClick:o,handleClick:a,handleContextMenu:i,handleMouseEnter:u,handleMouseLeave:r,handleCellMouseEnter:c,handleCellMouseLeave:s,tooltipContent:d,tooltipTrigger:h}=zl(e),{getRowStyle:g,getRowClass:m,getCellStyle:p,getCellClass:C,getSpan:y,getColspanRealWidth:T}=_l(e);let L=-1;const E=l.computed(()=>{var x;return(x=e.store)==null?void 0:x.states.columns.value.findIndex(({type:N})=>N==="default")}),f=(x,N)=>{var R;const B=(R=t==null?void 0:t.props)==null?void 0:R.rowKey;return B?J(x,B):N},v=(x,N,R,B=!1)=>{const{tooltipEffect:W,tooltipOptions:H,store:V}=e,{indent:Y,columns:_}=V.states,F=[];let A=!0;R&&(F.push(n.em("row",`level-${R.level}`)),A=!!R.display),N===0&&(L=-1),e.stripe&&A&&L++,F.push(...m(x,N,L));const M=A?null:{display:"none"};return l.h("tr",{style:[M,g(x,N)],class:F,key:f(x,N),onDblclick:O=>o(O,x),onClick:O=>a(O,x),onContextmenu:O=>i(O,x),onMouseenter:()=>u(N),onMouseleave:r},_.value.map((O,z)=>{const{rowspan:j,colspan:X}=y(x,O,N,z);if(!j||!X)return null;const U=Object.assign({},O);U.realWidth=T(_.value,X,z);const G={store:V,_self:e.context||t,column:U,row:x,$index:N,cellIndex:z,expanded:B};z===E.value&&R&&(G.treeNode={indent:R.level&&R.level*Y.value,level:R.level},w.isBoolean(R.expanded)&&(G.treeNode.expanded=R.expanded,"loading"in R&&(G.treeNode.loading=R.loading),"noLazyChildren"in R&&(G.treeNode.noLazyChildren=R.noLazyChildren)));const Q=`${f(x,N)},${z}`,ne=U.columnKey||U.rawColumnKey||"",ee=O.showOverflowTooltip&&ft({effect:W},H,O.showOverflowTooltip);return l.h(Kl,{style:p(N,z,x,O),class:C(N,z,x,O,X-1),key:`${ne}${Q}`,rowspan:j,colspan:X,onMouseenter:oe=>c(oe,x,ee),onMouseleave:s},{default:()=>b(z,O,G)})}))},b=(x,N,R)=>N.renderCell(R);return{wrappedRowRender:(x,N)=>{const R=e.store,{isRowExpanded:B,assertRowKey:W}=R,{treeData:H,lazyTreeNodeMap:V,childrenColumnName:Y,rowKey:_}=R.states,F=R.states.columns.value;if(F.some(({type:M})=>M==="expand")){const M=B(x),O=v(x,N,void 0,M),z=t==null?void 0:t.renderExpanded;if(!z)return console.error("[Element Error]renderExpanded is required."),O;const j=[[O]];return(t.props.preserveExpandedContent||M)&&j[0].push(l.h("tr",{key:`expanded-row__${O.key}`,style:{display:M?"":"none"}},[l.h("td",{colspan:F.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[z({row:x,$index:N,store:R,expanded:M})])])),j}else if(Object.keys(H.value).length){W();const M=J(x,_.value);let O=H.value[M],z=null;O&&(z={expanded:O.expanded,level:O.level,display:!0,noLazyChildren:void 0,loading:void 0},w.isBoolean(O.lazy)&&(z&&w.isBoolean(O.loaded)&&O.loaded&&(z.noLazyChildren=!(O.children&&O.children.length)),z.loading=O.loading));const j=[v(x,N,z??void 0)];if(O){let X=0;const U=(Q,ne)=>{Q&&Q.length&&ne&&Q.forEach(ee=>{const oe={display:ne.display&&ne.expanded,level:ne.level+1,expanded:!1,noLazyChildren:!1,loading:!1},pe=J(ee,_.value);if(w.isPropAbsent(pe))throw new Error("For nested data item, row-key is required.");if(O={...H.value[pe]},O&&(oe.expanded=O.expanded,O.level=O.level||oe.level,O.display=!!(O.expanded&&oe.display),w.isBoolean(O.lazy)&&(w.isBoolean(O.loaded)&&O.loaded&&(oe.noLazyChildren=!(O.children&&O.children.length)),oe.loading=O.loading)),X++,j.push(v(ee,N+X,oe)),O){const Oe=V.value[pe]||ee[Y.value];U(Oe,O)}})};O.display=!0;const G=V.value[M]||x[Y.value];U(G,O)}return j}else return v(x,N,void 0)},tooltipContent:d,tooltipTrigger:h}}const jl={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var ql=l.defineComponent({name:"ElTableBody",props:jl,setup(e){var t;const n=l.getCurrentInstance(),o=l.inject(re),a=w.useNamespace("table"),{wrappedRowRender:i,tooltipContent:u,tooltipTrigger:r}=Dl(e),{onColumnsChange:c,onScrollableChange:s}=Ye(o),d=[];return l.watch((t=e.store)==null?void 0:t.states.hoverRow,(h,g)=>{var m,p;const C=n==null?void 0:n.vnode.el,y=Array.from((C==null?void 0:C.children)||[]).filter(E=>E==null?void 0:E.classList.contains(`${a.e("row")}`));let T=h;const L=(m=y[T])==null?void 0:m.childNodes;if(L!=null&&L.length){let E=0;Array.from(L).reduce((v,b,S)=>{var x,N;return((x=L[S])==null?void 0:x.colSpan)>1&&(E=(N=L[S])==null?void 0:N.colSpan),b.nodeName!=="TD"&&E===0&&v.push(S),E>0&&E--,v},[]).forEach(v=>{var b;for(T=h;T>0;){const S=(b=y[T-1])==null?void 0:b.childNodes;if(S[v]&&S[v].nodeName==="TD"&&S[v].rowSpan>1){w.addClass(S[v],"hover-cell"),d.push(S[v]);break}T--}})}else d.forEach(E=>w.removeClass(E,"hover-cell")),d.length=0;!((p=e.store)!=null&&p.states.isComplex.value)||!w.isClient||qt.rAF(()=>{const E=y[g],f=y[h];E&&!E.classList.contains("hover-fixed-row")&&w.removeClass(E,"hover-row"),f&&w.addClass(f,"hover-row")})}),l.onUnmounted(()=>{var h;(h=Z)==null||h()}),{ns:a,onColumnsChange:c,onScrollableChange:s,wrappedRowRender:i,tooltipContent:u,tooltipTrigger:r}},render(){const{wrappedRowRender:e,store:t}=this,n=(t==null?void 0:t.states.data.value)||[];return l.h("tbody",{tabIndex:-1},[n.reduce((o,a)=>o.concat(e(a,o.length)),[])])}});function Ul(){const e=l.inject(re),t=e==null?void 0:e.store,n=l.computed(()=>{var r;return(r=t==null?void 0:t.states.fixedLeafColumnsLength.value)!=null?r:0}),o=l.computed(()=>{var r;return(r=t==null?void 0:t.states.rightFixedColumns.value.length)!=null?r:0}),a=l.computed(()=>{var r;return(r=t==null?void 0:t.states.columns.value.length)!=null?r:0}),i=l.computed(()=>{var r;return(r=t==null?void 0:t.states.fixedColumns.value.length)!=null?r:0}),u=l.computed(()=>{var r;return(r=t==null?void 0:t.states.rightFixedColumns.value.length)!=null?r:0});return{leftFixedLeafCount:n,rightFixedLeafCount:o,columnsCount:a,leftFixedCount:i,rightFixedCount:u,columns:l.computed(()=>{var r;return(r=t==null?void 0:t.states.columns.value)!=null?r:[]})}}function Yl(e){const{columns:t}=Ul(),n=w.useNamespace("table");return{getCellClasses:(i,u)=>{const r=i[u],c=[n.e("cell"),r.id,r.align,r.labelClassName,...je(n.b(),u,r.fixed,e.store)];return r.className&&c.push(r.className),r.children||c.push(n.is("leaf")),c},getCellStyles:(i,u)=>{const r=qe(u,i.fixed,e.store);return ge(r,"left"),ge(r,"right"),r},columns:t}}var Xl=l.defineComponent({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const t=l.inject(re),n=w.useNamespace("table"),{getCellClasses:o,getCellStyles:a,columns:i}=Yl(e),{onScrollableChange:u,onColumnsChange:r}=Ye(t);return{ns:n,onScrollableChange:u,onColumnsChange:r,getCellClasses:o,getCellStyles:a,columns:i}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:o,sumText:a}=this,i=this.store.states.data.value;let u=[];return o?u=o({columns:e,data:i}):e.forEach((r,c)=>{if(c===0){u[c]=a;return}const s=i.map(m=>Number(m[r.property])),d=[];let h=!0;s.forEach(m=>{if(!Number.isNaN(+m)){h=!1;const p=`${m}`.split(".")[1];d.push(p?p.length:0)}});const g=Math.max.apply(null,d);h?u[c]="":u[c]=s.reduce((m,p)=>{const C=Number(p);return Number.isNaN(+C)?m:Number.parseFloat((m+p).toFixed(Math.min(g,20)))},0)}),l.h(l.h("tfoot",[l.h("tr",{},[...e.map((r,c)=>l.h("td",{key:c,colspan:r.colSpan,rowspan:r.rowSpan,class:n(e,c),style:t(r,c)},[l.h("div",{class:["cell",r.labelClassName]},[u[c]])]))])]))}});function Gl(e){return{setCurrentRow:h=>{e.commit("setCurrentRow",h)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(h,g,m=!0)=>{e.toggleRowSelection(h,g,!1,m),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:h=>{e.clearFilter(h)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(h,g)=>{e.toggleRowExpansionAdapter(h,g)},clearSort:()=>{e.clearSort()},sort:(h,g)=>{e.commit("sort",{prop:h,order:g})},updateKeyChildren:(h,g)=>{e.updateKeyChildren(h,g)}}}function Ql(e,t,n,o){const a=l.ref(!1),i=l.ref(null),u=l.ref(!1),r=F=>{u.value=F},c=l.ref({width:null,height:null,headerHeight:null}),s=l.ref(!1),d={display:"inline-block",verticalAlign:"middle"},h=l.ref(),g=l.ref(0),m=l.ref(0),p=l.ref(0),C=l.ref(0),y=l.ref(0);l.watchEffect(()=>{var F;t.setHeight((F=e.height)!=null?F:null)}),l.watchEffect(()=>{var F;t.setMaxHeight((F=e.maxHeight)!=null?F:null)}),l.watch(()=>[e.currentRowKey,n.states.rowKey],([F,A])=>{!l.unref(A)||!l.unref(F)||n.setCurrentRowKey(`${F}`)},{immediate:!0}),l.watch(()=>e.data,F=>{o.store.commit("setData",F)},{immediate:!0,deep:!0}),l.watchEffect(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const T=()=>{o.store.commit("setHoverRow",null),o.hoverState&&(o.hoverState=null)},L=(F,A)=>{const{pixelX:M,pixelY:O}=A;Math.abs(M)>=Math.abs(O)&&(o.refs.bodyWrapper.scrollLeft+=A.pixelX/5)},E=l.computed(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),f=l.computed(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),v=()=>{E.value&&t.updateElsHeight(),t.updateColumnsWidth(),!(typeof window>"u")&&requestAnimationFrame(N)};l.onMounted(async()=>{await l.nextTick(),n.updateColumns(),R(),requestAnimationFrame(v);const F=o.vnode.el,A=o.refs.headerWrapper;e.flexible&&F&&F.parentElement&&(F.parentElement.style.minWidth="0"),c.value={width:h.value=F.offsetWidth,height:F.offsetHeight,headerHeight:e.showHeader&&A?A.offsetHeight:null},n.states.columns.value.forEach(M=>{M.filteredValue&&M.filteredValue.length&&o.store.commit("filterChange",{column:M,values:M.filteredValue,silent:!0})}),o.$ready=!0});const b=(F,A)=>{if(!F)return;const M=Array.from(F.classList).filter(O=>!O.startsWith("is-scrolling-"));M.push(t.scrollX.value?A:"is-scrolling-none"),F.className=M.join(" ")},S=F=>{const{tableWrapper:A}=o.refs;b(A,F)},x=F=>{const{tableWrapper:A}=o.refs;return!!(A&&A.classList.contains(F))},N=function(){if(!o.refs.scrollBarRef)return;if(!t.scrollX.value){const U="is-scrolling-none";x(U)||S(U);return}const F=o.refs.scrollBarRef.wrapRef;if(!F)return;const{scrollLeft:A,offsetWidth:M,scrollWidth:O}=F,{headerWrapper:z,footerWrapper:j}=o.refs;z&&(z.scrollLeft=A),j&&(j.scrollLeft=A);const X=O-M-1;A>=X?S("is-scrolling-right"):S(A===0?"is-scrolling-left":"is-scrolling-middle")},R=()=>{o.refs.scrollBarRef&&(o.refs.scrollBarRef.wrapRef&&ae.useEventListener(o.refs.scrollBarRef.wrapRef,"scroll",N,{passive:!0}),e.fit?ae.useResizeObserver(o.vnode.el,B):ae.useEventListener(window,"resize",B),ae.useResizeObserver(o.refs.bodyWrapper,()=>{var F,A;B(),(A=(F=o.refs)==null?void 0:F.scrollBarRef)==null||A.update()}))},B=()=>{var F,A,M,O;const z=o.vnode.el;if(!o.$ready||!z)return;let j=!1;const{width:X,height:U,headerHeight:G}=c.value,Q=h.value=z.offsetWidth;X!==Q&&(j=!0);const ne=z.offsetHeight;(e.height||E.value)&&U!==ne&&(j=!0);const ee=e.tableLayout==="fixed"?o.refs.headerWrapper:(F=o.refs.tableHeaderRef)==null?void 0:F.$el;e.showHeader&&(ee==null?void 0:ee.offsetHeight)!==G&&(j=!0),g.value=((A=o.refs.tableWrapper)==null?void 0:A.scrollHeight)||0,p.value=(ee==null?void 0:ee.scrollHeight)||0,C.value=((M=o.refs.footerWrapper)==null?void 0:M.offsetHeight)||0,y.value=((O=o.refs.appendWrapper)==null?void 0:O.offsetHeight)||0,m.value=g.value-p.value-C.value-y.value,j&&(c.value={width:Q,height:ne,headerHeight:e.showHeader&&(ee==null?void 0:ee.offsetHeight)||0},v())},W=ae.useFormSize(),H=l.computed(()=>{const{bodyWidth:F,scrollY:A,gutterWidth:M}=t;return F.value?`${F.value-(A.value?M:0)}px`:""}),V=l.computed(()=>e.maxHeight?"fixed":e.tableLayout),Y=l.computed(()=>{if(e.data&&e.data.length)return;let F="100%";e.height&&m.value&&(F=`${m.value}px`);const A=h.value;return{width:A?`${A}px`:"",height:F}}),_=l.computed(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${p.value+C.value}px)`}:{maxHeight:`${+e.maxHeight-p.value-C.value}px`}:{});return{isHidden:a,renderExpanded:i,setDragVisible:r,isGroup:s,handleMouseLeave:T,handleHeaderFooterMousewheel:L,tableSize:W,emptyBlockStyle:Y,resizeProxyVisible:u,bodyWidth:H,resizeState:c,doLayout:v,tableBodyStyles:f,tableLayout:V,scrollbarViewStyle:d,scrollbarStyle:_}}function Jl(e){const t=l.ref(),n=()=>{const a=e.vnode.el.querySelector(".hidden-columns"),i={childList:!0,subtree:!0},u=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{u.forEach(r=>r())}),t.value.observe(a,i)};l.onMounted(()=>{n()}),l.onUnmounted(()=>{var o;(o=t.value)==null||o.disconnect()})}var Zl={data:{type:Array,default:()=>[]},size:ae.useSizeProp,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0},preserveExpandedContent:Boolean,nativeScrollbar:Boolean};function wt(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(({width:a})=>w.isUndefined(a))&&(n=[]);const o=a=>{const i={key:`${e.tableLayout}_${a.id}`,style:{},name:void 0};return t?i.style={width:`${a.width}px`}:i.name=a.id,i};return l.h("colgroup",{},n.map(a=>l.h("col",o(a))))}wt.props=["columns","tableLayout"];const en=()=>{const e=l.ref(),t=(i,u)=>{const r=e.value;r&&r.scrollTo(i,u)},n=(i,u)=>{const r=e.value;r&&w.isNumber(u)&&["Top","Left"].includes(i)&&r[`setScroll${i}`](u)};return{scrollBarRef:e,scrollTo:t,setScrollTop:i=>n("Top",i),setScrollLeft:i=>n("Left",i)}};var Ze=!1,he,He,Pe,Ee,xe,St,Ne,$e,ze,_e,Et,Ie,Ve,xt,Nt;function te(){if(!Ze){Ze=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(Ie=/\b(iPhone|iP[ao]d)/.exec(e),Ve=/\b(iP[ao]d)/.exec(e),_e=/Android/i.exec(e),xt=/FBAN\/\w+;/i.exec(e),Nt=/Mobile/i.exec(e),Et=!!/Win64/.exec(e),t){he=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,he&&document&&document.documentMode&&(he=document.documentMode);var o=/(?:Trident\/(\d+.\d+))/.exec(e);St=o?parseFloat(o[1])+4:he,He=t[2]?parseFloat(t[2]):NaN,Pe=t[3]?parseFloat(t[3]):NaN,Ee=t[4]?parseFloat(t[4]):NaN,Ee?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),xe=t&&t[1]?parseFloat(t[1]):NaN):xe=NaN}else he=He=Pe=xe=Ee=NaN;if(n){if(n[1]){var a=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Ne=a?parseFloat(a[1].replace("_",".")):!0}else Ne=!1;$e=!!n[2],ze=!!n[3]}else Ne=$e=ze=!1}}var Ke={ie:function(){return te()||he},ieCompatibilityMode:function(){return te()||St>he},ie64:function(){return Ke.ie()&&Et},firefox:function(){return te()||He},opera:function(){return te()||Pe},webkit:function(){return te()||Ee},safari:function(){return Ke.webkit()},chrome:function(){return te()||xe},windows:function(){return te()||$e},osx:function(){return te()||Ne},linux:function(){return te()||ze},iphone:function(){return te()||Ie},mobile:function(){return te()||Ie||Ve||_e||Nt},nativeApp:function(){return te()||xt},android:function(){return te()||_e},ipad:function(){return te()||Ve}},tn=Ke,we=!!(typeof window<"u"&&window.document&&window.document.createElement),ln={canUseDOM:we,canUseWorkers:typeof Worker<"u",canUseEventListeners:we&&!!(window.addEventListener||window.attachEvent),canUseViewport:we&&!!window.screen,isInWorker:!we},Rt=ln,Lt;Rt.canUseDOM&&(Lt=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function nn(e,t){if(!Rt.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o=typeof a[n]=="function"}return!o&&Lt&&e==="wheel"&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var on=nn,et=10,tt=40,lt=800;function Ft(e){var t=0,n=0,o=0,a=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),o=t*et,a=n*et,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||a)&&e.deltaMode&&(e.deltaMode==1?(o*=tt,a*=tt):(o*=lt,a*=lt)),o&&!t&&(t=o<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:t,spinY:n,pixelX:o,pixelY:a}}Ft.getEventType=function(){return tn.firefox()?"DOMMouseScroll":on("wheel")?"wheel":"mousewheel"};var rn=Ft;/**
|
|
1
|
+
"use strict";const l=require("vue"),ot=require("./index-185792a7.cjs"),ce=require("./el-popper-a4f3ae4d.cjs"),w=require("./base-ef747d02.cjs"),rt=require("./use-global-config-23472471.cjs"),fe=require("./index-5c0dd943.cjs"),ae=require("./use-form-common-props-ac666630.cjs"),le=require("./index-9780a537.cjs"),ue=require("./_initCloneObject-a5832933.cjs"),at=require("./el-tag-9c2f329f.cjs"),st=require("./castArray-35947698.cjs"),Re=require("./index-bb833443.cjs"),Le=require("./debounce-62f5b6e8.cjs"),me=require("./el-checkbox-e90762df.cjs"),de=require("./index-00f6ca75.cjs"),qt=require("./raf-8249652f.cjs");function Ut(e,t){return ce.setToString(ce.overRest(e,t,ce.identity),e+"")}function Yt(e,t,n){if(!le.isObject(n))return!1;var o=typeof t;return(o=="number"?fe.isArrayLike(n)&&ae.isIndex(t,n.length):o=="string"&&t in n)?le.eq(n[t],e):!1}function Xt(e){return Ut(function(t,n){var o=-1,a=n.length,i=a>1?n[a-1]:void 0,u=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,u&&Yt(n[0],n[1],u)&&(i=a<3?void 0:i,a=1),t=Object(t);++o<a;){var r=n[o];r&&e(t,r,o,i)}return t})}var Gt="[object Object]",Qt=Function.prototype,Jt=Object.prototype,it=Qt.toString,Zt=Jt.hasOwnProperty,el=it.call(Object);function tl(e){if(!le.isObjectLike(e)||le.baseGetTag(e)!=Gt)return!1;var t=ue.getPrototype(e);if(t===null)return!0;var n=Zt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&it.call(n)==el}function ll(e){return function(t,n,o){for(var a=-1,i=Object(t),u=o(t),r=u.length;r--;){var c=u[e?r:++a];if(n(i[c],c,i)===!1)break}return t}}var nl=ll();const ut=nl;function ol(e,t){return e&&ut(e,t,fe.keys)}function rl(e,t){return function(n,o){if(n==null)return n;if(!fe.isArrayLike(n))return e(n,o);for(var a=n.length,i=t?a:-1,u=Object(n);(t?i--:++i<a)&&o(u[i],i,u)!==!1;);return n}}var al=rl(ol);const sl=al;function Ae(e,t,n){(n!==void 0&&!le.eq(e[t],n)||n===void 0&&!(t in e))&&ae.baseAssignValue(e,t,n)}function il(e){return le.isObjectLike(e)&&fe.isArrayLike(e)}function We(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function ul(e){return ue.copyObject(e,ue.keysIn(e))}function cl(e,t,n,o,a,i,u){var r=We(e,n),c=We(t,n),s=u.get(c);if(s){Ae(e,n,s);return}var d=i?i(r,c,n+"",e,t,u):void 0,h=d===void 0;if(h){var g=le.isArray(c),m=!g&&fe.isBuffer(c),p=!g&&!m&&fe.isTypedArray(c);d=c,g||m||p?le.isArray(r)?d=r:il(r)?d=ue.copyArray(r):m?(h=!1,d=ue.cloneBuffer(c,!0)):p?(h=!1,d=ue.cloneTypedArray(c,!0)):d=[]:tl(c)||ae.isArguments(c)?(d=r,ae.isArguments(r)?d=ul(r):(!le.isObject(r)||le.isFunction(r))&&(d=ue.initCloneObject(c))):h=!1}h&&(u.set(c,d),a(d,c,o,i,u),u.delete(c)),Ae(e,n,d)}function ct(e,t,n,o,a){e!==t&&ut(t,function(i,u){if(a||(a=new fe.Stack),le.isObject(i))cl(e,t,u,n,ct,o,a);else{var r=o?o(We(e,u),i,u+"",e,t,a):void 0;r===void 0&&(r=i),Ae(e,u,r)}},ue.keysIn)}function dl(e,t){var n=-1,o=fe.isArrayLike(e)?Array(e.length):[];return sl(e,function(a,i,u){o[++n]=t(a,i,u)}),o}function fl(e,t){var n=le.isArray(e)?le.arrayMap:dl;return n(e,at.baseIteratee(t))}function dt(e,t){return ce.baseFlatten(fl(e,t),1)}function Ce(e){return e===null}var hl=Xt(function(e,t,n){ct(e,t,n)});const ft=hl,ke=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},pl=function(e,t,n,o,a){if(!t&&!o&&(!a||w.isArray(a)&&!a.length))return e;w.isString(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const i=o?null:function(r,c){return a?dt(st.castArray(a),s=>w.isString(s)?Re.get(r,s):s(r,c,e)):(t!=="$key"&&w.isObject(r)&&"$value"in r&&(r=r.$value),[w.isObject(r)?t?Re.get(r,t):null:r])},u=function(r,c){var s,d,h,g,m,p;if(o)return o(r.value,c.value);for(let C=0,y=(d=(s=r.key)==null?void 0:s.length)!=null?d:0;C<y;C++){if(((h=r.key)==null?void 0:h[C])<((g=c.key)==null?void 0:g[C]))return-1;if(((m=r.key)==null?void 0:m[C])>((p=c.key)==null?void 0:p[C]))return 1}return 0};return e.map((r,c)=>({value:r,index:c,key:i?i(r,c):null})).sort((r,c)=>{let s=u(r,c);return s||(s=r.index-c.index),s*+n}).map(r=>r.value)},ht=function(e,t){let n=null;return e.columns.forEach(o=>{o.id===t&&(n=o)}),n},vl=function(e,t){let n=null;for(let o=0;o<e.columns.length;o++){const a=e.columns[o];if(a.columnKey===t){n=a;break}}return n||ce.throwError("ElTable",`No column matching with column-key: ${t}`),n},Ge=function(e,t,n){const o=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return o?ht(e,o[0]):null},J=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(w.isString(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let o=e;for(const a of n)o=o[a];return`${o}`}else if(w.isFunction(t))return t.call(null,e);return""},ve=function(e,t,n=!1,o="children"){const a=e||[],i={};return a.forEach((u,r)=>{if(i[J(u,t)]={row:u,index:r},n){const c=u[o];w.isArray(c)&&Object.assign(i,ve(c,t,!0,o))}}),i};function ml(e,t){const n={};let o;for(o in e)n[o]=e[o];for(o in t)if(w.hasOwn(t,o)){const a=t[o];w.isUndefined(a)||(n[o]=a)}return n}function De(e){return e===""||w.isUndefined(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function pt(e){return e===""||w.isUndefined(e)||(e=De(e),Number.isNaN(e)&&(e=80)),e}function gl(e){return w.isNumber(e)?e:w.isString(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function Cl(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...o)=>t(n(...o)))}function Fe(e,t,n,o,a,i,u){let r=i??0,c=!1;const d=(()=>{if(!u)return e.indexOf(t);const C=J(t,u);return e.findIndex(y=>J(y,u)===C)})(),h=d!==-1,g=a==null?void 0:a.call(null,t,r),m=C=>{C==="add"?e.push(t):e.splice(d,1),c=!0},p=C=>{let y=0;const T=(o==null?void 0:o.children)&&C[o.children];return T&&w.isArray(T)&&(y+=T.length,T.forEach(L=>{y+=p(L)})),y};return(!a||g)&&(w.isBoolean(n)?n&&!h?m("add"):!n&&h&&m("remove"):m(h?"remove":"add")),!(o!=null&&o.checkStrictly)&&(o!=null&&o.children)&&w.isArray(t[o.children])&&t[o.children].forEach(C=>{const y=Fe(e,C,n??!h,o,a,r+1,u);r+=p(C)+1,y&&(c=y)}),c}function yl(e,t,n="children",o="hasChildren",a=!1){const i=r=>!(w.isArray(r)&&r.length);function u(r,c,s){t(r,c,s),c.forEach(d=>{if(d[o]&&a){t(d,null,s+1);return}const h=d[n];i(h)||u(d,h,s+1)})}e.forEach(r=>{if(r[o]&&a){t(r,null,0);return}const c=r[n];i(c)||u(r,c,0)})}const bl=(e,t,n,o)=>{const a={strategy:"fixed",...e.popperOptions},i=w.isFunction(o==null?void 0:o.tooltipFormatter)?o.tooltipFormatter({row:n,column:o,cellValue:rt.getProp(n,o.property).value}):void 0;return l.isVNode(i)?{slotContent:i,content:null,...e,popperOptions:a}:{slotContent:null,content:i??t,...e,popperOptions:a}};let Z=null;function wl(e,t,n,o,a,i){var u;const r=bl(e,t,n,o),c={...r,slotContent:void 0};if((Z==null?void 0:Z.trigger)===a){const p=(u=Z.vm)==null?void 0:u.component;ft(p==null?void 0:p.props,c),p&&r.slotContent&&(p.slots.content=()=>[r.slotContent]);return}Z==null||Z();const s=i==null?void 0:i.refs.tableWrapper,d=s==null?void 0:s.dataset.prefix,h=l.createVNode(ce.ElTooltip,{virtualTriggering:!0,virtualRef:a,appendTo:s,placement:"top",transition:"none",offset:0,hideAfter:0,...c},r.slotContent?{content:()=>r.slotContent}:void 0);h.appContext={...i.appContext,...i};const g=document.createElement("div");l.render(h,g),h.component.exposed.onOpen();const m=s==null?void 0:s.querySelector(`.${d}-scrollbar__wrap`);Z=()=>{var p,C;(C=(p=h.component)==null?void 0:p.exposed)!=null&&C.onClose&&h.component.exposed.onClose(),l.render(null,g);const y=Z;m==null||m.removeEventListener("scroll",y),y.trigger=void 0,y.vm=void 0,Z=null},Z.trigger=a??void 0,Z.vm=h,m==null||m.addEventListener("scroll",Z)}function vt(e){return e.children?dt(e.children,vt):[e]}function Qe(e,t){return e+t.colSpan}const mt=(e,t,n,o)=>{let a=0,i=e;const u=n.states.columns.value;if(o){const c=vt(o[e]);a=u.slice(0,u.indexOf(c[0])).reduce(Qe,0),i=a+c.reduce(Qe,0)-1}else a=e;let r;switch(t){case"left":i<n.states.fixedLeafColumnsLength.value&&(r="left");break;case"right":a>=u.length-n.states.rightFixedLeafColumnsLength.value&&(r="right");break;default:i<n.states.fixedLeafColumnsLength.value?r="left":a>=u.length-n.states.rightFixedLeafColumnsLength.value&&(r="right")}return r?{direction:r,start:a,after:i}:{}},je=(e,t,n,o,a,i=0)=>{const u=[],{direction:r,start:c,after:s}=mt(t,n,o,a);if(r){const d=r==="left";u.push(`${e}-fixed-column--${r}`),d&&s+i===o.states.fixedLeafColumnsLength.value-1?u.push("is-last-column"):!d&&c-i===o.states.columns.value.length-o.states.rightFixedLeafColumnsLength.value&&u.push("is-first-column")}return u};function Je(e,t){return e+(Ce(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const qe=(e,t,n,o)=>{const{direction:a,start:i=0,after:u=0}=mt(e,t,n,o);if(!a)return;const r={},c=a==="left",s=n.states.columns.value;return c?r.left=s.slice(0,i).reduce(Je,0):r.right=s.slice(u+1).reverse().reduce(Je,0),r},ge=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function Sl(e){const t=l.getCurrentInstance(),n=l.ref(!1),o=l.ref([]);return{updateExpandRows:()=>{const c=e.data.value||[],s=e.rowKey.value;if(n.value)o.value=c.slice();else if(s){const d=ve(o.value,s);o.value=c.reduce((h,g)=>{const m=J(g,s);return d[m]&&h.push(g),h},[])}else o.value=[]},toggleRowExpansion:(c,s)=>{Fe(o.value,c,s,void 0,void 0,void 0,e.rowKey.value)&&t.emit("expand-change",c,o.value.slice())},setExpandRowKeys:c=>{t.store.assertRowKey();const s=e.data.value||[],d=e.rowKey.value,h=ve(s,d);o.value=c.reduce((g,m)=>{const p=h[m];return p&&g.push(p.row),g},[])},isRowExpanded:c=>{const s=e.rowKey.value;return s?!!ve(o.value,s)[J(c,s)]:o.value.includes(c)},states:{expandRows:o,defaultExpandAll:n}}}function El(e){const t=l.getCurrentInstance(),n=l.ref(null),o=l.ref(null),a=s=>{t.store.assertRowKey(),n.value=s,u(s)},i=()=>{n.value=null},u=s=>{var d;const{data:h,rowKey:g}=e;let m=null;g.value&&(m=(d=(l.unref(h)||[]).find(p=>J(p,g.value)===s))!=null?d:null),o.value=m??null,t.emit("current-change",o.value,null)};return{setCurrentRowKey:a,restoreCurrentRowKey:i,setCurrentRowByKey:u,updateCurrentRow:s=>{const d=o.value;if(s&&s!==d){o.value=s,t.emit("current-change",o.value,d);return}!s&&d&&(o.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const s=e.rowKey.value,d=e.data.value||[],h=o.value;if(h&&!d.includes(h)){if(s){const g=J(h,s);u(g)}else o.value=null;Ce(o.value)&&t.emit("current-change",null,h)}else n.value&&(u(n.value),i())},states:{_currentRowKey:n,currentRow:o}}}function xl(e){const t=l.ref([]),n=l.ref({}),o=l.ref(16),a=l.ref(!1),i=l.ref({}),u=l.ref("hasChildren"),r=l.ref("children"),c=l.ref(!1),s=l.getCurrentInstance(),d=l.computed(()=>{if(!e.rowKey.value)return{};const f=e.data.value||[];return g(f)}),h=l.computed(()=>{const f=e.rowKey.value,v=Object.keys(i.value),b={};return v.length&&v.forEach(S=>{if(i.value[S].length){const x={children:[]};i.value[S].forEach(N=>{const R=J(N,f);x.children.push(R),N[u.value]&&!b[R]&&(b[R]={children:[]})}),b[S]=x}}),b}),g=f=>{const v=e.rowKey.value,b={};return yl(f,(S,x,N)=>{const R=J(S,v);w.isArray(x)?b[R]={children:x.map(B=>J(B,v)),level:N}:a.value&&(b[R]={children:[],lazy:!0,level:N})},r.value,u.value,a.value),b},m=(f=!1,v)=>{var b,S;v||(v=(b=s.store)==null?void 0:b.states.defaultExpandAll.value);const x=d.value,N=h.value,R=Object.keys(x),B={};if(R.length){const W=l.unref(n),H=[],V=(_,F)=>{if(f)return t.value?v||t.value.includes(F):!!(v||_!=null&&_.expanded);{const A=v||t.value&&t.value.includes(F);return!!(_!=null&&_.expanded||A)}};R.forEach(_=>{const F=W[_],A={...x[_]};if(A.expanded=V(F,_),A.lazy){const{loaded:M=!1,loading:O=!1}=F||{};A.loaded=!!M,A.loading=!!O,H.push(_)}B[_]=A});const Y=Object.keys(N);a.value&&Y.length&&H.length&&Y.forEach(_=>{var F;const A=W[_],M=N[_].children;if(H.includes(_)){if(((F=B[_].children)==null?void 0:F.length)!==0)throw new Error("[ElTable]children must be an empty array.");B[_].children=M}else{const{loaded:O=!1,loading:z=!1}=A||{};B[_]={lazy:!0,loaded:!!O,loading:!!z,expanded:V(A,_),children:M,level:void 0}}})}n.value=B,(S=s.store)==null||S.updateTableScrollY()};l.watch(()=>t.value,()=>{m(!0)}),l.watch(()=>d.value,()=>{m()}),l.watch(()=>h.value,()=>{m()});const p=f=>{t.value=f,m()},C=f=>a.value&&f&&"loaded"in f&&!f.loaded,y=(f,v)=>{s.store.assertRowKey();const b=e.rowKey.value,S=J(f,b),x=S&&n.value[S];if(S&&x&&"expanded"in x){const N=x.expanded;v=w.isUndefined(v)?!x.expanded:v,n.value[S].expanded=v,N!==v&&s.emit("expand-change",f,v),C(x)&&L(f,S,x),s.store.updateTableScrollY()}},T=f=>{s.store.assertRowKey();const v=e.rowKey.value,b=J(f,v),S=n.value[b];C(S)?L(f,b,S):y(f,void 0)},L=(f,v,b)=>{const{load:S}=s.props;S&&!n.value[v].loaded&&(n.value[v].loading=!0,S(f,b,x=>{if(!w.isArray(x))throw new TypeError("[ElTable] data must be an array");n.value[v].loading=!1,n.value[v].loaded=!0,n.value[v].expanded=!0,x.length&&(i.value[v]=x),s.emit("expand-change",f,!0)}))};return{loadData:L,loadOrToggle:T,toggleTreeExpansion:y,updateTreeExpandKeys:p,updateTreeData:m,updateKeyChildren:(f,v)=>{const{lazy:b,rowKey:S}=s.props;if(b){if(!S)throw new Error("[Table] rowKey is required in updateKeyChild");i.value[f]&&(i.value[f]=v)}},normalize:g,states:{expandRowKeys:t,treeData:n,indent:o,lazy:a,lazyTreeNodeMap:i,lazyColumnIdentifier:u,childrenColumnName:r,checkStrictly:c}}}const Nl=(e,t)=>{const n=t.sortingColumn;return!n||w.isString(n.sortable)?e:pl(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Se=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,Se(n.children)):t.push(n)}),t};function Rl(){var e;const t=l.getCurrentInstance(),{size:n}=l.toRefs((e=t.proxy)==null?void 0:e.$props),o=l.ref(null),a=l.ref([]),i=l.ref([]),u=l.ref(!1),r=l.ref([]),c=l.ref([]),s=l.ref([]),d=l.ref([]),h=l.ref([]),g=l.ref([]),m=l.ref([]),p=l.ref([]),C=[],y=l.ref(0),T=l.ref(0),L=l.ref(0),E=l.ref(!1),f=l.ref([]),v=l.ref(!1),b=l.ref(!1),S=l.ref(null),x=l.ref({}),N=l.ref(null),R=l.ref(null),B=l.ref(null),W=l.ref(null),H=l.ref(null),V=l.computed(()=>o.value?ve(f.value,o.value):void 0);l.watch(a,()=>{var k;t.state&&(A(!1),t.props.tableLayout==="auto"&&((k=t.refs.tableHeaderRef)==null||k.updateFixedColumnStyle()))},{deep:!0});const Y=()=>{if(!o.value)throw new Error("[ElTable] prop row-key is required")},_=k=>{var P;(P=k.children)==null||P.forEach(I=>{I.fixed=k.fixed,_(I)})},F=()=>{r.value.forEach(q=>{_(q)}),d.value=r.value.filter(q=>[!0,"left"].includes(q.fixed));const k=r.value.find(q=>q.type==="selection");let P;k&&k.fixed!=="right"&&!d.value.includes(k)&&r.value.indexOf(k)===0&&d.value.length&&(d.value.unshift(k),P=!0),h.value=r.value.filter(q=>q.fixed==="right");const I=r.value.filter(q=>(P?q.type!=="selection":!0)&&!q.fixed);c.value=Array.from(d.value).concat(I).concat(h.value);const $=Se(I),K=Se(d.value),D=Se(h.value);y.value=$.length,T.value=K.length,L.value=D.length,s.value=Array.from(K).concat($).concat(D),u.value=d.value.length>0||h.value.length>0},A=(k,P=!1)=>{k&&F(),P?t.state.doLayout():t.state.debouncedUpdateLayout()},M=k=>V.value?!!V.value[J(k,o.value)]:f.value.includes(k),O=()=>{E.value=!1;const k=f.value;f.value=[],k.length&&t.emit("selection-change",[])},z=()=>{var k,P;let I;if(o.value){I=[];const $=(P=(k=t==null?void 0:t.store)==null?void 0:k.states)==null?void 0:P.childrenColumnName.value,K=ve(a.value,o.value,!0,$);for(const D in V.value)w.hasOwn(V.value,D)&&!K[D]&&I.push(V.value[D].row)}else I=f.value.filter($=>!a.value.includes($));if(I.length){const $=f.value.filter(K=>!I.includes(K));f.value=$,t.emit("selection-change",$.slice())}},j=()=>(f.value||[]).slice(),X=(k,P,I=!0,$=!1)=>{var K,D,q,se;const ie={children:(D=(K=t==null?void 0:t.store)==null?void 0:K.states)==null?void 0:D.childrenColumnName.value,checkStrictly:(se=(q=t==null?void 0:t.store)==null?void 0:q.states)==null?void 0:se.checkStrictly.value};if(Fe(f.value,k,P,ie,$?void 0:S.value,a.value.indexOf(k),o.value)){const be=(f.value||[]).slice();I&&t.emit("select",be,k),t.emit("selection-change",be)}},U=()=>{var k,P;const I=b.value?!E.value:!(E.value||f.value.length);E.value=I;let $=!1,K=0;const D=(P=(k=t==null?void 0:t.store)==null?void 0:k.states)==null?void 0:P.rowKey.value,{childrenColumnName:q}=t.store.states,se={children:q.value,checkStrictly:!1};a.value.forEach((ie,ye)=>{const be=ye+K;Fe(f.value,ie,I,se,S.value,be,D)&&($=!0),K+=Q(J(ie,D))}),$&&t.emit("selection-change",f.value?f.value.slice():[]),t.emit("select-all",(f.value||[]).slice())},G=()=>{var k;if(((k=a.value)==null?void 0:k.length)===0){E.value=!1;return}const{childrenColumnName:P}=t.store.states;let I=0,$=0;const K=q=>{var se;for(const ie of q){const ye=S.value&&S.value.call(null,ie,I);if(M(ie))$++;else if(!S.value||ye)return!1;if(I++,(se=ie[P.value])!=null&&se.length&&!K(ie[P.value]))return!1}return!0},D=K(a.value||[]);E.value=$===0?!1:D},Q=k=>{var P;if(!t||!t.store)return 0;const{treeData:I}=t.store.states;let $=0;const K=(P=I.value[k])==null?void 0:P.children;return K&&($+=K.length,K.forEach(D=>{$+=Q(D)})),$},ne=(k,P)=>{const I={};return st.castArray(k).forEach($=>{x.value[$.id]=P,I[$.columnKey||$.id]=P}),I},ee=(k,P,I)=>{R.value&&R.value!==k&&(R.value.order=null),R.value=k,B.value=P,W.value=I},oe=()=>{let k=l.unref(i);Object.keys(x.value).forEach(P=>{const I=x.value[P];if(!I||I.length===0)return;const $=ht({columns:s.value},P);$&&$.filterMethod&&(k=k.filter(K=>I.some(D=>$.filterMethod.call(null,D,K,$))))}),N.value=k},pe=()=>{var k;a.value=Nl((k=N.value)!=null?k:[],{sortingColumn:R.value,sortProp:B.value,sortOrder:W.value})},Oe=(k=void 0)=>{k!=null&&k.filter||oe(),pe()},kt=k=>{const{tableHeaderRef:P}=t.refs;if(!P)return;const I=Object.assign({},P.filterPanels),$=Object.keys(I);if($.length)if(w.isString(k)&&(k=[k]),w.isArray(k)){const K=k.map(D=>vl({columns:s.value},D));$.forEach(D=>{const q=K.find(se=>se.id===D);q&&(q.filteredValue=[])}),t.store.commit("filterChange",{column:K,values:[],silent:!0,multi:!0})}else $.forEach(K=>{const D=s.value.find(q=>q.id===K);D&&(D.filteredValue=[])}),x.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},Tt=()=>{R.value&&(ee(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:At,toggleRowExpansion:Xe,updateExpandRows:Wt,states:Mt,isRowExpanded:Bt}=Sl({data:a,rowKey:o}),{updateTreeExpandKeys:Ht,toggleTreeExpansion:Pt,updateTreeData:$t,updateKeyChildren:zt,loadOrToggle:_t,states:It}=xl({data:a,rowKey:o}),{updateCurrentRowData:Vt,updateCurrentRow:Kt,setCurrentRowKey:Dt,states:jt}=El({data:a,rowKey:o});return{assertRowKey:Y,updateColumns:F,scheduleLayout:A,isSelected:M,clearSelection:O,cleanSelection:z,getSelectionRows:j,toggleRowSelection:X,_toggleAllSelection:U,toggleAllSelection:null,updateAllSelected:G,updateFilters:ne,updateCurrentRow:Kt,updateSort:ee,execFilter:oe,execSort:pe,execQuery:Oe,clearFilter:kt,clearSort:Tt,toggleRowExpansion:Xe,setExpandRowKeysAdapter:k=>{At(k),Ht(k)},setCurrentRowKey:Dt,toggleRowExpansionAdapter:(k,P)=>{s.value.some(({type:$})=>$==="expand")?Xe(k,P):Pt(k,P)},isRowExpanded:Bt,updateExpandRows:Wt,updateCurrentRowData:Vt,loadOrToggle:_t,updateTreeData:$t,updateKeyChildren:zt,states:{tableSize:n,rowKey:o,data:a,_data:i,isComplex:u,_columns:r,originColumns:c,columns:s,fixedColumns:d,rightFixedColumns:h,leafColumns:g,fixedLeafColumns:m,rightFixedLeafColumns:p,updateOrderFns:C,leafColumnsLength:y,fixedLeafColumnsLength:T,rightFixedLeafColumnsLength:L,isAllSelected:E,selection:f,reserveSelection:v,selectOnIndeterminate:b,selectable:S,filters:x,filteredData:N,sortingColumn:R,sortProp:B,sortOrder:W,hoverRow:H,...Mt,...It,...jt}}}function Me(e,t){return e.map(n=>{var o;return n.id===t.id?t:((o=n.children)!=null&&o.length&&(n.children=Me(n.children,t)),n)})}function Be(e){e.forEach(t=>{var n,o;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(o=t.children)!=null&&o.length&&Be(t.children)}),e.sort((t,n)=>t.no-n.no)}function Ll(){const e=l.getCurrentInstance(),t=Rl();return{ns:w.useNamespace("table"),...t,mutations:{setData(u,r){const c=l.unref(u._data)!==r;u.data.value=r,u._data.value=r,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),l.unref(u.reserveSelection)?e.store.assertRowKey():c?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(u,r,c,s){var d;const h=l.unref(u._columns);let g=[];c?(c&&!c.children&&(c.children=[]),(d=c.children)==null||d.push(r),g=Me(h,c)):(h.push(r),g=h),Be(g),u._columns.value=g,u.updateOrderFns.push(s),r.type==="selection"&&(u.selectable.value=r.selectable,u.reserveSelection.value=r.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(u,r){var c;((c=r.getColumnIndex)==null?void 0:c.call(r))!==r.no&&(Be(u._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(u,r,c,s){var d;const h=l.unref(u._columns)||[];if(c)(d=c.children)==null||d.splice(c.children.findIndex(m=>m.id===r.id),1),l.nextTick(()=>{var m;((m=c.children)==null?void 0:m.length)===0&&delete c.children}),u._columns.value=Me(h,c);else{const m=h.indexOf(r);m>-1&&(h.splice(m,1),u._columns.value=h)}const g=u.updateOrderFns.indexOf(s);g>-1&&u.updateOrderFns.splice(g,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(u,r){const{prop:c,order:s,init:d}=r;if(c){const h=l.unref(u.columns).find(g=>g.property===c);h&&(h.order=s,e.store.updateSort(h,c,s),e.store.commit("changeSortCondition",{init:d}))}},changeSortCondition(u,r){const{sortingColumn:c,sortProp:s,sortOrder:d}=u,h=l.unref(c),g=l.unref(s),m=l.unref(d);Ce(m)&&(u.sortingColumn.value=null,u.sortProp.value=null);const p={filter:!0};e.store.execQuery(p),(!r||!(r.silent||r.init))&&e.emit("sort-change",{column:h,prop:g,order:m}),e.store.updateTableScrollY()},filterChange(u,r){const{column:c,values:s,silent:d}=r,h=e.store.updateFilters(c,s);e.store.execQuery(),d||e.emit("filter-change",h),e.store.updateTableScrollY()},toggleAllSelection(){var u,r;(r=(u=e.store).toggleAllSelection)==null||r.call(u)},rowSelectedChanged(u,r){e.store.toggleRowSelection(r),e.store.updateAllSelected()},setHoverRow(u,r){u.hoverRow.value=r},setCurrentRow(u,r){e.store.updateCurrentRow(r)}},commit:function(u,...r){const c=e.store.mutations;if(c[u])c[u].apply(e,[e.store.states,...r]);else throw new Error(`Action not found: ${u}`)},updateTableScrollY:function(){l.nextTick(()=>e.layout.updateScrollY.apply(e.layout))}}}const Ue={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function Fl(e,t){if(!e)throw new Error("Table is required.");const n=Ll();return n.toggleAllSelection=Le.debounce(n._toggleAllSelection,10),Object.keys(Ue).forEach(o=>{gt(Ct(t,o),o,n)}),Ol(n,t),n}function Ol(e,t){Object.keys(Ue).forEach(n=>{l.watch(()=>Ct(t,n),o=>{gt(o,n,e)})})}function gt(e,t,n){let o=e,a=Ue[t];w.isObject(a)&&(o=o||a.default,a=a.key),n.states[a].value=o}function Ct(e,t){if(t.includes(".")){const n=t.split(".");let o=e;return n.forEach(a=>{o=o[a]}),o}else return e[t]}class kl{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=l.ref(null),this.scrollX=l.ref(!1),this.scrollY=l.ref(!1),this.bodyWidth=l.ref(null),this.fixedWidth=l.ref(null),this.rightFixedWidth=l.ref(null),this.gutterWidth=0;for(const n in t)w.hasOwn(t,n)&&(l.isRef(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const t=this.height.value;if(Ce(t))return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let o=!0;const a=this.scrollY.value;return o=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=o,a!==o}return!1}setHeight(t,n="height"){if(!w.isClient)return;const o=this.table.vnode.el;if(t=gl(t),this.height.value=Number(t),!o&&(t||t===0)){l.nextTick(()=>this.setHeight(t,n));return}o&&w.isNumber(t)?(o.style[n]=`${t}px`,this.updateElsHeight()):o&&w.isString(t)&&(o.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(o=>{o.isColumnGroup?t.push.apply(t,o.columns):t.push(o)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){var t;if(!w.isClient)return;const n=this.fit,o=(t=this.table.vnode.el)==null?void 0:t.clientWidth;let a=0;const i=this.getFlattenColumns(),u=i.filter(s=>!w.isNumber(s.width));if(i.forEach(s=>{w.isNumber(s.width)&&s.realWidth&&(s.realWidth=null)}),u.length>0&&n){if(i.forEach(s=>{a+=Number(s.width||s.minWidth||80)}),a<=o){this.scrollX.value=!1;const s=o-a;if(u.length===1)u[0].realWidth=Number(u[0].minWidth||80)+s;else{const d=u.reduce((m,p)=>m+Number(p.minWidth||80),0),h=s/d;let g=0;u.forEach((m,p)=>{if(p===0)return;const C=Math.floor(Number(m.minWidth||80)*h);g+=C,m.realWidth=Number(m.minWidth||80)+C}),u[0].realWidth=Number(u[0].minWidth||80)+s-g}}else this.scrollX.value=!0,u.forEach(s=>{s.realWidth=Number(s.minWidth)});this.bodyWidth.value=Math.max(a,o),this.table.state.resizeState.value.width=this.bodyWidth.value}else i.forEach(s=>{!s.width&&!s.minWidth?s.realWidth=80:s.realWidth=Number(s.width||s.minWidth),a+=s.realWidth}),this.scrollX.value=a>o,this.bodyWidth.value=a;const r=this.store.states.fixedColumns.value;if(r.length>0){let s=0;r.forEach(d=>{s+=Number(d.realWidth||d.width)}),this.fixedWidth.value=s}const c=this.store.states.rightFixedColumns.value;if(c.length>0){let s=0;c.forEach(d=>{s+=Number(d.realWidth||d.width)}),this.rightFixedWidth.value=s}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(o=>{var a,i;switch(t){case"columns":(a=o.state)==null||a.onColumnsChange(this);break;case"scrollable":(i=o.state)==null||i.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:Tl}=me.ElCheckbox,Al=l.defineComponent({name:"ElTableFilterPanel",components:{ElCheckbox:me.ElCheckbox,ElCheckboxGroup:Tl,ElScrollbar:ot.ElScrollbar,ElTooltip:ce.ElTooltip,ElIcon:de.ElIcon,ArrowDown:de.arrow_down_default,ArrowUp:de.arrow_up_default},directives:{ClickOutside:at.ClickOutside},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:ce.useTooltipContentProps.appendTo},setup(e){const t=l.getCurrentInstance(),{t:n}=Re.useLocale(),o=w.useNamespace("table-filter"),a=t==null?void 0:t.parent;e.column&&!a.filterPanels.value[e.column.id]&&(a.filterPanels.value[e.column.id]=t);const i=l.ref(!1),u=l.ref(null),r=l.computed(()=>e.column&&e.column.filters),c=l.computed(()=>e.column&&e.column.filterClassName?`${o.b()} ${e.column.filterClassName}`:o.b()),s=l.computed({get:()=>{var v;return(((v=e.column)==null?void 0:v.filteredValue)||[])[0]},set:v=>{d.value&&(w.isPropAbsent(v)?d.value.splice(0,1):d.value.splice(0,1,v))}}),d=l.computed({get(){return e.column?e.column.filteredValue||[]:[]},set(v){var b;e.column&&((b=e.upDataColumn)==null||b.call(e,"filteredValue",v))}}),h=l.computed(()=>e.column?e.column.filterMultiple:!0),g=v=>v.value===s.value,m=()=>{i.value=!1},p=v=>{v.stopPropagation(),i.value=!i.value},C=()=>{i.value=!1},y=()=>{E(d.value),m()},T=()=>{d.value=[],E(d.value),m()},L=v=>{s.value=v,w.isPropAbsent(v)?E([]):E(d.value),m()},E=v=>{var b,S;(b=e.store)==null||b.commit("filterChange",{column:e.column,values:v}),(S=e.store)==null||S.updateAllSelected()};l.watch(i,v=>{var b;e.column&&((b=e.upDataColumn)==null||b.call(e,"filterOpened",v))},{immediate:!0});const f=l.computed(()=>{var v,b;return(b=(v=u.value)==null?void 0:v.popperRef)==null?void 0:b.contentRef});return{tooltipVisible:i,multiple:h,filterClassName:c,filteredValue:d,filterValue:s,filters:r,handleConfirm:y,handleReset:T,handleSelect:L,isPropAbsent:w.isPropAbsent,isActive:g,t:n,ns:o,showFilterPanel:p,hideFilterPanel:C,popperPaneRef:f,tooltip:u}}});function Wl(e,t,n,o,a,i){const u=l.resolveComponent("el-checkbox"),r=l.resolveComponent("el-checkbox-group"),c=l.resolveComponent("el-scrollbar"),s=l.resolveComponent("arrow-up"),d=l.resolveComponent("arrow-down"),h=l.resolveComponent("el-icon"),g=l.resolveComponent("el-tooltip"),m=l.resolveDirective("click-outside");return l.openBlock(),l.createBlock(g,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo},{content:l.withCtx(()=>[e.multiple?(l.openBlock(),l.createElementBlock("div",{key:0},[l.createElementVNode("div",{class:l.normalizeClass(e.ns.e("content"))},[l.createVNode(c,{"wrap-class":e.ns.e("wrap")},{default:l.withCtx(()=>[l.createVNode(r,{modelValue:e.filteredValue,"onUpdate:modelValue":p=>e.filteredValue=p,class:l.normalizeClass(e.ns.e("checkbox-group"))},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.filters,p=>(l.openBlock(),l.createBlock(u,{key:p.value,value:p.value},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(p.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"])]),_:1},8,["wrap-class"])],2),l.createElementVNode("div",{class:l.normalizeClass(e.ns.e("bottom"))},[l.createElementVNode("button",{class:l.normalizeClass({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:e.handleConfirm},l.toDisplayString(e.t("el.table.confirmFilter")),11,["disabled","onClick"]),l.createElementVNode("button",{type:"button",onClick:e.handleReset},l.toDisplayString(e.t("el.table.resetFilter")),9,["onClick"])],2)])):(l.openBlock(),l.createElementBlock("ul",{key:1,class:l.normalizeClass(e.ns.e("list"))},[l.createElementVNode("li",{class:l.normalizeClass([e.ns.e("list-item"),{[e.ns.is("active")]:e.isPropAbsent(e.filterValue)}]),onClick:p=>e.handleSelect(null)},l.toDisplayString(e.t("el.table.clearFilter")),11,["onClick"]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.filters,p=>(l.openBlock(),l.createElementBlock("li",{key:p.value,class:l.normalizeClass([e.ns.e("list-item"),e.ns.is("active",e.isActive(p))]),label:p.value,onClick:C=>e.handleSelect(p.value)},l.toDisplayString(p.text),11,["label","onClick"]))),128))],2))]),default:l.withCtx(()=>[l.withDirectives((l.openBlock(),l.createElementBlock("span",{class:l.normalizeClass([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:e.showFilterPanel},[l.createVNode(h,null,{default:l.withCtx(()=>[l.renderSlot(e.$slots,"filter-icon",{},()=>{var p;return[(p=e.column)!=null&&p.filterOpened?(l.openBlock(),l.createBlock(s,{key:0})):(l.openBlock(),l.createBlock(d,{key:1}))]})]),_:3})],10,["onClick"])),[[m,e.hideFilterPanel,e.popperPaneRef]])]),_:3},8,["visible","placement","popper-class","append-to"])}var Ml=w._export_sfc(Al,[["render",Wl],["__file","filter-panel.vue"]]);function Ye(e){const t=l.getCurrentInstance();l.onBeforeMount(()=>{n.value.addObserver(t)}),l.onMounted(()=>{o(n.value),a(n.value)}),l.onUpdated(()=>{o(n.value),a(n.value)}),l.onUnmounted(()=>{n.value.removeObserver(t)});const n=l.computed(()=>{const i=e.layout;if(!i)throw new Error("Can not find table layout.");return i}),o=i=>{var u;const r=((u=e.vnode.el)==null?void 0:u.querySelectorAll("colgroup > col"))||[];if(!r.length)return;const c=i.getFlattenColumns(),s={};c.forEach(d=>{s[d.id]=d});for(let d=0,h=r.length;d<h;d++){const g=r[d],m=g.getAttribute("name"),p=s[m];p&&g.setAttribute("width",p.realWidth||p.width)}},a=i=>{var u,r;const c=((u=e.vnode.el)==null?void 0:u.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,h=c.length;d<h;d++)c[d].setAttribute("width",i.scrollY.value?i.gutterWidth:"0");const s=((r=e.vnode.el)==null?void 0:r.querySelectorAll("th.gutter"))||[];for(let d=0,h=s.length;d<h;d++){const g=s[d];g.style.width=i.scrollY.value?`${i.gutterWidth}px`:"0",g.style.display=i.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:o,onScrollableChange:a}}const re=Symbol("ElTable");function Bl(e,t){const n=l.getCurrentInstance(),o=l.inject(re),a=C=>{C.stopPropagation()},i=(C,y)=>{!y.filters&&y.sortable?p(C,y,!1):y.filterable&&!y.sortable&&a(C),o==null||o.emit("header-click",y,C)},u=(C,y)=>{o==null||o.emit("header-contextmenu",y,C)},r=l.ref(null),c=l.ref(!1),s=l.ref(),d=(C,y)=>{var T,L;if(w.isClient&&!(y.children&&y.children.length>0)&&r.value&&e.border){c.value=!0;const E=o;t("set-drag-visible",!0);const f=E==null?void 0:E.vnode.el,v=f==null?void 0:f.getBoundingClientRect().left,b=(L=(T=n==null?void 0:n.vnode)==null?void 0:T.el)==null?void 0:L.querySelector(`th.${y.id}`),S=b.getBoundingClientRect(),x=S.left-v+30;w.addClass(b,"noclick"),s.value={startMouseLeft:C.clientX,startLeft:S.right-v,startColumnLeft:S.left-v,tableLeft:v};const N=E==null?void 0:E.refs.resizeProxy;N.style.left=`${s.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const R=W=>{const H=W.clientX-s.value.startMouseLeft,V=s.value.startLeft+H;N.style.left=`${Math.max(x,V)}px`},B=()=>{if(c.value){const{startColumnLeft:W,startLeft:H}=s.value,Y=Number.parseInt(N.style.left,10)-W;y.width=y.realWidth=Y,E==null||E.emit("header-dragend",y.width,H-W,y,C),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",c.value=!1,r.value=null,s.value=void 0,t("set-drag-visible",!1)}document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",B),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{w.removeClass(b,"noclick")},0)};document.addEventListener("mousemove",R),document.addEventListener("mouseup",B)}},h=(C,y)=>{var T;if(y.children&&y.children.length>0)return;const L=C.target;if(!w.isElement(L))return;const E=L==null?void 0:L.closest("th");if(!(!y||!y.resizable||!E)&&!c.value&&e.border){const f=E.getBoundingClientRect(),v=document.body.style,b=((T=E.parentNode)==null?void 0:T.lastElementChild)===E,S=e.allowDragLastColumn||!b;f.width>12&&f.right-C.clientX<8&&S?(v.cursor="col-resize",w.hasClass(E,"is-sortable")&&(E.style.cursor="col-resize"),r.value=y):c.value||(v.cursor="",w.hasClass(E,"is-sortable")&&(E.style.cursor="pointer"),r.value=null)}},g=()=>{w.isClient&&(document.body.style.cursor="")},m=({order:C,sortOrders:y})=>{if(C==="")return y[0];const T=y.indexOf(C||null);return y[T>y.length-2?0:T+1]},p=(C,y,T)=>{var L;C.stopPropagation();const E=y.order===T?null:T||m(y),f=(L=C.target)==null?void 0:L.closest("th");if(f&&w.hasClass(f,"noclick")){w.removeClass(f,"noclick");return}if(!y.sortable)return;const v=C.currentTarget;if(["ascending","descending"].some(R=>w.hasClass(v,R)&&!y.sortOrders.includes(R)))return;const b=e.store.states;let S=b.sortProp.value,x;const N=b.sortingColumn.value;(N!==y||N===y&&Ce(N.order))&&(N&&(N.order=null),b.sortingColumn.value=y,S=y.property),E?x=y.order=E:x=y.order=null,b.sortProp.value=S,b.sortOrder.value=x,o==null||o.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:u,handleMouseDown:d,handleMouseMove:h,handleMouseOut:g,handleSortClick:p,handleFilterClick:a}}function Hl(e){const t=l.inject(re),n=w.useNamespace("table");return{getHeaderRowStyle:r=>{const c=t==null?void 0:t.props.headerRowStyle;return w.isFunction(c)?c.call(null,{rowIndex:r}):c},getHeaderRowClass:r=>{const c=[],s=t==null?void 0:t.props.headerRowClassName;return w.isString(s)?c.push(s):w.isFunction(s)&&c.push(s.call(null,{rowIndex:r})),c.join(" ")},getHeaderCellStyle:(r,c,s,d)=>{var h;let g=(h=t==null?void 0:t.props.headerCellStyle)!=null?h:{};w.isFunction(g)&&(g=g.call(null,{rowIndex:r,columnIndex:c,row:s,column:d}));const m=qe(c,d.fixed,e.store,s);return ge(m,"left"),ge(m,"right"),Object.assign({},g,m)},getHeaderCellClass:(r,c,s,d)=>{const h=je(n.b(),c,d.fixed,e.store,s),g=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...h];d.children||g.push("is-leaf"),d.sortable&&g.push("is-sortable");const m=t==null?void 0:t.props.headerCellClassName;return w.isString(m)?g.push(m):w.isFunction(m)&&g.push(m.call(null,{rowIndex:r,columnIndex:c,row:s,column:d})),g.push(n.e("cell")),g.filter(p=>!!p).join(" ")}}}const yt=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,yt(n.children))):t.push(n)}),t},bt=e=>{let t=1;const n=(i,u)=>{if(u&&(i.level=u.level+1,t<i.level&&(t=i.level)),i.children){let r=0;i.children.forEach(c=>{n(c,i),r+=c.colSpan}),i.colSpan=r}else i.colSpan=1};e.forEach(i=>{i.level=1,n(i,void 0)});const o=[];for(let i=0;i<t;i++)o.push([]);return yt(e).forEach(i=>{i.children?(i.rowSpan=1,i.children.forEach(u=>u.isSubColumn=!0)):i.rowSpan=t-i.level+1,o[i.level-1].push(i)}),o};function Pl(e){const t=l.inject(re),n=l.computed(()=>bt(e.store.states.originColumns.value));return{isGroup:l.computed(()=>{const i=n.value.length>1;return i&&t&&(t.state.isGroup.value=!0),i}),toggleAllSelection:i=>{i.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var $l=l.defineComponent({name:"ElTableHeader",components:{ElCheckbox:me.ElCheckbox},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const n=l.getCurrentInstance(),o=l.inject(re),a=w.useNamespace("table"),i=l.ref({}),{onColumnsChange:u,onScrollableChange:r}=Ye(o),c=(o==null?void 0:o.props.tableLayout)==="auto",s=l.reactive(new Map),d=l.ref();let h;const g=()=>{h=setTimeout(()=>{s.size>0&&(s.forEach((B,W)=>{const H=d.value.querySelector(`.${W.replace(/\s/g,".")}`);if(H){const V=H.getBoundingClientRect().width;B.width=V||B.width}}),s.clear())})};l.watch(s,g),l.onBeforeUnmount(()=>{h&&(clearTimeout(h),h=void 0)}),l.onMounted(async()=>{await l.nextTick(),await l.nextTick();const{prop:B,order:W}=e.defaultSort;o==null||o.store.commit("sort",{prop:B,order:W,init:!0}),g()});const{handleHeaderClick:m,handleHeaderContextMenu:p,handleMouseDown:C,handleMouseMove:y,handleMouseOut:T,handleSortClick:L,handleFilterClick:E}=Bl(e,t),{getHeaderRowStyle:f,getHeaderRowClass:v,getHeaderCellStyle:b,getHeaderCellClass:S}=Hl(e),{isGroup:x,toggleAllSelection:N,columnRows:R}=Pl(e);return n.state={onColumnsChange:u,onScrollableChange:r},n.filterPanels=i,{ns:a,filterPanels:i,onColumnsChange:u,onScrollableChange:r,columnRows:R,getHeaderRowClass:v,getHeaderRowStyle:f,getHeaderCellClass:S,getHeaderCellStyle:b,handleHeaderClick:m,handleHeaderContextMenu:p,handleMouseDown:C,handleMouseMove:y,handleMouseOut:T,handleSortClick:L,handleFilterClick:E,isGroup:x,toggleAllSelection:N,saveIndexSelection:s,isTableLayoutAuto:c,theadRef:d,updateFixedColumnStyle:g}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:o,getHeaderCellClass:a,getHeaderRowClass:i,getHeaderRowStyle:u,handleHeaderClick:r,handleHeaderContextMenu:c,handleMouseDown:s,handleMouseMove:d,handleSortClick:h,handleMouseOut:g,store:m,$parent:p,saveIndexSelection:C,isTableLayoutAuto:y}=this;let T=1;return l.h("thead",{ref:"theadRef",class:{[e.is("group")]:t}},n.map((L,E)=>l.h("tr",{class:i(E),key:E,style:u(E)},L.map((f,v)=>{f.rowSpan>T&&(T=f.rowSpan);const b=a(E,v,L,f);return y&&f.fixed&&C.set(b,f),l.h("th",{class:b,colspan:f.colSpan,key:`${f.id}-thead`,rowspan:f.rowSpan,style:o(E,v,L,f),onClick:S=>{var x;(x=S.currentTarget)!=null&&x.classList.contains("noclick")||r(S,f)},onContextmenu:S=>c(S,f),onMousedown:S=>s(S,f),onMousemove:S=>d(S,f),onMouseout:g},[l.h("div",{class:["cell",f.filteredValue&&f.filteredValue.length>0?"highlight":""]},[f.renderHeader?f.renderHeader({column:f,$index:v,store:m,_self:p}):f.label,f.sortable&&l.h("span",{onClick:S=>h(S,f),class:"caret-wrapper"},[l.h("i",{onClick:S=>h(S,f,"ascending"),class:"sort-caret ascending"}),l.h("i",{onClick:S=>h(S,f,"descending"),class:"sort-caret descending"})]),f.filterable&&l.h(Ml,{store:m,placement:f.filterPlacement||"bottom-start",appendTo:p==null?void 0:p.appendFilterPanelTo,column:f,upDataColumn:(S,x)=>{f[S]=x}},{"filter-icon":()=>f.renderFilterIcon?f.renderFilterIcon({filterOpened:f.filterOpened}):null})])])}))))}});function Te(e,t,n=.03){return e-t>n}function zl(e){const t=l.inject(re),n=l.ref(""),o=l.ref(l.h("div")),a=(p,C,y)=>{var T,L,E;const f=t,v=ke(p);let b=null;const S=(T=f==null?void 0:f.vnode.el)==null?void 0:T.dataset.prefix;v&&(b=Ge({columns:(E=(L=e.store)==null?void 0:L.states.columns.value)!=null?E:[]},v,S),b&&(f==null||f.emit(`cell-${y}`,C,b,v,p))),f==null||f.emit(`row-${y}`,C,b,p)},i=(p,C)=>{a(p,C,"dblclick")},u=(p,C)=>{var y;(y=e.store)==null||y.commit("setCurrentRow",C),a(p,C,"click")},r=(p,C)=>{a(p,C,"contextmenu")},c=Le.debounce(p=>{var C;(C=e.store)==null||C.commit("setHoverRow",p)},30),s=Le.debounce(()=>{var p;(p=e.store)==null||p.commit("setHoverRow",null)},30),d=p=>{const C=window.getComputedStyle(p,null),y=Number.parseInt(C.paddingLeft,10)||0,T=Number.parseInt(C.paddingRight,10)||0,L=Number.parseInt(C.paddingTop,10)||0,E=Number.parseInt(C.paddingBottom,10)||0;return{left:y,right:T,top:L,bottom:E}},h=(p,C,y)=>{var T;let L=(T=C==null?void 0:C.target)==null?void 0:T.parentNode;for(;p>1&&(L=L==null?void 0:L.nextSibling,!(!L||L.nodeName!=="TR"));)y(L,"hover-row hover-fixed-row"),p--};return{handleDoubleClick:i,handleClick:u,handleContextMenu:r,handleMouseEnter:c,handleMouseLeave:s,handleCellMouseEnter:(p,C,y)=>{var T,L,E,f,v,b,S,x;if(!t)return;const N=t,R=ke(p),B=(T=N==null?void 0:N.vnode.el)==null?void 0:T.dataset.prefix;let W=null;if(R){if(W=Ge({columns:(E=(L=e.store)==null?void 0:L.states.columns.value)!=null?E:[]},R,B),!W)return;R.rowSpan>1&&h(R.rowSpan,p,w.addClass);const G=N.hoverState={cell:R,column:W,row:C};N==null||N.emit("cell-mouse-enter",G.row,G.column,G.cell,p)}if(!y){((f=Z)==null?void 0:f.trigger)===R&&((v=Z)==null||v());return}const H=p.target.querySelector(".cell");if(!(w.hasClass(H,`${B}-tooltip`)&&H.childNodes.length))return;const V=document.createRange();V.setStart(H,0),V.setEnd(H,H.childNodes.length);const{width:Y,height:_}=V.getBoundingClientRect(),{width:F,height:A}=H.getBoundingClientRect(),{top:M,left:O,right:z,bottom:j}=d(H),X=O+z,U=M+j;Te(Y+X,F)||Te(_+U,A)||Te(H.scrollWidth,F)?wl(y,(b=(R==null?void 0:R.innerText)||(R==null?void 0:R.textContent))!=null?b:"",C,W,R,N):((S=Z)==null?void 0:S.trigger)===R&&((x=Z)==null||x())},handleCellMouseLeave:p=>{const C=ke(p);if(!C)return;C.rowSpan>1&&h(C.rowSpan,p,w.removeClass);const y=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",y==null?void 0:y.row,y==null?void 0:y.column,y==null?void 0:y.cell,p)},tooltipContent:n,tooltipTrigger:o}}function _l(e){const t=l.inject(re),n=w.useNamespace("table");return{getRowStyle:(s,d)=>{const h=t==null?void 0:t.props.rowStyle;return w.isFunction(h)?h.call(null,{row:s,rowIndex:d}):h||null},getRowClass:(s,d,h)=>{var g;const m=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&s===((g=e.store)==null?void 0:g.states.currentRow.value)&&m.push("current-row"),e.stripe&&h%2===1&&m.push(n.em("row","striped"));const p=t==null?void 0:t.props.rowClassName;return w.isString(p)?m.push(p):w.isFunction(p)&&m.push(p.call(null,{row:s,rowIndex:d})),m},getCellStyle:(s,d,h,g)=>{const m=t==null?void 0:t.props.cellStyle;let p=m??{};w.isFunction(m)&&(p=m.call(null,{rowIndex:s,columnIndex:d,row:h,column:g}));const C=qe(d,e==null?void 0:e.fixed,e.store);return ge(C,"left"),ge(C,"right"),Object.assign({},p,C)},getCellClass:(s,d,h,g,m)=>{const p=je(n.b(),d,e==null?void 0:e.fixed,e.store,void 0,m),C=[g.id,g.align,g.className,...p],y=t==null?void 0:t.props.cellClassName;return w.isString(y)?C.push(y):w.isFunction(y)&&C.push(y.call(null,{rowIndex:s,columnIndex:d,row:h,column:g})),C.push(n.e("cell")),C.filter(T=>!!T).join(" ")},getSpan:(s,d,h,g)=>{let m=1,p=1;const C=t==null?void 0:t.props.spanMethod;if(w.isFunction(C)){const y=C({row:s,column:d,rowIndex:h,columnIndex:g});w.isArray(y)?(m=y[0],p=y[1]):w.isObject(y)&&(m=y.rowspan,p=y.colspan)}return{rowspan:m,colspan:p}},getColspanRealWidth:(s,d,h)=>{if(d<1)return s[h].realWidth;const g=s.map(({realWidth:m,width:p})=>m||p).slice(h,h+d);return Number(g.reduce((m,p)=>Number(m)+Number(p),-1))}}}const Il=l.defineComponent({name:"TableTdWrapper"}),Vl=l.defineComponent({...Il,props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("td",{colspan:e.colspan,rowspan:e.rowspan},[l.renderSlot(t.$slots,"default")],8,["colspan","rowspan"]))}});var Kl=w._export_sfc(Vl,[["__file","td-wrapper.vue"]]);function Dl(e){const t=l.inject(re),n=w.useNamespace("table"),{handleDoubleClick:o,handleClick:a,handleContextMenu:i,handleMouseEnter:u,handleMouseLeave:r,handleCellMouseEnter:c,handleCellMouseLeave:s,tooltipContent:d,tooltipTrigger:h}=zl(e),{getRowStyle:g,getRowClass:m,getCellStyle:p,getCellClass:C,getSpan:y,getColspanRealWidth:T}=_l(e);let L=-1;const E=l.computed(()=>{var x;return(x=e.store)==null?void 0:x.states.columns.value.findIndex(({type:N})=>N==="default")}),f=(x,N)=>{var R;const B=(R=t==null?void 0:t.props)==null?void 0:R.rowKey;return B?J(x,B):N},v=(x,N,R,B=!1)=>{const{tooltipEffect:W,tooltipOptions:H,store:V}=e,{indent:Y,columns:_}=V.states,F=[];let A=!0;R&&(F.push(n.em("row",`level-${R.level}`)),A=!!R.display),N===0&&(L=-1),e.stripe&&A&&L++,F.push(...m(x,N,L));const M=A?null:{display:"none"};return l.h("tr",{style:[M,g(x,N)],class:F,key:f(x,N),onDblclick:O=>o(O,x),onClick:O=>a(O,x),onContextmenu:O=>i(O,x),onMouseenter:()=>u(N),onMouseleave:r},_.value.map((O,z)=>{const{rowspan:j,colspan:X}=y(x,O,N,z);if(!j||!X)return null;const U=Object.assign({},O);U.realWidth=T(_.value,X,z);const G={store:V,_self:e.context||t,column:U,row:x,$index:N,cellIndex:z,expanded:B};z===E.value&&R&&(G.treeNode={indent:R.level&&R.level*Y.value,level:R.level},w.isBoolean(R.expanded)&&(G.treeNode.expanded=R.expanded,"loading"in R&&(G.treeNode.loading=R.loading),"noLazyChildren"in R&&(G.treeNode.noLazyChildren=R.noLazyChildren)));const Q=`${f(x,N)},${z}`,ne=U.columnKey||U.rawColumnKey||"",ee=O.showOverflowTooltip&&ft({effect:W},H,O.showOverflowTooltip);return l.h(Kl,{style:p(N,z,x,O),class:C(N,z,x,O,X-1),key:`${ne}${Q}`,rowspan:j,colspan:X,onMouseenter:oe=>c(oe,x,ee),onMouseleave:s},{default:()=>b(z,O,G)})}))},b=(x,N,R)=>N.renderCell(R);return{wrappedRowRender:(x,N)=>{const R=e.store,{isRowExpanded:B,assertRowKey:W}=R,{treeData:H,lazyTreeNodeMap:V,childrenColumnName:Y,rowKey:_}=R.states,F=R.states.columns.value;if(F.some(({type:M})=>M==="expand")){const M=B(x),O=v(x,N,void 0,M),z=t==null?void 0:t.renderExpanded;if(!z)return console.error("[Element Error]renderExpanded is required."),O;const j=[[O]];return(t.props.preserveExpandedContent||M)&&j[0].push(l.h("tr",{key:`expanded-row__${O.key}`,style:{display:M?"":"none"}},[l.h("td",{colspan:F.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[z({row:x,$index:N,store:R,expanded:M})])])),j}else if(Object.keys(H.value).length){W();const M=J(x,_.value);let O=H.value[M],z=null;O&&(z={expanded:O.expanded,level:O.level,display:!0,noLazyChildren:void 0,loading:void 0},w.isBoolean(O.lazy)&&(z&&w.isBoolean(O.loaded)&&O.loaded&&(z.noLazyChildren=!(O.children&&O.children.length)),z.loading=O.loading));const j=[v(x,N,z??void 0)];if(O){let X=0;const U=(Q,ne)=>{Q&&Q.length&&ne&&Q.forEach(ee=>{const oe={display:ne.display&&ne.expanded,level:ne.level+1,expanded:!1,noLazyChildren:!1,loading:!1},pe=J(ee,_.value);if(w.isPropAbsent(pe))throw new Error("For nested data item, row-key is required.");if(O={...H.value[pe]},O&&(oe.expanded=O.expanded,O.level=O.level||oe.level,O.display=!!(O.expanded&&oe.display),w.isBoolean(O.lazy)&&(w.isBoolean(O.loaded)&&O.loaded&&(oe.noLazyChildren=!(O.children&&O.children.length)),oe.loading=O.loading)),X++,j.push(v(ee,N+X,oe)),O){const Oe=V.value[pe]||ee[Y.value];U(Oe,O)}})};O.display=!0;const G=V.value[M]||x[Y.value];U(G,O)}return j}else return v(x,N,void 0)},tooltipContent:d,tooltipTrigger:h}}const jl={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var ql=l.defineComponent({name:"ElTableBody",props:jl,setup(e){var t;const n=l.getCurrentInstance(),o=l.inject(re),a=w.useNamespace("table"),{wrappedRowRender:i,tooltipContent:u,tooltipTrigger:r}=Dl(e),{onColumnsChange:c,onScrollableChange:s}=Ye(o),d=[];return l.watch((t=e.store)==null?void 0:t.states.hoverRow,(h,g)=>{var m,p;const C=n==null?void 0:n.vnode.el,y=Array.from((C==null?void 0:C.children)||[]).filter(E=>E==null?void 0:E.classList.contains(`${a.e("row")}`));let T=h;const L=(m=y[T])==null?void 0:m.childNodes;if(L!=null&&L.length){let E=0;Array.from(L).reduce((v,b,S)=>{var x,N;return((x=L[S])==null?void 0:x.colSpan)>1&&(E=(N=L[S])==null?void 0:N.colSpan),b.nodeName!=="TD"&&E===0&&v.push(S),E>0&&E--,v},[]).forEach(v=>{var b;for(T=h;T>0;){const S=(b=y[T-1])==null?void 0:b.childNodes;if(S[v]&&S[v].nodeName==="TD"&&S[v].rowSpan>1){w.addClass(S[v],"hover-cell"),d.push(S[v]);break}T--}})}else d.forEach(E=>w.removeClass(E,"hover-cell")),d.length=0;!((p=e.store)!=null&&p.states.isComplex.value)||!w.isClient||qt.rAF(()=>{const E=y[g],f=y[h];E&&!E.classList.contains("hover-fixed-row")&&w.removeClass(E,"hover-row"),f&&w.addClass(f,"hover-row")})}),l.onUnmounted(()=>{var h;(h=Z)==null||h()}),{ns:a,onColumnsChange:c,onScrollableChange:s,wrappedRowRender:i,tooltipContent:u,tooltipTrigger:r}},render(){const{wrappedRowRender:e,store:t}=this,n=(t==null?void 0:t.states.data.value)||[];return l.h("tbody",{tabIndex:-1},[n.reduce((o,a)=>o.concat(e(a,o.length)),[])])}});function Ul(){const e=l.inject(re),t=e==null?void 0:e.store,n=l.computed(()=>{var r;return(r=t==null?void 0:t.states.fixedLeafColumnsLength.value)!=null?r:0}),o=l.computed(()=>{var r;return(r=t==null?void 0:t.states.rightFixedColumns.value.length)!=null?r:0}),a=l.computed(()=>{var r;return(r=t==null?void 0:t.states.columns.value.length)!=null?r:0}),i=l.computed(()=>{var r;return(r=t==null?void 0:t.states.fixedColumns.value.length)!=null?r:0}),u=l.computed(()=>{var r;return(r=t==null?void 0:t.states.rightFixedColumns.value.length)!=null?r:0});return{leftFixedLeafCount:n,rightFixedLeafCount:o,columnsCount:a,leftFixedCount:i,rightFixedCount:u,columns:l.computed(()=>{var r;return(r=t==null?void 0:t.states.columns.value)!=null?r:[]})}}function Yl(e){const{columns:t}=Ul(),n=w.useNamespace("table");return{getCellClasses:(i,u)=>{const r=i[u],c=[n.e("cell"),r.id,r.align,r.labelClassName,...je(n.b(),u,r.fixed,e.store)];return r.className&&c.push(r.className),r.children||c.push(n.is("leaf")),c},getCellStyles:(i,u)=>{const r=qe(u,i.fixed,e.store);return ge(r,"left"),ge(r,"right"),r},columns:t}}var Xl=l.defineComponent({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const t=l.inject(re),n=w.useNamespace("table"),{getCellClasses:o,getCellStyles:a,columns:i}=Yl(e),{onScrollableChange:u,onColumnsChange:r}=Ye(t);return{ns:n,onScrollableChange:u,onColumnsChange:r,getCellClasses:o,getCellStyles:a,columns:i}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:o,sumText:a}=this,i=this.store.states.data.value;let u=[];return o?u=o({columns:e,data:i}):e.forEach((r,c)=>{if(c===0){u[c]=a;return}const s=i.map(m=>Number(m[r.property])),d=[];let h=!0;s.forEach(m=>{if(!Number.isNaN(+m)){h=!1;const p=`${m}`.split(".")[1];d.push(p?p.length:0)}});const g=Math.max.apply(null,d);h?u[c]="":u[c]=s.reduce((m,p)=>{const C=Number(p);return Number.isNaN(+C)?m:Number.parseFloat((m+p).toFixed(Math.min(g,20)))},0)}),l.h(l.h("tfoot",[l.h("tr",{},[...e.map((r,c)=>l.h("td",{key:c,colspan:r.colSpan,rowspan:r.rowSpan,class:n(e,c),style:t(r,c)},[l.h("div",{class:["cell",r.labelClassName]},[u[c]])]))])]))}});function Gl(e){return{setCurrentRow:h=>{e.commit("setCurrentRow",h)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(h,g,m=!0)=>{e.toggleRowSelection(h,g,!1,m),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:h=>{e.clearFilter(h)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(h,g)=>{e.toggleRowExpansionAdapter(h,g)},clearSort:()=>{e.clearSort()},sort:(h,g)=>{e.commit("sort",{prop:h,order:g})},updateKeyChildren:(h,g)=>{e.updateKeyChildren(h,g)}}}function Ql(e,t,n,o){const a=l.ref(!1),i=l.ref(null),u=l.ref(!1),r=F=>{u.value=F},c=l.ref({width:null,height:null,headerHeight:null}),s=l.ref(!1),d={display:"inline-block",verticalAlign:"middle"},h=l.ref(),g=l.ref(0),m=l.ref(0),p=l.ref(0),C=l.ref(0),y=l.ref(0);l.watchEffect(()=>{var F;t.setHeight((F=e.height)!=null?F:null)}),l.watchEffect(()=>{var F;t.setMaxHeight((F=e.maxHeight)!=null?F:null)}),l.watch(()=>[e.currentRowKey,n.states.rowKey],([F,A])=>{!l.unref(A)||!l.unref(F)||n.setCurrentRowKey(`${F}`)},{immediate:!0}),l.watch(()=>e.data,F=>{o.store.commit("setData",F)},{immediate:!0,deep:!0}),l.watchEffect(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const T=()=>{o.store.commit("setHoverRow",null),o.hoverState&&(o.hoverState=null)},L=(F,A)=>{const{pixelX:M,pixelY:O}=A;Math.abs(M)>=Math.abs(O)&&(o.refs.bodyWrapper.scrollLeft+=A.pixelX/5)},E=l.computed(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),f=l.computed(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),v=()=>{E.value&&t.updateElsHeight(),t.updateColumnsWidth(),!(typeof window>"u")&&requestAnimationFrame(N)};l.onMounted(async()=>{await l.nextTick(),n.updateColumns(),R(),requestAnimationFrame(v);const F=o.vnode.el,A=o.refs.headerWrapper;e.flexible&&F&&F.parentElement&&(F.parentElement.style.minWidth="0"),c.value={width:h.value=F.offsetWidth,height:F.offsetHeight,headerHeight:e.showHeader&&A?A.offsetHeight:null},n.states.columns.value.forEach(M=>{M.filteredValue&&M.filteredValue.length&&o.store.commit("filterChange",{column:M,values:M.filteredValue,silent:!0})}),o.$ready=!0});const b=(F,A)=>{if(!F)return;const M=Array.from(F.classList).filter(O=>!O.startsWith("is-scrolling-"));M.push(t.scrollX.value?A:"is-scrolling-none"),F.className=M.join(" ")},S=F=>{const{tableWrapper:A}=o.refs;b(A,F)},x=F=>{const{tableWrapper:A}=o.refs;return!!(A&&A.classList.contains(F))},N=function(){if(!o.refs.scrollBarRef)return;if(!t.scrollX.value){const U="is-scrolling-none";x(U)||S(U);return}const F=o.refs.scrollBarRef.wrapRef;if(!F)return;const{scrollLeft:A,offsetWidth:M,scrollWidth:O}=F,{headerWrapper:z,footerWrapper:j}=o.refs;z&&(z.scrollLeft=A),j&&(j.scrollLeft=A);const X=O-M-1;A>=X?S("is-scrolling-right"):S(A===0?"is-scrolling-left":"is-scrolling-middle")},R=()=>{o.refs.scrollBarRef&&(o.refs.scrollBarRef.wrapRef&&ae.useEventListener(o.refs.scrollBarRef.wrapRef,"scroll",N,{passive:!0}),e.fit?ae.useResizeObserver(o.vnode.el,B):ae.useEventListener(window,"resize",B),ae.useResizeObserver(o.refs.bodyWrapper,()=>{var F,A;B(),(A=(F=o.refs)==null?void 0:F.scrollBarRef)==null||A.update()}))},B=()=>{var F,A,M,O;const z=o.vnode.el;if(!o.$ready||!z)return;let j=!1;const{width:X,height:U,headerHeight:G}=c.value,Q=h.value=z.offsetWidth;X!==Q&&(j=!0);const ne=z.offsetHeight;(e.height||E.value)&&U!==ne&&(j=!0);const ee=e.tableLayout==="fixed"?o.refs.headerWrapper:(F=o.refs.tableHeaderRef)==null?void 0:F.$el;e.showHeader&&(ee==null?void 0:ee.offsetHeight)!==G&&(j=!0),g.value=((A=o.refs.tableWrapper)==null?void 0:A.scrollHeight)||0,p.value=(ee==null?void 0:ee.scrollHeight)||0,C.value=((M=o.refs.footerWrapper)==null?void 0:M.offsetHeight)||0,y.value=((O=o.refs.appendWrapper)==null?void 0:O.offsetHeight)||0,m.value=g.value-p.value-C.value-y.value,j&&(c.value={width:Q,height:ne,headerHeight:e.showHeader&&(ee==null?void 0:ee.offsetHeight)||0},v())},W=ae.useFormSize(),H=l.computed(()=>{const{bodyWidth:F,scrollY:A,gutterWidth:M}=t;return F.value?`${F.value-(A.value?M:0)}px`:""}),V=l.computed(()=>e.maxHeight?"fixed":e.tableLayout),Y=l.computed(()=>{if(e.data&&e.data.length)return;let F="100%";e.height&&m.value&&(F=`${m.value}px`);const A=h.value;return{width:A?`${A}px`:"",height:F}}),_=l.computed(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${p.value+C.value}px)`}:{maxHeight:`${+e.maxHeight-p.value-C.value}px`}:{});return{isHidden:a,renderExpanded:i,setDragVisible:r,isGroup:s,handleMouseLeave:T,handleHeaderFooterMousewheel:L,tableSize:W,emptyBlockStyle:Y,resizeProxyVisible:u,bodyWidth:H,resizeState:c,doLayout:v,tableBodyStyles:f,tableLayout:V,scrollbarViewStyle:d,scrollbarStyle:_}}function Jl(e){const t=l.ref(),n=()=>{const a=e.vnode.el.querySelector(".hidden-columns"),i={childList:!0,subtree:!0},u=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{u.forEach(r=>r())}),t.value.observe(a,i)};l.onMounted(()=>{n()}),l.onUnmounted(()=>{var o;(o=t.value)==null||o.disconnect()})}var Zl={data:{type:Array,default:()=>[]},size:ae.useSizeProp,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0},preserveExpandedContent:Boolean,nativeScrollbar:Boolean};function wt(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(({width:a})=>w.isUndefined(a))&&(n=[]);const o=a=>{const i={key:`${e.tableLayout}_${a.id}`,style:{},name:void 0};return t?i.style={width:`${a.width}px`}:i.name=a.id,i};return l.h("colgroup",{},n.map(a=>l.h("col",o(a))))}wt.props=["columns","tableLayout"];const en=()=>{const e=l.ref(),t=(i,u)=>{const r=e.value;r&&r.scrollTo(i,u)},n=(i,u)=>{const r=e.value;r&&w.isNumber(u)&&["Top","Left"].includes(i)&&r[`setScroll${i}`](u)};return{scrollBarRef:e,scrollTo:t,setScrollTop:i=>n("Top",i),setScrollLeft:i=>n("Left",i)}};var Ze=!1,he,He,Pe,Ee,xe,St,Ne,$e,ze,_e,Et,Ie,Ve,xt,Nt;function te(){if(!Ze){Ze=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(Ie=/\b(iPhone|iP[ao]d)/.exec(e),Ve=/\b(iP[ao]d)/.exec(e),_e=/Android/i.exec(e),xt=/FBAN\/\w+;/i.exec(e),Nt=/Mobile/i.exec(e),Et=!!/Win64/.exec(e),t){he=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,he&&document&&document.documentMode&&(he=document.documentMode);var o=/(?:Trident\/(\d+.\d+))/.exec(e);St=o?parseFloat(o[1])+4:he,He=t[2]?parseFloat(t[2]):NaN,Pe=t[3]?parseFloat(t[3]):NaN,Ee=t[4]?parseFloat(t[4]):NaN,Ee?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),xe=t&&t[1]?parseFloat(t[1]):NaN):xe=NaN}else he=He=Pe=xe=Ee=NaN;if(n){if(n[1]){var a=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Ne=a?parseFloat(a[1].replace("_",".")):!0}else Ne=!1;$e=!!n[2],ze=!!n[3]}else Ne=$e=ze=!1}}var Ke={ie:function(){return te()||he},ieCompatibilityMode:function(){return te()||St>he},ie64:function(){return Ke.ie()&&Et},firefox:function(){return te()||He},opera:function(){return te()||Pe},webkit:function(){return te()||Ee},safari:function(){return Ke.webkit()},chrome:function(){return te()||xe},windows:function(){return te()||$e},osx:function(){return te()||Ne},linux:function(){return te()||ze},iphone:function(){return te()||Ie},mobile:function(){return te()||Ie||Ve||_e||Nt},nativeApp:function(){return te()||xt},android:function(){return te()||_e},ipad:function(){return te()||Ve}},tn=Ke,we=!!(typeof window<"u"&&window.document&&window.document.createElement),ln={canUseDOM:we,canUseWorkers:typeof Worker<"u",canUseEventListeners:we&&!!(window.addEventListener||window.attachEvent),canUseViewport:we&&!!window.screen,isInWorker:!we},Rt=ln,Lt;Rt.canUseDOM&&(Lt=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function nn(e,t){if(!Rt.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o=typeof a[n]=="function"}return!o&&Lt&&e==="wheel"&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var on=nn,et=10,tt=40,lt=800;function Ft(e){var t=0,n=0,o=0,a=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),o=t*et,a=n*et,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||a)&&e.deltaMode&&(e.deltaMode==1?(o*=tt,a*=tt):(o*=lt,a*=lt)),o&&!t&&(t=o<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:t,spinY:n,pixelX:o,pixelY:a}}Ft.getEventType=function(){return tn.firefox()?"DOMMouseScroll":on("wheel")?"wheel":"mousewheel"};var rn=Ft;/**
|
|
2
2
|
* Checks if an event is supported in the current execution environment.
|
|
3
3
|
*
|
|
4
4
|
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { createVNode as ge, render as Ht, isVNode as Vl, getCurrentInstance as ae, ref as E, unref as oe, computed as I, watch as ue, toRefs as jl, nextTick as Ae, isRef as Yl, defineComponent as xe, resolveComponent as ce, resolveDirective as qt, openBlock as X, createBlock as We, withCtx as Ne, createElementBlock as ie, createElementVNode as se, normalizeClass as q, Fragment as it, renderList as kt, createTextVNode as Xt, toDisplayString as Te, withDirectives as qe, renderSlot as Ee, onBeforeMount as Gt, onMounted as De, onUpdated as Ul, onUnmounted as St, inject as be, reactive as ql, onBeforeUnmount as Et, h as P, watchEffect as Ke, provide as Xl, normalizeStyle as _e, createCommentVNode as Re, vShow as At, Comment as Gl } from "vue";
|
|
2
|
-
import { E as Qt } from "./index-
|
|
3
|
-
import { s as Ql, j as Jl, k as Zl, l as en, b as tn, E as Jt, g as ln } from "./el-popper-
|
|
2
|
+
import { E as Qt } from "./index-c5f2d372.js";
|
|
3
|
+
import { s as Ql, j as Jl, k as Zl, l as en, b as tn, E as Jt, g as ln } from "./el-popper-fbd0dcea.js";
|
|
4
4
|
import { y as Me, i as Se, p as He, c as he, x as fe, j as de, o as Le, f as et, u as me, s as ze, k as Xe, _ as xt, a as tt, z as nn, h as Be, r as Ie, w as on, l as rn } from "./base-a5af3db3.js";
|
|
5
|
-
import { g as Zt } from "./use-global-config-
|
|
6
|
-
import { a as ot, k as an, b as sn, c as un, S as dn } from "./index-
|
|
7
|
-
import { n as cn, o as fn, p as Pt, c as $t, u as _t, e as hn, h as vn } from "./use-form-common-props-
|
|
5
|
+
import { g as Zt } from "./use-global-config-ee406d58.js";
|
|
6
|
+
import { a as ot, k as an, b as sn, c as un, S as dn } from "./index-8c2d7e05.js";
|
|
7
|
+
import { n as cn, o as fn, p as Pt, c as $t, u as _t, e as hn, h as vn } from "./use-form-common-props-ed72e914.js";
|
|
8
8
|
import { i as Rt, e as el, a as tl, b as pn, c as ut, d as gn, f as mn } from "./index-960806da.js";
|
|
9
|
-
import { g as yn, c as bn, k as ll, a as Cn, b as wn, d as Sn, i as En } from "./_initCloneObject-
|
|
10
|
-
import { b as xn, C as Rn } from "./el-tag-
|
|
9
|
+
import { g as yn, c as bn, k as ll, a as Cn, b as wn, d as Sn, i as En } from "./_initCloneObject-5e73c9c8.js";
|
|
10
|
+
import { b as xn, C as Rn } from "./el-tag-66c83156.js";
|
|
11
11
|
import { c as nl } from "./castArray-7741a212.js";
|
|
12
12
|
import { g as Bt, u as ol } from "./index-d77a7336.js";
|
|
13
13
|
import { d as lt } from "./debounce-8d53f4dd.js";
|
|
14
|
-
import { E as Pe } from "./el-checkbox-
|
|
15
|
-
import { E as Nt,
|
|
14
|
+
import { E as Pe } from "./el-checkbox-6d4cb393.js";
|
|
15
|
+
import { E as Nt, g as Nn, G as Ln, h as rl, l as Fn } from "./index-eb96e074.js";
|
|
16
16
|
import { r as On } from "./raf-80ef0c0a.js";
|
|
17
17
|
function Tn(e, t) {
|
|
18
18
|
return Ql(Jl(e, t, Zl), e + "");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as M, p as g, k as O } from "./index-
|
|
1
|
+
import { S as M, p as g, k as O } from "./index-8c2d7e05.js";
|
|
2
2
|
import { i as P, g as E, t as A, h as v, c as L } from "./index-960806da.js";
|
|
3
3
|
import { g as I } from "./index-d77a7336.js";
|
|
4
|
-
import { n as _, k as x } from "./el-popper-
|
|
4
|
+
import { n as _, k as x } from "./el-popper-fbd0dcea.js";
|
|
5
5
|
import { s as D, j as F, z as T } from "./base-a5af3db3.js";
|
|
6
6
|
var w = 1, H = 2;
|
|
7
7
|
function G(n, e, t, r) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const E=require("./index-
|
|
1
|
+
"use strict";const E=require("./index-5c0dd943.cjs"),c=require("./index-9780a537.cjs"),I=require("./index-bb833443.cjs"),y=require("./el-popper-a4f3ae4d.cjs"),g=require("./base-ef747d02.cjs");var M=1,m=2;function v(n,e,t,r){var i=t.length,u=i,o=!r;if(n==null)return!u;for(n=Object(n);i--;){var s=t[i];if(o&&s[2]?s[1]!==n[s[0]]:!(s[0]in n))return!1}for(;++i<u;){s=t[i];var a=s[0],d=n[a],l=s[1];if(o&&s[2]){if(d===void 0&&!(a in n))return!1}else{var p=new E.Stack;if(r)var h=r(d,l,a,n,e,p);if(!(h===void 0?E.baseIsEqual(l,d,M|m,r,p):h))return!1}}return!0}function R(n){return n===n&&!c.isObject(n)}function x(n){for(var e=E.keys(n),t=e.length;t--;){var r=e[t],i=n[r];e[t]=[r,i,R(i)]}return e}function O(n,e){return function(t){return t==null?!1:t[n]===e&&(e!==void 0||n in Object(t))}}function L(n){var e=x(n);return e.length==1&&e[0][2]?O(e[0][0],e[0][1]):function(t){return t===n||v(t,n,e)}}var _=1,q=2;function D(n,e){return c.isKey(n)&&R(e)?O(c.toKey(n),e):function(t){var r=I.get(t,n);return r===void 0&&r===e?y.hasIn(t,n):E.baseIsEqual(e,r,_|q)}}function F(n){return function(e){return e==null?void 0:e[n]}}function T(n){return function(e){return c.baseGet(e,n)}}function w(n){return c.isKey(n)?F(c.toKey(n)):T(n)}function H(n){return typeof n=="function"?n:n==null?y.identity:typeof n=="object"?c.isArray(n)?D(n[0],n[1]):L(n):w(n)}const f=new Map;if(g.isClient){let n;document.addEventListener("mousedown",e=>n=e),document.addEventListener("mouseup",e=>{if(n){for(const t of f.values())for(const{documentHandler:r}of t)r(e,n);n=void 0}})}function C(n,e){let t=[];return g.isArray(e.arg)?t=e.arg:g.isElement(e.arg)&&t.push(e.arg),function(r,i){const u=e.instance.popperRef,o=r.target,s=i==null?void 0:i.target,a=!e||!e.instance,d=!o||!s,l=n.contains(o)||n.contains(s),p=n===o,h=t.length&&t.some(A=>A==null?void 0:A.contains(o))||t.length&&t.includes(s),P=u&&(u.contains(o)||u.contains(s));a||d||l||p||h||P||e.value(r,i)}}const G={beforeMount(n,e){f.has(n)||f.set(n,[]),f.get(n).push({documentHandler:C(n,e),bindingFn:e.value})},updated(n,e){f.has(n)||f.set(n,[]);const t=f.get(n),r=t.findIndex(u=>u.bindingFn===e.oldValue),i={documentHandler:C(n,e),bindingFn:e.value};r>=0?t.splice(r,1,i):t.push(i)},unmounted(n){f.delete(n)}};exports.ClickOutside=G;exports.baseIteratee=H;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as v, ref as y, computed as b, onMounted as C, onUpdated as S, openBlock as T, createBlock as w, resolveDynamicComponent as z, normalizeClass as k, unref as A, normalizeStyle as B, withCtx as E, renderSlot as H, useAttrs as W } from "vue";
|
|
2
2
|
import { b as N, u as P, i as m, _ as R, w as U } from "./base-a5af3db3.js";
|
|
3
|
-
import { k as D, e as F } from "./use-form-common-props-
|
|
3
|
+
import { k as D, e as F } from "./use-form-common-props-ed72e914.js";
|
|
4
4
|
const I = N({
|
|
5
5
|
type: {
|
|
6
6
|
type: String,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),n=require("./base-ef747d02.cjs"),_=require("./use-form-common-props-
|
|
1
|
+
"use strict";const e=require("vue"),n=require("./base-ef747d02.cjs"),_=require("./use-form-common-props-ac666630.cjs"),C=n.buildProps({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:_.componentSizes,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),b=e.defineComponent({name:"ElText"}),S=e.defineComponent({...b,props:C,setup(h){const s=h,t=e.ref(),x=_.useFormSize(),i=n.useNamespace("text"),g=e.computed(()=>[i.b(),i.m(s.type),i.m(x.value),i.is("truncated",s.truncated),i.is("line-clamp",!n.isUndefined(s.lineClamp))]),c=()=>{var l,a,d,f,p,m,v;if(e.useAttrs().title)return;let u=!1;const y=((l=t.value)==null?void 0:l.textContent)||"";if(s.truncated){const o=(a=t.value)==null?void 0:a.offsetWidth,r=(d=t.value)==null?void 0:d.scrollWidth;o&&r&&r>o&&(u=!0)}else if(!n.isUndefined(s.lineClamp)){const o=(f=t.value)==null?void 0:f.offsetHeight,r=(p=t.value)==null?void 0:p.scrollHeight;o&&r&&r>o&&(u=!0)}u?(m=t.value)==null||m.setAttribute("title",y):(v=t.value)==null||v.removeAttribute("title")};return e.onMounted(c),e.onUpdated(c),(l,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.tag),{ref_key:"textRef",ref:t,class:e.normalizeClass(e.unref(g)),style:e.normalizeStyle({"-webkit-line-clamp":l.lineClamp})},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},8,["class","style"]))}});var T=n._export_sfc(S,[["__file","text.vue"]]);const z=n.withInstall(T);exports.ElText=z;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),r=require("./base-ef747d02.cjs"),c=r.buildProps({size:{type:r.definePropType([Number,String])},color:{type:String}}),u=e.defineComponent({name:"ElIcon",inheritAttrs:!1}),p=e.defineComponent({...u,props:c,setup(t){const a=t,l=r.useNamespace("icon"),n=e.computed(()=>{const{size:_,color:o}=a;return!_&&!o?{}:{fontSize:r.isUndefined(_)?void 0:r.addUnit(_),"--color":o}});return(_,o)=>(e.openBlock(),e.createElementBlock("i",e.mergeProps({class:e.unref(l).b(),style:e.unref(n)},_.$attrs),[e.renderSlot(_.$slots,"default")],16))}});var s=r._export_sfc(p,[["__file","icon.vue"]]);const d=r.withInstall(s);/*! Element Plus Icons Vue v2.3.1 */var i=e.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),m=i,v=e.defineComponent({name:"ArrowLeft",__name:"arrow-left",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),f=v,w=e.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),h=w,g=e.defineComponent({name:"ArrowUp",__name:"arrow-up",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),B=g,x=e.defineComponent({name:"Check",__name:"check",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),k=x,C=e.defineComponent({name:"CircleCheckFilled",__name:"circle-check-filled",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),E=C,V=e.defineComponent({name:"CircleCheck",__name:"circle-check",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),e.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),M=V,z=e.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),L=z,y=e.defineComponent({name:"CircleClose",__name:"circle-close",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),e.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),N=y,H=e.defineComponent({name:"Close",__name:"close",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),A=H,S=e.defineComponent({name:"DArrowLeft",__name:"d-arrow-left",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),F=S,D=e.defineComponent({name:"DArrowRight",__name:"d-arrow-right",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),P=D,q=e.defineComponent({name:"Delete",__name:"delete",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),I=q,U=e.defineComponent({name:"DocumentCopy",__name:"document-copy",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"})]))}}),b=U,R=e.defineComponent({name:"Document",__name:"document",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),Z=R,$=e.defineComponent({name:"Edit",__name:"edit",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),e.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),Q=$,T=e.defineComponent({name:"Hide",__name:"hide",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),e.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),W=T,j=e.defineComponent({name:"InfoFilled",__name:"info-filled",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),G=j,J=e.defineComponent({name:"Loading",__name:"loading",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),K=J,O=e.defineComponent({name:"MagicStick",__name:"magic-stick",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248z"})]))}}),X=O,Y=e.defineComponent({name:"Minus",__name:"minus",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),e2=Y,t2=e.defineComponent({name:"MoreFilled",__name:"more-filled",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),a2=t2,l2=e.defineComponent({name:"More",__name:"more",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),r2=l2,_2=e.defineComponent({name:"PictureFilled",__name:"picture-filled",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),o2=_2,n2=e.defineComponent({name:"Plus",__name:"plus",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),c2=n2,u2=e.defineComponent({name:"Promotion",__name:"promotion",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),p2=u2,s2=e.defineComponent({name:"QuestionFilled",__name:"question-filled",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),d2=s2,i2=e.defineComponent({name:"Refresh",__name:"refresh",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),m2=i2,v2=e.defineComponent({name:"Right",__name:"right",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),f2=v2,w2=e.defineComponent({name:"Service",__name:"service",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.064 192.064 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193.235 193.235 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0M256 448a128 128 0 1 0 0 256zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128"})]))}}),h2=w2,g2=e.defineComponent({name:"SortDown",__name:"sort-down",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),B2=g2,x2=e.defineComponent({name:"SortUp",__name:"sort-up",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),k2=x2,C2=e.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),E2=C2,V2=e.defineComponent({name:"UserFilled",__name:"user-filled",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"})]))}}),M2=V2,z2=e.defineComponent({name:"View",__name:"view",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),L2=z2,y2=e.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),N2=y2;exports.ElIcon=d;exports.arrow_down_default=m;exports.arrow_left_default=f;exports.arrow_right_default=h;exports.arrow_up_default=B;exports.check_default=k;exports.circle_check_default=M;exports.circle_check_filled_default=E;exports.circle_close_default=N;exports.circle_close_filled_default=L;exports.close_default=A;exports.d_arrow_left_default=F;exports.d_arrow_right_default=P;exports.delete_default=I;exports.document_copy_default=b;exports.document_default=Z;exports.edit_default=Q;exports.hide_default=W;exports.info_filled_default=G;exports.loading_default=K;exports.magic_stick_default=X;exports.minus_default=e2;exports.more_default=r2;exports.more_filled_default=a2;exports.picture_filled_default=o2;exports.plus_default=c2;exports.promotion_default=p2;exports.question_filled_default=d2;exports.refresh_default=m2;exports.right_default=f2;exports.service_default=h2;exports.sort_down_default=B2;exports.sort_up_default=k2;exports.success_filled_default=E2;exports.user_filled_default=M2;exports.view_default=L2;exports.warning_filled_default=N2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),T=require("./use-form-common-props-
|
|
1
|
+
"use strict";const e=require("vue"),T=require("./use-form-common-props-ac666630.cjs"),C=require("./el-scrollbar-bc3f790d.cjs"),a=require("./base-ef747d02.cjs"),M=require("./el-popper-a4f3ae4d.cjs"),O=Symbol("scrollbarContextKey"),D=a.buildProps({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),q="Thumb",j=e.defineComponent({__name:"thumb",props:D,setup(z){const p=z,n=e.inject(O),o=a.useNamespace("scrollbar");n||M.throwError(q,"can not inject scrollbar context");const f=e.ref(),d=e.ref(),g=e.ref({}),b=e.ref(!1);let i=!1,c=!1,m=0,S=0,r=a.isClient?document.onselectstart:null;const t=e.computed(()=>C.BAR_MAP[p.vertical?"vertical":"horizontal"]),h=e.computed(()=>C.renderThumbStyle({size:p.size,move:p.move,bar:t.value})),y=e.computed(()=>f.value[t.value.offset]**2/n.wrapElement[t.value.scrollSize]/p.ratio/d.value[t.value.offset]),N=u=>{var w;if(u.stopPropagation(),u.ctrlKey||[1,2].includes(u.button))return;(w=window.getSelection())==null||w.removeAllRanges(),_(u);const v=u.currentTarget;v&&(g.value[t.value.axis]=v[t.value.offset]-(u[t.value.client]-v.getBoundingClientRect()[t.value.direction]))},E=u=>{if(!d.value||!f.value||!n.wrapElement)return;const w=Math.abs(u.target.getBoundingClientRect()[t.value.direction]-u[t.value.client]),v=d.value[t.value.offset]/2,l=(w-v)*100*y.value/f.value[t.value.offset];n.wrapElement[t.value.scroll]=l*n.wrapElement[t.value.scrollSize]/100},_=u=>{u.stopImmediatePropagation(),i=!0,m=n.wrapElement.scrollHeight,S=n.wrapElement.scrollWidth,document.addEventListener("mousemove",H),document.addEventListener("mouseup",k),r=document.onselectstart,document.onselectstart=()=>!1},H=u=>{if(!f.value||!d.value||i===!1)return;const w=g.value[t.value.axis];if(!w)return;const v=(f.value.getBoundingClientRect()[t.value.direction]-u[t.value.client])*-1,l=d.value[t.value.offset]-w,s=(v-l)*100*y.value/f.value[t.value.offset];t.value.scroll==="scrollLeft"?n.wrapElement[t.value.scroll]=s*S/100:n.wrapElement[t.value.scroll]=s*m/100},k=()=>{i=!1,g.value[t.value.axis]=0,document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",k),B(),c&&(b.value=!1)},A=()=>{c=!1,b.value=!!p.size},R=()=>{c=!0,b.value=i};e.onBeforeUnmount(()=>{B(),document.removeEventListener("mouseup",k)});const B=()=>{document.onselectstart!==r&&(document.onselectstart=r)};return T.useEventListener(e.toRef(n,"scrollbarElement"),"mousemove",A),T.useEventListener(e.toRef(n,"scrollbarElement"),"mouseleave",R),(u,w)=>(e.openBlock(),e.createBlock(e.Transition,{name:e.unref(o).b("fade"),persisted:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"instance",ref:f,class:e.normalizeClass([e.unref(o).e("bar"),e.unref(o).is(e.unref(t).key)]),onMousedown:E,onClick:e.withModifiers(()=>{},["stop"])},[e.createElementVNode("div",{ref_key:"thumb",ref:d,class:e.normalizeClass(e.unref(o).e("thumb")),style:e.normalizeStyle(e.unref(h)),onMousedown:N},null,38)],42,["onClick"]),[[e.vShow,u.always||b.value]])]),_:1},8,["name"]))}});var x=a._export_sfc(j,[["__file","thumb.vue"]]);const G=a.buildProps({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),V=e.defineComponent({__name:"bar",props:G,setup(z,{expose:p}){const n=z,o=e.inject(O),f=e.ref(0),d=e.ref(0),g=e.ref(""),b=e.ref(""),i=e.ref(1),c=e.ref(1);return p({handleScroll:r=>{if(r){const t=r.offsetHeight-C.GAP,h=r.offsetWidth-C.GAP;d.value=r.scrollTop*100/t*i.value,f.value=r.scrollLeft*100/h*c.value}},update:()=>{const r=o==null?void 0:o.wrapElement;if(!r)return;const t=r.offsetHeight-C.GAP,h=r.offsetWidth-C.GAP,y=t**2/r.scrollHeight,N=h**2/r.scrollWidth,E=Math.max(y,n.minSize),_=Math.max(N,n.minSize);i.value=y/(t-y)/(E/(t-E)),c.value=N/(h-N)/(_/(h-_)),b.value=E+C.GAP<t?`${E}px`:"",g.value=_+C.GAP<h?`${_}px`:""}}),(r,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(x,{move:f.value,ratio:c.value,size:g.value,always:r.always},null,8,["move","ratio","size","always"]),e.createVNode(x,{move:d.value,ratio:i.value,size:b.value,vertical:"",always:r.always},null,8,["move","ratio","size","always"])],64))}});var $=a._export_sfc(V,[["__file","bar.vue"]]);const I=a.buildProps({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:a.definePropType([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...M.useAriaProps(["ariaLabel","ariaOrientation"])}),W={"end-reached":z=>["left","right","top","bottom"].includes(z),scroll:({scrollTop:z,scrollLeft:p})=>[z,p].every(a.isNumber)},K="ElScrollbar",U=e.defineComponent({name:K}),F=e.defineComponent({...U,props:I,emits:W,setup(z,{expose:p,emit:n}){const o=z,f=a.useNamespace("scrollbar");let d,g,b,i=0,c=0,m="";const S={bottom:!1,top:!1,right:!1,left:!1},r=e.ref(),t=e.ref(),h=e.ref(),y=e.ref(),N=e.computed(()=>{const l={};return o.height&&(l.height=a.addUnit(o.height)),o.maxHeight&&(l.maxHeight=a.addUnit(o.maxHeight)),[o.wrapStyle,l]}),E=e.computed(()=>[o.wrapClass,f.e("wrap"),{[f.em("wrap","hidden-default")]:!o.native}]),_=e.computed(()=>[f.e("view"),o.viewClass]),H=l=>{var s;return(s=S[l])!=null?s:!1},k={top:"bottom",bottom:"top",left:"right",right:"left"},A=l=>{const s=k[m];if(!s)return;const P=l[m],L=l[s];P&&!S[m]&&(S[m]=!0),!L&&S[s]&&(S[s]=!1)},R=()=>{var l;if(t.value){(l=y.value)==null||l.handleScroll(t.value);const s=i,P=c;i=t.value.scrollTop,c=t.value.scrollLeft;const L={bottom:i+t.value.clientHeight>=t.value.scrollHeight-o.distance,top:i<=o.distance&&s!==0,right:c+t.value.clientWidth>=t.value.scrollWidth-o.distance&&P!==c,left:c<=o.distance&&P!==0};if(n("scroll",{scrollTop:i,scrollLeft:c}),s!==i&&(m=i>s?"bottom":"top"),P!==c&&(m=c>P?"right":"left"),o.distance>0){if(H(m))return;A(L)}L[m]&&n("end-reached",m)}};function B(l,s){a.isObject(l)?t.value.scrollTo(l):a.isNumber(l)&&a.isNumber(s)&&t.value.scrollTo(l,s)}const u=l=>{a.isNumber(l)&&(t.value.scrollTop=l)},w=l=>{a.isNumber(l)&&(t.value.scrollLeft=l)},v=()=>{var l;(l=y.value)==null||l.update(),S[m]=!1};return e.watch(()=>o.noresize,l=>{l?(d==null||d(),g==null||g(),b==null||b()):({stop:d}=T.useResizeObserver(h,v),{stop:g}=T.useResizeObserver(t,v),b=T.useEventListener("resize",v))},{immediate:!0}),e.watch(()=>[o.maxHeight,o.height],()=>{o.native||e.nextTick(()=>{var l;v(),t.value&&((l=y.value)==null||l.handleScroll(t.value))})}),e.provide(O,e.reactive({scrollbarElement:r,wrapElement:t})),e.onActivated(()=>{t.value&&(t.value.scrollTop=i,t.value.scrollLeft=c)}),e.onMounted(()=>{o.native||e.nextTick(()=>{v()})}),e.onUpdated(()=>v()),p({wrapRef:t,update:v,scrollTo:B,setScrollTop:u,setScrollLeft:w,handleScroll:R}),(l,s)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"scrollbarRef",ref:r,class:e.normalizeClass(e.unref(f).b())},[e.createElementVNode("div",{ref_key:"wrapRef",ref:t,class:e.normalizeClass(e.unref(E)),style:e.normalizeStyle(e.unref(N)),tabindex:l.tabindex,onScroll:R},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.tag),{id:l.id,ref_key:"resizeRef",ref:h,class:e.normalizeClass(e.unref(_)),style:e.normalizeStyle(l.viewStyle),role:l.role,"aria-label":l.ariaLabel,"aria-orientation":l.ariaOrientation},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),l.native?e.createCommentVNode("v-if",!0):(e.openBlock(),e.createBlock($,{key:0,ref_key:"barRef",ref:y,always:l.always,"min-size":l.minSize},null,8,["always","min-size"]))],2))}});var X=a._export_sfc(F,[["__file","scrollbar.vue"]]);const Y=a.withInstall(X);exports.ElScrollbar=Y;exports.scrollbarEmits=W;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as E, computed as w, openBlock as r, createElementBlock as M, normalizeClass as n, unref as s, normalizeStyle as g, createElementVNode as i, renderSlot as b, createBlock as u, withModifiers as y, withCtx as p, createVNode as v, createCommentVNode as C, Transition as N } from "vue";
|
|
2
|
-
import { E as _, c as h } from "./index-
|
|
2
|
+
import { E as _, c as h } from "./index-eb96e074.js";
|
|
3
3
|
import { b as V, u as $, _ as I, w as P } from "./base-a5af3db3.js";
|
|
4
|
-
import { k as F, e as K } from "./use-form-common-props-
|
|
4
|
+
import { k as F, e as K } from "./use-form-common-props-ed72e914.js";
|
|
5
5
|
const j = V({
|
|
6
6
|
type: {
|
|
7
7
|
type: String,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import "./base-a5af3db3.js";
|
|
2
|
-
import { E as FA } from "./el-button-
|
|
3
|
-
import "./el-tag-
|
|
4
|
-
import { E as BA, a as WA } from "./el-select-
|
|
2
|
+
import { E as FA } from "./el-button-94d3de38.js";
|
|
3
|
+
import "./el-tag-66c83156.js";
|
|
4
|
+
import { E as BA, a as WA } from "./el-select-44fa547d.js";
|
|
5
5
|
import "./el-scrollbar-323542e7.js";
|
|
6
|
-
import { E as VA } from "./el-popper-
|
|
7
|
-
import { E as HA } from "./el-input-
|
|
6
|
+
import { E as VA } from "./el-popper-fbd0dcea.js";
|
|
7
|
+
import { E as HA } from "./el-input-342b2def.js";
|
|
8
8
|
import "./el-tooltip-4ed993c7.js";
|
|
9
9
|
import { inject as zA, ref as Jn, onMounted as UA, onUnmounted as $A, openBlock as _i, createElementBlock as on, createElementVNode as bi, createBlock as md, Teleport as zy, toDisplayString as mo, Fragment as el, renderList as pd, normalizeClass as Uy, createCommentVNode as Os, createVNode as _d, withCtx as bd, unref as KA, createTextVNode as jA, nextTick as bc, pushScopeId as qA, popScopeId as GA } from "vue";
|
|
10
10
|
import { G as $y } from "./index-7ed0999e.js";
|
|
11
|
-
import { i as ZA, E as YA } from "./index-
|
|
12
|
-
import { V as QA } from "./VarietySelect-
|
|
11
|
+
import { i as ZA, E as YA } from "./index-eb96e074.js";
|
|
12
|
+
import { V as QA } from "./VarietySelect-e563b7a6.js";
|
|
13
13
|
import "./el-message-4ed993c7.js";
|
|
14
14
|
import { _ as XA } from "./_plugin-vue_export-helper-dad06003.js";
|
|
15
|
-
import { E as JA } from "./index-
|
|
15
|
+
import { E as JA } from "./index-5216d5f5.js";
|
|
16
16
|
const eM = (s) => {
|
|
17
17
|
if (!s)
|
|
18
18
|
return [];
|
|
@@ -72990,7 +72990,7 @@ RA({
|
|
|
72990
72990
|
extensions: [".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi"],
|
|
72991
72991
|
aliases: ["Python", "py"],
|
|
72992
72992
|
firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
|
|
72993
|
-
loader: () => import("./python-
|
|
72993
|
+
loader: () => import("./python-85a62852.js")
|
|
72994
72994
|
});
|
|
72995
72995
|
/*!-----------------------------------------------------------------------------
|
|
72996
72996
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|