@pantograph/vue 0.25.7 → 0.25.9
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/dist/ActionButton/index.js +1 -1
- package/dist/ActionButton/index.umd.cjs +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-BOiXNbKw.js → ActionButton.vue_vue_type_script_setup_true_lang-Bw5wXS4e.js} +1 -1
- package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-DBykKGHQ.js → ActionButton.vue_vue_type_script_setup_true_lang-Cf6yCXbu.js} +1 -1
- package/dist/Alert/index.js +1 -1
- package/dist/Alert/index.umd.cjs +1 -1
- package/dist/{Alert.vue_vue_type_style_index_0_lang-B1JrRGlL.js → Alert.vue_vue_type_style_index_0_lang-B1ejRllC.js} +4 -4
- package/dist/{Alert.vue_vue_type_style_index_0_lang-iIyhPLmR.js → Alert.vue_vue_type_style_index_0_lang-D_kPuYAK.js} +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/Avatar/index.umd.cjs +1 -1
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-560JMJs8.js → Avatar.vue_vue_type_style_index_0_lang-Bgm7HDue.js} +3 -3
- package/dist/{Avatar.vue_vue_type_style_index_0_lang-B2n3kzDz.js → Avatar.vue_vue_type_style_index_0_lang-C9lLs0zf.js} +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/AvatarGroup/index.umd.cjs +1 -1
- package/dist/Badge/index.js +1 -1
- package/dist/Badge/index.umd.cjs +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-Kd8vLJ1r.js → Badge.vue_vue_type_script_setup_true_lang-8isotHGM.js} +1 -1
- package/dist/{Badge.vue_vue_type_script_setup_true_lang-Btr5ZeJl.js → Badge.vue_vue_type_script_setup_true_lang-B--yS6FA.js} +1 -1
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-tjWWO1Eb.js → BaseBadge.vue_vue_type_style_index_0_lang-DKx5RHaj.js} +1 -1
- package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-no7MMMcb.js → BaseBadge.vue_vue_type_style_index_0_lang-DngZYNFc.js} +1 -1
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-DyR-qPkq.js → BaseButton.vue_vue_type_style_index_0_lang-BinpFP0b.js} +1 -1
- package/dist/{BaseButton.vue_vue_type_style_index_0_lang-gx7pLyR8.js → BaseButton.vue_vue_type_style_index_0_lang-C1OJEr7r.js} +4 -4
- package/dist/{BaseInput.vue_vue_type_style_index_0_lang-BOCVi3J8.js → BaseInput.vue_vue_type_style_index_0_lang-BjfjKXHL.js} +1 -1
- package/dist/{BaseInput.vue_vue_type_style_index_0_lang-CZMdvNIt.js → BaseInput.vue_vue_type_style_index_0_lang-DAIshI9P.js} +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/Button/index.umd.cjs +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-CKt4CFcG.js → Button.vue_vue_type_script_setup_true_lang-CyFceKtR.js} +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-iY6wC5I7.js → Button.vue_vue_type_script_setup_true_lang-XA4DNGoJ.js} +1 -1
- package/dist/Checkbox/index.js +1 -1
- package/dist/Checkbox/index.umd.cjs +1 -1
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-srZfoj7r.js → Checkbox.vue_vue_type_style_index_0_lang-B2IG1wMP.js} +1 -1
- package/dist/{Checkbox.vue_vue_type_style_index_0_lang-Q8nvY8Va.js → Checkbox.vue_vue_type_style_index_0_lang-BixByAyD.js} +2 -2
- package/dist/CheckboxGroup/index.js +1 -1
- package/dist/CheckboxGroup/index.umd.cjs +1 -1
- package/dist/Chip/index.js +2 -2
- package/dist/Chip/index.umd.cjs +1 -1
- package/dist/{Chip.vue_vue_type_style_index_0_lang-BjBptRQ-.js → Chip.vue_vue_type_style_index_0_lang-DbZuK4dJ.js} +1 -1
- package/dist/{Chip.vue_vue_type_style_index_0_lang-DZpyBQK1.js → Chip.vue_vue_type_style_index_0_lang-NEwTV8WW.js} +2 -2
- package/dist/ChipGroup/index.js +1 -1
- package/dist/ChipGroup/index.umd.cjs +1 -1
- package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-CeTQpuIw.js → ChipGroup.vue_vue_type_style_index_0_lang-BUSJbKqF.js} +2 -2
- package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-D3YTcBs3.js → ChipGroup.vue_vue_type_style_index_0_lang-Ditvm_0K.js} +1 -1
- package/dist/ColorPicker/index.js +1 -1
- package/dist/ColorPicker/index.umd.cjs +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-Bn5JW2Gt.js → ColorPicker.vue_vue_type_style_index_0_lang-CDW4r1j-.js} +1 -1
- package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-DL_ZJmhv.js → ColorPicker.vue_vue_type_style_index_0_lang-D-TuidEH.js} +3 -3
- package/dist/ColorSwatch/index.js +1 -1
- package/dist/ColorSwatch/index.umd.cjs +1 -1
- package/dist/{ColorSwatch-BMQgaieC.js → ColorSwatch-DghmSZ87.js} +1 -1
- package/dist/{ColorSwatch-BmsX5hTJ.js → ColorSwatch-H_n94q1q.js} +1 -1
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-DcE8KBJ4.js → ColorSwatch.vue_vue_type_style_index_0_lang-BKvGYATR.js} +1 -1
- package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-C4Kg1zF7.js → ColorSwatch.vue_vue_type_style_index_0_lang-BnQek7XE.js} +2 -2
- package/dist/ColorSwatchGroup/index.js +1 -1
- package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-baZQlRfW.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-BVax-s0S.js} +6 -7
- package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-DcQU4Avw.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-CQjHQfFT.js} +1 -1
- package/dist/ColorTrigger/index.js +1 -1
- package/dist/ColorTrigger/index.umd.cjs +1 -1
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-9NjMxcKG.js → ColorTrigger.vue_vue_type_style_index_0_lang-B_sjQKXx.js} +1 -1
- package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-D7z5WQlE.js → ColorTrigger.vue_vue_type_style_index_0_lang-CkkgjBgU.js} +3 -3
- package/dist/Combobox/index.js +1 -1
- package/dist/Combobox/index.umd.cjs +1 -1
- package/dist/{Combobox.vue_vue_type_style_index_0_lang-B--dMsNn.js → Combobox.vue_vue_type_style_index_0_lang-DTLPaUp_.js} +1 -1
- package/dist/{Combobox.vue_vue_type_style_index_0_lang-CzVJFdEg.js → Combobox.vue_vue_type_style_index_0_lang-qkh6R1r0.js} +14 -14
- package/dist/Comment/index.js +14 -14
- package/dist/Comment/index.umd.cjs +1 -1
- package/dist/DataTable/index.js +1 -1
- package/dist/DataTable/index.umd.cjs +1 -1
- package/dist/{DataTable.vue_vue_type_style_index_0_lang-DNX8ray0.js → DataTable.vue_vue_type_style_index_0_lang-BGA3ERrI.js} +1 -1
- package/dist/{DataTable.vue_vue_type_style_index_0_lang-a06ynWLy.js → DataTable.vue_vue_type_style_index_0_lang-DWibqFCX.js} +18 -24
- package/dist/DropZone/index.js +1 -1
- package/dist/DropZone/index.umd.cjs +1 -1
- package/dist/{DropZone.vue_vue_type_style_index_0_lang-Dq0K__t6.js → DropZone.vue_vue_type_style_index_0_lang-BBefIpKz.js} +2 -2
- package/dist/{DropZone.vue_vue_type_style_index_0_lang-B2XNdFr7.js → DropZone.vue_vue_type_style_index_0_lang-DCALkBMg.js} +1 -1
- package/dist/Empty/index.js +1 -1
- package/dist/Empty/index.umd.cjs +1 -1
- package/dist/{Empty.vue_vue_type_style_index_0_lang-BkLWzc14.js → Empty.vue_vue_type_style_index_0_lang-CRMoKmzg.js} +1 -1
- package/dist/{Empty.vue_vue_type_style_index_0_lang-C1kPtilP.js → Empty.vue_vue_type_style_index_0_lang-CrmvSRx9.js} +1 -1
- package/dist/FloatButton/index.js +1 -1
- package/dist/FloatButton/index.umd.cjs +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-CxSElBbb.js → FloatButton.vue_vue_type_script_setup_true_lang-B9v4WMrT.js} +1 -1
- package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-sIUaExTM.js → FloatButton.vue_vue_type_script_setup_true_lang-C19Ol_4x.js} +1 -1
- package/dist/Form/index.js +1 -1
- package/dist/Form/index.umd.cjs +1 -1
- package/dist/GOPicker/index.js +1 -1
- package/dist/GOPicker/index.umd.cjs +1 -1
- package/dist/{GOPicker.vue_vue_type_style_index_0_lang-CR7s37Os.js → GOPicker.vue_vue_type_style_index_0_lang-6RHp9JKf.js} +18 -20
- package/dist/{GOPicker.vue_vue_type_style_index_0_lang-rSEkCO3H.js → GOPicker.vue_vue_type_style_index_0_lang-CtSJm390.js} +1 -1
- package/dist/GraphicalObject/index.js +1 -1
- package/dist/GraphicalObject/index.umd.cjs +1 -1
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-CpstWkLR.js → GraphicalObject.vue_vue_type_script_setup_true_lang-DAD_Pguk.js} +2 -2
- package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-WjnCG0pe.js → GraphicalObject.vue_vue_type_script_setup_true_lang-trZEw5N2.js} +1 -1
- package/dist/GraphicalObjectGroup/index.js +1 -1
- package/dist/GraphicalObjectGroup/index.umd.cjs +1 -1
- package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-BXpVeN5_.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-0Unb2BCL.js} +2 -2
- package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-i6Leg2rQ.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-C5QZZryZ.js} +1 -1
- package/dist/Icon/index.js +1 -1
- package/dist/Icon/index.umd.cjs +1 -1
- package/dist/{Icon.vue_vue_type_style_index_0_lang-DkeXz23k.js → Icon.vue_vue_type_style_index_0_lang-B7R2mn8M.js} +1 -1
- package/dist/{Icon.vue_vue_type_style_index_0_lang-DyeL9Lem.js → Icon.vue_vue_type_style_index_0_lang-BtoF9TOg.js} +1 -1
- package/dist/IconButton/index.js +1 -1
- package/dist/IconButton/index.umd.cjs +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-CudH1Czj.js → IconButton.vue_vue_type_script_setup_true_lang-BM-cRmSJ.js} +1 -1
- package/dist/{IconButton.vue_vue_type_script_setup_true_lang-Bz66rcDQ.js → IconButton.vue_vue_type_script_setup_true_lang-C3TDFOqT.js} +1 -1
- package/dist/Image/index.js +1 -1
- package/dist/Image/index.umd.cjs +1 -1
- package/dist/{Image.vue_vue_type_style_index_0_lang-D8BJOCro.js → Image.vue_vue_type_style_index_0_lang-CoYnugv1.js} +2 -2
- package/dist/{Image.vue_vue_type_style_index_0_lang-D7buZGTj.js → Image.vue_vue_type_style_index_0_lang-DOZUtl9e.js} +1 -1
- package/dist/IndentLevel/index.js +1 -1
- package/dist/IndentLevel/index.umd.cjs +1 -1
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-DkVpxqkS.js → IndentLevel.vue_vue_type_style_index_0_lang-D0opqHsf.js} +3 -3
- package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-iaGGd8NQ.js → IndentLevel.vue_vue_type_style_index_0_lang-DvcRgKqZ.js} +1 -1
- package/dist/Indicator/index.js +1 -1
- package/dist/Indicator/index.umd.cjs +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-C6C6qnFI.js → Indicator.vue_vue_type_script_setup_true_lang-IGWp2g2p.js} +1 -1
- package/dist/{Indicator.vue_vue_type_script_setup_true_lang-BTt9LTh1.js → Indicator.vue_vue_type_script_setup_true_lang-b0PLU4YQ.js} +1 -1
- package/dist/Input/index.js +2 -2
- package/dist/Input/index.umd.cjs +1 -1
- package/dist/{Input.vue_vue_type_script_setup_true_lang-Dws8FarS.js → Input.vue_vue_type_script_setup_true_lang-BwCPhhrs.js} +1 -1
- package/dist/{Input.vue_vue_type_script_setup_true_lang-Dtkw6-JD.js → Input.vue_vue_type_script_setup_true_lang-plOeiAN9.js} +3 -3
- package/dist/InputNumber/index.js +2 -2
- package/dist/InputNumber/index.umd.cjs +1 -1
- package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-mEje-O-q.js → InputNumber.vue_vue_type_script_setup_true_lang-DY9Ai7IV.js} +3 -3
- package/dist/{InputNumber.vue_vue_type_script_setup_true_lang-Cr4YLP4W.js → InputNumber.vue_vue_type_script_setup_true_lang-E4x8aIMp.js} +1 -1
- package/dist/Kbd/index.js +1 -1
- package/dist/Kbd/index.umd.cjs +1 -1
- package/dist/{Kbd.vue_vue_type_style_index_0_lang-BFlrS9Oh.js → Kbd.vue_vue_type_style_index_0_lang-Bi6Ugq9T.js} +1 -1
- package/dist/{Kbd.vue_vue_type_style_index_0_lang-VXCAjXze.js → Kbd.vue_vue_type_style_index_0_lang-e2h3DAry.js} +1 -1
- package/dist/Label/index.js +1 -1
- package/dist/Label/index.umd.cjs +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/Link/index.umd.cjs +1 -1
- package/dist/{Link.vue_vue_type_style_index_0_lang-DgvyW7Rs.js → Link.vue_vue_type_style_index_0_lang-BNgeWA4b.js} +1 -1
- package/dist/{Link.vue_vue_type_style_index_0_lang-BRLBWpij.js → Link.vue_vue_type_style_index_0_lang-CrkZkKH-.js} +1 -1
- package/dist/Menu/index.js +1 -1
- package/dist/Menu/index.umd.cjs +1 -1
- package/dist/MenuItem/index.js +1 -1
- package/dist/MenuItem/index.umd.cjs +1 -1
- package/dist/{MenuItem.vue_vue_type_style_index_0_lang-AhI5J805.js → MenuItem.vue_vue_type_style_index_0_lang-9yUgH2x5.js} +1 -1
- package/dist/{MenuItem.vue_vue_type_style_index_0_lang-BSbQKPOJ.js → MenuItem.vue_vue_type_style_index_0_lang-krLrK1Ng.js} +3 -3
- package/dist/Pagination/index.js +1 -1
- package/dist/Pagination/index.umd.cjs +1 -1
- package/dist/{Pagination.vue_vue_type_style_index_0_lang-6HV2JmdQ.js → Pagination.vue_vue_type_style_index_0_lang-AJP_lbkw.js} +1 -1
- package/dist/{Pagination.vue_vue_type_style_index_0_lang-FoV1-lO_.js → Pagination.vue_vue_type_style_index_0_lang-NBV9Wedc.js} +6 -7
- package/dist/Popover/index.js +1 -1
- package/dist/Popover/index.umd.cjs +1 -1
- package/dist/{Popover.vue_vue_type_style_index_0_lang-COPtUT1x.js → Popover.vue_vue_type_style_index_0_lang-CkzxsmS5.js} +1 -1
- package/dist/{Popover.vue_vue_type_style_index_0_lang-BolWR0Oq.js → Popover.vue_vue_type_style_index_0_lang-G15betKT.js} +1 -1
- package/dist/Progress/index.js +1 -1
- package/dist/Progress/index.umd.cjs +1 -1
- package/dist/{Progress.vue_vue_type_style_index_0_lang-DNe_dcRZ.js → Progress.vue_vue_type_style_index_0_lang-C722lIhW.js} +1 -1
- package/dist/{Progress.vue_vue_type_style_index_0_lang-BXhIqXDx.js → Progress.vue_vue_type_style_index_0_lang-RUQAh1En.js} +1 -1
- package/dist/RadioGroup/index.js +1 -1
- package/dist/RadioGroup/index.umd.cjs +1 -1
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-D-9WHezS.js → RadioGroup.vue_vue_type_script_setup_true_lang-CYggM4wr.js} +1 -1
- package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-NO2KpdR5.js → RadioGroup.vue_vue_type_script_setup_true_lang-bbwaWuwD.js} +1 -1
- package/dist/ScrollContainer/index.js +1 -1
- package/dist/ScrollContainer/index.umd.cjs +1 -1
- package/dist/{ScrollContainer.vue_vue_type_style_index_0_lang-DKfgCbWJ.js → ScrollContainer.vue_vue_type_style_index_0_lang-B7KB3auk.js} +1 -1
- package/dist/{ScrollContainer.vue_vue_type_style_index_0_lang-Dl1jP8xY.js → ScrollContainer.vue_vue_type_style_index_0_lang-D-7EyvX8.js} +1 -1
- package/dist/Segmented/index.js +1 -1
- package/dist/Segmented/index.umd.cjs +1 -1
- package/dist/{Segmented.vue_vue_type_style_index_0_lang-uZeKLoid.js → Segmented.vue_vue_type_style_index_0_lang-DxFo4L8a.js} +1 -1
- package/dist/{Segmented.vue_vue_type_style_index_0_lang-BKyJdc6h.js → Segmented.vue_vue_type_style_index_0_lang-Dz1Nm76T.js} +1 -1
- package/dist/Select/index.js +1 -1
- package/dist/Select/index.umd.cjs +1 -1
- package/dist/{Select.vue_vue_type_style_index_0_lang-i_BSOFzK.js → Select.vue_vue_type_style_index_0_lang-BjWeH-Hc.js} +1 -1
- package/dist/{Select.vue_vue_type_style_index_0_lang-DzWX4QRp.js → Select.vue_vue_type_style_index_0_lang-DBDbDVTi.js} +7 -7
- package/dist/Shortcut/index.js +1 -1
- package/dist/Shortcut/index.umd.cjs +1 -1
- package/dist/{Shortcut.vue_vue_type_style_index_0_lang-2KAzQkhD.js → Shortcut.vue_vue_type_style_index_0_lang-BDiR4Uvi.js} +2 -2
- package/dist/{Shortcut.vue_vue_type_style_index_0_lang-e8lB0y-L.js → Shortcut.vue_vue_type_style_index_0_lang-BK2rKAsY.js} +1 -1
- package/dist/Spinner/index.js +1 -1
- package/dist/Spinner/index.umd.cjs +1 -1
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-NYJmdFpB.js → Spinner.vue_vue_type_style_index_0_lang-DqBkihgb.js} +1 -1
- package/dist/{Spinner.vue_vue_type_style_index_0_lang-CKYCbCZQ.js → Spinner.vue_vue_type_style_index_0_lang-DrPpU7_C.js} +1 -1
- package/dist/SubMenu/index.js +1 -1
- package/dist/SubMenu/index.umd.cjs +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/Switch/index.umd.cjs +1 -1
- package/dist/{Switch.vue_vue_type_style_index_0_lang-B6Pt3aij.js → Switch.vue_vue_type_style_index_0_lang-CjQw_UMX.js} +2 -2
- package/dist/{Switch.vue_vue_type_style_index_0_lang-BIe63Ak0.js → Switch.vue_vue_type_style_index_0_lang-D2moI-0j.js} +1 -1
- package/dist/{THead.vue_vue_type_style_index_0_lang-DuCJdfy4.js → THead.vue_vue_type_style_index_0_lang-EuhTKYnH.js} +1 -1
- package/dist/{THead.vue_vue_type_style_index_0_lang-CCUQ2E3U.js → THead.vue_vue_type_style_index_0_lang-rv8U5rf7.js} +1 -1
- package/dist/TabContent.vue_vue_type_script_setup_true_lang-CpKlxU3Z.js +370 -0
- package/dist/TabContent.vue_vue_type_script_setup_true_lang-Dix0dTcb.js +1 -0
- package/dist/Table/index.js +1 -1
- package/dist/Table/index.umd.cjs +1 -1
- package/dist/Tabs/TabContent.d.ts +18 -0
- package/dist/Tabs/TabList.d.ts +304 -0
- package/dist/Tabs/TabTrigger.d.ts +151 -0
- package/dist/Tabs/Tabs.d.ts +54 -0
- package/dist/Tabs/index.d.ts +5 -1
- package/dist/Tabs/index.js +11 -1
- package/dist/Tabs/index.umd.cjs +1 -1
- package/dist/Textarea/index.js +1 -1
- package/dist/Textarea/index.umd.cjs +1 -1
- package/dist/{Textarea.vue_vue_type_style_index_0_lang-CgC3wstw.js → Textarea.vue_vue_type_style_index_0_lang-9PbgPuWS.js} +3 -3
- package/dist/{Textarea.vue_vue_type_style_index_0_lang-BqUWj9j2.js → Textarea.vue_vue_type_style_index_0_lang-ClYt47IO.js} +1 -1
- package/dist/Tree/Tree.d.ts +25 -6
- package/dist/Tree/index.js +1 -1
- package/dist/Tree/index.umd.cjs +1 -1
- package/dist/{Tree.vue_vue_type_style_index_0_lang-wxS0iVAQ.js → Tree.vue_vue_type_style_index_0_lang-Bdt7S0WV.js} +144 -147
- package/dist/Tree.vue_vue_type_style_index_0_lang-Bn6N18mx.js +1 -0
- package/dist/Upload/index.js +1 -1
- package/dist/Upload/index.umd.cjs +1 -1
- package/dist/{Upload.vue_vue_type_style_index_0_lang-B_fYzNVt.js → Upload.vue_vue_type_style_index_0_lang-CSbPiaOR.js} +6 -6
- package/dist/{Upload.vue_vue_type_style_index_0_lang-BiBzroEH.js → Upload.vue_vue_type_style_index_0_lang-DE-HiXKi.js} +1 -1
- package/dist/index.js +157 -148
- package/dist/index.umd.cjs +1 -1
- package/dist/sortPlaceholder-CfqyTfZ5.js +11 -0
- package/dist/sortPlaceholder-qIVgLvWp.js +1 -0
- package/dist/style/index.css +1 -1
- package/dist/{useInputDataStates-CM2GJM3c.js → useInputDataStates-BH1JyvhY.js} +1 -1
- package/dist/{useInputDataStates-BNwXgt9l.js → useInputDataStates-DcsUw2Fl.js} +1 -1
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.umd.cjs +1 -1
- package/package.json +2 -2
- package/dist/Tree.vue_vue_type_style_index_0_lang-BiU1prIp.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),c=require("@pantograph/utils"),_e=require("class-variance-authority"),I=require("es-toolkit"),Oe=require("@pantograph/sortable"),ke=require("./options-CY2uxp5A.js"),qe=require("reka-ui"),Ae=require("@tanstack/vue-virtual"),be=require("./IndentLevel.vue_vue_type_style_index_0_lang-DvcRgKqZ.js"),pe=require("./Icon.vue_vue_type_style_index_0_lang-BtoF9TOg.js"),$e=require("./Checkbox.vue_vue_type_style_index_0_lang-B2IG1wMP.js"),De=require("./useInputDataStates-BH1JyvhY.js"),Ge=require("./ConfigProvider.vue_vue_type_script_setup_true_lang-BAXkTMEt.js"),Me=require("./ScrollContainer.vue_vue_type_style_index_0_lang-B7KB3auk.js"),Ce=require("./sortPlaceholder-qIVgLvWp.js"),Ue=(P,u)=>{let r;const t=e.computed(()=>{const h=r==null?void 0:r.value.getTotalSize();return{height:h?`${h}px`:void 0,position:"relative"}}),m=e.computed(()=>{var y;return{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${((y=((r==null?void 0:r.value.getVirtualItems())??[])[0])==null?void 0:y.start)-((r==null?void 0:r.value.options.scrollMargin)??0)}px)`}}),k=()=>({scrollWrapperStyles:t,containerStyles:m,virtualScroll:r}),v=h=>{const y=e.computed(()=>({...e.unref(u),...e.unref(h)}));return r=Ae.useVirtualizer(y),k()};return v(),{init:v,...k()}},Se=["sm","md","lg"],ge={none:"gap-none",sm:"gap-sm",md:"gap-md",lg:"gap-lg"},[xe,Ie]=qe.createContext("Tree"),je=["data-key","data-level","data-draggable","tabindex"],Be=e.defineComponent({...ke.getComponentOptions("TreeNode"),__name:"TreeNode",props:{node:{}},setup(P){const u=P;e.useSlots();const r=xe(),t=_e.cva(r.prefixes.node,{variants:{disabled:c.generateVariantClassList("disabled",r.prefixes.node),active:c.generateVariantClassList("active",r.prefixes.node)}}),m=a=>r.getNodeChildren(a,!0,!1),k=e.computed(()=>m(u.node)),v=e.computed(()=>r.getNodeField(u.node,"leaf")),h=e.computed(()=>r.props.draggable?r.getNodeField(u.node,"draggable")??!0:!1),y=e.computed(()=>!!(r.disabled.value||r.getNodeField(u.node,"disabled"))),z=e.computed(()=>u.node._dragging??!1),S=e.computed(()=>!z.value&&r.expandedKeys.value.includes(u.node._key)),Q=e.computed(()=>!z.value&&!r.dragging.value&&r.props.showLine?w.value?"all":"before":!1),K=e.computed(()=>r.getIsSelected(u.node)),G=e.computed(()=>r.getIsChecked(u.node)),R=a=>r.onCheck(u.node,!!a),B=e.computed(()=>r.getLevel(u.node)),w=e.computed(()=>{var a,p;return!!((a=k.value)!=null&&a.length||(p=r.props)!=null&&p.lazyLoad&&!v.value)}),o=e.computed(()=>({...u.node,selected:K.value,checked:G.value,disabled:y.value,expanded:S.value,unFocusable:!0})),i=()=>{y.value||r.onSelect(u.node,!K.value)};return(a,p)=>{var _,f,T,A,M,X,F;return e.openBlock(),e.createElementBlock("div",{"data-key":(_=e.unref(r).props)!=null&&_.draggable?a.node._key:void 0,"data-level":(f=e.unref(r).props)!=null&&f.draggable?B.value:void 0,"data-draggable":(T=e.unref(r).props)!=null&&T.draggable?!y.value&&h.value:void 0,class:e.normalizeClass(e.unref(c.normCls)(e.unref(t)({disabled:y.value,active:K.value}),u.node.class??"")),tabindex:e.unref(r).props.focusable?0:void 0,onClick:i},[(A=e.unref(r).props)!=null&&A.draggable?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(r).prefixes.draggable)},[e.unref(r).dragging.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(pe._sfc_main$2,{key:0,icon:"tabler:grip-vertical",size:e.unref(r).iconSize.value,class:e.normalizeClass(e.unref(r).prefixes.draggableIcon)},null,8,["size","class"]))],2)):e.createCommentVNode("",!0),e.createVNode(be._sfc_main,{level:B.value,children:w.value,size:e.unref(r).indentSize.value,expanded:S.value,showLine:Q.value,dir:e.unref(r).props.dir,class:e.normalizeClass(e.unref(c.getBemElement)(e.unref(r).prefixes.node,"indent")),loading:e.unref(r).getNodeField(a.node,"loading"),"branch-icon":e.unref(r).getNodeField(a.node,"switcherIcon")??((M=e.unref(r).props)==null?void 0:M.switcherIcon),"no-rotate-branch":e.unref(r).getNodeField(a.node,"noRotateSwitcherIcon")??((X=e.unref(r).props)==null?void 0:X.noRotateSwitcherIcon),onToggleExpand:p[0]||(p[0]=e.withModifiers($=>e.unref(r).onExpandKey(u.node),["stop"]))},{default:e.withCtx(()=>[e.renderSlot(a.$slots,"switcherIcon",e.normalizeProps(e.guardReactiveProps(o.value)))]),_:3},8,["level","children","size","expanded","showLine","dir","class","loading","branch-icon","no-rotate-branch"]),(F=e.unref(r).props)!=null&&F.checkable?(e.openBlock(),e.createBlock($e._sfc_main,{key:1,size:e.unref(r).iconSize.value,onClick:p[1]||(p[1]=e.withModifiers(()=>{},["stop"])),modelValue:G.value,"onUpdate:modelValue":R,disabled:y.value},null,8,["size","modelValue","disabled"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default",e.normalizeProps(e.guardReactiveProps(o.value)),()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(c.getBemElement)(e.unref(r).prefixes.node,"title"))},e.toDisplayString(e.unref(r).getNodeField(u.node,"title")),3)])],10,je)}}}),J=P=>I.isString(P);function We({getValue:P,getDisabled:u,arr:r,getChildren:t}){const m=[],k=(v,h)=>{v.forEach(y=>{const z=P(y);if(J(z)){const S=t(y);m.push({...y,_parentKeys:h,_key:z,_disabled:!!u(y),_hasChildren:!!(S!=null&&S.length)}),S!=null&&S.length&&k(S,[...h??[],z])}else throw"every node must provide a valid key"})};return k(r),m}const Ye=({getData:P,getExpandedKeys:u,getValue:r,getDisabled:t,getChildren:m})=>{const k=e.computed(()=>We({arr:e.unref(P()),getChildren:m,getValue:r,getDisabled:t})),v=e.computed(()=>{const o=e.unref(u());return k.value.filter(i=>{var a,p;return!i._parentKeys||((p=(a=i._parentKeys)==null?void 0:a.every)==null?void 0:p.call(a,_=>o.includes(_)))})}),h=(o,i=!1,a=!0)=>{const p=r(o);return!J(p)||!o?[]:k.value.filter(_=>{var f;if(i){const T=I.last(_._parentKeys??[]);return T&&T===p}return(f=_._parentKeys)==null?void 0:f.includes(p)}).filter(_=>_&&(!a||!(_!=null&&_._disabled)))},y=()=>k.value.filter(o=>!o._parentKeys),z=o=>o?h(o,!0,!1):y(),S=o=>J(o)?k.value.find(i=>i._key===o):void 0,Q=o=>{const i=S(I.last(o._parentKeys??[]));return z(i).findIndex(a=>a._key===o._key)},K=o=>{const i=e.unref(o);return i&&pe.isArray(i)?I.cloneDeep(i):[]},G=(o,i)=>{const a=h(o);if(a!=null&&a.length)return a.some(p=>B(p,i,!1)===!0)},R=(o,i)=>{const a=h(o);return a!=null&&a.length?a.every(p=>B(p,i,!1)===!0):!1},B=(o,i,a=!1)=>{const p=K(i),_=r(o);if(!a&&!o._disabled&&!p.includes(_)){const f=h(o);if(f!=null&&f.length)return R(o,i)?!0:G(o,i)?"indeterminate":!1}return p.includes(_)};return{flattenData:k,visibleFlattenData:v,getNodeChildren:h,getNodeByValue:S,getNodeIndexInScope:Q,getChildrenOrRootNodes:z,isSomeChildrenSelected:G,isAllChildrenSelected:R,isSelected:B,getRootNodes:y,selectValue:(o,i,a,p,_=!0)=>{let f=K(a);if(J(o._key)&&!o._disabled)if(_){if(i?f.push(o._key):f=f.filter(T=>o._key!==T),!p){const A=h(o).map(b=>b._key),M=f.map(S).filter(b=>b&&b._parentKeys);i||M.push(o);const F=I.uniq(I.flattenDeep(M.map(b=>b._parentKeys))).filter(b=>J(b)&&b!==o._key).filter(J).map(S).filter(Boolean),$=[],E=[];F.forEach(b=>{const L=r(b);R(b,f)?$.push(L):E.push(L)}),i?$.push(...A):E.push(...A),f.push(...$),f=f.filter(b=>!E.includes(b))}}else i?f=[o._key]:f=[];return I.uniq(f)}}},He=e.defineComponent({__name:"TreePlaceholder",props:{level:{},size:{},indentSize:{},branchIcon:{},children:{type:Boolean}},setup(P){return(u,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(be._sfc_main),{level:u.level,expanded:!1,branchIcon:u.branchIcon,children:u.children,size:u.indentSize},null,8,["level","branchIcon","children","size"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(Ce.sortPlaceholderVariantsClass)({size:u.size}))},null,2)],64))}}),fe={"3xsm":14,"2xsm":16,xsm:20,sm:24,md:32,lg:40,xlg:48,"2xlg":56},Je=Object.keys(fe),Qe=e.defineComponent({...ke.getComponentOptions("Tree"),__name:"Tree",props:{class:{},size:{default:"md"},gap:{},dir:{},data:{},modelValue:{},checkedKeys:{},expandedKeys:{},multiple:{type:Boolean},checkable:{type:Boolean},selectable:{type:Boolean},defaultExpandAll:{type:Boolean},showLine:{type:Boolean},inlineNode:{type:Boolean},lazyLoad:{type:Boolean},getLoading:{},getNoRotateSwitcherIcon:{},getTitle:{},getLeaf:{},getDraggable:{},getKey:{},getSwitcherIcon:{},getDisabled:{},getChildren:{},groupName:{},sortableProps:{},focusable:{type:Boolean,default:!0},checkStrictly:{type:Boolean,default:void 0},syncCheckboxAndSelect:{type:Boolean},virtualScroll:{type:[Boolean,Function]},scrollContainerProps:{},switcherIcon:{},noRotateSwitcherIcon:{type:Boolean},draggable:{type:Boolean},disabled:{type:Boolean}},emits:["update:modelValue","update:value","update:expandedKeys","update:checkedKeys","expand","select","check","dragStart","dragEnd","choose","unchoose"],setup(P,{expose:u,emit:r}){const t=P,m=r,k=e.useSlots(),v=c.getBemBlock("tree"),h=c.getBemElement(v,"node"),y=c.getBemElement(h,"group"),z=c.getBemElement(h,"draggable"),S=c.getBemElement(z,"icon"),Q=c.getBemElement(y,"list"),K={node:h,group:y,draggable:z,draggableIcon:S,groupList:Q},G=_e.cva(v,{variants:{size:c.generateVariantClassList(Se,v),gap:c.generateVariantClassList(ge,v),selectable:c.generateVariantClassList("selectable",v),disabled:c.generateVariantClassList("disabled",v),inlineNode:c.generateVariantClassList("inline-node",v),dragging:c.generateVariantClassList("dragging",v)}}),R={getLoading:c.createOptionGetterFunc({key:"loading",getter:t.getLoading,noReturnOption:!0}),getNoRotateSwitcherIcon:c.createOptionGetterFunc({key:"noRotateSwitcherIcon",getter:t.getNoRotateSwitcherIcon,noReturnOption:!0}),getTitle:c.createOptionGetterFunc({key:"title",getter:t.getTitle,noReturnOption:!0}),getLeaf:c.createOptionGetterFunc({key:"leaf",getter:t.getLeaf,noReturnOption:!0}),getDraggable:c.createOptionGetterFunc({key:"draggable",getter:t.getDraggable,noReturnOption:!0}),getKey:c.createOptionGetterFunc({key:"key",getter:t.getKey,noReturnOption:!0}),getSwitcherIcon:c.createOptionGetterFunc({key:"switcherIcon",getter:t.getSwitcherIcon,noReturnOption:!0}),getDisabled:c.createOptionGetterFunc({key:"disabled",getter:t.getDisabled,noReturnOption:!0}),getChildren:c.createOptionGetterFunc({key:"children",getter:t.getChildren,noReturnOption:!0})},B=(n,s)=>{var x;const d=`get${s[0].toUpperCase()+s.slice(1)}`;return(x=R[d])==null?void 0:x.call(R,n)},w=e.ref(t.expandedKeys??[]),{flattenData:o,visibleFlattenData:i,getNodeByValue:a,getChildrenOrRootNodes:p,getNodeIndexInScope:_,isSelected:f,getNodeChildren:T,selectValue:A,getRootNodes:M}=Ye({getData:()=>t.data,getExpandedKeys:()=>w,getValue:n=>B(n,"key"),getDisabled:n=>B(n,"disabled"),getChildren:n=>B(n,"children")}),X=()=>o.value.filter(n=>n==null?void 0:n._hasChildren).map(n=>n._key);let F=!1;e.watch(()=>[t.defaultExpandAll,t.expandedKeys],([n,s],d)=>{F||(F=!0,s!==(d==null?void 0:d[1])?w.value=t.expandedKeys??[]:n&&!(d!=null&&d[0])&&(w.value=X()),e.nextTick(()=>F=!1))},{deep:!0,immediate:!0}),e.watch(w,n=>{!F&&n!==t.expandedKeys&&m("update:expandedKeys",n)},{deep:!0});const $=e.ref(t.modelValue??[]);e.watch(()=>t.modelValue,()=>{$.value=t.modelValue??[],t.syncCheckboxAndSelect&&(L.value=t.modelValue??[])},{deep:!0});const E=e.computed({get(){return $.value},set(n){n&&(t.modelValue||($.value=n),m("update:modelValue",n),m("update:value",n))}}),b=e.ref(t.checkedKeys??[]);e.watch(()=>t.checkedKeys,()=>{b.value=t.checkedKeys??[],t.syncCheckboxAndSelect&&(E.value=t.checkedKeys??[])},{deep:!0});const L=e.computed({get(){return b.value},set(n){t.checkedKeys||(b.value=n),m("update:checkedKeys",n)}}),{getDisabled:ne,getSize:H}=De.useFormInput(),we=n=>!!f(n,E,!0),Ne=n=>f(n,L,t.checkStrictly),ze=(n,s)=>{if(t.selectable&&!ne.value){const d=A(n,s,E,!!(t.syncCheckboxAndSelect?t.checkStrictly:t.checkStrictly!==!1),t.multiple);E.value=d,m("select",n,s,d),t.syncCheckboxAndSelect&&(L.value=d,m("check",n,s,d))}},Ke=(n,s)=>{if(t.checkable&&!ne.value){const d=A(n,s,L,!!t.checkStrictly);L.value=d,m("check",n,s,L.value),t.syncCheckboxAndSelect&&(E.value=d,m("select",n,s,d))}},re=n=>{let s=!0;const d=B(n,"key");let x=I.cloneDeep(w.value);x.includes(d)?(x=x.filter(U=>U!==d),s=!1):(x=I.uniq([...x,d]),s=!0),w.value=x,m("expand",n,s)},se=e.computed(()=>{if(t.gap){if(typeof t.gap=="number")return`${t.gap}px`;if(!Object.keys(ge).includes(t.gap))return t.gap}}),oe=e.ref(!1),{getDir:Te}=Ge.useConfig(),ie=Te(),me=e.computed(()=>{switch(H.value){case"sm":return"2xsm";case"lg":return"sm";default:return"xsm"}}),Ve=e.computed(()=>H.value==="sm"?"2xsm":"xsm"),he=n=>{var s;return(((s=n==null?void 0:n._parentKeys)==null?void 0:s.length)??0)+1};Ie({iconSize:Ve,disabled:ne,props:t,expandedKeys:w,model:E,dir:ie,checked:L,onExpandKey:re,onSelect:ze,onCheck:Ke,getNodeChildren:T,getNodeField:B,getIsSelected:we,getIsChecked:Ne,getLevel:he,dragging:oe,indentSize:me,prefixes:K});const ce=e.ref();if(t.draggable){let n,s;const d=N=>{const g=N.getAttribute("data-key");if(g)return a(g)},x=c.getBemModifier(c.getBemElement(v,"dragging_item"),H.value),U=()=>{var N;(N=n==null?void 0:n.destroy)==null||N.call(n),n=void 0},le=async()=>{let N,g,j,ee,O;const ue=l=>({...l,node:g,oldParents:j,newParents:ee,oldIndex:N,oldDraggableIndex:N,newIndex:O,newDraggableIndex:O}),ve=(l,W)=>{if(l){const V=()=>{const ae=he(g),C=!!(g!=null&&g._hasChildren);return{size:H.value,level:ae,children:C,indentSize:me.value,branchIcon:(g?B(g,"switcherIcon")??(t==null?void 0:t.switcherIcon):t==null?void 0:t.switcherIcon)??"tabler:chevron-left"}},q=document.createElement("div"),Y=l.getBoundingClientRect();q.style.width=Y.width?`${Y.width}px`:"100%",q.style.height=Y.height?`${Y.height}px`:"100%",q.classList.add(c.getBemElement(v,Ce.sortPlaceholderCls));const te=V();return W&&(te.level=W),e.render(e.h(He,te),q),q}};n?U():ce.value&&(n=new Oe(ce.value,{...I.omit(t.sortableProps||{},["onMove"]),group:I.isFunction(t.groupName)?t.groupName():t.groupName??c.usePCId(v),filter:"[data-draggable=false]",tree:!0,draggable:`.${K.node}`,handle:`.${K.node} .${K.draggable} .${K.draggableIcon}`,dataIdAttr:"data-key",dragClass:x,onChoose(l){var W;if(g=d(l==null?void 0:l.item),j=(W=g==null?void 0:g._parentKeys)==null?void 0:W.map(a).filter(Boolean),g){if(j!=null&&j.length){const V=I.last(j);V&&(N=T(V,!0,!1).findIndex(q=>q._key===g._key))}else N=M().findIndex(V=>V._key===g._key);g._dragging=!0}m("choose",l)},onUnchoose(l){g&&(g._dragging=!1),m("unchoose",l)},onStart(l){g!=null&&g._key&&w.value.includes(g._key)&&(s=g,re(s)),oe.value=!0,m("dragStart",ue(l))},onEnd(l){oe.value=!1,s&&(re(s),s=void 0),m("dragEnd",ue(l)),N=j=O=ee=g=void 0},onMove(l,W){var Y,te,ae;if(O=ee=void 0,l.draggedTreeItemParent){const C=d(l==null?void 0:l.draggedTreeItemParent);C&&(ee=[...((Y=C==null?void 0:C._parentKeys)==null?void 0:Y.map(a).filter(Boolean))??[],C],(te=T(C,!0,!1))!=null&&te.length&&!w.value.includes(C._key)&&re(C))}const V=l.draggedTreeItemLevel??1;if(!l.draggedTreeItemBefore)O=0;else if(l.draggedTreeItemBefore){if(l.draggedTreeItemBefore.level===V){const C=d(l.draggedTreeItemBefore);C&&(O=_(C)+1)}else if(l.draggedTreeItemBefore.level<V)O=0;else if(l.draggedTreeItemBefore.level>V){if(!l.draggedTreeItemAfter||l.draggedTreeItemAfter.level<V){const C=I.last(ee??[]);O=p(C).length}else if(l.draggedTreeItemAfter.level===V){const C=d(l.draggedTreeItemAfter);C&&(O=_(C))}}}const q=ue(l);I.isFunction((ae=t.sortableProps)==null?void 0:ae.onMove)&&t.sortableProps.onMove(q,W)},getPlaceholder(l){return ve(l==null?void 0:l.item)},getPlaceholderOnMove(l){return ve(l==null?void 0:l.dragged,l.draggedTreeItemLevel||1)}}))};e.onMounted(le),e.onBeforeUnmount(U)}const de=e.ref(),Pe={none:0,sm:4,md:6,lg:8},ye=e.computed(()=>({get count(){return i.value.length??0},getScrollElement:()=>{var n;return(n=de.value)==null?void 0:n.container.viewportElement},estimateSize:()=>fe[t.size]??32,overscan:5,get gap(){return Pe[se.value]??se.value??0}}));let Z,D;if(t.virtualScroll)if(typeof t.virtualScroll=="function"){const{virtualScroll:n,...s}=t.virtualScroll(ye);Z=n,D=s}else{const{init:n}=Ue(!0,ye),{virtualScroll:s,...d}=n();Z=s,D=d}const Ee=e.computed(()=>(D==null?void 0:D.scrollWrapperStyles.value)??{}),Le=e.computed(()=>(D==null?void 0:D.containerStyles.value)??{}),Re=e.computed(()=>{var n;return(((n=Z==null?void 0:Z.value)==null?void 0:n.getVirtualItems())??[]).map(s=>i.value[s.index])}),Fe=()=>{var s;const n=()=>{const d=()=>{var le;const x=t.virtualScroll?Re.value:i.value,U=(le=k.default)==null?void 0:le.call(k,{items:x});return pe.isEmptyElement(U)?x.map(N=>e.h(Be,{key:N._key,node:N},{default:k.node,switcherIcon:k.switcherIcon})):U};return e.h("div",{dir:ie.value,role:"tree",class:c.normCls(G({size:H.value,gap:t.gap??H.value,selectable:t.selectable,disabled:ne.value,inlineNode:t.inlineNode,dragging:oe.value}),t.class),style:{"--ptc-tree-gap":se.value,...t.virtualScroll?Le.value:{}},ref:ce},d())};return t.virtualScroll?e.h(Me._sfc_main,{...t.scrollContainerProps,ref:de,dir:ie.value,wrapProps:{...((s=t.scrollContainerProps)==null?void 0:s.wrapProps)??{},style:Ee.value}},n):n()};return u({scrollContainerRef:de}),(n,s)=>(e.openBlock(),e.createBlock(Fe))}});exports.TreeGaps=ge;exports.TreeSizes=Se;exports._sfc_main=Qe;exports._sfc_main$1=Be;exports.injectTreeContext=xe;exports.provideTreeContext=Ie;exports.systemSizes=Je;exports.systemSizesMap=fe;
|
package/dist/Upload/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as o, e as p, d as e, U as d, a as t, f as i, i as l, p as U, c as r, b as x, u as f } from "../Upload.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { _ as o, e as p, d as e, U as d, a as t, f as i, i as l, p as U, c as r, b as x, u as f } from "../Upload.vue_vue_type_style_index_0_lang-CSbPiaOR.js";
|
|
2
2
|
export {
|
|
3
3
|
o as Upload,
|
|
4
4
|
p as UploadListTypes,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Upload.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Upload.vue_vue_type_style_index_0_lang-DE-HiXKi.js");exports.Upload=e._sfc_main;exports.UploadListTypes=e.UploadListTypes;exports.UploadSizes=e.UploadSizes;exports.UploadStatuses=e.UploadStatuses;exports.UploadTrigger=e._sfc_main$1;exports.UploadTypes=e.UploadTypes;exports.injectUploadContext=e.injectUploadContext;exports.provideUploadContext=e.provideUploadContext;exports.uploadListItemPrefix=e.uploadListItemPrefix;exports.uploadListPrefix=e.uploadListPrefix;exports.uploadPrefix=e.uploadPrefix;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as D, createElementBlock as O, openBlock as b, Fragment as fe, createBlock as U, createCommentVNode as R, createVNode as E, unref as r, normalizeClass as S, createSlots as De, withCtx as te, computed as C, h as V, createElementVNode as ye, ref as ae, mergeProps as qe, renderSlot as le, normalizeProps as ce, guardReactiveProps as ue, useSlots as Me, useAttrs as Ne, watch as ie, nextTick as Ge, readonly as Ve } from "vue";
|
|
2
2
|
import { createContext as ke } from "reka-ui";
|
|
3
3
|
import { getBemBlock as We, getBemElement as I, usePCId as pe, normCls as be, generateVariantClassList as N } from "@pantograph/utils";
|
|
4
|
-
import { m as se, k as A, v as He, s as Je } from "./Icon.vue_vue_type_style_index_0_lang-
|
|
4
|
+
import { m as se, k as A, v as He, s as Je } from "./Icon.vue_vue_type_style_index_0_lang-B7R2mn8M.js";
|
|
5
5
|
import { cva as we } from "class-variance-authority";
|
|
6
|
-
import { _ as xe } from "./Progress.vue_vue_type_style_index_0_lang-
|
|
7
|
-
import { _ as Ke } from "./FloatButton.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { _ as G } from "./IconButton.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { _ as Xe } from "./Image.vue_vue_type_style_index_0_lang-
|
|
6
|
+
import { _ as xe } from "./Progress.vue_vue_type_style_index_0_lang-RUQAh1En.js";
|
|
7
|
+
import { _ as Ke } from "./FloatButton.vue_vue_type_script_setup_true_lang-C19Ol_4x.js";
|
|
8
|
+
import { _ as G } from "./IconButton.vue_vue_type_script_setup_true_lang-BM-cRmSJ.js";
|
|
9
|
+
import { _ as Xe } from "./Image.vue_vue_type_style_index_0_lang-CoYnugv1.js";
|
|
10
10
|
import { isFunction as K, throttle as Ye, pick as Ze, cloneDeep as _ } from "es-toolkit";
|
|
11
11
|
import { g as q } from "./options-Bh1s18jm.js";
|
|
12
|
-
import { _ as Qe } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-
|
|
12
|
+
import { _ as Qe } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-DAD_Pguk.js";
|
|
13
13
|
const _e = We("upload"), ee = I(_e, "list"), z = I(ee, "item"), [X, et] = ke("Upload"), Ce = (s, t) => {
|
|
14
14
|
if (s && t) {
|
|
15
15
|
const e = Array.isArray(t) ? t : t.split(","), o = s.name || "", n = s.type || "", l = n.replace(/\/.*$/, "");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),te=require("reka-ui"),y=require("@pantograph/utils"),B=require("./Icon.vue_vue_type_style_index_0_lang-DyeL9Lem.js"),ne=require("class-variance-authority"),se=require("./Progress.vue_vue_type_style_index_0_lang-DNe_dcRZ.js"),Ce=require("./FloatButton.vue_vue_type_script_setup_true_lang-CxSElBbb.js"),R=require("./IconButton.vue_vue_type_script_setup_true_lang-Bz66rcDQ.js"),we=require("./Image.vue_vue_type_style_index_0_lang-D7buZGTj.js"),v=require("es-toolkit"),S=require("./options-CY2uxp5A.js"),be=require("./GraphicalObject.vue_vue_type_script_setup_true_lang-WjnCG0pe.js"),J=y.getBemBlock("upload"),N=y.getBemElement(J,"list"),b=y.getBemElement(N,"item"),[D,oe]=te.createContext("Upload"),re=(s,n)=>{if(s&&n){const t=Array.isArray(n)?n:n.split(","),r=s.name||"",o=s.type||"",a=o.replace(/\/.*$/,"");return t.some(p=>{const f=p.trim();if(/^\*(?<temp1>\/\*)?$/.test(p))return!0;if(f.charAt(0)==="."){const m=r.toLowerCase(),l=f.toLowerCase();let g=[l];return(l===".jpg"||l===".jpeg")&&(g=[".jpg",".jpeg"]),g.some(u=>m.endsWith(u))}return/\/\*$/.test(f)?a===f.replace(/\/.*$/,""):!!(o===f||/^\w+$/.test(f))})}return!0},Be=(s,n,t=1*1024*1024)=>{const r=[];let o=0,a=0;for(;o<s.size;){const p=Math.min(o+t,s.size),f=s.slice(o,p);r.push({chunk:f,chunkSize:p-o,index:a,uid:n(),status:"waiting"}),o=p,a++}return r},ie=(s,{getUid:n,chunkFile:t,chunkSize:r})=>{if(B.isObject(s)){let o;if(s instanceof File)o=s;else try{o=new File([s],s.name??"",{type:s.type??""})}catch{o=new Blob([s],{type:s.type??""}),o.lastModified=new Date().getTime(),o.name=s.name??"",o.webkitRelativePath=""}if(B.isObject(o)&&o instanceof Blob){let a=[];return t&&(a=Be(o,()=>(n==null?void 0:n(!0))??y.usePCId(void 0,!0),r)),{uid:s.uid??(n==null?void 0:n())??y.usePCId(void 0,!0),originFileObj:o,status:"waiting",chunks:a!=null&&a.length&&(a==null?void 0:a.length)>1?a:void 0,chunksCount:a!=null&&a.length&&(a==null?void 0:a.length)>1?a.length:void 0,name:o==null?void 0:o.name,type:o==null?void 0:o.type,size:o==null?void 0:o.size,lastModified:o==null?void 0:o.lastModified,thumbUrl:void 0}}}},ze=(s,n)=>{if(B.isObject(s))return s instanceof Blob||s instanceof File?ie(s,n):(!s.uid&&!Object.isFrozen(s)&&(s.uid=n.getUid()),s)},le=["error","paused","done","uploading","waiting"],K=["md","lg","xlg"],X=["image","card"],ae=["outline","transparent"],W={other:{icon:"tabler:file-text",fg:"primary",bg:"primary-subtle"},text:{icon:"tabler:file-typography",fg:"primary",bg:"primary-subtle"},image:{icon:"tabler:photo",fg:"primary",bg:"primary-subtle"},video:{icon:"tabler:video",fg:"primary",bg:"primary-subtle"},zip:{icon:"tabler:file-zip",fg:"primary",bg:"primary-subtle"},pdf:{icon:"tabler:file-type-pdf",fg:"red",bg:"red-subtle"},document:{icon:"tabler:file-type-docx",fg:"primary",bg:"primary-subtle"},excel:{icon:"tabler:file-type-csv",fg:"green",bg:"green-subtle"}},Ue={image:["3fr","arw","bmp","dib","cr2","crw","dng","gif","heic","heif","ico","jfif","jpe","jpeg","jpg","jp2","nef","png","raf","raw","rw2","sr2","svg","svg","tga","tif","tiff","wdp","webp"],video:["3g2","3gp2","3gp","3gpp","asf","asx","avi","flv","m1v","m2v","mod","mp2v","mpa","mpe","mpv2","mpeg","mpegvideo","m2t","m2ts","tts","ts","mkv","mp4v","mp4","mov","m4v","mjpeg","mts","ogv","webm","wm","wmv","wmx","wvx"],text:["addin","dtsconfig","vssettings","vstemplate","xml","xrm-ms","xsd","xsl","cd","cs","csproj","iss","py","pyw","rc","rc2","rct","sln","srt","txt","user","vb","vbproj","vdp","vdproj","vspscc","vsscc","vssscc","contact","css","group","html","htm","shtml","htc","ics","iqy","odc","sct","wsc","vcf","vtt"],zip:["zip","7z","rar","tar.gz"],document:["doc","docx","odt","rtf"],excel:["xls","xlsx","csv","ods"],pdf:["pdf"]},ce=s=>{if(s){for(const[n,t]of Object.entries(Ue))if(t.includes(s.toLowerCase()))return n}return"other"},ue=(s="")=>{const n=s.split("/"),r=n[n.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},Y=s=>{var n,t,r;return(r=(t=(n=s==null?void 0:s.split)==null?void 0:n.call(s,"/"))==null?void 0:t.pop)==null?void 0:r.call(t)},Ie=s=>{var t;let n=Y((s==null?void 0:s.type)||((t=s==null?void 0:s.originFileObj)==null?void 0:t.type));if(s!=null&&s.url&&!n)try{n=ue(s==null?void 0:s.url)}catch{}return n},H=s=>ce(s)==="image",pe=s=>{if(s.type&&!s.thumbUrl)return H(Y(s.type));const n=s.thumbUrl||s.url||"",t=ue(n);return/^data:image\//.test(n)||H(t)?!0:!(/^data:/.test(n)||t)},Ee=e.defineComponent({...S.getComponentOptions("UploadListItemImage"),__name:"UploadListItemImage",setup(s){const n=D(),t=Z(),r=()=>{var o,a,p;v.isFunction((o=t.props.uploadFile)==null?void 0:o.cancel)&&((p=(a=t.props.uploadFile).cancel)==null||p.call(a)),n.remove(t.props.uploadFile)};return(o,a)=>{var p;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(t).props.uploadFile.status!=="waiting"?(e.openBlock(),e.createBlock(we._sfc_main,{key:0,src:e.unref(pe)(e.unref(t).props.uploadFile)?e.unref(t).props.uploadFile.thumbUrl??e.unref(t).props.uploadFile.url:void 0,aspectRatio:"1:1",class:e.normalizeClass(e.unref(y.getBemElement)(e.unref(b),"image")),sizeRange:"xsm",alt:e.unref(t).label.value,hovered:e.unref(t).props.uploadFile.status==="uploading",width:"100%"},e.createSlots({_:2},[["error","done"].includes(e.unref(t).props.uploadFile.status)?{name:"actions",fn:e.withCtx(()=>[e.unref(t).props.uploadFile.status==="done"?(e.openBlock(),e.createBlock(R._sfc_main,{key:0,color:"neutral",type:"ghost",icon:"tabler:eye",size:"sm",onClick:a[0]||(a[0]=f=>e.unref(n).emit("preview",e.unref(t).props.uploadFile))})):e.unref(t).props.uploadFile.status==="error"?(e.openBlock(),e.createBlock(R._sfc_main,{key:1,color:"neutral",type:"ghost",icon:"tabler:reload",size:"sm",onClick:a[1]||(a[1]=f=>e.unref(n).resetRequest(e.unref(t).props.uploadFile))})):e.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["src","class","alt","hovered"])):e.createCommentVNode("",!0),["uploading","waiting"].includes(e.unref(t).props.uploadFile.status)?(e.openBlock(),e.createBlock(se._sfc_main,{key:1,type:"circle",size:e.unref(n).progressSize.value,class:e.normalizeClass(e.unref(y.getBemElement)(e.unref(b),"progress")),indeterminate:e.unref(t).props.uploadFile.status==="waiting",percent:((p=e.unref(t).props.uploadFile)==null?void 0:p.percent)??0},null,8,["size","class","indeterminate","percent"])):e.createCommentVNode("",!0),e.createVNode(Ce._sfc_main,{class:e.normalizeClass(e.unref(y.normCls)(e.unref(y.getBemElement)(e.unref(b),"cancel"),"pantograph-tokens pantograph-dark")),color:"neutral",icon:"tabler:x",size:"sm",onClick:r},null,8,["class"])],64)}}}),Fe=e.defineComponent({...S.getComponentOptions("UploadFileGO"),__name:"UploadFileGO",setup(s){const n=Z(),t=D(),r=e.computed(()=>ce(Ie(n.props.uploadFile))),o=e.computed(()=>v.isFunction(t.props.getFileIcon)?t.props.getFileIcon(n.props.uploadFile):W[r.value].icon),a=e.computed(()=>W[r.value].fg),p=e.computed(()=>W[r.value].bg),f=()=>{var u,_,I,E;const g=(_=(u=t.slots).go)==null?void 0:_.call(u,{uploadFile:n.props.uploadFile});return B.isEmptyElement(g)?pe(n.props.uploadFile)?e.h("img",{class:y.getBemElement(b,"thumb"),alt:n.props.uploadFile.name??"",src:((I=n.props.uploadFile)==null?void 0:I.thumbUrl)??((E=n.props.uploadFile)==null?void 0:E.url)}):null:g},m=()=>{var u,_;const g=(_=(u=t.slots).goIcon)==null?void 0:_.call(u,{uploadFile:n.props.uploadFile});return B.isEmptyElement(g)?null:g},l=()=>e.h(be._sfc_main,{size:t.goSize.value,icon:o.value,fg:a.value,bg:p.value},{default:f,icon:m});return(g,u)=>(e.openBlock(),e.createBlock(l))}}),Le=e.defineComponent({...S.getComponentOptions("UploadListItemCard"),__name:"UploadListItemCard",setup(s){const n=D(),t=Z(),r=()=>{var g,u;const m=(u=(g=n.slots).description)==null?void 0:u.call(g,{uploadFile:t.props.uploadFile});let l;if(B.isEmptyElement(m)||(l=m),t.props.uploadFile.description&&(l=t.props.uploadFile.description),l)return e.h("div",{class:y.getBemElement(b,"description")},l)},o=()=>{var l,g;const m=(g=(l=n.slots).title)==null?void 0:g.call(l,{uploadFile:t.props.uploadFile});return B.isEmptyElement(m)?t.label.value:m},a=()=>{var m;if(v.isFunction(n.props.onDownload))return n.props.onDownload(t.props.uploadFile);if((m=t.props.uploadFile)!=null&&m.url&&typeof window<"u")return window.open(t.props.uploadFile.url)},p=e.computed(()=>{var m,l;return(m=t.props.uploadFile)!=null&&m.percent&&((l=t.props.uploadFile)==null?void 0:l.status)!=="waiting"?`${(t.props.uploadFile.percent??0).toFixed(0)}%`:"waiting..."}),f=(m,l)=>{var u,_,I,E;const g=(_=(u=n.slots)==null?void 0:u.actions)==null?void 0:_.call(u,{...n,uploadFile:t.props.uploadFile,downloadFile:a});return B.isEmptyElement(g)?(E=(I=l.slots)==null?void 0:I.default)==null?void 0:E.call(I,{}):g};return(m,l)=>{var g;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(n).props.go?(e.openBlock(),e.createBlock(Fe,{key:0})):e.createCommentVNode("",!0),["error","done"].includes(e.unref(t).props.uploadFile.status)?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(e.unref(y.getBemElement)(e.unref(b),"content"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(y.getBemElement)(e.unref(b),"title"))},[e.createVNode(o)],2),e.unref(t).props.uploadFile.status==="error"?(e.openBlock(),e.createBlock(B._sfc_main$4,{key:0,message:"Failed",status:"error"})):e.unref(n).props.size!=="md"?(e.openBlock(),e.createBlock(r,{key:1})):e.createCommentVNode("",!0)],2)):(e.openBlock(),e.createBlock(se._sfc_main,{key:1,class:e.normalizeClass(e.unref(y.getBemElement)(e.unref(b),"progress")),percent:((g=e.unref(t).props.uploadFile)==null?void 0:g.percent)??0,label:e.unref(t).label.value,helperText:p.value,helperTextCls:e.unref(y.getBemElement)(e.unref(b),"percent")},{label:e.withCtx(()=>[e.createVNode(o)]),_:1},8,["class","percent","label","helperText","helperTextCls"])),e.createVNode(f,null,{default:e.withCtx(()=>{var u;return[e.unref(t).props.uploadFile.status==="done"?(e.openBlock(),e.createBlock(R._sfc_main,{key:0,icon:"tabler:download",size:"sm",type:"ghost",color:"neutral",onClick:a})):e.createCommentVNode("",!0),e.unref(n).props.pausableChunked&&e.unref(t).props.uploadFile.status==="uploading"&&((u=e.unref(t).props.uploadFile.chunks)!=null&&u.length)&&e.unref(v.isFunction)(e.unref(t).props.uploadFile.cancel)?(e.openBlock(),e.createBlock(R._sfc_main,{key:1,icon:"tabler:pause",size:"sm",type:"ghost",color:"neutral",onClick:e.unref(t).props.uploadFile.cancel},null,8,["onClick"])):e.unref(n).canRunUpload(e.unref(t).props.uploadFile)?(e.openBlock(),e.createBlock(R._sfc_main,{key:2,icon:["paused","waiting"].includes(e.unref(t).props.uploadFile.status)?"tabler:player-play":"tabler:reload",size:"sm",type:"ghost",color:"neutral",onClick:l[0]||(l[0]=_=>e.unref(n).resetRequest(e.unref(t).props.uploadFile))},null,8,["icon"])):e.createCommentVNode("",!0),e.createVNode(R._sfc_main,{icon:["done","error"].includes(e.unref(t).props.uploadFile.status)?"tabler:trash":"tabler:x",size:"sm",type:"ghost",color:"neutral",onClick:l[1]||(l[1]=_=>e.unref(n).remove(e.unref(t).props.uploadFile))},null,8,["icon"])]}),_:1})],64)}}}),[Z,Te]=te.createContext("UploadItem"),Se=e.defineComponent({...S.getComponentOptions("UploadListItem"),__name:"UploadListItem",props:{uploadFile:{}},setup(s){const n=s,t=ne.cva(b,{variants:{size:y.generateVariantClassList(K,b),listType:y.generateVariantClassList(X,b),type:y.generateVariantClassList(ae,b),status:y.generateVariantClassList(le,b)}}),r=e.computed(()=>{var p,f,m;return((p=n.uploadFile)==null?void 0:p.name)??((m=(f=n.uploadFile)==null?void 0:f.originFileObj)==null?void 0:m.name)}),o=D();Te({props:n,label:r});const a=()=>{var f,m;const p=(m=(f=o.slots).listItem)==null?void 0:m.call(f,{...o,uploadFile:n.uploadFile});return B.isEmptyElement(p)?o.props.listType==="card"?e.h(Le):e.h(Ee):p};return(p,f)=>{var m;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(t)({size:e.unref(o).props.size,listType:e.unref(o).props.listType,type:e.unref(o).props.type,status:(m=p.uploadFile)==null?void 0:m.status}))},[e.createVNode(a)],2)}}}),Pe=e.defineComponent({...S.getComponentOptions("UploadList"),__name:"UploadList",setup(s){const n=D(),t=ne.cva(N,{variants:{size:y.generateVariantClassList(K,N),listType:y.generateVariantClassList(X,N)}}),r=()=>{var a,p;const o=(p=(a=n.slots).list)==null?void 0:p.call(a,n);return B.isEmptyElement(o)?n.fileList.value.map(f=>e.h(Se,{uploadFile:f,key:f.uid})):o};return(o,a)=>{var p;return(p=e.unref(n).fileList.value)!=null&&p.length?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(t)({size:e.unref(n).props.size,listType:e.unref(n).props.listType}))},[e.createVNode(r)],2)):e.createCommentVNode("",!0)}}}),Re=s=>new Promise(n=>{s.file(t=>{s.fullPath&&!t.webkitRelativePath&&Object.defineProperty(t,"webkitRelativePath",{value:s.fullPath.replace(/^\//,""),writable:!1}),n(t)})}),De=s=>{const n=s.createReader(),t=[];return new Promise(r=>{const o=()=>{n.readEntries(a=>{a.length===0?r(t):(t.push(...a),o())})};o()})},Ve=async s=>{const n=[],t=async r=>{if(r.isFile){const o=await Re(r);n.push(o)}else if(r.isDirectory){const o=await De(r);await Promise.all(o.map(t))}};return await Promise.all(s.map(r=>{var a;const o=(a=r.webkitGetAsEntry)==null?void 0:a.call(r);if(o)return t(o)})),n},Oe=["accept","webkitdirectory","multiple","value"],de=e.defineComponent({...S.getComponentOptions("UploadTrigger"),__name:"UploadTrigger",props:{directory:{type:Boolean},multiple:{type:Boolean},disabled:{type:Boolean},accept:{},class:{}},emits:["addFiles"],setup(s,{emit:n}){const t=n,r=s,o=e.ref(),a=u=>{const{files:_}=u.target;t("addFiles",Array.prototype.slice.call(_)),p.value&&(p.value.value="")},p=e.ref(),f=()=>{var u;(u=p.value)==null||u.click()},m=u=>{u.key==="Enter"&&f()},l=async u=>{if(u.preventDefault(),u.type==="dragover")return;let _=[];u.dataTransfer&&(r.directory?_=await Ve(Array.prototype.slice.call(u.dataTransfer.items)):_=Array.prototype.slice.call(u.dataTransfer.files)),r.multiple||(_=_.slice(0,1)),t("addFiles",_.filter(I=>re(I,r.accept)))},g=e.computed(()=>r.disabled?{}:{onClick:f,onKeydown:m,onDrop:l,onDragover:l});return(u,_)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:e.unref(y.normCls)(r.class)},g.value),[e.renderSlot(u.$slots,"default",e.normalizeProps(e.guardReactiveProps({...g.value,disabled:u.disabled,tabindex:"0"}))),e.createElementVNode("input",{type:"file",accept:u.accept,webkitdirectory:u.directory,multiple:u.multiple,value:o.value,onChange:a,ref_key:"inputRef",ref:p,style:{display:"none"}},null,40,Oe)],16))}}),T=200;function je(s){return new Promise(n=>{if(!s.type||!H(Y(s.type))){n("");return}const t=document.createElement("canvas");t.width=T,t.height=T,t.style.cssText=`position: fixed; left: 0; top: 0; width: ${T}px; height: ${T}px; z-index: 9999; display: none;`,document.body.appendChild(t);const r=t.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:a,height:p}=o;let f=T,m=T,l=0,g=0;a>p?(m=p*(T/a),g=-(m-f)/2):(f=a*(T/p),l=-(f-m)/2),r.drawImage(o,l,g,f,m);const u=t.toDataURL();document.body.removeChild(t),n(u)},o.crossOrigin="anonymous",s.type.startsWith("image/svg+xml")){const a=new FileReader;a.addEventListener("load",()=>{a.result&&(o.src=a.result)}),a.readAsDataURL(s)}else o.src=window.URL.createObjectURL(s)})}const Ne=e.defineComponent({...S.getComponentOptions("Upload",!1),__name:"Upload",props:{onDownload:{},parallelUpload:{type:Boolean},uploadOnSelect:{type:Boolean,default:!0},pausableChunked:{type:Boolean},noTrigger:{type:Boolean},fileList:{},size:{default:"md"},chunkSize:{},listType:{default:"card"},type:{default:"outline"},go:{type:Boolean,default:!0},maxCount:{},action:{},getFileIcon:{},triggerCls:{},directory:{type:Boolean},multiple:{type:Boolean,default:!0},disabled:{type:Boolean},accept:{}},emits:["update:fileList","change","preview","createRequest","resetRequest","remove"],setup(s,{expose:n,emit:t}){const r=s,o=t,a=e.useSlots(),p=e.useAttrs(),f=y.getBemElement(J,"file"),m=i=>y.usePCId(i?y.getBemElement(f,"chunk"):f,!0),l=e.ref([]),g=e.computed(()=>r.listType!=="image"&&r.pausableChunked);let u=!1;e.watch(()=>r.fileList,i=>{var h,x;u=!0,l.value=(x=(h=i??[])==null?void 0:h.map)==null?void 0:x.call(h,z=>{if(z&&B.isObject(z))return ze(z,{getUid:m,chunkFile:g.value,chunkSize:r.chunkSize})}).filter(Boolean),e.nextTick(()=>u=!1)},{immediate:!0,deep:!0}),e.watch(l,i=>{u||o("update:fileList",i??[])},{immediate:!0,deep:!0});const _=e.computed(()=>r.maxCount?Number(r.maxCount):0),I=i=>{if(i){const h=l.value.findIndex(x=>x.uid&&i.uid&&x.uid===i.uid);h===-1&&(!_.value||_.value>l.value.length)?l.value.push(i):h>-1&&l.value.splice(h,0,i),o("change",{file:v.cloneDeep(i),fileList:v.cloneDeep(l.value),event:"add"})}},E=e.computed(()=>r.accept??r.listType==="image"?"image/*":void 0),Q=i=>{B.isArray(i)&&i.filter(h=>!r.directory||re(h,E.value)).forEach(h=>{I(ie(h,{getUid:m,chunkFile:g.value,chunkSize:r.chunkSize}))})},$=e.computed(()=>{var i;return r.uploadOnSelect||r.listType==="image"?((i=l.value)==null?void 0:i.filter(h=>h.status==="waiting"&&h.originFileObj))??[]:[]}),V=e.computed(()=>{var i;return((i=l.value)==null?void 0:i.filter(h=>h.status==="uploading"&&(h==null?void 0:h.cancel)))??[]}),F=(i,h)=>{if(i&&h){const x=l.value.findIndex(z=>z.uid===i);x>-1&&(l.value[x]={...l.value[x],...h})}},q=async i=>{var h,x,z,A;if(i.uid&&l.value){const C=l.value.find(P=>P.uid===i.uid),ke=g.value&&((h=C==null?void 0:C.chunks)==null?void 0:h.length)&&(C==null?void 0:C.chunks.length)>1&&(C==null?void 0:C.status)==="uploading"&&(C==null?void 0:C.chunks.some(P=>P.status==="waiting"));if(C&&v.isFunction(r.action)&&(!V.value.length||r.parallelUpload||ke)){const P=new AbortController,_e=()=>{const k=()=>P.abort(),c=v.cloneDeep(C);if(g.value&&c.chunks&&c.chunks.length>1){const d=c.chunks.findIndex(U=>U.status==="waiting");d>-1&&(c.chunks[d]={...c.chunks[d],status:"uploading",cancel:k})}F(c.uid,{status:"uploading",cancel:k})};let w={signal:P.signal,onUploadProgress(k){},uid:i.uid};if(g.value&&C.chunks&&C.chunks.length>1&&C.chunks.some(k=>k.status==="waiting")){const k=C.chunks.find(c=>c.status==="waiting");k!=null&&k.uid&&(w={...w,...v.pick(k,["chunk","chunkSize","index"]),chunk_uid:k.uid,onUploadProgress(c){var U,O,L,ee;const d=v.cloneDeep(l.value.find(j=>j.uid===i.uid));if(d){const j=(U=d.chunks)==null?void 0:U.findIndex(G=>G.uid===k.uid);j!==void 0&&((O=d.chunks)!=null&&O[j])&&(d.chunks[j].percent=Math.round(c.loaded*100/c.total)),(L=d.chunks)!=null&&L.length&&((ee=d.chunks)==null?void 0:ee.length)>1?d.percent=Math.min(Math.max(d.chunks.reduce((G,xe)=>G+(xe.percent??0),0)/(100*d.chunks.length),0),100):d.percent=Math.round(c.loaded*100/c.total),F(d.uid,{chunks:d.chunks,percent:d.percent})}}})}else w={...w,file:C.originFileObj,onUploadProgress(k){const c=v.cloneDeep(l.value.find(d=>d.uid===i.uid));c&&F(c.uid,{percent:Math.round(k.loaded*100/k.total)})}};if(_e(),w.file||w.chunk){o("createRequest",i),o("change",{file:v.cloneDeep(i),fileList:v.cloneDeep(l.value),event:"upload"});try{let k=await r.action(w);try{typeof k=="string"&&(k=JSON.parse(k))}catch{}let c=v.cloneDeep(l.value.find(d=>d.uid===w.uid));if(c){let d=!1;if(w.chunk_uid&&((x=c.chunks)!=null&&x.length)&&c.chunks.length>1){const U=c.chunks.findIndex(L=>L.uid===w.chunk_uid);c.chunks[U]&&(c.chunks[U]={...c.chunks[U],cancel:void 0,status:"done",response:k??void 0});const O=c.chunks.every(L=>L.status==="done")?"done":"uploading";O==="done"?c={...c,cancel:void 0,status:O}:c.chunks.some(L=>L.status==="waiting")&&(d=!0)}else c={...c,cancel:void 0,status:"done",response:k??void 0};F(w.uid,c),d&&await q(c)}}catch(k){if(k.name==="CanceledError"){let c=v.cloneDeep(l.value.find(d=>d.uid===w.uid));if(c){if(w.chunk_uid&&((z=c.chunks)!=null&&z.length)&&c.chunks.length>1){const d=c.chunks.findIndex(U=>U.uid===w.chunk_uid);c.chunks[d]&&(c.chunks[d]={...c.chunks[d],cancel:void 0,status:"waiting"}),c={...c,cancel:void 0,status:"paused"},o("change",{file:v.cloneDeep(c),fileList:v.cloneDeep(l.value),event:"paused"})}else c={...c,cancel:void 0,status:"error"},o("change",{file:v.cloneDeep(c),fileList:v.cloneDeep(l.value),event:"cancel"});F(w.uid,c)}}else{let c=v.cloneDeep(l.value.find(d=>d.uid===w.uid));if(c){if(w.chunk_uid&&((A=c.chunks)!=null&&A.length)&&c.chunks.length>1){const d=c.chunks.findIndex(U=>U.uid===w.chunk_uid);c.chunks[d]&&(c.chunks[d]={...c.chunks[d],cancel:void 0,status:"waiting"})}c={...c,cancel:void 0,status:"error",error:k,percent:0},o("change",{file:v.cloneDeep(c),fileList:v.cloneDeep(l.value),event:"failed"}),F(w.uid,c)}}}}}}},me=async i=>{if(i.uid&&l.value)return F(i.uid,{status:"waiting"}),o("resetRequest",i),q(i)},fe=async i=>{var h;if(i.uid&&l.value){const x=v.cloneDeep(l.value??[]),z=x.findIndex(A=>A.uid===i.uid);z>-1&&x[z]&&((h=i.cancel)==null||h.call(i),x.splice(z,1),l.value=x,o("remove",i),o("change",{file:v.cloneDeep(i),fileList:v.cloneDeep(l.value),event:"remove"}))}},ge=i=>!!((r.parallelUpload||!V.value.length)&&(i.status==="paused"||i.status==="error"||(!r.uploadOnSelect||r.listType==="image")&&i.status==="waiting")),he=e.computed(()=>{switch(r.size){case"xlg":return"md";default:return"sm"}}),ve=v.throttle(()=>{(r.parallelUpload&&$.value.length||!V.value.length)&&$.value.forEach(q),(l.value||[]).forEach(i=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(i.originFileObj instanceof File||i.originFileObj instanceof Blob)||i.thumbUrl!==void 0||(i.thumbUrl="",je(i.originFileObj).then(h=>{const x=h||"";x!==i.thumbUrl&&F(i==null?void 0:i.uid,{thumbUrl:x})}))})},1e3);e.watch(()=>[r.parallelUpload,$.value,V.value,l.value],ve,{deep:!0,flush:"post"});const ye=e.computed(()=>{switch(r.size){case"xlg":return"sm";case"lg":return"xsm";default:return"x2sm"}}),M={props:r,attrs:p,slots:a,emit:o,fileList:e.readonly(l),progressSize:ye,uploadableFiles:$,uploadingFiles:V,createRequest:q,resetRequest:me,canRunUpload:ge,remove:fe,goSize:he,addFiles:Q};return oe(M),n(M),(i,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[i.noTrigger?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(de,{key:0,multiple:i.multiple,directory:i.directory,disabled:i.disabled,accept:E.value,onAddFiles:Q,class:e.normalizeClass(i.triggerCls)},{default:e.withCtx(x=>[e.renderSlot(i.$slots,"default",e.normalizeProps(e.guardReactiveProps(x)))]),_:3},8,["multiple","directory","disabled","accept","class"])),e.renderSlot(i.$slots,"list",e.normalizeProps(e.guardReactiveProps(M)),()=>[e.createVNode(Pe)])],64))}});exports.UploadListTypes=X;exports.UploadSizes=K;exports.UploadStatuses=le;exports.UploadTypes=ae;exports._sfc_main=Ne;exports._sfc_main$1=de;exports.injectUploadContext=D;exports.provideUploadContext=oe;exports.uploadListItemPrefix=b;exports.uploadListPrefix=N;exports.uploadPrefix=J;
|
|
1
|
+
"use strict";const e=require("vue"),te=require("reka-ui"),y=require("@pantograph/utils"),B=require("./Icon.vue_vue_type_style_index_0_lang-BtoF9TOg.js"),ne=require("class-variance-authority"),se=require("./Progress.vue_vue_type_style_index_0_lang-C722lIhW.js"),Ce=require("./FloatButton.vue_vue_type_script_setup_true_lang-B9v4WMrT.js"),R=require("./IconButton.vue_vue_type_script_setup_true_lang-C3TDFOqT.js"),we=require("./Image.vue_vue_type_style_index_0_lang-DOZUtl9e.js"),v=require("es-toolkit"),S=require("./options-CY2uxp5A.js"),be=require("./GraphicalObject.vue_vue_type_script_setup_true_lang-trZEw5N2.js"),J=y.getBemBlock("upload"),N=y.getBemElement(J,"list"),b=y.getBemElement(N,"item"),[D,oe]=te.createContext("Upload"),re=(s,n)=>{if(s&&n){const t=Array.isArray(n)?n:n.split(","),r=s.name||"",o=s.type||"",a=o.replace(/\/.*$/,"");return t.some(p=>{const f=p.trim();if(/^\*(?<temp1>\/\*)?$/.test(p))return!0;if(f.charAt(0)==="."){const m=r.toLowerCase(),l=f.toLowerCase();let g=[l];return(l===".jpg"||l===".jpeg")&&(g=[".jpg",".jpeg"]),g.some(u=>m.endsWith(u))}return/\/\*$/.test(f)?a===f.replace(/\/.*$/,""):!!(o===f||/^\w+$/.test(f))})}return!0},Be=(s,n,t=1*1024*1024)=>{const r=[];let o=0,a=0;for(;o<s.size;){const p=Math.min(o+t,s.size),f=s.slice(o,p);r.push({chunk:f,chunkSize:p-o,index:a,uid:n(),status:"waiting"}),o=p,a++}return r},ie=(s,{getUid:n,chunkFile:t,chunkSize:r})=>{if(B.isObject(s)){let o;if(s instanceof File)o=s;else try{o=new File([s],s.name??"",{type:s.type??""})}catch{o=new Blob([s],{type:s.type??""}),o.lastModified=new Date().getTime(),o.name=s.name??"",o.webkitRelativePath=""}if(B.isObject(o)&&o instanceof Blob){let a=[];return t&&(a=Be(o,()=>(n==null?void 0:n(!0))??y.usePCId(void 0,!0),r)),{uid:s.uid??(n==null?void 0:n())??y.usePCId(void 0,!0),originFileObj:o,status:"waiting",chunks:a!=null&&a.length&&(a==null?void 0:a.length)>1?a:void 0,chunksCount:a!=null&&a.length&&(a==null?void 0:a.length)>1?a.length:void 0,name:o==null?void 0:o.name,type:o==null?void 0:o.type,size:o==null?void 0:o.size,lastModified:o==null?void 0:o.lastModified,thumbUrl:void 0}}}},ze=(s,n)=>{if(B.isObject(s))return s instanceof Blob||s instanceof File?ie(s,n):(!s.uid&&!Object.isFrozen(s)&&(s.uid=n.getUid()),s)},le=["error","paused","done","uploading","waiting"],K=["md","lg","xlg"],X=["image","card"],ae=["outline","transparent"],W={other:{icon:"tabler:file-text",fg:"primary",bg:"primary-subtle"},text:{icon:"tabler:file-typography",fg:"primary",bg:"primary-subtle"},image:{icon:"tabler:photo",fg:"primary",bg:"primary-subtle"},video:{icon:"tabler:video",fg:"primary",bg:"primary-subtle"},zip:{icon:"tabler:file-zip",fg:"primary",bg:"primary-subtle"},pdf:{icon:"tabler:file-type-pdf",fg:"red",bg:"red-subtle"},document:{icon:"tabler:file-type-docx",fg:"primary",bg:"primary-subtle"},excel:{icon:"tabler:file-type-csv",fg:"green",bg:"green-subtle"}},Ue={image:["3fr","arw","bmp","dib","cr2","crw","dng","gif","heic","heif","ico","jfif","jpe","jpeg","jpg","jp2","nef","png","raf","raw","rw2","sr2","svg","svg","tga","tif","tiff","wdp","webp"],video:["3g2","3gp2","3gp","3gpp","asf","asx","avi","flv","m1v","m2v","mod","mp2v","mpa","mpe","mpv2","mpeg","mpegvideo","m2t","m2ts","tts","ts","mkv","mp4v","mp4","mov","m4v","mjpeg","mts","ogv","webm","wm","wmv","wmx","wvx"],text:["addin","dtsconfig","vssettings","vstemplate","xml","xrm-ms","xsd","xsl","cd","cs","csproj","iss","py","pyw","rc","rc2","rct","sln","srt","txt","user","vb","vbproj","vdp","vdproj","vspscc","vsscc","vssscc","contact","css","group","html","htm","shtml","htc","ics","iqy","odc","sct","wsc","vcf","vtt"],zip:["zip","7z","rar","tar.gz"],document:["doc","docx","odt","rtf"],excel:["xls","xlsx","csv","ods"],pdf:["pdf"]},ce=s=>{if(s){for(const[n,t]of Object.entries(Ue))if(t.includes(s.toLowerCase()))return n}return"other"},ue=(s="")=>{const n=s.split("/"),r=n[n.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},Y=s=>{var n,t,r;return(r=(t=(n=s==null?void 0:s.split)==null?void 0:n.call(s,"/"))==null?void 0:t.pop)==null?void 0:r.call(t)},Ie=s=>{var t;let n=Y((s==null?void 0:s.type)||((t=s==null?void 0:s.originFileObj)==null?void 0:t.type));if(s!=null&&s.url&&!n)try{n=ue(s==null?void 0:s.url)}catch{}return n},H=s=>ce(s)==="image",pe=s=>{if(s.type&&!s.thumbUrl)return H(Y(s.type));const n=s.thumbUrl||s.url||"",t=ue(n);return/^data:image\//.test(n)||H(t)?!0:!(/^data:/.test(n)||t)},Ee=e.defineComponent({...S.getComponentOptions("UploadListItemImage"),__name:"UploadListItemImage",setup(s){const n=D(),t=Z(),r=()=>{var o,a,p;v.isFunction((o=t.props.uploadFile)==null?void 0:o.cancel)&&((p=(a=t.props.uploadFile).cancel)==null||p.call(a)),n.remove(t.props.uploadFile)};return(o,a)=>{var p;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(t).props.uploadFile.status!=="waiting"?(e.openBlock(),e.createBlock(we._sfc_main,{key:0,src:e.unref(pe)(e.unref(t).props.uploadFile)?e.unref(t).props.uploadFile.thumbUrl??e.unref(t).props.uploadFile.url:void 0,aspectRatio:"1:1",class:e.normalizeClass(e.unref(y.getBemElement)(e.unref(b),"image")),sizeRange:"xsm",alt:e.unref(t).label.value,hovered:e.unref(t).props.uploadFile.status==="uploading",width:"100%"},e.createSlots({_:2},[["error","done"].includes(e.unref(t).props.uploadFile.status)?{name:"actions",fn:e.withCtx(()=>[e.unref(t).props.uploadFile.status==="done"?(e.openBlock(),e.createBlock(R._sfc_main,{key:0,color:"neutral",type:"ghost",icon:"tabler:eye",size:"sm",onClick:a[0]||(a[0]=f=>e.unref(n).emit("preview",e.unref(t).props.uploadFile))})):e.unref(t).props.uploadFile.status==="error"?(e.openBlock(),e.createBlock(R._sfc_main,{key:1,color:"neutral",type:"ghost",icon:"tabler:reload",size:"sm",onClick:a[1]||(a[1]=f=>e.unref(n).resetRequest(e.unref(t).props.uploadFile))})):e.createCommentVNode("",!0)]),key:"0"}:void 0]),1032,["src","class","alt","hovered"])):e.createCommentVNode("",!0),["uploading","waiting"].includes(e.unref(t).props.uploadFile.status)?(e.openBlock(),e.createBlock(se._sfc_main,{key:1,type:"circle",size:e.unref(n).progressSize.value,class:e.normalizeClass(e.unref(y.getBemElement)(e.unref(b),"progress")),indeterminate:e.unref(t).props.uploadFile.status==="waiting",percent:((p=e.unref(t).props.uploadFile)==null?void 0:p.percent)??0},null,8,["size","class","indeterminate","percent"])):e.createCommentVNode("",!0),e.createVNode(Ce._sfc_main,{class:e.normalizeClass(e.unref(y.normCls)(e.unref(y.getBemElement)(e.unref(b),"cancel"),"pantograph-tokens pantograph-dark")),color:"neutral",icon:"tabler:x",size:"sm",onClick:r},null,8,["class"])],64)}}}),Fe=e.defineComponent({...S.getComponentOptions("UploadFileGO"),__name:"UploadFileGO",setup(s){const n=Z(),t=D(),r=e.computed(()=>ce(Ie(n.props.uploadFile))),o=e.computed(()=>v.isFunction(t.props.getFileIcon)?t.props.getFileIcon(n.props.uploadFile):W[r.value].icon),a=e.computed(()=>W[r.value].fg),p=e.computed(()=>W[r.value].bg),f=()=>{var u,_,I,E;const g=(_=(u=t.slots).go)==null?void 0:_.call(u,{uploadFile:n.props.uploadFile});return B.isEmptyElement(g)?pe(n.props.uploadFile)?e.h("img",{class:y.getBemElement(b,"thumb"),alt:n.props.uploadFile.name??"",src:((I=n.props.uploadFile)==null?void 0:I.thumbUrl)??((E=n.props.uploadFile)==null?void 0:E.url)}):null:g},m=()=>{var u,_;const g=(_=(u=t.slots).goIcon)==null?void 0:_.call(u,{uploadFile:n.props.uploadFile});return B.isEmptyElement(g)?null:g},l=()=>e.h(be._sfc_main,{size:t.goSize.value,icon:o.value,fg:a.value,bg:p.value},{default:f,icon:m});return(g,u)=>(e.openBlock(),e.createBlock(l))}}),Le=e.defineComponent({...S.getComponentOptions("UploadListItemCard"),__name:"UploadListItemCard",setup(s){const n=D(),t=Z(),r=()=>{var g,u;const m=(u=(g=n.slots).description)==null?void 0:u.call(g,{uploadFile:t.props.uploadFile});let l;if(B.isEmptyElement(m)||(l=m),t.props.uploadFile.description&&(l=t.props.uploadFile.description),l)return e.h("div",{class:y.getBemElement(b,"description")},l)},o=()=>{var l,g;const m=(g=(l=n.slots).title)==null?void 0:g.call(l,{uploadFile:t.props.uploadFile});return B.isEmptyElement(m)?t.label.value:m},a=()=>{var m;if(v.isFunction(n.props.onDownload))return n.props.onDownload(t.props.uploadFile);if((m=t.props.uploadFile)!=null&&m.url&&typeof window<"u")return window.open(t.props.uploadFile.url)},p=e.computed(()=>{var m,l;return(m=t.props.uploadFile)!=null&&m.percent&&((l=t.props.uploadFile)==null?void 0:l.status)!=="waiting"?`${(t.props.uploadFile.percent??0).toFixed(0)}%`:"waiting..."}),f=(m,l)=>{var u,_,I,E;const g=(_=(u=n.slots)==null?void 0:u.actions)==null?void 0:_.call(u,{...n,uploadFile:t.props.uploadFile,downloadFile:a});return B.isEmptyElement(g)?(E=(I=l.slots)==null?void 0:I.default)==null?void 0:E.call(I,{}):g};return(m,l)=>{var g;return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(n).props.go?(e.openBlock(),e.createBlock(Fe,{key:0})):e.createCommentVNode("",!0),["error","done"].includes(e.unref(t).props.uploadFile.status)?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(e.unref(y.getBemElement)(e.unref(b),"content"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(y.getBemElement)(e.unref(b),"title"))},[e.createVNode(o)],2),e.unref(t).props.uploadFile.status==="error"?(e.openBlock(),e.createBlock(B._sfc_main$4,{key:0,message:"Failed",status:"error"})):e.unref(n).props.size!=="md"?(e.openBlock(),e.createBlock(r,{key:1})):e.createCommentVNode("",!0)],2)):(e.openBlock(),e.createBlock(se._sfc_main,{key:1,class:e.normalizeClass(e.unref(y.getBemElement)(e.unref(b),"progress")),percent:((g=e.unref(t).props.uploadFile)==null?void 0:g.percent)??0,label:e.unref(t).label.value,helperText:p.value,helperTextCls:e.unref(y.getBemElement)(e.unref(b),"percent")},{label:e.withCtx(()=>[e.createVNode(o)]),_:1},8,["class","percent","label","helperText","helperTextCls"])),e.createVNode(f,null,{default:e.withCtx(()=>{var u;return[e.unref(t).props.uploadFile.status==="done"?(e.openBlock(),e.createBlock(R._sfc_main,{key:0,icon:"tabler:download",size:"sm",type:"ghost",color:"neutral",onClick:a})):e.createCommentVNode("",!0),e.unref(n).props.pausableChunked&&e.unref(t).props.uploadFile.status==="uploading"&&((u=e.unref(t).props.uploadFile.chunks)!=null&&u.length)&&e.unref(v.isFunction)(e.unref(t).props.uploadFile.cancel)?(e.openBlock(),e.createBlock(R._sfc_main,{key:1,icon:"tabler:pause",size:"sm",type:"ghost",color:"neutral",onClick:e.unref(t).props.uploadFile.cancel},null,8,["onClick"])):e.unref(n).canRunUpload(e.unref(t).props.uploadFile)?(e.openBlock(),e.createBlock(R._sfc_main,{key:2,icon:["paused","waiting"].includes(e.unref(t).props.uploadFile.status)?"tabler:player-play":"tabler:reload",size:"sm",type:"ghost",color:"neutral",onClick:l[0]||(l[0]=_=>e.unref(n).resetRequest(e.unref(t).props.uploadFile))},null,8,["icon"])):e.createCommentVNode("",!0),e.createVNode(R._sfc_main,{icon:["done","error"].includes(e.unref(t).props.uploadFile.status)?"tabler:trash":"tabler:x",size:"sm",type:"ghost",color:"neutral",onClick:l[1]||(l[1]=_=>e.unref(n).remove(e.unref(t).props.uploadFile))},null,8,["icon"])]}),_:1})],64)}}}),[Z,Te]=te.createContext("UploadItem"),Se=e.defineComponent({...S.getComponentOptions("UploadListItem"),__name:"UploadListItem",props:{uploadFile:{}},setup(s){const n=s,t=ne.cva(b,{variants:{size:y.generateVariantClassList(K,b),listType:y.generateVariantClassList(X,b),type:y.generateVariantClassList(ae,b),status:y.generateVariantClassList(le,b)}}),r=e.computed(()=>{var p,f,m;return((p=n.uploadFile)==null?void 0:p.name)??((m=(f=n.uploadFile)==null?void 0:f.originFileObj)==null?void 0:m.name)}),o=D();Te({props:n,label:r});const a=()=>{var f,m;const p=(m=(f=o.slots).listItem)==null?void 0:m.call(f,{...o,uploadFile:n.uploadFile});return B.isEmptyElement(p)?o.props.listType==="card"?e.h(Le):e.h(Ee):p};return(p,f)=>{var m;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(t)({size:e.unref(o).props.size,listType:e.unref(o).props.listType,type:e.unref(o).props.type,status:(m=p.uploadFile)==null?void 0:m.status}))},[e.createVNode(a)],2)}}}),Pe=e.defineComponent({...S.getComponentOptions("UploadList"),__name:"UploadList",setup(s){const n=D(),t=ne.cva(N,{variants:{size:y.generateVariantClassList(K,N),listType:y.generateVariantClassList(X,N)}}),r=()=>{var a,p;const o=(p=(a=n.slots).list)==null?void 0:p.call(a,n);return B.isEmptyElement(o)?n.fileList.value.map(f=>e.h(Se,{uploadFile:f,key:f.uid})):o};return(o,a)=>{var p;return(p=e.unref(n).fileList.value)!=null&&p.length?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(t)({size:e.unref(n).props.size,listType:e.unref(n).props.listType}))},[e.createVNode(r)],2)):e.createCommentVNode("",!0)}}}),Re=s=>new Promise(n=>{s.file(t=>{s.fullPath&&!t.webkitRelativePath&&Object.defineProperty(t,"webkitRelativePath",{value:s.fullPath.replace(/^\//,""),writable:!1}),n(t)})}),De=s=>{const n=s.createReader(),t=[];return new Promise(r=>{const o=()=>{n.readEntries(a=>{a.length===0?r(t):(t.push(...a),o())})};o()})},Ve=async s=>{const n=[],t=async r=>{if(r.isFile){const o=await Re(r);n.push(o)}else if(r.isDirectory){const o=await De(r);await Promise.all(o.map(t))}};return await Promise.all(s.map(r=>{var a;const o=(a=r.webkitGetAsEntry)==null?void 0:a.call(r);if(o)return t(o)})),n},Oe=["accept","webkitdirectory","multiple","value"],de=e.defineComponent({...S.getComponentOptions("UploadTrigger"),__name:"UploadTrigger",props:{directory:{type:Boolean},multiple:{type:Boolean},disabled:{type:Boolean},accept:{},class:{}},emits:["addFiles"],setup(s,{emit:n}){const t=n,r=s,o=e.ref(),a=u=>{const{files:_}=u.target;t("addFiles",Array.prototype.slice.call(_)),p.value&&(p.value.value="")},p=e.ref(),f=()=>{var u;(u=p.value)==null||u.click()},m=u=>{u.key==="Enter"&&f()},l=async u=>{if(u.preventDefault(),u.type==="dragover")return;let _=[];u.dataTransfer&&(r.directory?_=await Ve(Array.prototype.slice.call(u.dataTransfer.items)):_=Array.prototype.slice.call(u.dataTransfer.files)),r.multiple||(_=_.slice(0,1)),t("addFiles",_.filter(I=>re(I,r.accept)))},g=e.computed(()=>r.disabled?{}:{onClick:f,onKeydown:m,onDrop:l,onDragover:l});return(u,_)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({class:e.unref(y.normCls)(r.class)},g.value),[e.renderSlot(u.$slots,"default",e.normalizeProps(e.guardReactiveProps({...g.value,disabled:u.disabled,tabindex:"0"}))),e.createElementVNode("input",{type:"file",accept:u.accept,webkitdirectory:u.directory,multiple:u.multiple,value:o.value,onChange:a,ref_key:"inputRef",ref:p,style:{display:"none"}},null,40,Oe)],16))}}),T=200;function je(s){return new Promise(n=>{if(!s.type||!H(Y(s.type))){n("");return}const t=document.createElement("canvas");t.width=T,t.height=T,t.style.cssText=`position: fixed; left: 0; top: 0; width: ${T}px; height: ${T}px; z-index: 9999; display: none;`,document.body.appendChild(t);const r=t.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:a,height:p}=o;let f=T,m=T,l=0,g=0;a>p?(m=p*(T/a),g=-(m-f)/2):(f=a*(T/p),l=-(f-m)/2),r.drawImage(o,l,g,f,m);const u=t.toDataURL();document.body.removeChild(t),n(u)},o.crossOrigin="anonymous",s.type.startsWith("image/svg+xml")){const a=new FileReader;a.addEventListener("load",()=>{a.result&&(o.src=a.result)}),a.readAsDataURL(s)}else o.src=window.URL.createObjectURL(s)})}const Ne=e.defineComponent({...S.getComponentOptions("Upload",!1),__name:"Upload",props:{onDownload:{},parallelUpload:{type:Boolean},uploadOnSelect:{type:Boolean,default:!0},pausableChunked:{type:Boolean},noTrigger:{type:Boolean},fileList:{},size:{default:"md"},chunkSize:{},listType:{default:"card"},type:{default:"outline"},go:{type:Boolean,default:!0},maxCount:{},action:{},getFileIcon:{},triggerCls:{},directory:{type:Boolean},multiple:{type:Boolean,default:!0},disabled:{type:Boolean},accept:{}},emits:["update:fileList","change","preview","createRequest","resetRequest","remove"],setup(s,{expose:n,emit:t}){const r=s,o=t,a=e.useSlots(),p=e.useAttrs(),f=y.getBemElement(J,"file"),m=i=>y.usePCId(i?y.getBemElement(f,"chunk"):f,!0),l=e.ref([]),g=e.computed(()=>r.listType!=="image"&&r.pausableChunked);let u=!1;e.watch(()=>r.fileList,i=>{var h,x;u=!0,l.value=(x=(h=i??[])==null?void 0:h.map)==null?void 0:x.call(h,z=>{if(z&&B.isObject(z))return ze(z,{getUid:m,chunkFile:g.value,chunkSize:r.chunkSize})}).filter(Boolean),e.nextTick(()=>u=!1)},{immediate:!0,deep:!0}),e.watch(l,i=>{u||o("update:fileList",i??[])},{immediate:!0,deep:!0});const _=e.computed(()=>r.maxCount?Number(r.maxCount):0),I=i=>{if(i){const h=l.value.findIndex(x=>x.uid&&i.uid&&x.uid===i.uid);h===-1&&(!_.value||_.value>l.value.length)?l.value.push(i):h>-1&&l.value.splice(h,0,i),o("change",{file:v.cloneDeep(i),fileList:v.cloneDeep(l.value),event:"add"})}},E=e.computed(()=>r.accept??r.listType==="image"?"image/*":void 0),Q=i=>{B.isArray(i)&&i.filter(h=>!r.directory||re(h,E.value)).forEach(h=>{I(ie(h,{getUid:m,chunkFile:g.value,chunkSize:r.chunkSize}))})},$=e.computed(()=>{var i;return r.uploadOnSelect||r.listType==="image"?((i=l.value)==null?void 0:i.filter(h=>h.status==="waiting"&&h.originFileObj))??[]:[]}),V=e.computed(()=>{var i;return((i=l.value)==null?void 0:i.filter(h=>h.status==="uploading"&&(h==null?void 0:h.cancel)))??[]}),F=(i,h)=>{if(i&&h){const x=l.value.findIndex(z=>z.uid===i);x>-1&&(l.value[x]={...l.value[x],...h})}},q=async i=>{var h,x,z,A;if(i.uid&&l.value){const C=l.value.find(P=>P.uid===i.uid),ke=g.value&&((h=C==null?void 0:C.chunks)==null?void 0:h.length)&&(C==null?void 0:C.chunks.length)>1&&(C==null?void 0:C.status)==="uploading"&&(C==null?void 0:C.chunks.some(P=>P.status==="waiting"));if(C&&v.isFunction(r.action)&&(!V.value.length||r.parallelUpload||ke)){const P=new AbortController,_e=()=>{const k=()=>P.abort(),c=v.cloneDeep(C);if(g.value&&c.chunks&&c.chunks.length>1){const d=c.chunks.findIndex(U=>U.status==="waiting");d>-1&&(c.chunks[d]={...c.chunks[d],status:"uploading",cancel:k})}F(c.uid,{status:"uploading",cancel:k})};let w={signal:P.signal,onUploadProgress(k){},uid:i.uid};if(g.value&&C.chunks&&C.chunks.length>1&&C.chunks.some(k=>k.status==="waiting")){const k=C.chunks.find(c=>c.status==="waiting");k!=null&&k.uid&&(w={...w,...v.pick(k,["chunk","chunkSize","index"]),chunk_uid:k.uid,onUploadProgress(c){var U,O,L,ee;const d=v.cloneDeep(l.value.find(j=>j.uid===i.uid));if(d){const j=(U=d.chunks)==null?void 0:U.findIndex(G=>G.uid===k.uid);j!==void 0&&((O=d.chunks)!=null&&O[j])&&(d.chunks[j].percent=Math.round(c.loaded*100/c.total)),(L=d.chunks)!=null&&L.length&&((ee=d.chunks)==null?void 0:ee.length)>1?d.percent=Math.min(Math.max(d.chunks.reduce((G,xe)=>G+(xe.percent??0),0)/(100*d.chunks.length),0),100):d.percent=Math.round(c.loaded*100/c.total),F(d.uid,{chunks:d.chunks,percent:d.percent})}}})}else w={...w,file:C.originFileObj,onUploadProgress(k){const c=v.cloneDeep(l.value.find(d=>d.uid===i.uid));c&&F(c.uid,{percent:Math.round(k.loaded*100/k.total)})}};if(_e(),w.file||w.chunk){o("createRequest",i),o("change",{file:v.cloneDeep(i),fileList:v.cloneDeep(l.value),event:"upload"});try{let k=await r.action(w);try{typeof k=="string"&&(k=JSON.parse(k))}catch{}let c=v.cloneDeep(l.value.find(d=>d.uid===w.uid));if(c){let d=!1;if(w.chunk_uid&&((x=c.chunks)!=null&&x.length)&&c.chunks.length>1){const U=c.chunks.findIndex(L=>L.uid===w.chunk_uid);c.chunks[U]&&(c.chunks[U]={...c.chunks[U],cancel:void 0,status:"done",response:k??void 0});const O=c.chunks.every(L=>L.status==="done")?"done":"uploading";O==="done"?c={...c,cancel:void 0,status:O}:c.chunks.some(L=>L.status==="waiting")&&(d=!0)}else c={...c,cancel:void 0,status:"done",response:k??void 0};F(w.uid,c),d&&await q(c)}}catch(k){if(k.name==="CanceledError"){let c=v.cloneDeep(l.value.find(d=>d.uid===w.uid));if(c){if(w.chunk_uid&&((z=c.chunks)!=null&&z.length)&&c.chunks.length>1){const d=c.chunks.findIndex(U=>U.uid===w.chunk_uid);c.chunks[d]&&(c.chunks[d]={...c.chunks[d],cancel:void 0,status:"waiting"}),c={...c,cancel:void 0,status:"paused"},o("change",{file:v.cloneDeep(c),fileList:v.cloneDeep(l.value),event:"paused"})}else c={...c,cancel:void 0,status:"error"},o("change",{file:v.cloneDeep(c),fileList:v.cloneDeep(l.value),event:"cancel"});F(w.uid,c)}}else{let c=v.cloneDeep(l.value.find(d=>d.uid===w.uid));if(c){if(w.chunk_uid&&((A=c.chunks)!=null&&A.length)&&c.chunks.length>1){const d=c.chunks.findIndex(U=>U.uid===w.chunk_uid);c.chunks[d]&&(c.chunks[d]={...c.chunks[d],cancel:void 0,status:"waiting"})}c={...c,cancel:void 0,status:"error",error:k,percent:0},o("change",{file:v.cloneDeep(c),fileList:v.cloneDeep(l.value),event:"failed"}),F(w.uid,c)}}}}}}},me=async i=>{if(i.uid&&l.value)return F(i.uid,{status:"waiting"}),o("resetRequest",i),q(i)},fe=async i=>{var h;if(i.uid&&l.value){const x=v.cloneDeep(l.value??[]),z=x.findIndex(A=>A.uid===i.uid);z>-1&&x[z]&&((h=i.cancel)==null||h.call(i),x.splice(z,1),l.value=x,o("remove",i),o("change",{file:v.cloneDeep(i),fileList:v.cloneDeep(l.value),event:"remove"}))}},ge=i=>!!((r.parallelUpload||!V.value.length)&&(i.status==="paused"||i.status==="error"||(!r.uploadOnSelect||r.listType==="image")&&i.status==="waiting")),he=e.computed(()=>{switch(r.size){case"xlg":return"md";default:return"sm"}}),ve=v.throttle(()=>{(r.parallelUpload&&$.value.length||!V.value.length)&&$.value.forEach(q),(l.value||[]).forEach(i=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(i.originFileObj instanceof File||i.originFileObj instanceof Blob)||i.thumbUrl!==void 0||(i.thumbUrl="",je(i.originFileObj).then(h=>{const x=h||"";x!==i.thumbUrl&&F(i==null?void 0:i.uid,{thumbUrl:x})}))})},1e3);e.watch(()=>[r.parallelUpload,$.value,V.value,l.value],ve,{deep:!0,flush:"post"});const ye=e.computed(()=>{switch(r.size){case"xlg":return"sm";case"lg":return"xsm";default:return"x2sm"}}),M={props:r,attrs:p,slots:a,emit:o,fileList:e.readonly(l),progressSize:ye,uploadableFiles:$,uploadingFiles:V,createRequest:q,resetRequest:me,canRunUpload:ge,remove:fe,goSize:he,addFiles:Q};return oe(M),n(M),(i,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[i.noTrigger?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(de,{key:0,multiple:i.multiple,directory:i.directory,disabled:i.disabled,accept:E.value,onAddFiles:Q,class:e.normalizeClass(i.triggerCls)},{default:e.withCtx(x=>[e.renderSlot(i.$slots,"default",e.normalizeProps(e.guardReactiveProps(x)))]),_:3},8,["multiple","directory","disabled","accept","class"])),e.renderSlot(i.$slots,"list",e.normalizeProps(e.guardReactiveProps(M)),()=>[e.createVNode(Pe)])],64))}});exports.UploadListTypes=X;exports.UploadSizes=K;exports.UploadStatuses=le;exports.UploadTypes=ae;exports._sfc_main=Ne;exports._sfc_main$1=de;exports.injectUploadContext=D;exports.provideUploadContext=oe;exports.uploadListItemPrefix=b;exports.uploadListPrefix=N;exports.uploadPrefix=J;
|
package/dist/index.js
CHANGED
|
@@ -1,59 +1,60 @@
|
|
|
1
|
-
import { B as
|
|
2
|
-
import { b as n, _ as m, c as x, a as C, B as c, i as
|
|
3
|
-
import { I as u, a as d, i as
|
|
4
|
-
import { _ as T } from "./ActionButton.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { _ as P, A as h } from "./Alert.vue_vue_type_style_index_0_lang-
|
|
6
|
-
import { _ as I, d as y, c as G, b as j, A as B, a as
|
|
7
|
-
import { _ as F } from "./Badge.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { _ as M } from "./Button.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { _ as O, b as w, C as R, i as Z, p as N, u as V, a as H } from "./Checkbox.vue_vue_type_style_index_0_lang-
|
|
10
|
-
import { _ as K } from "./Chip.vue_vue_type_style_index_0_lang-
|
|
11
|
-
import { a as Q, _ as W, C as X, i as Y, p as $ } from "./ChipGroup.vue_vue_type_style_index_0_lang-
|
|
12
|
-
import { _ as oe, i as
|
|
13
|
-
import { _ as re, C as pe, a as ie } from "./ColorSwatch.vue_vue_type_style_index_0_lang-
|
|
14
|
-
import { _ as me } from "./ColorSwatchGroup.vue_vue_type_style_index_0_lang-
|
|
15
|
-
import { _ as Ce, C as ce } from "./ColorTrigger.vue_vue_type_style_index_0_lang-
|
|
16
|
-
import { _ as Se, C as
|
|
17
|
-
import { Comment as
|
|
18
|
-
import { _ as
|
|
19
|
-
import { _ as Ue } from "./DataTable.vue_vue_type_style_index_0_lang-
|
|
1
|
+
import { B as s, a as t, b as r, c as p } from "./BaseBadge.model-D4ZfMIfM.js";
|
|
2
|
+
import { b as n, _ as m, c as x, a as C, B as c, i as f, p as S } from "./ButtonGroup.vue_vue_type_script_setup_true_lang-DPtJY6ad.js";
|
|
3
|
+
import { I as u, a as d, i as b, u as g } from "./BaseInput.vue_vue_type_style_index_0_lang-DAIshI9P.js";
|
|
4
|
+
import { _ as T } from "./ActionButton.vue_vue_type_script_setup_true_lang-Cf6yCXbu.js";
|
|
5
|
+
import { _ as P, A as h } from "./Alert.vue_vue_type_style_index_0_lang-B1ejRllC.js";
|
|
6
|
+
import { _ as I, d as y, c as G, b as j, A as B, a as L, i as k, p as A } from "./Avatar.vue_vue_type_style_index_0_lang-Bgm7HDue.js";
|
|
7
|
+
import { _ as F } from "./Badge.vue_vue_type_script_setup_true_lang-8isotHGM.js";
|
|
8
|
+
import { _ as M } from "./Button.vue_vue_type_script_setup_true_lang-XA4DNGoJ.js";
|
|
9
|
+
import { _ as O, b as w, C as R, i as Z, p as N, u as V, a as H } from "./Checkbox.vue_vue_type_style_index_0_lang-BixByAyD.js";
|
|
10
|
+
import { _ as K } from "./Chip.vue_vue_type_style_index_0_lang-NEwTV8WW.js";
|
|
11
|
+
import { a as Q, _ as W, C as X, i as Y, p as $ } from "./ChipGroup.vue_vue_type_style_index_0_lang-BUSJbKqF.js";
|
|
12
|
+
import { _ as oe, i as ae, p as se } from "./ColorPicker.vue_vue_type_style_index_0_lang-D-TuidEH.js";
|
|
13
|
+
import { _ as re, C as pe, a as ie } from "./ColorSwatch.vue_vue_type_style_index_0_lang-BnQek7XE.js";
|
|
14
|
+
import { _ as me } from "./ColorSwatchGroup.vue_vue_type_style_index_0_lang-BVax-s0S.js";
|
|
15
|
+
import { _ as Ce, C as ce } from "./ColorTrigger.vue_vue_type_style_index_0_lang-CkkgjBgU.js";
|
|
16
|
+
import { _ as Se, C as le, a as ue, i as de, p as be } from "./Combobox.vue_vue_type_style_index_0_lang-qkh6R1r0.js";
|
|
17
|
+
import { Comment as _e, CommentAction as Te, CommentEditor as ve, CommentMention as Pe, CommentReaction as he, CommentTrigger as ze, commentPrefix as Ie, injectCommentContext as ye, provideCommentContext as Ge, useComment as je } from "./Comment/index.js";
|
|
18
|
+
import { _ as Le, i as ke, p as Ae, u as Ee } from "./ConfigProvider.vue_vue_type_script_setup_true_lang-D8R0hBKt.js";
|
|
19
|
+
import { _ as Ue } from "./DataTable.vue_vue_type_style_index_0_lang-DWibqFCX.js";
|
|
20
20
|
import { _ as De, D as Oe } from "./Divider.vue_vue_type_style_index_0_lang-CfBklijs.js";
|
|
21
|
-
import { _ as Re, a as Ze, D as Ne } from "./DropZone.vue_vue_type_style_index_0_lang-
|
|
22
|
-
import { _ as He, E as Je } from "./Empty.vue_vue_type_style_index_0_lang-
|
|
23
|
-
import { _ as qe } from "./FloatButton.vue_vue_type_script_setup_true_lang-
|
|
24
|
-
import { _ as We, a as Xe, d as Ye, F as $e, e as eo, I as oo, f as
|
|
25
|
-
import { _ as So } from "./GOPicker.vue_vue_type_style_index_0_lang-
|
|
26
|
-
import { e as uo, g as
|
|
27
|
-
import { _ as
|
|
28
|
-
import { _ as vo, i as Po, p as ho } from "./GraphicalObjectGroup.vue_vue_type_style_index_0_lang-
|
|
29
|
-
import { _ as Io } from "./IconButton.vue_vue_type_script_setup_true_lang-
|
|
30
|
-
import { _ as Go, a as jo, I as Bo, b as
|
|
31
|
-
import { _ as Ao, a as Eo, I as Fo } from "./IndentLevel.vue_vue_type_style_index_0_lang-
|
|
32
|
-
import { _ as Mo } from "./Indicator.vue_vue_type_script_setup_true_lang-
|
|
33
|
-
import { _ as Oo } from "./Input.vue_vue_type_script_setup_true_lang-
|
|
34
|
-
import { _ as Ro } from "./InputNumber.vue_vue_type_script_setup_true_lang-
|
|
35
|
-
import { _ as No } from "./Kbd.vue_vue_type_style_index_0_lang-
|
|
36
|
-
import { _ as Ho, L as Jo } from "./Link.vue_vue_type_style_index_0_lang-
|
|
37
|
-
import { _ as qo, M as Qo, a as Wo, b as Xo, c as Yo, i as $o, p as
|
|
38
|
-
import { _ as
|
|
39
|
-
import { _ as
|
|
40
|
-
import { _ as
|
|
41
|
-
import { _ as
|
|
42
|
-
import { _ as
|
|
43
|
-
import { _ as
|
|
44
|
-
import { _ as
|
|
45
|
-
import { _ as
|
|
46
|
-
import { _ as
|
|
47
|
-
import { _ as
|
|
48
|
-
import { _ as
|
|
49
|
-
import { d as
|
|
50
|
-
import { _ as
|
|
51
|
-
import { _ as
|
|
52
|
-
import { _ as
|
|
53
|
-
import { _ as
|
|
54
|
-
import { c as
|
|
55
|
-
import { g as
|
|
56
|
-
import {
|
|
21
|
+
import { _ as Re, a as Ze, D as Ne } from "./DropZone.vue_vue_type_style_index_0_lang-BBefIpKz.js";
|
|
22
|
+
import { _ as He, E as Je } from "./Empty.vue_vue_type_style_index_0_lang-CrmvSRx9.js";
|
|
23
|
+
import { _ as qe } from "./FloatButton.vue_vue_type_script_setup_true_lang-C19Ol_4x.js";
|
|
24
|
+
import { _ as We, a as Xe, d as Ye, F as $e, e as eo, I as oo, f as ao, L as so, h as to, i as ro, b as po, k as io, l as no, g as mo, j as xo, p as Co, c as co } from "./Icon.vue_vue_type_style_index_0_lang-B7R2mn8M.js";
|
|
25
|
+
import { _ as So } from "./GOPicker.vue_vue_type_style_index_0_lang-6RHp9JKf.js";
|
|
26
|
+
import { e as uo, g as bo } from "./getEmojiList-CDYsgSBd.js";
|
|
27
|
+
import { _ as _o } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-DAD_Pguk.js";
|
|
28
|
+
import { _ as vo, i as Po, p as ho } from "./GraphicalObjectGroup.vue_vue_type_style_index_0_lang-0Unb2BCL.js";
|
|
29
|
+
import { _ as Io } from "./IconButton.vue_vue_type_script_setup_true_lang-BM-cRmSJ.js";
|
|
30
|
+
import { _ as Go, a as jo, I as Bo, b as Lo } from "./Image.vue_vue_type_style_index_0_lang-CoYnugv1.js";
|
|
31
|
+
import { _ as Ao, a as Eo, I as Fo } from "./IndentLevel.vue_vue_type_style_index_0_lang-D0opqHsf.js";
|
|
32
|
+
import { _ as Mo } from "./Indicator.vue_vue_type_script_setup_true_lang-IGWp2g2p.js";
|
|
33
|
+
import { _ as Oo } from "./Input.vue_vue_type_script_setup_true_lang-plOeiAN9.js";
|
|
34
|
+
import { _ as Ro } from "./InputNumber.vue_vue_type_script_setup_true_lang-DY9Ai7IV.js";
|
|
35
|
+
import { _ as No } from "./Kbd.vue_vue_type_style_index_0_lang-e2h3DAry.js";
|
|
36
|
+
import { _ as Ho, L as Jo } from "./Link.vue_vue_type_style_index_0_lang-BNgeWA4b.js";
|
|
37
|
+
import { _ as qo, M as Qo, a as Wo, b as Xo, c as Yo, i as $o, p as ea } from "./MenuItem.vue_vue_type_style_index_0_lang-krLrK1Ng.js";
|
|
38
|
+
import { _ as aa, P as sa } from "./Pagination.vue_vue_type_style_index_0_lang-NBV9Wedc.js";
|
|
39
|
+
import { _ as ra, a as pa, P as ia } from "./Popover.vue_vue_type_style_index_0_lang-G15betKT.js";
|
|
40
|
+
import { _ as ma, P as xa, a as Ca, e as ca, f as fa, g as Sa, i as la, c as ua, d as da, b as ba, p as ga } from "./Progress.vue_vue_type_style_index_0_lang-RUQAh1En.js";
|
|
41
|
+
import { _ as Ta, a as va } from "./RadioGroup.vue_vue_type_script_setup_true_lang-bbwaWuwD.js";
|
|
42
|
+
import { _ as ha, a as za, S as Ia } from "./ScrollContainer.vue_vue_type_style_index_0_lang-D-7EyvX8.js";
|
|
43
|
+
import { _ as Ga, S as ja } from "./Segmented.vue_vue_type_style_index_0_lang-DxFo4L8a.js";
|
|
44
|
+
import { _ as La, a as ka, S as Aa, b as Ea, c as Fa, i as Ua, p as Ma } from "./Select.vue_vue_type_style_index_0_lang-DBDbDVTi.js";
|
|
45
|
+
import { _ as Oa } from "./Shortcut.vue_vue_type_style_index_0_lang-BDiR4Uvi.js";
|
|
46
|
+
import { _ as Ra, a as Za, S as Na } from "./Skeleton.vue_vue_type_style_index_0_lang-2rpO7HY2.js";
|
|
47
|
+
import { _ as Ha, S as Ja } from "./Spinner.vue_vue_type_style_index_0_lang-DqBkihgb.js";
|
|
48
|
+
import { _ as qa, S as Qa } from "./Switch.vue_vue_type_style_index_0_lang-CjQw_UMX.js";
|
|
49
|
+
import { d as Xa, e as Ya, _ as $a, T as es, b as os, a as as, c as ss } from "./THead.vue_vue_type_style_index_0_lang-EuhTKYnH.js";
|
|
50
|
+
import { c as rs, a as ps, b as is, _ as ns, T as ms, i as xs, p as Cs, t as cs } from "./TabContent.vue_vue_type_script_setup_true_lang-CpKlxU3Z.js";
|
|
51
|
+
import { _ as Ss, T as ls, a as us } from "./Textarea.vue_vue_type_style_index_0_lang-9PbgPuWS.js";
|
|
52
|
+
import { _ as bs, i as gs, r as _s } from "./Tooltip.vue_vue_type_script_setup_true_lang-DX19Sbqt.js";
|
|
53
|
+
import { _ as vs, b as Ps, a as hs, T as zs, i as Is, p as ys, c as Gs, s as js } from "./Tree.vue_vue_type_style_index_0_lang-Bdt7S0WV.js";
|
|
54
|
+
import { _ as Ls, e as ks, d as As, U as Es, a as Fs, f as Us, i as Ms, p as Ds, c as Os, b as ws, u as Rs } from "./Upload.vue_vue_type_style_index_0_lang-CSbPiaOR.js";
|
|
55
|
+
import { c as Ns, g as Vs } from "./options-Bh1s18jm.js";
|
|
56
|
+
import { g as Js } from "./style-BEhqkSEE.js";
|
|
57
|
+
import { U as qs } from "./useInputDataStates-DcsUw2Fl.js";
|
|
57
58
|
const e = {};
|
|
58
59
|
export {
|
|
59
60
|
T as ActionButton,
|
|
@@ -64,9 +65,9 @@ export {
|
|
|
64
65
|
G as AvatarOnlineAlignments,
|
|
65
66
|
j as AvatarShapes,
|
|
66
67
|
B as AvatarSizes,
|
|
67
|
-
|
|
68
|
+
L as AvatarStrokes,
|
|
68
69
|
F as Badge,
|
|
69
|
-
|
|
70
|
+
s as BadgeColors,
|
|
70
71
|
t as BadgeColorsSubtle,
|
|
71
72
|
r as BadgeSizes,
|
|
72
73
|
p as BadgeTypes,
|
|
@@ -91,15 +92,15 @@ export {
|
|
|
91
92
|
Ce as ColorTrigger,
|
|
92
93
|
ce as ColorTriggerSizes,
|
|
93
94
|
Se as Combobox,
|
|
94
|
-
|
|
95
|
+
le as ComboboxSizes,
|
|
95
96
|
ue as ComboboxStatuses,
|
|
96
|
-
|
|
97
|
+
_e as Comment,
|
|
97
98
|
Te as CommentAction,
|
|
98
99
|
ve as CommentEditor,
|
|
99
100
|
Pe as CommentMention,
|
|
100
101
|
he as CommentReaction,
|
|
101
102
|
ze as CommentTrigger,
|
|
102
|
-
|
|
103
|
+
Le as ConfigProvider,
|
|
103
104
|
Ue as DataTable,
|
|
104
105
|
De as Divider,
|
|
105
106
|
Oe as DividerTypes,
|
|
@@ -114,7 +115,7 @@ export {
|
|
|
114
115
|
Ye as FormItemSizes,
|
|
115
116
|
$e as FormItemStatuses,
|
|
116
117
|
So as GOPicker,
|
|
117
|
-
|
|
118
|
+
_o as GraphicalObject,
|
|
118
119
|
vo as GraphicalObjectGroup,
|
|
119
120
|
eo as Icon,
|
|
120
121
|
Io as IconButton,
|
|
@@ -122,7 +123,7 @@ export {
|
|
|
122
123
|
Go as Image,
|
|
123
124
|
jo as ImageAspectRatios,
|
|
124
125
|
Bo as ImageSizeRanges,
|
|
125
|
-
|
|
126
|
+
Lo as ImageTypes,
|
|
126
127
|
Ao as IndentLevel,
|
|
127
128
|
Eo as IndentLevelShowLines,
|
|
128
129
|
Fo as IndentLevelSizes,
|
|
@@ -132,126 +133,134 @@ export {
|
|
|
132
133
|
u as InputSizes,
|
|
133
134
|
d as InputStatuses,
|
|
134
135
|
No as Kbd,
|
|
135
|
-
|
|
136
|
-
|
|
136
|
+
ao as Label,
|
|
137
|
+
so as LabelSizes,
|
|
137
138
|
Ho as Link,
|
|
138
139
|
Jo as LinkStyles,
|
|
139
140
|
qo as Menu,
|
|
140
141
|
Qo as MenuGaps,
|
|
141
142
|
Wo as MenuItem,
|
|
142
143
|
Xo as MenuItemSizes,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
144
|
+
aa as Pagination,
|
|
145
|
+
sa as PaginationJustifies,
|
|
146
|
+
ra as Popover,
|
|
147
|
+
pa as PopoverPlacements,
|
|
148
|
+
ia as PopoverSizes,
|
|
149
|
+
ma as Progress,
|
|
150
|
+
xa as ProgressBoldColors,
|
|
151
|
+
Ca as ProgressColors,
|
|
152
|
+
ca as ProgressSizes,
|
|
153
|
+
fa as ProgressStatuses,
|
|
154
|
+
Sa as ProgressTypes,
|
|
155
|
+
Ta as RadioGroup,
|
|
156
|
+
va as RadioGroupItem,
|
|
157
|
+
ha as ScrollContainer,
|
|
158
|
+
za as ScrollContainerSizes,
|
|
159
|
+
Ia as ScrollContainerTypes,
|
|
160
|
+
Ga as Segmented,
|
|
161
|
+
ja as SegmentedSizes,
|
|
162
|
+
La as Select,
|
|
163
|
+
ka as SelectLabel,
|
|
164
|
+
Aa as SelectOption,
|
|
165
|
+
Ea as SelectSizes,
|
|
166
|
+
Fa as SelectStatuses,
|
|
167
|
+
Oa as Shortcut,
|
|
168
|
+
Ra as Skeleton,
|
|
169
|
+
Za as SkeletonSizes,
|
|
170
|
+
Na as SkeletonTypes,
|
|
171
|
+
Ha as Spinner,
|
|
172
|
+
Ja as SpinnerSizes,
|
|
172
173
|
Yo as SubMenu,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
174
|
+
qa as Switch,
|
|
175
|
+
Qa as SwitchSizes,
|
|
176
|
+
Xa as TBody,
|
|
177
|
+
Ya as THead,
|
|
178
|
+
rs as TabContent,
|
|
179
|
+
ps as TabList,
|
|
180
|
+
is as TabTrigger,
|
|
181
|
+
$a as Table,
|
|
182
|
+
es as TableSizes,
|
|
183
|
+
ns as Tabs,
|
|
184
|
+
ms as TabsSizes,
|
|
185
|
+
os as Td,
|
|
186
|
+
Ss as Textarea,
|
|
187
|
+
ls as TextareaSizes,
|
|
188
|
+
us as TextareaStatuses,
|
|
189
|
+
as as Th,
|
|
190
|
+
bs as Tooltip,
|
|
191
|
+
ss as Tr,
|
|
192
|
+
vs as Tree,
|
|
193
|
+
Ps as TreeGaps,
|
|
194
|
+
hs as TreeNode,
|
|
195
|
+
zs as TreeSizes,
|
|
196
|
+
Ls as Upload,
|
|
197
|
+
ks as UploadListTypes,
|
|
198
|
+
As as UploadSizes,
|
|
199
|
+
Es as UploadStatuses,
|
|
200
|
+
Fs as UploadTrigger,
|
|
201
|
+
Us as UploadTypes,
|
|
202
|
+
qs as UseInputDataStates,
|
|
197
203
|
Ie as commentPrefix,
|
|
198
|
-
|
|
204
|
+
Ns as componentPrefix,
|
|
199
205
|
e as default,
|
|
200
206
|
uo as emojiList,
|
|
201
207
|
to as filterEmpty,
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
+
Vs as getComponentOptions,
|
|
209
|
+
bo as getEmojiList,
|
|
210
|
+
Js as getStyleObject,
|
|
211
|
+
gs as importTippyStyles,
|
|
212
|
+
k as injectAvatarGroupContext,
|
|
213
|
+
f as injectButtonGroupContext,
|
|
208
214
|
Z as injectCheckboxGroupContext,
|
|
209
215
|
Y as injectChipGroupContext,
|
|
210
|
-
|
|
216
|
+
ae as injectColorPickerContext,
|
|
211
217
|
de as injectComboboxContext,
|
|
212
218
|
ye as injectCommentContext,
|
|
213
|
-
|
|
219
|
+
ke as injectConfigContext,
|
|
214
220
|
ro as injectFormContext,
|
|
215
221
|
po as injectFormItemContext,
|
|
216
222
|
Po as injectGraphicalObjectGroupContext,
|
|
217
223
|
$o as injectMenuContext,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
224
|
+
la as injectProgressContext,
|
|
225
|
+
Ua as injectSelectContext,
|
|
226
|
+
xs as injectTabsContext,
|
|
227
|
+
Is as injectTreeContext,
|
|
228
|
+
Ms as injectUploadContext,
|
|
229
|
+
b as inputPrefix,
|
|
223
230
|
io as isEmptyElement,
|
|
224
231
|
no as isEmptyLikeLodash,
|
|
225
232
|
mo as isFragment,
|
|
226
233
|
xo as isValidElement,
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
234
|
+
ua as progressCirclePrefix,
|
|
235
|
+
da as progressLinePrefix,
|
|
236
|
+
ba as progressPrefix,
|
|
230
237
|
A as provideAvatarGroupContext,
|
|
231
238
|
S as provideButtonGroupContext,
|
|
232
239
|
N as provideCheckboxGroupContext,
|
|
233
240
|
$ as provideChipGroupContext,
|
|
234
|
-
|
|
235
|
-
|
|
241
|
+
se as provideColorPickerContext,
|
|
242
|
+
be as provideComboboxContext,
|
|
236
243
|
Ge as provideCommentContext,
|
|
237
244
|
Ae as provideConfigContext,
|
|
238
245
|
Co as provideFormContext,
|
|
239
246
|
co as provideFormItemContext,
|
|
240
247
|
ho as provideGraphicalObjectGroupContext,
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
248
|
+
ea as provideMenuContext,
|
|
249
|
+
ga as provideProgressContext,
|
|
250
|
+
Ma as provideSelectContext,
|
|
251
|
+
Cs as provideTabsContext,
|
|
252
|
+
ys as provideTreeContext,
|
|
253
|
+
Ds as provideUploadContext,
|
|
254
|
+
_s as registerTippy,
|
|
255
|
+
Gs as systemSizes,
|
|
256
|
+
js as systemSizesMap,
|
|
257
|
+
cs as tabsPrefix,
|
|
258
|
+
Os as uploadListItemPrefix,
|
|
259
|
+
ws as uploadListPrefix,
|
|
260
|
+
Rs as uploadPrefix,
|
|
252
261
|
V as useColoredPantographCheckbox,
|
|
253
262
|
H as useColoredPantographCheckboxGroup,
|
|
254
263
|
je as useComment,
|
|
255
264
|
Ee as useConfig,
|
|
256
|
-
|
|
265
|
+
g as useInputExposes
|
|
257
266
|
};
|