@pantograph/vue 0.25.3 → 0.25.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. package/dist/ActionButton/index.js +1 -1
  2. package/dist/ActionButton/index.umd.cjs +1 -1
  3. package/dist/{ActionButton.vue_vue_type_script_setup_true_lang-DBkXAjTl.js → ActionButton.vue_vue_type_script_setup_true_lang-DgRldvF-.js} +3 -3
  4. package/dist/ActionButton.vue_vue_type_script_setup_true_lang-uwPzOpXQ.js +1 -0
  5. package/dist/Alert/index.js +1 -1
  6. package/dist/Alert/index.umd.cjs +1 -1
  7. package/dist/{Alert.vue_vue_type_style_index_0_lang-Cq-qsJt9.js → Alert.vue_vue_type_style_index_0_lang-BWViURUx.js} +1 -1
  8. package/dist/{Alert.vue_vue_type_style_index_0_lang-t5KBNR2O.js → Alert.vue_vue_type_style_index_0_lang-CsM-N2Dn.js} +3 -3
  9. package/dist/Avatar/index.js +1 -1
  10. package/dist/Avatar/index.umd.cjs +1 -1
  11. package/dist/{Avatar.vue_vue_type_style_index_0_lang-BgD1ygnv.js → Avatar.vue_vue_type_style_index_0_lang-BU_5Uc1h.js} +12 -13
  12. package/dist/Avatar.vue_vue_type_style_index_0_lang-BmD6RFO6.js +1 -0
  13. package/dist/AvatarGroup/index.js +1 -1
  14. package/dist/AvatarGroup/index.umd.cjs +1 -1
  15. package/dist/Badge/index.js +1 -1
  16. package/dist/Badge/index.umd.cjs +1 -1
  17. package/dist/Badge.vue_vue_type_script_setup_true_lang-BNoY52kq.js +1 -0
  18. package/dist/{Badge.vue_vue_type_script_setup_true_lang-Cj_qLGab.js → Badge.vue_vue_type_script_setup_true_lang-D4qWXPmE.js} +11 -11
  19. package/dist/Base/BaseInput/BaseInput.d.ts +61 -0
  20. package/dist/Base/BaseInput/BaseInput.model.d.ts +4 -0
  21. package/dist/{BaseBadge.model-CahZXsyM.js → BaseBadge.model-D4ZfMIfM.js} +2 -2
  22. package/dist/BaseBadge.vue_vue_type_style_index_0_lang-MiT5JEP1.js +1 -0
  23. package/dist/{BaseBadge.vue_vue_type_style_index_0_lang-Dk4czjh8.js → BaseBadge.vue_vue_type_style_index_0_lang-iBj3bp4f.js} +16 -17
  24. package/dist/{BaseButton.vue_vue_type_style_index_0_lang-BaXVOcYh.js → BaseButton.vue_vue_type_style_index_0_lang-C90xeF5w.js} +9 -9
  25. package/dist/BaseButton.vue_vue_type_style_index_0_lang-C_rzn0QQ.js +1 -0
  26. package/dist/BaseInput.vue_vue_type_style_index_0_lang-Bh5c8r40.js +133 -0
  27. package/dist/BaseInput.vue_vue_type_style_index_0_lang-D1-OgRQO.js +1 -0
  28. package/dist/Button/index.js +1 -1
  29. package/dist/Button/index.umd.cjs +1 -1
  30. package/dist/{Button.vue_vue_type_script_setup_true_lang-BgHFlmkg.js → Button.vue_vue_type_script_setup_true_lang-BEUgRSHQ.js} +13 -13
  31. package/dist/Button.vue_vue_type_script_setup_true_lang-DayZ7O-B.js +1 -0
  32. package/dist/ButtonGroup/ButtonGroup.d.ts +1 -1
  33. package/dist/ButtonGroup/index.js +1 -1
  34. package/dist/{ButtonGroup.vue_vue_type_script_setup_true_lang-BflgAkUi.js → ButtonGroup.vue_vue_type_script_setup_true_lang-DPtJY6ad.js} +3 -3
  35. package/dist/Checkbox/index.js +1 -1
  36. package/dist/Checkbox/index.umd.cjs +1 -1
  37. package/dist/Checkbox.vue_vue_type_style_index_0_lang-B7TCf8DD.js +1 -0
  38. package/dist/{Checkbox.vue_vue_type_style_index_0_lang-AH6hpVLK.js → Checkbox.vue_vue_type_style_index_0_lang-DIUFXgde.js} +66 -66
  39. package/dist/CheckboxGroup/index.js +1 -1
  40. package/dist/CheckboxGroup/index.umd.cjs +1 -1
  41. package/dist/Chip/index.js +2 -2
  42. package/dist/Chip/index.umd.cjs +1 -1
  43. package/dist/Chip.vue_vue_type_style_index_0_lang-B4vliBhP.js +1 -0
  44. package/dist/{Chip.vue_vue_type_style_index_0_lang-B8BunJEO.js → Chip.vue_vue_type_style_index_0_lang-C-YVGRd5.js} +7 -7
  45. package/dist/ChipGroup/index.js +1 -1
  46. package/dist/ChipGroup/index.umd.cjs +1 -1
  47. package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-YPrXCjP8.js → ChipGroup.vue_vue_type_style_index_0_lang-Cb48sFjZ.js} +3 -3
  48. package/dist/{ChipGroup.vue_vue_type_style_index_0_lang-vXOtvFCA.js → ChipGroup.vue_vue_type_style_index_0_lang-Dz90pq2v.js} +1 -1
  49. package/dist/ColorPicker/index.js +1 -1
  50. package/dist/ColorPicker/index.umd.cjs +1 -1
  51. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-RKbw-kXI.js → ColorPicker.vue_vue_type_style_index_0_lang-Bbua4gDp.js} +2 -2
  52. package/dist/{ColorPicker.vue_vue_type_style_index_0_lang-CVMzIHWW.js → ColorPicker.vue_vue_type_style_index_0_lang-Cs_uP8_-.js} +7 -5
  53. package/dist/ColorSwatch/index.js +1 -1
  54. package/dist/ColorSwatch/index.umd.cjs +1 -1
  55. package/dist/{ColorSwatch-Cg9gjo7T.js → ColorSwatch-BTd2qIvs.js} +1 -1
  56. package/dist/{ColorSwatch-WoFuVYS7.js → ColorSwatch-BVj268xm.js} +1 -1
  57. package/dist/{ColorSwatch.vue_vue_type_style_index_0_lang-MMo80_Zm.js → ColorSwatch.vue_vue_type_style_index_0_lang-D9jCB_qS.js} +5 -6
  58. package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-DotrlbV2.js +1 -0
  59. package/dist/ColorSwatchGroup/index.js +1 -1
  60. package/dist/ColorSwatchGroup/index.umd.cjs +1 -1
  61. package/dist/{ColorSwatchGroup.vue_vue_type_style_index_0_lang-DPd_kewe.js → ColorSwatchGroup.vue_vue_type_style_index_0_lang-CMUC9JP1.js} +21 -20
  62. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-uGNt1Zw7.js +1 -0
  63. package/dist/ColorTrigger/index.js +1 -1
  64. package/dist/ColorTrigger/index.umd.cjs +1 -1
  65. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-BphrM3jX.js +1 -0
  66. package/dist/{ColorTrigger.vue_vue_type_style_index_0_lang-CpumcGKV.js → ColorTrigger.vue_vue_type_style_index_0_lang-CjRJLrjc.js} +13 -13
  67. package/dist/Combobox/Combobox.d.ts +2 -1
  68. package/dist/Combobox/ComboboxOption.d.ts +1 -1
  69. package/dist/Combobox/index.js +1 -1
  70. package/dist/Combobox/index.umd.cjs +1 -1
  71. package/dist/Combobox/types.d.ts +2 -0
  72. package/dist/Combobox.vue_vue_type_style_index_0_lang-BIpRzCHA.js +889 -0
  73. package/dist/Combobox.vue_vue_type_style_index_0_lang-DUhoDHJs.js +1 -0
  74. package/dist/Comment/CommentEditor.d.ts +1 -1
  75. package/dist/Comment/index.js +44 -42
  76. package/dist/Comment/index.umd.cjs +1 -1
  77. package/dist/ConfigProvider/ConfigProvider.d.ts +53 -0
  78. package/dist/ConfigProvider/index.d.ts +1 -50
  79. package/dist/ConfigProvider/index.js +6 -10
  80. package/dist/ConfigProvider/index.umd.cjs +1 -1
  81. package/dist/ConfigProvider.vue_vue_type_script_setup_true_lang-BAXkTMEt.js +1 -0
  82. package/dist/ConfigProvider.vue_vue_type_script_setup_true_lang-DSKgXw-g.js +124 -0
  83. package/dist/DataTable/DataTable.d.ts +1 -1
  84. package/dist/DataTable/index.js +1 -1
  85. package/dist/DataTable/index.umd.cjs +1 -1
  86. package/dist/DataTable/types.d.ts +1 -1
  87. package/dist/DataTable/useCell.d.ts +2 -2
  88. package/dist/DataTable/useColumnWrap.d.ts +1 -1
  89. package/dist/DataTable/useSelection.d.ts +1 -1
  90. package/dist/DataTable/useSort.d.ts +2 -2
  91. package/dist/{DataTable.vue_vue_type_style_index_0_lang-Dtr04Y-v.js → DataTable.vue_vue_type_style_index_0_lang-BIEqP-0I.js} +253 -257
  92. package/dist/DataTable.vue_vue_type_style_index_0_lang-itDia0W9.js +1 -0
  93. package/dist/DropZone/index.js +1 -1
  94. package/dist/DropZone/index.umd.cjs +1 -1
  95. package/dist/{DropZone.vue_vue_type_style_index_0_lang-DN-rlB8g.js → DropZone.vue_vue_type_style_index_0_lang-B9y7TlwK.js} +1 -1
  96. package/dist/{DropZone.vue_vue_type_style_index_0_lang-Cx_2fzcd.js → DropZone.vue_vue_type_style_index_0_lang-EJIu65Kx.js} +2 -2
  97. package/dist/Empty/index.js +1 -1
  98. package/dist/Empty/index.umd.cjs +1 -1
  99. package/dist/{Empty.vue_vue_type_style_index_0_lang-CLG9v3ny.js → Empty.vue_vue_type_style_index_0_lang-BUUZkqKK.js} +1 -1
  100. package/dist/{Empty.vue_vue_type_style_index_0_lang-Hb-71AW8.js → Empty.vue_vue_type_style_index_0_lang-CzxHjKoM.js} +6 -6
  101. package/dist/FloatButton/index.js +1 -1
  102. package/dist/FloatButton/index.umd.cjs +1 -1
  103. package/dist/{FloatButton.vue_vue_type_script_setup_true_lang-Cug29gXO.js → FloatButton.vue_vue_type_script_setup_true_lang-09oykls8.js} +11 -3
  104. package/dist/FloatButton.vue_vue_type_script_setup_true_lang-BkkyOUA7.js +1 -0
  105. package/dist/Form/index.js +1 -1
  106. package/dist/Form/index.umd.cjs +1 -1
  107. package/dist/GOPicker/GOPicker.model.d.ts +1 -1
  108. package/dist/GOPicker/index.js +1 -1
  109. package/dist/GOPicker/index.umd.cjs +1 -1
  110. package/dist/GOPicker.vue_vue_type_style_index_0_lang-BE8x9dGA.js +1 -0
  111. package/dist/{GOPicker.vue_vue_type_style_index_0_lang-DFuk8Yxv.js → GOPicker.vue_vue_type_style_index_0_lang-kynTp-m5.js} +28 -23
  112. package/dist/GraphicalObject/index.js +1 -1
  113. package/dist/GraphicalObject/index.umd.cjs +1 -1
  114. package/dist/{GraphicalObject.vue_vue_type_script_setup_true_lang-D6efb688.js → GraphicalObject.vue_vue_type_script_setup_true_lang-BZWcWAd8.js} +6 -6
  115. package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-X3qLlz8e.js +1 -0
  116. package/dist/GraphicalObjectGroup/index.js +1 -1
  117. package/dist/GraphicalObjectGroup/index.umd.cjs +1 -1
  118. package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DAXoXPPu.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-HhLovMZS.js} +1 -1
  119. package/dist/{GraphicalObjectGroup.vue_vue_type_style_index_0_lang-DtfNCdZu.js → GraphicalObjectGroup.vue_vue_type_style_index_0_lang-eUYKt1g8.js} +8 -8
  120. package/dist/Icon/index.d.ts +1 -4
  121. package/dist/Icon/index.js +4 -14
  122. package/dist/Icon/index.umd.cjs +1 -1
  123. package/dist/Icon.vue_vue_type_style_index_0_lang-5yqYwaOw.js +9 -0
  124. package/dist/Icon.vue_vue_type_style_index_0_lang-BMu3U4-l.js +2905 -0
  125. package/dist/IconButton/index.js +1 -1
  126. package/dist/IconButton/index.umd.cjs +1 -1
  127. package/dist/{IconButton.vue_vue_type_script_setup_true_lang-DIVceNgM.js → IconButton.vue_vue_type_script_setup_true_lang-B2mwpDQo.js} +11 -3
  128. package/dist/IconButton.vue_vue_type_script_setup_true_lang-DGXtxJVO.js +1 -0
  129. package/dist/Image/index.js +1 -1
  130. package/dist/Image/index.umd.cjs +1 -1
  131. package/dist/Image.vue_vue_type_style_index_0_lang-Dxp0n_0A.js +1 -0
  132. package/dist/{Image.vue_vue_type_style_index_0_lang-S9KjdezV.js → Image.vue_vue_type_style_index_0_lang-_1Vqh4mv.js} +8 -7
  133. package/dist/IndentLevel/IndentLevel.d.ts +2 -0
  134. package/dist/IndentLevel/index.js +1 -1
  135. package/dist/IndentLevel/index.umd.cjs +1 -1
  136. package/dist/IndentLevel.vue_vue_type_style_index_0_lang-BNXXU--A.js +1 -0
  137. package/dist/{IndentLevel.vue_vue_type_style_index_0_lang-CkNqK_Vg.js → IndentLevel.vue_vue_type_style_index_0_lang-DPL6yVwu.js} +30 -27
  138. package/dist/Indicator/index.js +1 -1
  139. package/dist/Indicator/index.umd.cjs +1 -1
  140. package/dist/Indicator.vue_vue_type_script_setup_true_lang-BAJid2ch.js +1 -0
  141. package/dist/{Indicator.vue_vue_type_script_setup_true_lang-Ca5Des7U.js → Indicator.vue_vue_type_script_setup_true_lang-BZQujvXX.js} +4 -4
  142. package/dist/Input/Input.d.ts +17 -35
  143. package/dist/Input/index.d.ts +1 -1
  144. package/dist/Input/index.js +5 -4
  145. package/dist/Input/index.umd.cjs +1 -1
  146. package/dist/Input.vue_vue_type_script_setup_true_lang-BhpGixbX.js +111 -0
  147. package/dist/Input.vue_vue_type_script_setup_true_lang-P-pBp4sf.js +1 -0
  148. package/dist/InputNumber/InputNumber.d.ts +79 -0
  149. package/dist/InputNumber/index.d.ts +2 -0
  150. package/dist/InputNumber/index.js +8 -0
  151. package/dist/InputNumber/index.umd.cjs +1 -0
  152. package/dist/InputNumber/utils/MiniDecimal.d.ts +69 -0
  153. package/dist/InputNumber/utils/numberUtil.d.ts +22 -0
  154. package/dist/InputNumber/utils/supportUtil.d.ts +1 -0
  155. package/dist/InputNumber.vue_vue_type_script_setup_true_lang-DcGG4i1C.js +1 -0
  156. package/dist/InputNumber.vue_vue_type_script_setup_true_lang-yrowDfWL.js +454 -0
  157. package/dist/Kbd/index.js +1 -1
  158. package/dist/Kbd/index.umd.cjs +1 -1
  159. package/dist/{Kbd.vue_vue_type_style_index_0_lang-Cm0Zvomv.js → Kbd.vue_vue_type_style_index_0_lang-XS49-yX4.js} +1 -1
  160. package/dist/{Kbd.vue_vue_type_style_index_0_lang-CUGyyeHh.js → Kbd.vue_vue_type_style_index_0_lang-q3jBcYir.js} +1 -1
  161. package/dist/Label/index.js +4 -4
  162. package/dist/Label/index.umd.cjs +1 -1
  163. package/dist/Link/index.js +1 -1
  164. package/dist/Link/index.umd.cjs +1 -1
  165. package/dist/{Link.vue_vue_type_style_index_0_lang-bdywEZns.js → Link.vue_vue_type_style_index_0_lang-DAQr5LuP.js} +6 -6
  166. package/dist/{Link.vue_vue_type_style_index_0_lang-BfC3SwbG.js → Link.vue_vue_type_style_index_0_lang-zFv3zzLA.js} +1 -1
  167. package/dist/Menu/Menu.d.ts +2 -2
  168. package/dist/Menu/index.js +1 -1
  169. package/dist/Menu/index.umd.cjs +1 -1
  170. package/dist/MenuItem/index.js +1 -1
  171. package/dist/MenuItem/index.umd.cjs +1 -1
  172. package/dist/MenuItem.vue_vue_type_style_index_0_lang-DRgLTDF9.js +1 -0
  173. package/dist/{MenuItem.vue_vue_type_style_index_0_lang-D-_-Iv3Y.js → MenuItem.vue_vue_type_style_index_0_lang-Tx1mw3fx.js} +80 -81
  174. package/dist/Pagination/index.js +1 -1
  175. package/dist/Pagination/index.umd.cjs +1 -1
  176. package/dist/Pagination.vue_vue_type_style_index_0_lang-BJSH2nV1.js +1 -0
  177. package/dist/Pagination.vue_vue_type_style_index_0_lang-DdoGJbhR.js +234 -0
  178. package/dist/Popover/index.js +1 -1
  179. package/dist/Popover/index.umd.cjs +1 -1
  180. package/dist/Popover/utils.d.ts +1 -1
  181. package/dist/Popover.vue_vue_type_style_index_0_lang-BgRvygIi.js +254 -0
  182. package/dist/Popover.vue_vue_type_style_index_0_lang-D7HUX-0i.js +1 -0
  183. package/dist/Progress/index.js +1 -1
  184. package/dist/Progress/index.umd.cjs +1 -1
  185. package/dist/Progress/types.d.ts +2 -0
  186. package/dist/Progress.vue_vue_type_style_index_0_lang-BECdYJmY.js +1 -0
  187. package/dist/{Progress.vue_vue_type_style_index_0_lang-Bm1S1Pxq.js → Progress.vue_vue_type_style_index_0_lang-ByAwM9mc.js} +75 -72
  188. package/dist/RadioGroup/index.js +1 -1
  189. package/dist/RadioGroup/index.umd.cjs +1 -1
  190. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-D8f-sgna.js +1 -0
  191. package/dist/{RadioGroup.vue_vue_type_script_setup_true_lang-BLN5fJDu.js → RadioGroup.vue_vue_type_script_setup_true_lang-Daq1nx9-.js} +4 -4
  192. package/dist/ScrollContainer/ScrollContainer.d.ts +1 -0
  193. package/dist/ScrollContainer/index.js +1 -1
  194. package/dist/ScrollContainer/index.umd.cjs +1 -1
  195. package/dist/{ScrollContainer.vue_vue_type_style_index_0_lang-D8IR7pw-.js → ScrollContainer.vue_vue_type_style_index_0_lang-Cp0bQf0N.js} +63 -60
  196. package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-DqKhWsL2.js +1 -0
  197. package/dist/Segmented/Segmented.d.ts +6 -3
  198. package/dist/Segmented/index.js +1 -1
  199. package/dist/Segmented/index.umd.cjs +1 -1
  200. package/dist/Segmented.vue_vue_type_style_index_0_lang-3JqUJ0d7.js +1 -0
  201. package/dist/{Segmented.vue_vue_type_style_index_0_lang-ZsksAX8A.js → Segmented.vue_vue_type_style_index_0_lang-B1uEmVPJ.js} +50 -46
  202. package/dist/Select/Select.d.ts +1 -1
  203. package/dist/Select/SelectTrigger.d.ts +2 -2
  204. package/dist/Select/index.js +1 -1
  205. package/dist/Select/index.umd.cjs +1 -1
  206. package/dist/{Select.vue_vue_type_style_index_0_lang-CxO4fB4g.js → Select.vue_vue_type_style_index_0_lang-CarDXTu5.js} +87 -88
  207. package/dist/Select.vue_vue_type_style_index_0_lang-ikZ5_KwB.js +1 -0
  208. package/dist/Shortcut/index.js +1 -1
  209. package/dist/Shortcut/index.umd.cjs +1 -1
  210. package/dist/{Shortcut.vue_vue_type_style_index_0_lang-maaUKoPJ.js → Shortcut.vue_vue_type_style_index_0_lang-C7MfNmHi.js} +1 -1
  211. package/dist/{Shortcut.vue_vue_type_style_index_0_lang-DiJX8oyf.js → Shortcut.vue_vue_type_style_index_0_lang-QKWaOeSf.js} +6 -6
  212. package/dist/Spinner/index.js +1 -1
  213. package/dist/Spinner/index.umd.cjs +1 -1
  214. package/dist/{Spinner.vue_vue_type_style_index_0_lang-D9QAUh3y.js → Spinner.vue_vue_type_style_index_0_lang-y2U5MnVr.js} +1 -1
  215. package/dist/{Spinner.vue_vue_type_style_index_0_lang-CRuHKobG.js → Spinner.vue_vue_type_style_index_0_lang-ypYtsXl_.js} +1 -1
  216. package/dist/SubMenu/index.js +1 -1
  217. package/dist/SubMenu/index.umd.cjs +1 -1
  218. package/dist/Switch/Switch.d.ts +1 -1
  219. package/dist/Switch/index.js +1 -1
  220. package/dist/Switch/index.umd.cjs +1 -1
  221. package/dist/{Switch.vue_vue_type_style_index_0_lang-BKZRF7si.js → Switch.vue_vue_type_style_index_0_lang-Dqy63Xsy.js} +6 -7
  222. package/dist/Switch.vue_vue_type_style_index_0_lang-G67verEB.js +1 -0
  223. package/dist/THead.vue_vue_type_style_index_0_lang-Bbxgbizj.js +1 -0
  224. package/dist/{THead.vue_vue_type_style_index_0_lang-D-NEZbDq.js → THead.vue_vue_type_style_index_0_lang-Dg4UjN2s.js} +14 -13
  225. package/dist/Table/index.js +1 -1
  226. package/dist/Table/index.umd.cjs +1 -1
  227. package/dist/Textarea/Textarea.d.ts +1 -0
  228. package/dist/Textarea/index.js +1 -1
  229. package/dist/Textarea/index.umd.cjs +1 -1
  230. package/dist/{Textarea.vue_vue_type_style_index_0_lang-DhnwRKGl.js → Textarea.vue_vue_type_style_index_0_lang-95EkbeEZ.js} +37 -35
  231. package/dist/Textarea.vue_vue_type_style_index_0_lang-Crls15aj.js +1 -0
  232. package/dist/Tree/Tree.d.ts +8 -13
  233. package/dist/Tree/Tree.model.d.ts +67 -37
  234. package/dist/Tree/TreeNode.d.ts +4 -92
  235. package/dist/Tree/TreePlaceholder.d.ts +9 -0
  236. package/dist/Tree/index.d.ts +2 -1
  237. package/dist/Tree/index.js +6 -5
  238. package/dist/Tree/index.umd.cjs +1 -1
  239. package/dist/Tree/utils.d.ts +18 -11
  240. package/dist/Tree.vue_vue_type_style_index_0_lang-CauWPkMW.js +737 -0
  241. package/dist/Tree.vue_vue_type_style_index_0_lang-DitveB9N.js +1 -0
  242. package/dist/Upload/Upload.d.ts +1 -1
  243. package/dist/Upload/index.js +1 -1
  244. package/dist/Upload/index.umd.cjs +1 -1
  245. package/dist/Upload/types.d.ts +1 -0
  246. package/dist/{Upload.vue_vue_type_style_index_0_lang-B4BO8f6l.js → Upload.vue_vue_type_style_index_0_lang-B9HYX_QI.js} +359 -351
  247. package/dist/Upload.vue_vue_type_style_index_0_lang-DhqA32eL.js +1 -0
  248. package/dist/exports.d.ts +4 -2
  249. package/dist/index.d.ts +1 -0
  250. package/dist/index.js +242 -255
  251. package/dist/index.umd.cjs +1 -1
  252. package/dist/style/index.css +1 -1
  253. package/dist/types/index.d.ts +12 -2
  254. package/dist/useInputDataStates-BWZ4Q3rt.js +1 -0
  255. package/dist/useInputDataStates-COzmxWTw.js +52 -0
  256. package/dist/utils/index.js +4 -4
  257. package/dist/utils/index.umd.cjs +1 -1
  258. package/dist/utils/sortPlaceholder.d.ts +6 -0
  259. package/package.json +12 -8
  260. package/dist/ActionButton.vue_vue_type_script_setup_true_lang-CMAU4Jot.js +0 -1
  261. package/dist/Avatar.vue_vue_type_style_index_0_lang-D_26B5fC.js +0 -1
  262. package/dist/Badge.vue_vue_type_script_setup_true_lang-DLIYFnk7.js +0 -1
  263. package/dist/BaseBadge.vue_vue_type_style_index_0_lang-D6KaVBcQ.js +0 -1
  264. package/dist/BaseButton.vue_vue_type_style_index_0_lang-CEI8TTwc.js +0 -1
  265. package/dist/Button.vue_vue_type_script_setup_true_lang-DQeV7jFJ.js +0 -1
  266. package/dist/Checkbox.vue_vue_type_style_index_0_lang-D_UcZD7p.js +0 -1
  267. package/dist/Chip.vue_vue_type_style_index_0_lang-BLjUJgbj.js +0 -1
  268. package/dist/ColorSwatch.vue_vue_type_style_index_0_lang-j3uScCo0.js +0 -1
  269. package/dist/ColorSwatchGroup.vue_vue_type_style_index_0_lang-CGF7Y4Y3.js +0 -1
  270. package/dist/ColorTrigger.vue_vue_type_style_index_0_lang-Cz3225rF.js +0 -1
  271. package/dist/Combobox.vue_vue_type_style_index_0_lang-BXq6IyEH.js +0 -986
  272. package/dist/Combobox.vue_vue_type_style_index_0_lang-CSz_lsmn.js +0 -1
  273. package/dist/DataTable.vue_vue_type_style_index_0_lang-Ca0ss2zM.js +0 -1
  274. package/dist/FloatButton.vue_vue_type_script_setup_true_lang-C5NrO5Nn.js +0 -1
  275. package/dist/GOPicker.vue_vue_type_style_index_0_lang-1_sYgaR8.js +0 -1
  276. package/dist/GraphicalObject.vue_vue_type_script_setup_true_lang-CX1uOlz9.js +0 -1
  277. package/dist/Icon.vue_vue_type_style_index_0_lang-CPuN4R-k.js +0 -9
  278. package/dist/Icon.vue_vue_type_style_index_0_lang-D105BnRd.js +0 -3690
  279. package/dist/IconButton.vue_vue_type_script_setup_true_lang-NJ4SCX2H.js +0 -1
  280. package/dist/Image.vue_vue_type_style_index_0_lang-B43Rg3w7.js +0 -1
  281. package/dist/IndentLevel.vue_vue_type_style_index_0_lang-H35lJDqV.js +0 -1
  282. package/dist/Indicator.vue_vue_type_script_setup_true_lang-DaUZMDk0.js +0 -1
  283. package/dist/Input.vue_vue_type_style_index_0_lang-DEQgofJ1.js +0 -1
  284. package/dist/Input.vue_vue_type_style_index_0_lang-DbW60HOk.js +0 -160
  285. package/dist/MenuItem.vue_vue_type_style_index_0_lang-fYybuhKO.js +0 -1
  286. package/dist/Pagination.vue_vue_type_style_index_0_lang-CJuRPdrW.js +0 -224
  287. package/dist/Pagination.vue_vue_type_style_index_0_lang-CPREYXnR.js +0 -1
  288. package/dist/Popover.vue_vue_type_style_index_0_lang-qJ0psPTx.js +0 -1
  289. package/dist/Popover.vue_vue_type_style_index_0_lang-yKeicrWx.js +0 -251
  290. package/dist/Progress.vue_vue_type_style_index_0_lang-WHi3Gv1W.js +0 -1
  291. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang-CQ_nySHu.js +0 -1
  292. package/dist/ScrollContainer.vue_vue_type_style_index_0_lang-BLFtmUwR.js +0 -1
  293. package/dist/Segmented.vue_vue_type_style_index_0_lang-BvBq13y7.js +0 -1
  294. package/dist/Select.vue_vue_type_style_index_0_lang-Dk38gPKw.js +0 -1
  295. package/dist/Switch.vue_vue_type_style_index_0_lang-gKEdPPxG.js +0 -1
  296. package/dist/THead.vue_vue_type_style_index_0_lang-D0RuVLmr.js +0 -1
  297. package/dist/Textarea.vue_vue_type_style_index_0_lang-0wTOqfhB.js +0 -1
  298. package/dist/Tree.vue_vue_type_style_index_0_lang-D97fT1Cb.js +0 -6
  299. package/dist/Tree.vue_vue_type_style_index_0_lang-Des-7-p4.js +0 -1773
  300. package/dist/Upload.vue_vue_type_style_index_0_lang-BjSXnPzK.js +0 -1
  301. package/dist/index-BTuMaS--.js +0 -188
  302. package/dist/index-BmcHqJPl.js +0 -1
  303. package/dist/sortBy-DaKVLXDw.js +0 -98
  304. package/dist/sortBy-NRZqvtuE.js +0 -1
  305. package/dist/uniq-DA_VCwGV.js +0 -1
  306. package/dist/uniq-yfmxvZGr.js +0 -55
  307. package/dist/useInputDataStates-B78OFI-A.js +0 -56
  308. package/dist/useInputDataStates-CXaVG_o2.js +0 -1
@@ -1,47 +1,47 @@
1
- import { defineComponent as D, createElementBlock as O, openBlock as b, Fragment as pe, createBlock as z, createCommentVNode as R, createVNode as j, unref as a, normalizeClass as S, createSlots as Ae, withCtx as Q, computed as _, h as V, createElementVNode as ye, ref as ie, mergeProps as Oe, renderSlot as ae, normalizeProps as re, guardReactiveProps as le, useSlots as De, useAttrs as qe, watch as ve, nextTick as Me, watchEffect as Ne, readonly as Ge } from "vue";
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
- import { getBemBlock as Ve, getBemElement as U, usePCId as ce, normCls as be, generateVariantClassList as N } from "@pantograph/utils";
4
- import { a as ee, c as J, f as We } from "./index-BTuMaS--.js";
5
- import { j as A, E as He, l as Je, t as x } from "./Icon.vue_vue_type_style_index_0_lang-D105BnRd.js";
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-BMu3U4-l.js";
6
5
  import { cva as we } from "class-variance-authority";
7
- import { _ as xe } from "./Progress.vue_vue_type_style_index_0_lang-Bm1S1Pxq.js";
8
- import { _ as Ke } from "./FloatButton.vue_vue_type_script_setup_true_lang-Cug29gXO.js";
9
- import { _ as G } from "./IconButton.vue_vue_type_script_setup_true_lang-DIVceNgM.js";
10
- import { _ as Xe } from "./Image.vue_vue_type_style_index_0_lang-S9KjdezV.js";
6
+ import { _ as xe } from "./Progress.vue_vue_type_style_index_0_lang-ByAwM9mc.js";
7
+ import { _ as Ke } from "./FloatButton.vue_vue_type_script_setup_true_lang-09oykls8.js";
8
+ import { _ as G } from "./IconButton.vue_vue_type_script_setup_true_lang-B2mwpDQo.js";
9
+ import { _ as Xe } from "./Image.vue_vue_type_style_index_0_lang-_1Vqh4mv.js";
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 Ye } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-D6efb688.js";
13
- const _e = Ve("upload"), Z = U(_e, "list"), F = U(Z, "item"), [K, Ze] = ke("Upload"), Ce = (s, t) => {
12
+ import { _ as Qe } from "./GraphicalObject.vue_vue_type_script_setup_true_lang-BZWcWAd8.js";
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
- const e = Array.isArray(t) ? t : t.split(","), o = s.name || "", n = s.type || "", c = n.replace(/\/.*$/, "");
15
+ const e = Array.isArray(t) ? t : t.split(","), o = s.name || "", n = s.type || "", l = n.replace(/\/.*$/, "");
16
16
  return e.some((p) => {
17
17
  const m = p.trim();
18
18
  if (/^\*(?<temp1>\/\*)?$/.test(p))
19
19
  return !0;
20
20
  if (m.charAt(0) === ".") {
21
- const d = o.toLowerCase(), r = m.toLowerCase();
22
- let g = [r];
23
- return (r === ".jpg" || r === ".jpeg") && (g = [".jpg", ".jpeg"]), g.some((u) => d.endsWith(u));
21
+ const f = o.toLowerCase(), a = m.toLowerCase();
22
+ let g = [a];
23
+ return (a === ".jpg" || a === ".jpeg") && (g = [".jpg", ".jpeg"]), g.some((u) => f.endsWith(u));
24
24
  }
25
- return /\/\*$/.test(m) ? c === m.replace(/\/.*$/, "") : !!(n === m || /^\w+$/.test(m));
25
+ return /\/\*$/.test(m) ? l === m.replace(/\/.*$/, "") : !!(n === m || /^\w+$/.test(m));
26
26
  });
27
27
  }
28
28
  return !0;
29
- }, Qe = (s, t, e = 1 * 1024 * 1024) => {
29
+ }, tt = (s, t, e = 1 * 1024 * 1024) => {
30
30
  const o = [];
31
- let n = 0, c = 0;
31
+ let n = 0, l = 0;
32
32
  for (; n < s.size; ) {
33
33
  const p = Math.min(n + e, s.size), m = s.slice(n, p);
34
34
  o.push({
35
35
  chunk: m,
36
36
  chunkSize: p - n,
37
- index: c,
37
+ index: l,
38
38
  uid: t(),
39
39
  status: "waiting"
40
- }), n = p, c++;
40
+ }), n = p, l++;
41
41
  }
42
42
  return o;
43
43
  }, ze = (s, { getUid: t, chunkFile: e, chunkSize: o }) => {
44
- if (ee(s)) {
44
+ if (se(s)) {
45
45
  let n;
46
46
  if (s instanceof File)
47
47
  n = s;
@@ -59,18 +59,18 @@ const _e = Ve("upload"), Z = U(_e, "list"), F = U(Z, "item"), [K, Ze] = ke("Uplo
59
59
  type: s.type ?? ""
60
60
  }), n.lastModified = (/* @__PURE__ */ new Date()).getTime(), n.name = s.name ?? "", n.webkitRelativePath = "";
61
61
  }
62
- if (ee(n) && n instanceof Blob) {
63
- let c = [];
64
- return e && (c = Qe(
62
+ if (se(n) && n instanceof Blob) {
63
+ let l = [];
64
+ return e && (l = tt(
65
65
  n,
66
- () => (t == null ? void 0 : t(!0)) ?? ce(void 0, !0),
66
+ () => (t == null ? void 0 : t(!0)) ?? pe(void 0, !0),
67
67
  o
68
68
  )), {
69
- uid: s.uid ?? (t == null ? void 0 : t()) ?? ce(void 0, !0),
69
+ uid: s.uid ?? (t == null ? void 0 : t()) ?? pe(void 0, !0),
70
70
  originFileObj: n,
71
71
  status: "waiting",
72
- chunks: c != null && c.length && (c == null ? void 0 : c.length) > 1 ? c : void 0,
73
- chunksCount: c != null && c.length && (c == null ? void 0 : c.length) > 1 ? c.length : void 0,
72
+ chunks: l != null && l.length && (l == null ? void 0 : l.length) > 1 ? l : void 0,
73
+ chunksCount: l != null && l.length && (l == null ? void 0 : l.length) > 1 ? l.length : void 0,
74
74
  name: n == null ? void 0 : n.name,
75
75
  type: n == null ? void 0 : n.type,
76
76
  size: n == null ? void 0 : n.size,
@@ -79,10 +79,10 @@ const _e = Ve("upload"), Z = U(_e, "list"), F = U(Z, "item"), [K, Ze] = ke("Uplo
79
79
  };
80
80
  }
81
81
  }
82
- }, et = (s, t) => {
83
- if (ee(s))
82
+ }, st = (s, t) => {
83
+ if (se(s))
84
84
  return s instanceof Blob || s instanceof File ? ze(s, t) : (!s.uid && !Object.isFrozen(s) && (s.uid = t.getUid()), s);
85
- }, tt = ["error", "paused", "done", "uploading", "waiting"], Fe = ["md", "lg", "xlg"], Ie = ["image", "card"], st = ["outline", "transparent"], oe = {
85
+ }, nt = ["error", "paused", "done", "uploading", "waiting"], Ue = ["md", "lg", "xlg"], Ie = ["image", "card"], ot = ["outline", "transparent"], re = {
86
86
  other: {
87
87
  icon: "tabler:file-text",
88
88
  fg: "primary",
@@ -123,7 +123,7 @@ const _e = Ve("upload"), Z = U(_e, "list"), F = U(Z, "item"), [K, Ze] = ke("Uplo
123
123
  fg: "green",
124
124
  bg: "green-subtle"
125
125
  }
126
- }, nt = {
126
+ }, it = {
127
127
  image: [
128
128
  "3fr",
129
129
  "arw",
@@ -239,9 +239,9 @@ const _e = Ve("upload"), Z = U(_e, "list"), F = U(Z, "item"), [K, Ze] = ke("Uplo
239
239
  document: ["doc", "docx", "odt", "rtf"],
240
240
  excel: ["xls", "xlsx", "csv", "ods"],
241
241
  pdf: ["pdf"]
242
- }, Ue = (s) => {
242
+ }, Fe = (s) => {
243
243
  if (s) {
244
- for (const [t, e] of Object.entries(nt))
244
+ for (const [t, e] of Object.entries(it))
245
245
  if (e.includes(s.toLowerCase()))
246
246
  return t;
247
247
  }
@@ -249,77 +249,77 @@ const _e = Ve("upload"), Z = U(_e, "list"), F = U(Z, "item"), [K, Ze] = ke("Uplo
249
249
  }, Le = (s = "") => {
250
250
  const t = s.split("/"), o = t[t.length - 1].split(/#|\?/)[0];
251
251
  return (/\.[^./\\]*$/.exec(o) || [""])[0];
252
- }, de = (s) => {
252
+ }, me = (s) => {
253
253
  var t, e, o;
254
254
  return (o = (e = (t = s == null ? void 0 : s.split) == null ? void 0 : t.call(s, "/")) == null ? void 0 : e.pop) == null ? void 0 : o.call(e);
255
- }, ot = (s) => {
255
+ }, rt = (s) => {
256
256
  var e;
257
- let t = de((s == null ? void 0 : s.type) || ((e = s == null ? void 0 : s.originFileObj) == null ? void 0 : e.type));
257
+ let t = me((s == null ? void 0 : s.type) || ((e = s == null ? void 0 : s.originFileObj) == null ? void 0 : e.type));
258
258
  if (s != null && s.url && !t)
259
259
  try {
260
260
  t = Le(s == null ? void 0 : s.url);
261
261
  } catch {
262
262
  }
263
263
  return t;
264
- }, ue = (s) => Ue(s) === "image", Te = (s) => {
264
+ }, de = (s) => Fe(s) === "image", Te = (s) => {
265
265
  if (s.type && !s.thumbUrl)
266
- return ue(de(s.type));
266
+ return de(me(s.type));
267
267
  const t = s.thumbUrl || s.url || "", e = Le(t);
268
- return /^data:image\//.test(t) || ue(e) ? !0 : !(/^data:/.test(t) || e);
269
- }, it = /* @__PURE__ */ D({
268
+ return /^data:image\//.test(t) || de(e) ? !0 : !(/^data:/.test(t) || e);
269
+ }, at = /* @__PURE__ */ D({
270
270
  ...q("UploadListItemImage"),
271
271
  __name: "UploadListItemImage",
272
272
  setup(s) {
273
- const t = K(), e = fe(), o = () => {
274
- var n, c, p;
275
- J((n = e.props.uploadFile) == null ? void 0 : n.cancel) && ((p = (c = e.props.uploadFile).cancel) == null || p.call(c)), t.remove(e.props.uploadFile);
273
+ const t = X(), e = ge(), o = () => {
274
+ var n, l, p;
275
+ K((n = e.props.uploadFile) == null ? void 0 : n.cancel) && ((p = (l = e.props.uploadFile).cancel) == null || p.call(l)), t.remove(e.props.uploadFile);
276
276
  };
277
- return (n, c) => {
277
+ return (n, l) => {
278
278
  var p;
279
- return b(), O(pe, null, [
280
- a(e).props.uploadFile.status !== "waiting" ? (b(), z(Xe, {
279
+ return b(), O(fe, null, [
280
+ r(e).props.uploadFile.status !== "waiting" ? (b(), U(Xe, {
281
281
  key: 0,
282
- src: a(Te)(a(e).props.uploadFile) ? a(e).props.uploadFile.thumbUrl ?? a(e).props.uploadFile.url : void 0,
282
+ src: r(Te)(r(e).props.uploadFile) ? r(e).props.uploadFile.thumbUrl ?? r(e).props.uploadFile.url : void 0,
283
283
  aspectRatio: "1:1",
284
- class: S(a(U)(a(F), "image")),
284
+ class: S(r(I)(r(z), "image")),
285
285
  sizeRange: "xsm",
286
- alt: a(e).label.value,
287
- hovered: a(e).props.uploadFile.status === "uploading",
286
+ alt: r(e).label.value,
287
+ hovered: r(e).props.uploadFile.status === "uploading",
288
288
  width: "100%"
289
- }, Ae({ _: 2 }, [
290
- ["error", "done"].includes(a(e).props.uploadFile.status) ? {
289
+ }, De({ _: 2 }, [
290
+ ["error", "done"].includes(r(e).props.uploadFile.status) ? {
291
291
  name: "actions",
292
- fn: Q(() => [
293
- a(e).props.uploadFile.status === "done" ? (b(), z(G, {
292
+ fn: te(() => [
293
+ r(e).props.uploadFile.status === "done" ? (b(), U(G, {
294
294
  key: 0,
295
295
  color: "neutral",
296
296
  type: "ghost",
297
297
  icon: "tabler:eye",
298
298
  size: "sm",
299
- onClick: c[0] || (c[0] = (m) => a(t).emit("preview", a(e).props.uploadFile))
300
- })) : a(e).props.uploadFile.status === "error" ? (b(), z(G, {
299
+ onClick: l[0] || (l[0] = (m) => r(t).emit("preview", r(e).props.uploadFile))
300
+ })) : r(e).props.uploadFile.status === "error" ? (b(), U(G, {
301
301
  key: 1,
302
302
  color: "neutral",
303
303
  type: "ghost",
304
304
  icon: "tabler:reload",
305
305
  size: "sm",
306
- onClick: c[1] || (c[1] = (m) => a(t).resetRequest(a(e).props.uploadFile))
306
+ onClick: l[1] || (l[1] = (m) => r(t).resetRequest(r(e).props.uploadFile))
307
307
  })) : R("", !0)
308
308
  ]),
309
309
  key: "0"
310
310
  } : void 0
311
311
  ]), 1032, ["src", "class", "alt", "hovered"])) : R("", !0),
312
- ["uploading", "waiting"].includes(a(e).props.uploadFile.status) ? (b(), z(xe, {
312
+ ["uploading", "waiting"].includes(r(e).props.uploadFile.status) ? (b(), U(xe, {
313
313
  key: 1,
314
314
  type: "circle",
315
- size: a(t).progressSize.value,
316
- class: S(a(U)(a(F), "progress")),
317
- indeterminate: a(e).props.uploadFile.status === "waiting",
318
- percent: ((p = a(e).props.uploadFile) == null ? void 0 : p.percent) ?? 0
315
+ size: r(t).progressSize.value,
316
+ class: S(r(I)(r(z), "progress")),
317
+ indeterminate: r(e).props.uploadFile.status === "waiting",
318
+ percent: ((p = r(e).props.uploadFile) == null ? void 0 : p.percent) ?? 0
319
319
  }, null, 8, ["size", "class", "indeterminate", "percent"])) : R("", !0),
320
- j(Ke, {
320
+ E(Ke, {
321
321
  class: S(
322
- a(be)(a(U)(a(F), "cancel"), "pantograph-tokens pantograph-dark")
322
+ r(be)(r(I)(r(z), "cancel"), "pantograph-tokens pantograph-dark")
323
323
  ),
324
324
  color: "neutral",
325
325
  icon: "tabler:x",
@@ -329,132 +329,133 @@ const _e = Ve("upload"), Z = U(_e, "list"), F = U(Z, "item"), [K, Ze] = ke("Uplo
329
329
  ], 64);
330
330
  };
331
331
  }
332
- }), at = /* @__PURE__ */ D({
332
+ }), lt = /* @__PURE__ */ D({
333
333
  ...q("UploadFileGO"),
334
334
  __name: "UploadFileGO",
335
335
  setup(s) {
336
- const t = fe(), e = K(), o = _(() => Ue(ot(t.props.uploadFile))), n = _(() => J(e.props.getFileIcon) ? e.props.getFileIcon(t.props.uploadFile) : oe[o.value].icon), c = _(() => oe[o.value].fg), p = _(() => oe[o.value].bg), m = () => {
337
- var u, y, L, $;
336
+ const t = ge(), e = X(), o = C(() => Fe(rt(t.props.uploadFile))), n = C(() => K(e.props.getFileIcon) ? e.props.getFileIcon(t.props.uploadFile) : re[o.value].icon), l = C(() => re[o.value].fg), p = C(() => re[o.value].bg), m = () => {
337
+ var u, y, T, $;
338
338
  const g = (y = (u = e.slots).go) == null ? void 0 : y.call(u, { uploadFile: t.props.uploadFile });
339
339
  return A(g) ? Te(t.props.uploadFile) ? V("img", {
340
- class: U(F, "thumb"),
340
+ class: I(z, "thumb"),
341
341
  alt: t.props.uploadFile.name ?? "",
342
- src: ((L = t.props.uploadFile) == null ? void 0 : L.thumbUrl) ?? (($ = t.props.uploadFile) == null ? void 0 : $.url)
342
+ src: ((T = t.props.uploadFile) == null ? void 0 : T.thumbUrl) ?? (($ = t.props.uploadFile) == null ? void 0 : $.url)
343
343
  }) : null : g;
344
- }, d = () => {
344
+ }, f = () => {
345
345
  var u, y;
346
346
  const g = (y = (u = e.slots).goIcon) == null ? void 0 : y.call(u, { uploadFile: t.props.uploadFile });
347
347
  return A(g) ? null : g;
348
- }, r = () => V(
349
- Ye,
348
+ }, a = () => V(
349
+ Qe,
350
350
  {
351
351
  size: e.goSize.value,
352
352
  icon: n.value,
353
- fg: c.value,
353
+ fg: l.value,
354
354
  bg: p.value
355
355
  },
356
356
  {
357
357
  default: m,
358
- icon: d
358
+ icon: f
359
359
  }
360
360
  );
361
- return (g, u) => (b(), z(r));
361
+ return (g, u) => (b(), U(a));
362
362
  }
363
- }), rt = /* @__PURE__ */ D({
363
+ }), ct = /* @__PURE__ */ D({
364
364
  ...q("UploadListItemCard"),
365
365
  __name: "UploadListItemCard",
366
366
  setup(s) {
367
- const t = K(), e = fe(), o = () => {
367
+ const t = X(), e = ge(), o = () => {
368
368
  var g, u;
369
- const d = (u = (g = t.slots).description) == null ? void 0 : u.call(g, { uploadFile: e.props.uploadFile });
370
- let r;
371
- if (A(d) || (r = d), e.props.uploadFile.description && (r = e.props.uploadFile.description), r)
372
- return V("div", { class: U(F, "description") }, r);
369
+ const f = (u = (g = t.slots).description) == null ? void 0 : u.call(g, { uploadFile: e.props.uploadFile });
370
+ let a;
371
+ if (A(f) || (a = f), e.props.uploadFile.description && (a = e.props.uploadFile.description), a)
372
+ return V("div", { class: I(z, "description") }, a);
373
373
  }, n = () => {
374
- var r, g;
375
- const d = (g = (r = t.slots).title) == null ? void 0 : g.call(r, { uploadFile: e.props.uploadFile });
376
- return A(d) ? e.label.value : d;
377
- }, c = () => {
378
- var d;
379
- if (J(t.props.onDownload))
374
+ var a, g;
375
+ const f = (g = (a = t.slots).title) == null ? void 0 : g.call(a, { uploadFile: e.props.uploadFile });
376
+ return A(f) ? e.label.value : f;
377
+ }, l = () => {
378
+ var f;
379
+ if (K(t.props.onDownload))
380
380
  return t.props.onDownload(e.props.uploadFile);
381
- if ((d = e.props.uploadFile) != null && d.url && typeof window < "u")
381
+ if ((f = e.props.uploadFile) != null && f.url && typeof window < "u")
382
382
  return window.open(e.props.uploadFile.url);
383
- }, p = _(() => {
384
- var d, r;
385
- return (d = e.props.uploadFile) != null && d.percent && ((r = e.props.uploadFile) == null ? void 0 : r.status) !== "waiting" ? `${(e.props.uploadFile.percent ?? 0).toFixed(0)}%` : "waiting...";
386
- }), m = (d, r) => {
387
- var u, y, L, $;
383
+ }, p = C(() => {
384
+ var f, a;
385
+ return (f = e.props.uploadFile) != null && f.percent && ((a = e.props.uploadFile) == null ? void 0 : a.status) !== "waiting" ? `${(e.props.uploadFile.percent ?? 0).toFixed(0)}%` : "waiting...";
386
+ }), m = (f, a) => {
387
+ var u, y, T, $;
388
388
  const g = (y = (u = t.slots) == null ? void 0 : u.actions) == null ? void 0 : y.call(u, {
389
389
  ...t,
390
390
  uploadFile: e.props.uploadFile,
391
- downloadFile: c
391
+ downloadFile: l
392
392
  });
393
- return A(g) ? ($ = (L = r.slots) == null ? void 0 : L.default) == null ? void 0 : $.call(L, {}) : g;
393
+ return A(g) ? ($ = (T = a.slots) == null ? void 0 : T.default) == null ? void 0 : $.call(T, {}) : g;
394
394
  };
395
- return (d, r) => {
395
+ return (f, a) => {
396
396
  var g;
397
- return b(), O(pe, null, [
398
- a(t).props.go ? (b(), z(at, { key: 0 })) : R("", !0),
399
- ["error", "done"].includes(a(e).props.uploadFile.status) ? (b(), O("div", {
397
+ return b(), O(fe, null, [
398
+ r(t).props.go ? (b(), U(lt, { key: 0 })) : R("", !0),
399
+ ["error", "done"].includes(r(e).props.uploadFile.status) ? (b(), O("div", {
400
400
  key: 2,
401
- class: S(a(U)(a(F), "content"))
401
+ class: S(r(I)(r(z), "content"))
402
402
  }, [
403
403
  ye("div", {
404
- class: S(a(U)(a(F), "title"))
404
+ class: S(r(I)(r(z), "title"))
405
405
  }, [
406
- j(n)
406
+ E(n)
407
407
  ], 2),
408
- a(e).props.uploadFile.status === "error" ? (b(), z(He, {
408
+ r(e).props.uploadFile.status === "error" ? (b(), U(He, {
409
409
  key: 0,
410
410
  message: "Failed",
411
411
  status: "error"
412
- })) : a(t).props.size !== "md" ? (b(), z(o, { key: 1 })) : R("", !0)
413
- ], 2)) : (b(), z(xe, {
412
+ })) : r(t).props.size !== "md" ? (b(), U(o, { key: 1 })) : R("", !0)
413
+ ], 2)) : (b(), U(xe, {
414
414
  key: 1,
415
- class: S(a(U)(a(F), "progress")),
416
- percent: ((g = a(e).props.uploadFile) == null ? void 0 : g.percent) ?? 0,
417
- label: a(e).label.value,
418
- helperText: p.value
415
+ class: S(r(I)(r(z), "progress")),
416
+ percent: ((g = r(e).props.uploadFile) == null ? void 0 : g.percent) ?? 0,
417
+ label: r(e).label.value,
418
+ helperText: p.value,
419
+ helperTextCls: r(I)(r(z), "percent")
419
420
  }, {
420
- label: Q(() => [
421
- j(n)
421
+ label: te(() => [
422
+ E(n)
422
423
  ]),
423
424
  _: 1
424
- }, 8, ["class", "percent", "label", "helperText"])),
425
- j(m, null, {
426
- default: Q(() => {
425
+ }, 8, ["class", "percent", "label", "helperText", "helperTextCls"])),
426
+ E(m, null, {
427
+ default: te(() => {
427
428
  var u;
428
429
  return [
429
- a(e).props.uploadFile.status === "done" ? (b(), z(G, {
430
+ r(e).props.uploadFile.status === "done" ? (b(), U(G, {
430
431
  key: 0,
431
432
  icon: "tabler:download",
432
433
  size: "sm",
433
434
  type: "ghost",
434
435
  color: "neutral",
435
- onClick: c
436
+ onClick: l
436
437
  })) : R("", !0),
437
- a(t).props.pausableChunked && a(e).props.uploadFile.status === "uploading" && ((u = a(e).props.uploadFile.chunks) != null && u.length) && a(J)(a(e).props.uploadFile.cancel) ? (b(), z(G, {
438
+ r(t).props.pausableChunked && r(e).props.uploadFile.status === "uploading" && ((u = r(e).props.uploadFile.chunks) != null && u.length) && r(K)(r(e).props.uploadFile.cancel) ? (b(), U(G, {
438
439
  key: 1,
439
440
  icon: "tabler:pause",
440
441
  size: "sm",
441
442
  type: "ghost",
442
443
  color: "neutral",
443
- onClick: a(e).props.uploadFile.cancel
444
- }, null, 8, ["onClick"])) : a(t).canRunUpload(a(e).props.uploadFile) ? (b(), z(G, {
444
+ onClick: r(e).props.uploadFile.cancel
445
+ }, null, 8, ["onClick"])) : r(t).canRunUpload(r(e).props.uploadFile) ? (b(), U(G, {
445
446
  key: 2,
446
- icon: ["paused", "waiting"].includes(a(e).props.uploadFile.status) ? "tabler:player-play" : "tabler:reload",
447
+ icon: ["paused", "waiting"].includes(r(e).props.uploadFile.status) ? "tabler:player-play" : "tabler:reload",
447
448
  size: "sm",
448
449
  type: "ghost",
449
450
  color: "neutral",
450
- onClick: r[0] || (r[0] = (y) => a(t).resetRequest(a(e).props.uploadFile))
451
+ onClick: a[0] || (a[0] = (y) => r(t).resetRequest(r(e).props.uploadFile))
451
452
  }, null, 8, ["icon"])) : R("", !0),
452
- j(G, {
453
- icon: ["done", "error"].includes(a(e).props.uploadFile.status) ? "tabler:trash" : "tabler:x",
453
+ E(G, {
454
+ icon: ["done", "error"].includes(r(e).props.uploadFile.status) ? "tabler:trash" : "tabler:x",
454
455
  size: "sm",
455
456
  type: "ghost",
456
457
  color: "neutral",
457
- onClick: r[1] || (r[1] = (y) => a(t).remove(a(e).props.uploadFile))
458
+ onClick: a[1] || (a[1] = (y) => r(t).remove(r(e).props.uploadFile))
458
459
  }, null, 8, ["icon"])
459
460
  ];
460
461
  }),
@@ -463,119 +464,119 @@ const _e = Ve("upload"), Z = U(_e, "list"), F = U(Z, "item"), [K, Ze] = ke("Uplo
463
464
  ], 64);
464
465
  };
465
466
  }
466
- }), [fe, lt] = ke("UploadItem"), ct = /* @__PURE__ */ D({
467
+ }), [ge, ut] = ke("UploadItem"), pt = /* @__PURE__ */ D({
467
468
  ...q("UploadListItem"),
468
469
  __name: "UploadListItem",
469
470
  props: {
470
471
  uploadFile: {}
471
472
  },
472
473
  setup(s) {
473
- const t = s, e = we(F, {
474
+ const t = s, e = we(z, {
474
475
  variants: {
475
- size: N(Fe, F),
476
+ size: N(Ue, z),
476
477
  listType: N(
477
478
  Ie,
478
- F
479
+ z
479
480
  ),
480
- type: N(st, F),
481
- status: N(tt, F)
481
+ type: N(ot, z),
482
+ status: N(nt, z)
482
483
  }
483
- }), o = _(() => {
484
- var p, m, d;
485
- return ((p = t.uploadFile) == null ? void 0 : p.name) ?? ((d = (m = t.uploadFile) == null ? void 0 : m.originFileObj) == null ? void 0 : d.name);
486
- }), n = K();
487
- lt({
484
+ }), o = C(() => {
485
+ var p, m, f;
486
+ return ((p = t.uploadFile) == null ? void 0 : p.name) ?? ((f = (m = t.uploadFile) == null ? void 0 : m.originFileObj) == null ? void 0 : f.name);
487
+ }), n = X();
488
+ ut({
488
489
  props: t,
489
490
  label: o
490
491
  });
491
- const c = () => {
492
- var m, d;
493
- const p = (d = (m = n.slots).listItem) == null ? void 0 : d.call(m, { ...n, uploadFile: t.uploadFile });
494
- return A(p) ? n.props.listType === "card" ? V(rt) : V(it) : p;
492
+ const l = () => {
493
+ var m, f;
494
+ const p = (f = (m = n.slots).listItem) == null ? void 0 : f.call(m, { ...n, uploadFile: t.uploadFile });
495
+ return A(p) ? n.props.listType === "card" ? V(ct) : V(at) : p;
495
496
  };
496
497
  return (p, m) => {
497
- var d;
498
+ var f;
498
499
  return b(), O("div", {
499
500
  class: S(
500
- a(e)({
501
- size: a(n).props.size,
502
- listType: a(n).props.listType,
503
- type: a(n).props.type,
504
- status: (d = p.uploadFile) == null ? void 0 : d.status
501
+ r(e)({
502
+ size: r(n).props.size,
503
+ listType: r(n).props.listType,
504
+ type: r(n).props.type,
505
+ status: (f = p.uploadFile) == null ? void 0 : f.status
505
506
  })
506
507
  )
507
508
  }, [
508
- j(c)
509
+ E(l)
509
510
  ], 2);
510
511
  };
511
512
  }
512
- }), ut = /* @__PURE__ */ D({
513
+ }), dt = /* @__PURE__ */ D({
513
514
  ...q("UploadList"),
514
515
  __name: "UploadList",
515
516
  setup(s) {
516
- const t = K(), e = we(Z, {
517
+ const t = X(), e = we(ee, {
517
518
  variants: {
518
- size: N(Fe, Z),
519
- listType: N(Ie, Z)
519
+ size: N(Ue, ee),
520
+ listType: N(Ie, ee)
520
521
  }
521
522
  }), o = () => {
522
- var c, p;
523
- const n = (p = (c = t.slots).list) == null ? void 0 : p.call(c, t);
523
+ var l, p;
524
+ const n = (p = (l = t.slots).list) == null ? void 0 : p.call(l, t);
524
525
  return A(n) ? t.fileList.value.map(
525
- (m) => V(ct, { uploadFile: m, key: m.uid })
526
+ (m) => V(pt, { uploadFile: m, key: m.uid })
526
527
  ) : n;
527
528
  };
528
- return (n, c) => {
529
+ return (n, l) => {
529
530
  var p;
530
- return (p = a(t).fileList.value) != null && p.length ? (b(), O("div", {
531
+ return (p = r(t).fileList.value) != null && p.length ? (b(), O("div", {
531
532
  key: 0,
532
533
  class: S(
533
- a(e)({
534
- size: a(t).props.size,
535
- listType: a(t).props.listType
534
+ r(e)({
535
+ size: r(t).props.size,
536
+ listType: r(t).props.listType
536
537
  })
537
538
  )
538
539
  }, [
539
- j(o)
540
+ E(o)
540
541
  ], 2)) : R("", !0);
541
542
  };
542
543
  }
543
- }), pt = (s) => new Promise((t) => {
544
+ }), ft = (s) => new Promise((t) => {
544
545
  s.file((e) => {
545
546
  s.fullPath && !e.webkitRelativePath && Object.defineProperty(e, "webkitRelativePath", {
546
547
  value: s.fullPath.replace(/^\//, ""),
547
548
  writable: !1
548
549
  }), t(e);
549
550
  });
550
- }), dt = (s) => {
551
+ }), mt = (s) => {
551
552
  const t = s.createReader(), e = [];
552
553
  return new Promise((o) => {
553
554
  const n = () => {
554
- t.readEntries((c) => {
555
- c.length === 0 ? o(e) : (e.push(...c), n());
555
+ t.readEntries((l) => {
556
+ l.length === 0 ? o(e) : (e.push(...l), n());
556
557
  });
557
558
  };
558
559
  n();
559
560
  });
560
- }, ft = async (s) => {
561
+ }, gt = async (s) => {
561
562
  const t = [], e = async (o) => {
562
563
  if (o.isFile) {
563
- const n = await pt(o);
564
+ const n = await ft(o);
564
565
  t.push(n);
565
566
  } else if (o.isDirectory) {
566
- const n = await dt(o);
567
+ const n = await mt(o);
567
568
  await Promise.all(n.map(e));
568
569
  }
569
570
  };
570
571
  return await Promise.all(
571
572
  s.map((o) => {
572
- var c;
573
- const n = (c = o.webkitGetAsEntry) == null ? void 0 : c.call(o);
573
+ var l;
574
+ const n = (l = o.webkitGetAsEntry) == null ? void 0 : l.call(o);
574
575
  if (n)
575
576
  return e(n);
576
577
  })
577
578
  ), t;
578
- }, mt = ["accept", "webkitdirectory", "multiple", "value"], gt = /* @__PURE__ */ D({
579
+ }, ht = ["accept", "webkitdirectory", "multiple", "value"], vt = /* @__PURE__ */ D({
579
580
  ...q("UploadTrigger"),
580
581
  __name: "UploadTrigger",
581
582
  props: {
@@ -587,71 +588,71 @@ const _e = Ve("upload"), Z = U(_e, "list"), F = U(Z, "item"), [K, Ze] = ke("Uplo
587
588
  },
588
589
  emits: ["addFiles"],
589
590
  setup(s, { emit: t }) {
590
- const e = t, o = s, n = ie(), c = (u) => {
591
+ const e = t, o = s, n = ae(), l = (u) => {
591
592
  const { files: y } = u.target;
592
593
  e("addFiles", Array.prototype.slice.call(y)), p.value && (p.value.value = "");
593
- }, p = ie(), m = () => {
594
+ }, p = ae(), m = () => {
594
595
  var u;
595
596
  (u = p.value) == null || u.click();
596
- }, d = (u) => {
597
+ }, f = (u) => {
597
598
  u.key === "Enter" && m();
598
- }, r = async (u) => {
599
+ }, a = async (u) => {
599
600
  if (u.preventDefault(), u.type === "dragover")
600
601
  return;
601
602
  let y = [];
602
- u.dataTransfer && (o.directory ? y = await ft(Array.prototype.slice.call(u.dataTransfer.items)) : y = Array.prototype.slice.call(u.dataTransfer.files)), o.multiple || (y = y.slice(0, 1)), e(
603
+ u.dataTransfer && (o.directory ? y = await gt(Array.prototype.slice.call(u.dataTransfer.items)) : y = Array.prototype.slice.call(u.dataTransfer.files)), o.multiple || (y = y.slice(0, 1)), e(
603
604
  "addFiles",
604
- y.filter((L) => Ce(L, o.accept))
605
+ y.filter((T) => Ce(T, o.accept))
605
606
  );
606
- }, g = _(() => o.disabled ? {} : {
607
+ }, g = C(() => o.disabled ? {} : {
607
608
  onClick: m,
608
- onKeydown: d,
609
- onDrop: r,
610
- onDragover: r
609
+ onKeydown: f,
610
+ onDrop: a,
611
+ onDragover: a
611
612
  });
612
- return (u, y) => (b(), O("div", Oe({
613
- class: a(be)(o.class)
613
+ return (u, y) => (b(), O("div", qe({
614
+ class: r(be)(o.class)
614
615
  }, g.value), [
615
- ae(u.$slots, "default", re(le({ ...g.value, disabled: u.disabled, tabindex: "0" }))),
616
+ le(u.$slots, "default", ce(ue({ ...g.value, disabled: u.disabled, tabindex: "0" }))),
616
617
  ye("input", {
617
618
  type: "file",
618
619
  accept: u.accept,
619
620
  webkitdirectory: u.directory,
620
621
  multiple: u.multiple,
621
622
  value: n.value,
622
- onChange: c,
623
+ onChange: l,
623
624
  ref_key: "inputRef",
624
625
  ref: p,
625
626
  style: { display: "none" }
626
- }, null, 40, mt)
627
+ }, null, 40, ht)
627
628
  ], 16));
628
629
  }
629
- }), E = 200;
630
- function ht(s) {
630
+ }), j = 200;
631
+ function yt(s) {
631
632
  return new Promise((t) => {
632
- if (!s.type || !ue(de(s.type))) {
633
+ if (!s.type || !de(me(s.type))) {
633
634
  t("");
634
635
  return;
635
636
  }
636
637
  const e = document.createElement("canvas");
637
- e.width = E, e.height = E, e.style.cssText = `position: fixed; left: 0; top: 0; width: ${E}px; height: ${E}px; z-index: 9999; display: none;`, document.body.appendChild(e);
638
+ e.width = j, e.height = j, e.style.cssText = `position: fixed; left: 0; top: 0; width: ${j}px; height: ${j}px; z-index: 9999; display: none;`, document.body.appendChild(e);
638
639
  const o = e.getContext("2d"), n = new Image();
639
640
  if (n.onload = () => {
640
- const { width: c, height: p } = n;
641
- let m = E, d = E, r = 0, g = 0;
642
- c > p ? (d = p * (E / c), g = -(d - m) / 2) : (m = c * (E / p), r = -(m - d) / 2), o.drawImage(n, r, g, m, d);
641
+ const { width: l, height: p } = n;
642
+ let m = j, f = j, a = 0, g = 0;
643
+ l > p ? (f = p * (j / l), g = -(f - m) / 2) : (m = l * (j / p), a = -(m - f) / 2), o.drawImage(n, a, g, m, f);
643
644
  const u = e.toDataURL();
644
645
  document.body.removeChild(e), t(u);
645
646
  }, n.crossOrigin = "anonymous", s.type.startsWith("image/svg+xml")) {
646
- const c = new FileReader();
647
- c.addEventListener("load", () => {
648
- c.result && (n.src = c.result);
649
- }), c.readAsDataURL(s);
647
+ const l = new FileReader();
648
+ l.addEventListener("load", () => {
649
+ l.result && (n.src = l.result);
650
+ }), l.readAsDataURL(s);
650
651
  } else
651
652
  n.src = window.URL.createObjectURL(s);
652
653
  });
653
654
  }
654
- const Lt = /* @__PURE__ */ D({
655
+ const Rt = /* @__PURE__ */ D({
655
656
  ...q("Upload", !1),
656
657
  __name: "Upload",
657
658
  props: {
@@ -677,244 +678,246 @@ const Lt = /* @__PURE__ */ D({
677
678
  },
678
679
  emits: ["update:fileList", "change", "preview", "createRequest", "resetRequest", "remove"],
679
680
  setup(s, { expose: t, emit: e }) {
680
- const o = s, n = e, c = De(), p = qe(), m = U(_e, "file"), d = (i) => ce(i ? U(m, "chunk") : m, !0), r = ie([]), g = _(() => o.listType !== "image" && o.pausableChunked);
681
+ const o = s, n = e, l = Me(), p = Ne(), m = I(_e, "file"), f = (i) => pe(i ? I(m, "chunk") : m, !0), a = ae([]), g = C(() => o.listType !== "image" && o.pausableChunked);
681
682
  let u = !1;
682
- ve(
683
+ ie(
683
684
  () => o.fileList,
684
685
  (i) => {
685
686
  var h, k;
686
- u = !0, r.value = (k = (h = i ?? []) == null ? void 0 : h.map) == null ? void 0 : k.call(h, (C) => {
687
- if (C && ee(C))
688
- return et(C, {
689
- getUid: d,
687
+ u = !0, a.value = (k = (h = i ?? []) == null ? void 0 : h.map) == null ? void 0 : k.call(h, (F) => {
688
+ if (F && se(F))
689
+ return st(F, {
690
+ getUid: f,
690
691
  chunkFile: g.value,
691
692
  chunkSize: o.chunkSize
692
693
  });
693
- }).filter(Boolean), Me(() => u = !1);
694
+ }).filter(Boolean), Ge(() => u = !1);
694
695
  },
695
696
  { immediate: !0, deep: !0 }
696
- ), ve(
697
- r,
697
+ ), ie(
698
+ a,
698
699
  (i) => {
699
700
  u || n("update:fileList", i ?? []);
700
701
  },
701
702
  { immediate: !0, deep: !0 }
702
703
  );
703
- const y = _(() => o.maxCount ? Number(o.maxCount) : 0), L = (i) => {
704
+ const y = C(() => o.maxCount ? Number(o.maxCount) : 0), T = (i) => {
704
705
  if (i) {
705
- const h = r.value.findIndex(
706
+ const h = a.value.findIndex(
706
707
  (k) => k.uid && i.uid && k.uid === i.uid
707
708
  );
708
- h === -1 && (!y.value || y.value > r.value.length) ? r.value.push(i) : h > -1 && r.value.splice(h, 0, i), n("change", {
709
- file: x(i),
710
- fileList: x(r.value),
709
+ h === -1 && (!y.value || y.value > a.value.length) ? a.value.push(i) : h > -1 && a.value.splice(h, 0, i), n("change", {
710
+ file: _(i),
711
+ fileList: _(a.value),
711
712
  event: "add"
712
713
  });
713
714
  }
714
- }, $ = _(
715
+ }, $ = C(
715
716
  () => o.accept ?? o.listType === "image" ? "image/*" : void 0
716
- ), me = (i) => {
717
- We(i) && i.filter((h) => !o.directory || Ce(h, $.value)).forEach((h) => {
718
- L(
717
+ ), he = (i) => {
718
+ Je(i) && i.filter((h) => !o.directory || Ce(h, $.value)).forEach((h) => {
719
+ T(
719
720
  ze(h, {
720
- getUid: d,
721
+ getUid: f,
721
722
  chunkFile: g.value,
722
723
  chunkSize: o.chunkSize
723
724
  })
724
725
  );
725
726
  });
726
- }, te = _(
727
+ }, Y = C(
727
728
  () => {
728
729
  var i;
729
- return o.uploadOnSelect || o.listType === "image" ? ((i = r.value) == null ? void 0 : i.filter(
730
+ return o.uploadOnSelect || o.listType === "image" ? ((i = a.value) == null ? void 0 : i.filter(
730
731
  (h) => h.status === "waiting" && h.originFileObj
731
732
  )) ?? [] : [];
732
733
  }
733
- ), X = _(
734
+ ), W = C(
734
735
  () => {
735
736
  var i;
736
- return ((i = r.value) == null ? void 0 : i.filter(
737
+ return ((i = a.value) == null ? void 0 : i.filter(
737
738
  (h) => h.status === "uploading" && (h == null ? void 0 : h.cancel)
738
739
  )) ?? [];
739
740
  }
740
741
  ), P = (i, h) => {
741
742
  if (i && h) {
742
- const k = r.value.findIndex((C) => C.uid === i);
743
- k > -1 && (r.value[k] = {
744
- ...r.value[k],
743
+ const k = a.value.findIndex((F) => F.uid === i);
744
+ k > -1 && (a.value[k] = {
745
+ ...a.value[k],
745
746
  ...h
746
747
  });
747
748
  }
748
- }, Y = async (i) => {
749
- var h, k, C, ge;
750
- if (i.uid && r.value) {
751
- const T = r.value.find((M) => M.uid === i.uid);
752
- if (T && J(o.action) && (!X.value.length || o.parallelUpload || g.value && ((h = T.chunks) != null && h.length) && T.chunks.length > 1 && T.status === "uploading" && T.chunks.some((M) => M.status === "waiting"))) {
753
- const M = new AbortController(), Ee = () => {
754
- const v = () => M.abort(), l = x(T);
755
- if (g.value && l.chunks && l.chunks.length > 1) {
756
- const f = l.chunks.findIndex((I) => I.status === "waiting");
757
- f > -1 && (l.chunks[f] = {
758
- ...l.chunks[f],
749
+ }, Z = async (i) => {
750
+ var h, k, F, Q;
751
+ if (i.uid && a.value) {
752
+ const w = a.value.find((M) => M.uid === i.uid), Ee = g.value && ((h = w == null ? void 0 : w.chunks) == null ? void 0 : h.length) && (w == null ? void 0 : w.chunks.length) > 1 && (w == null ? void 0 : w.status) === "uploading" && (w == null ? void 0 : w.chunks.some((M) => M.status === "waiting"));
753
+ if (w && K(o.action) && (!W.value.length || o.parallelUpload || Ee)) {
754
+ const M = new AbortController(), Ae = () => {
755
+ const v = () => M.abort(), c = _(w);
756
+ if (g.value && c.chunks && c.chunks.length > 1) {
757
+ const d = c.chunks.findIndex((L) => L.status === "waiting");
758
+ d > -1 && (c.chunks[d] = {
759
+ ...c.chunks[d],
759
760
  status: "uploading",
760
761
  cancel: v
761
762
  });
762
763
  }
763
- P(l.uid, {
764
- ...l,
764
+ P(c.uid, {
765
765
  status: "uploading",
766
766
  cancel: v
767
767
  });
768
768
  };
769
- let w = {
769
+ let x = {
770
770
  signal: M.signal,
771
771
  onUploadProgress(v) {
772
772
  },
773
773
  uid: i.uid
774
774
  };
775
- if (g.value && T.chunks && T.chunks.length > 1 && T.chunks.some((v) => v.status === "waiting")) {
776
- const v = T.chunks.find((l) => l.status === "waiting");
777
- v != null && v.uid && (w = {
778
- ...w,
779
- ...Je(v, "chunk", "chunkSiz", "index"),
775
+ if (g.value && w.chunks && w.chunks.length > 1 && w.chunks.some((v) => v.status === "waiting")) {
776
+ const v = w.chunks.find((c) => c.status === "waiting");
777
+ v != null && v.uid && (x = {
778
+ ...x,
779
+ ...Ze(v, ["chunk", "chunkSize", "index"]),
780
780
  chunk_uid: v.uid,
781
- onUploadProgress(l) {
782
- var I, W, B, he;
783
- const f = x(
784
- r.value.find((H) => H.uid === i.uid)
781
+ onUploadProgress(c) {
782
+ var L, H, B, ve;
783
+ const d = _(
784
+ a.value.find((J) => J.uid === i.uid)
785
785
  );
786
- if (f) {
787
- const H = (I = f.chunks) == null ? void 0 : I.findIndex(
788
- (ne) => ne.uid === v.uid
786
+ if (d) {
787
+ const J = (L = d.chunks) == null ? void 0 : L.findIndex(
788
+ (oe) => oe.uid === v.uid
789
789
  );
790
- H !== void 0 && ((W = f.chunks) != null && W[H]) && (f.chunks[H].percent = Math.round(
791
- l.loaded * 100 / l.total
792
- )), (B = f.chunks) != null && B.length && ((he = f.chunks) == null ? void 0 : he.length) > 1 ? f.percent = Math.min(
790
+ J !== void 0 && ((H = d.chunks) != null && H[J]) && (d.chunks[J].percent = Math.round(
791
+ c.loaded * 100 / c.total
792
+ )), (B = d.chunks) != null && B.length && ((ve = d.chunks) == null ? void 0 : ve.length) > 1 ? d.percent = Math.min(
793
793
  Math.max(
794
- f.chunks.reduce((ne, je) => ne + (je.percent ?? 0), 0) / (100 * f.chunks.length),
794
+ d.chunks.reduce((oe, Oe) => oe + (Oe.percent ?? 0), 0) / (100 * d.chunks.length),
795
795
  0
796
796
  ),
797
797
  100
798
- ) : f.percent = Math.round(l.loaded * 100 / l.total), P(f.uid, f);
798
+ ) : d.percent = Math.round(c.loaded * 100 / c.total), P(d.uid, {
799
+ chunks: d.chunks,
800
+ percent: d.percent
801
+ });
799
802
  }
800
803
  }
801
804
  });
802
805
  } else
803
- w = {
804
- ...w,
805
- file: T.originFileObj,
806
+ x = {
807
+ ...x,
808
+ file: w.originFileObj,
806
809
  onUploadProgress(v) {
807
- const l = x(
808
- r.value.find((f) => f.uid === i.uid)
810
+ const c = _(
811
+ a.value.find((d) => d.uid === i.uid)
809
812
  );
810
- l && P(l.uid, {
813
+ c && P(c.uid, {
811
814
  percent: Math.round(v.loaded * 100 / v.total)
812
815
  });
813
816
  }
814
817
  };
815
- if (Ee(), w.file || w.chunk) {
818
+ if (Ae(), x.file || x.chunk) {
816
819
  n("createRequest", i), n("change", {
817
- file: x(i),
818
- fileList: x(r.value),
820
+ file: _(i),
821
+ fileList: _(a.value),
819
822
  event: "upload"
820
823
  });
821
824
  try {
822
- let v = await o.action(w);
825
+ let v = await o.action(x);
823
826
  try {
824
827
  typeof v == "string" && (v = JSON.parse(v));
825
828
  } catch {
826
829
  }
827
- let l = x(
828
- r.value.find((f) => f.uid === w.uid)
830
+ let c = _(
831
+ a.value.find((d) => d.uid === x.uid)
829
832
  );
830
- if (l) {
831
- let f = !1;
832
- if (w.chunk_uid && ((k = l.chunks) != null && k.length) && l.chunks.length > 1) {
833
- const I = l.chunks.findIndex(
834
- (B) => B.uid === w.chunk_uid
833
+ if (c) {
834
+ let d = !1;
835
+ if (x.chunk_uid && ((k = c.chunks) != null && k.length) && c.chunks.length > 1) {
836
+ const L = c.chunks.findIndex(
837
+ (B) => B.uid === x.chunk_uid
835
838
  );
836
- l.chunks[I] && (l.chunks[I] = {
837
- ...l.chunks[I],
839
+ c.chunks[L] && (c.chunks[L] = {
840
+ ...c.chunks[L],
838
841
  cancel: void 0,
839
842
  status: "done",
840
843
  response: v ?? void 0
841
844
  });
842
- const W = l.chunks.every((B) => B.status === "done") ? "done" : "uploading";
843
- W === "done" ? l = {
844
- ...l,
845
+ const H = c.chunks.every((B) => B.status === "done") ? "done" : "uploading";
846
+ H === "done" ? c = {
847
+ ...c,
845
848
  cancel: void 0,
846
- status: W
847
- } : l.chunks.some((B) => B.status === "waiting") && (f = !0);
849
+ status: H
850
+ } : c.chunks.some((B) => B.status === "waiting") && (d = !0);
848
851
  } else
849
- l = {
850
- ...l,
852
+ c = {
853
+ ...c,
851
854
  cancel: void 0,
852
855
  status: "done",
853
856
  response: v ?? void 0
854
857
  };
855
- P(w.uid, l), f && await Y(l);
858
+ P(x.uid, c), d && await Z(c);
856
859
  }
857
860
  } catch (v) {
858
861
  if (v.name === "CanceledError") {
859
- let l = x(
860
- r.value.find((f) => f.uid === w.uid)
862
+ let c = _(
863
+ a.value.find((d) => d.uid === x.uid)
861
864
  );
862
- if (l) {
863
- if (w.chunk_uid && ((C = l.chunks) != null && C.length) && l.chunks.length > 1) {
864
- const f = l.chunks.findIndex(
865
- (I) => I.uid === w.chunk_uid
865
+ if (c) {
866
+ if (x.chunk_uid && ((F = c.chunks) != null && F.length) && c.chunks.length > 1) {
867
+ const d = c.chunks.findIndex(
868
+ (L) => L.uid === x.chunk_uid
866
869
  );
867
- l.chunks[f] && (l.chunks[f] = {
868
- ...l.chunks[f],
870
+ c.chunks[d] && (c.chunks[d] = {
871
+ ...c.chunks[d],
869
872
  cancel: void 0,
870
873
  status: "waiting"
871
- }), l = {
872
- ...l,
874
+ }), c = {
875
+ ...c,
873
876
  cancel: void 0,
874
877
  status: "paused"
875
878
  }, n("change", {
876
- file: x(l),
877
- fileList: x(r.value),
879
+ file: _(c),
880
+ fileList: _(a.value),
878
881
  event: "paused"
879
882
  });
880
883
  } else
881
- l = {
882
- ...l,
884
+ c = {
885
+ ...c,
883
886
  cancel: void 0,
884
887
  status: "error"
885
888
  }, n("change", {
886
- file: x(l),
887
- fileList: x(r.value),
889
+ file: _(c),
890
+ fileList: _(a.value),
888
891
  event: "cancel"
889
892
  });
890
- P(w.uid, l);
893
+ P(x.uid, c);
891
894
  }
892
895
  } else {
893
- let l = x(
894
- r.value.find((f) => f.uid === w.uid)
896
+ let c = _(
897
+ a.value.find((d) => d.uid === x.uid)
895
898
  );
896
- if (l) {
897
- if (w.chunk_uid && ((ge = l.chunks) != null && ge.length) && l.chunks.length > 1) {
898
- const f = l.chunks.findIndex(
899
- (I) => I.uid === w.chunk_uid
899
+ if (c) {
900
+ if (x.chunk_uid && ((Q = c.chunks) != null && Q.length) && c.chunks.length > 1) {
901
+ const d = c.chunks.findIndex(
902
+ (L) => L.uid === x.chunk_uid
900
903
  );
901
- l.chunks[f] && (l.chunks[f] = {
902
- ...l.chunks[f],
904
+ c.chunks[d] && (c.chunks[d] = {
905
+ ...c.chunks[d],
903
906
  cancel: void 0,
904
907
  status: "waiting"
905
908
  });
906
909
  }
907
- l = {
908
- ...l,
910
+ c = {
911
+ ...c,
909
912
  cancel: void 0,
910
913
  status: "error",
911
914
  error: v,
912
915
  percent: 0
913
916
  }, n("change", {
914
- file: x(l),
915
- fileList: x(r.value),
917
+ file: _(c),
918
+ fileList: _(a.value),
916
919
  event: "failed"
917
- }), P(w.uid, l);
920
+ }), P(x.uid, c);
918
921
  }
919
922
  }
920
923
  }
@@ -922,36 +925,41 @@ const Lt = /* @__PURE__ */ D({
922
925
  }
923
926
  }
924
927
  }, Re = async (i) => {
925
- if (i.uid && r.value)
926
- return P(i.uid, { status: "waiting" }), n("resetRequest", i), Y(i);
928
+ if (i.uid && a.value)
929
+ return P(i.uid, { status: "waiting" }), n("resetRequest", i), Z(i);
927
930
  }, Se = async (i) => {
928
- if (i.uid && r.value) {
929
- const h = x(r.value ?? []), k = h.findIndex((C) => C.uid === i.uid);
930
- k > -1 && h[k] && (h.splice(k, 1), r.value = h, n("remove", i), n("change", {
931
- file: x(i),
932
- fileList: x(r.value),
931
+ var h;
932
+ if (i.uid && a.value) {
933
+ const k = _(a.value ?? []), F = k.findIndex((Q) => Q.uid === i.uid);
934
+ F > -1 && k[F] && ((h = i.cancel) == null || h.call(i), k.splice(F, 1), a.value = k, n("remove", i), n("change", {
935
+ file: _(i),
936
+ fileList: _(a.value),
933
937
  event: "remove"
934
938
  }));
935
939
  }
936
- }, $e = (i) => !!((o.parallelUpload || !X.value.length) && (i.status === "paused" || i.status === "error" || (!o.uploadOnSelect || o.listType === "image") && i.status === "waiting")), Pe = _(() => {
940
+ }, $e = (i) => !!((o.parallelUpload || !W.value.length) && (i.status === "paused" || i.status === "error" || (!o.uploadOnSelect || o.listType === "image") && i.status === "waiting")), Pe = C(() => {
937
941
  switch (o.size) {
938
942
  case "xlg":
939
943
  return "md";
940
944
  default:
941
945
  return "sm";
942
946
  }
943
- });
944
- Ne(() => {
945
- (o.parallelUpload && te.value.length || !X.value.length) && te.value.forEach(Y), (r.value || []).forEach((i, h) => {
946
- typeof document > "u" || typeof window > "u" || !window.FileReader || !window.File || !(i.originFileObj instanceof File || i.originFileObj instanceof Blob) || i.thumbUrl !== void 0 || (i.thumbUrl = "", ht(i.originFileObj).then((k) => {
947
- const C = k || "";
948
- C !== i.thumbUrl && P(i == null ? void 0 : i.uid, {
949
- thumbUrl: C
947
+ }), Be = Ye(() => {
948
+ (o.parallelUpload && Y.value.length || !W.value.length) && Y.value.forEach(Z), (a.value || []).forEach((i) => {
949
+ typeof document > "u" || typeof window > "u" || !window.FileReader || !window.File || !(i.originFileObj instanceof File || i.originFileObj instanceof Blob) || i.thumbUrl !== void 0 || (i.thumbUrl = "", yt(i.originFileObj).then((h) => {
950
+ const k = h || "";
951
+ k !== i.thumbUrl && P(i == null ? void 0 : i.uid, {
952
+ thumbUrl: k
950
953
  });
951
954
  }));
952
955
  });
953
- });
954
- const Be = _(() => {
956
+ }, 1e3);
957
+ ie(
958
+ () => [o.parallelUpload, Y.value, W.value, a.value],
959
+ Be,
960
+ { deep: !0, flush: "post" }
961
+ );
962
+ const je = C(() => {
955
963
  switch (o.size) {
956
964
  case "xlg":
957
965
  return "sm";
@@ -960,53 +968,53 @@ const Lt = /* @__PURE__ */ D({
960
968
  default:
961
969
  return "x2sm";
962
970
  }
963
- }), se = {
971
+ }), ne = {
964
972
  props: o,
965
973
  attrs: p,
966
- slots: c,
974
+ slots: l,
967
975
  emit: n,
968
- fileList: Ge(r),
969
- progressSize: Be,
970
- uploadableFiles: te,
971
- uploadingFiles: X,
972
- createRequest: Y,
976
+ fileList: Ve(a),
977
+ progressSize: je,
978
+ uploadableFiles: Y,
979
+ uploadingFiles: W,
980
+ createRequest: Z,
973
981
  resetRequest: Re,
974
982
  canRunUpload: $e,
975
983
  remove: Se,
976
984
  goSize: Pe,
977
- addFiles: me
985
+ addFiles: he
978
986
  };
979
- return Ze(se), t(se), (i, h) => (b(), O(pe, null, [
980
- i.noTrigger ? R("", !0) : (b(), z(gt, {
987
+ return et(ne), t(ne), (i, h) => (b(), O(fe, null, [
988
+ i.noTrigger ? R("", !0) : (b(), U(vt, {
981
989
  key: 0,
982
990
  multiple: i.multiple,
983
991
  directory: i.directory,
984
992
  disabled: i.disabled,
985
993
  accept: $.value,
986
- onAddFiles: me,
994
+ onAddFiles: he,
987
995
  class: S(i.triggerCls)
988
996
  }, {
989
- default: Q((k) => [
990
- ae(i.$slots, "default", re(le(k)))
997
+ default: te((k) => [
998
+ le(i.$slots, "default", ce(ue(k)))
991
999
  ]),
992
1000
  _: 3
993
1001
  }, 8, ["multiple", "directory", "disabled", "accept", "class"])),
994
- ae(i.$slots, "list", re(le(se)), () => [
995
- j(ut)
1002
+ le(i.$slots, "list", ce(ue(ne)), () => [
1003
+ E(dt)
996
1004
  ])
997
1005
  ], 64));
998
1006
  }
999
1007
  });
1000
1008
  export {
1001
- tt as U,
1002
- Lt as _,
1003
- gt as a,
1004
- Z as b,
1005
- F as c,
1006
- Fe as d,
1009
+ nt as U,
1010
+ Rt as _,
1011
+ vt as a,
1012
+ ee as b,
1013
+ z as c,
1014
+ Ue as d,
1007
1015
  Ie as e,
1008
- st as f,
1009
- K as i,
1010
- Ze as p,
1016
+ ot as f,
1017
+ X as i,
1018
+ et as p,
1011
1019
  _e as u
1012
1020
  };