yc-design-vue 2.0.5 → 2.0.6

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 (383) hide show
  1. package/dist/index.umd.js +1 -1
  2. package/dist/style.css +1 -1
  3. package/es/Alert/index.d.ts +3 -3
  4. package/es/Alert/index.vue.d.ts +1 -1
  5. package/es/Alert/type.d.ts +2 -2
  6. package/es/Anchor/Anchor.vue.d.ts +1 -1
  7. package/es/Anchor/hooks/useContext.d.ts +1 -1
  8. package/es/Anchor/index.d.ts +3 -3
  9. package/es/Anchor/type.d.ts +3 -2
  10. package/es/AutoComplete/index.d.ts +18 -9
  11. package/es/AutoComplete/index.vue.d.ts +36 -18
  12. package/es/Avatar/Avatar.vue.d.ts +1 -1
  13. package/es/Avatar/index.d.ts +3 -3
  14. package/es/Avatar/type.d.ts +3 -2
  15. package/es/Badge/index.d.ts +3 -3
  16. package/es/Badge/index.vue.d.ts +1 -1
  17. package/es/Badge/type.d.ts +2 -2
  18. package/es/Button/Button.vue.d.ts +2 -2
  19. package/es/Button/ButtonGroup.vue.d.ts +1 -1
  20. package/es/Button/hooks/useContext.d.ts +3 -3
  21. package/es/Button/index.d.ts +9 -9
  22. package/es/Button/type.d.ts +6 -6
  23. package/es/Card/Card.vue.d.ts +1 -1
  24. package/es/Card/index.d.ts +3 -3
  25. package/es/Card/type.d.ts +1 -2
  26. package/es/Carousel/Carousel.vue.d.ts +2 -2
  27. package/es/Carousel/hooks/useContext.d.ts +3 -3
  28. package/es/Carousel/index.d.ts +6 -6
  29. package/es/Carousel/type.d.ts +6 -6
  30. package/es/Cascader/Cascader.vue.d.ts +7 -7
  31. package/es/Cascader/index.d.ts +6 -6
  32. package/es/Collapse/hooks/useContext.d.ts +2 -13
  33. package/es/Collapse/hooks/useContext.js +0 -1
  34. package/es/Collapse/type.d.ts +2 -1
  35. package/es/Descriptions/Descriptions.vue.d.ts +3 -3
  36. package/es/Descriptions/hooks/useContext.d.ts +1 -1
  37. package/es/Descriptions/index.d.ts +9 -9
  38. package/es/Descriptions/type.d.ts +7 -6
  39. package/es/Divider/index.d.ts +6 -6
  40. package/es/Divider/index.vue.d.ts +2 -2
  41. package/es/Divider/type.d.ts +4 -3
  42. package/es/Drawer/Drawer.vue.d.ts +1 -1
  43. package/es/Drawer/DrawerService.vue.d.ts +1 -1
  44. package/es/Drawer/index.d.ts +5 -9
  45. package/es/Drawer/type.d.ts +8 -4
  46. package/es/Dropdown/Dropdown.vue.d.ts +1 -1
  47. package/es/Dropdown/DropdownButton.vue.d.ts +1 -1
  48. package/es/Dropdown/Dsubmenu.vue.d.ts +1 -1
  49. package/es/Dropdown/index.d.ts +9 -9
  50. package/es/Dropdown/type.d.ts +4 -6
  51. package/es/Grid/hooks/useContext.d.ts +0 -11
  52. package/es/Grid/hooks/useContext.js +0 -1
  53. package/es/Image/Image.vue.d.ts +2 -2
  54. package/es/Image/ImagePreview.vue.js +1 -1
  55. package/es/Image/index.d.ts +6 -6
  56. package/es/Image/type.d.ts +3 -2
  57. package/es/Input/Input.vue.d.ts +1 -1
  58. package/es/Input/InputSuffix.vue.js +1 -1
  59. package/es/Input/index.d.ts +3 -3
  60. package/es/InputNumber/InputNumber.vue.d.ts +8 -8
  61. package/es/InputNumber/InputOperaBtn.vue.d.ts +2 -2
  62. package/es/InputNumber/index.d.ts +9 -9
  63. package/es/InputNumber/type.d.ts +5 -4
  64. package/es/InputTag/index.d.ts +15 -6
  65. package/es/InputTag/index.vue.d.ts +5 -2
  66. package/es/InputTag/type.d.ts +2 -1
  67. package/es/Layout/LayoutSider.vue.d.ts +3 -3
  68. package/es/Layout/index.d.ts +8 -8
  69. package/es/Layout/type.d.ts +3 -4
  70. package/es/Link/index.d.ts +3 -3
  71. package/es/Link/index.vue.d.ts +1 -1
  72. package/es/Link/type.d.ts +2 -2
  73. package/es/List/List.vue.d.ts +7 -7
  74. package/es/List/index.d.ts +6 -6
  75. package/es/List/type.d.ts +2 -3
  76. package/es/Mention/index.d.ts +21 -12
  77. package/es/Mention/index.vue.d.ts +37 -19
  78. package/es/Mention/type.d.ts +3 -2
  79. package/es/Menu/Menu.vue.d.ts +2 -2
  80. package/es/Menu/index.d.ts +5 -5
  81. package/es/Menu/type.d.ts +2 -2
  82. package/es/Message/type.d.ts +3 -3
  83. package/es/Modal/Modal.vue.d.ts +1 -1
  84. package/es/Modal/ModalService.vue.d.ts +1 -1
  85. package/es/Modal/index.d.ts +13 -13
  86. package/es/Modal/index.js +1 -4
  87. package/es/Modal/type.d.ts +6 -9
  88. package/es/Notification/Notification.vue.d.ts +1 -1
  89. package/es/Notification/index.d.ts +4 -4
  90. package/es/Notification/type.d.ts +3 -4
  91. package/es/OverflowList/index.d.ts +3 -3
  92. package/es/OverflowList/index.vue.d.ts +1 -1
  93. package/es/OverflowList/type.d.ts +3 -2
  94. package/es/Popconfirm/index.d.ts +3 -3
  95. package/es/Popconfirm/index.vue.d.ts +1 -1
  96. package/es/Popconfirm/type.d.ts +2 -3
  97. package/es/Progress/Progress.vue.d.ts +1 -1
  98. package/es/Progress/ProgressCircle.vue.d.ts +3 -3
  99. package/es/Progress/ProgressLine.vue.d.ts +3 -3
  100. package/es/Progress/index.d.ts +3 -3
  101. package/es/Progress/type.d.ts +2 -3
  102. package/es/Radio/type.d.ts +1 -1
  103. package/es/ResizeBox/index.d.ts +3 -3
  104. package/es/ResizeBox/index.vue.d.ts +2 -2
  105. package/es/ResizeBox/type.d.ts +4 -4
  106. package/es/Result/index.d.ts +3 -3
  107. package/es/Result/index.vue.d.ts +1 -1
  108. package/es/Result/type.d.ts +3 -2
  109. package/es/Scrollbar/Scrollbar.vue.d.ts +1 -1
  110. package/es/Scrollbar/index.d.ts +3 -3
  111. package/es/Scrollbar/type.d.ts +2 -1
  112. package/es/Select/Select.vue.d.ts +31 -13
  113. package/es/Select/hooks/useContext.d.ts +2 -2
  114. package/es/Select/hooks/useSelectOptions.d.ts +2 -2
  115. package/es/Select/index.d.ts +18 -9
  116. package/es/Skeleton/SkeletonShape.vue.d.ts +2 -2
  117. package/es/Skeleton/index.d.ts +2 -2
  118. package/es/Skeleton/type.d.ts +2 -4
  119. package/es/Space/index.d.ts +6 -6
  120. package/es/Space/index.vue.d.ts +2 -2
  121. package/es/Space/type.d.ts +5 -4
  122. package/es/Switch/index.d.ts +9 -9
  123. package/es/Switch/index.vue.d.ts +3 -3
  124. package/es/Switch/type.d.ts +4 -4
  125. package/es/Tabs/Tabs.vue.d.ts +1 -1
  126. package/es/Tabs/hooks/useContext.d.ts +4 -4
  127. package/es/Tabs/index.d.ts +3 -3
  128. package/es/Tabs/type.d.ts +2 -3
  129. package/es/Tag/index.d.ts +3 -3
  130. package/es/Tag/index.vue.d.ts +1 -1
  131. package/es/Tag/type.d.ts +1 -2
  132. package/es/Textarea/type.d.ts +2 -2
  133. package/es/TimePicker/TimePicker.vue.d.ts +1 -1
  134. package/es/TimePicker/index.d.ts +3 -3
  135. package/es/Timeline/TimelineItem.vue.d.ts +1 -1
  136. package/es/Timeline/index.d.ts +3 -3
  137. package/es/Timeline/type.d.ts +3 -4
  138. package/es/Transfer/TransferPanel.vue.js +1 -1
  139. package/es/Typography/TypographyBase.vue.d.ts +7 -7
  140. package/es/Typography/TypographyBase.vue.js +2 -2
  141. package/es/Typography/TypographyParagraph.vue.d.ts +1 -1
  142. package/es/Typography/TypographyTitle.vue.d.ts +1 -1
  143. package/es/Typography/type.d.ts +5 -4
  144. package/es/Upload/Upload.vue.d.ts +53 -0
  145. package/es/Upload/Upload.vue.js +110 -0
  146. package/es/Upload/Upload.vue3.js +5 -0
  147. package/es/Upload/UploadButton.vue.d.ts +2 -0
  148. package/es/Upload/UploadButton.vue.js +39 -0
  149. package/es/Upload/UploadButton.vue3.js +5 -0
  150. package/es/Upload/UploadDrag.vue.d.ts +2 -0
  151. package/es/Upload/UploadDrag.vue.js +37 -0
  152. package/es/Upload/UploadDrag.vue3.js +5 -0
  153. package/es/Upload/UploadFileList.vue.d.ts +24 -0
  154. package/es/Upload/UploadFileList.vue.js +7 -0
  155. package/es/Upload/UploadFileList.vue2.js +126 -0
  156. package/es/Upload/UploadPictureCard.vue.d.ts +4 -0
  157. package/es/Upload/UploadPictureCard.vue.js +7 -0
  158. package/es/Upload/UploadPictureCard.vue2.js +132 -0
  159. package/es/Upload/hooks/useContext.d.ts +49 -0
  160. package/es/Upload/hooks/useContext.js +92 -0
  161. package/es/Upload/hooks/useUpload.d.ts +47 -0
  162. package/es/Upload/hooks/useUpload.js +80 -0
  163. package/es/Upload/index.css +1 -0
  164. package/es/Upload/index.d.ts +123 -0
  165. package/es/Upload/index.js +10 -0
  166. package/es/Upload/type.d.ts +72 -0
  167. package/es/VerificationCode/index.d.ts +3 -3
  168. package/es/VerificationCode/index.vue.d.ts +1 -1
  169. package/es/VerificationCode/type.d.ts +5 -4
  170. package/es/_shared/icons/IconCopy.vue.js +1 -19
  171. package/es/_shared/icons/IconCopy.vue2.js +19 -1
  172. package/es/_shared/icons/IconDelete.vue.js +19 -1
  173. package/es/_shared/icons/IconDelete.vue2.js +1 -19
  174. package/es/_shared/icons/IconEdit.vue.js +1 -19
  175. package/es/_shared/icons/IconEdit.vue2.js +19 -1
  176. package/es/_shared/icons/IconEyeClose.vue.js +23 -1
  177. package/es/_shared/icons/IconEyeClose.vue2.js +1 -23
  178. package/es/_shared/icons/IconFile.vue.d.ts +2 -0
  179. package/es/_shared/icons/IconFile.vue.js +22 -0
  180. package/es/_shared/icons/IconFile.vue2.js +4 -0
  181. package/es/_shared/icons/IconUpload.vue.d.ts +2 -0
  182. package/es/_shared/icons/IconUpload.vue.js +22 -0
  183. package/es/_shared/icons/IconUpload.vue2.js +4 -0
  184. package/es/_shared/icons/index.d.ts +2 -0
  185. package/es/_shared/type/index.d.ts +3 -1
  186. package/es/_shared/utils/vue-utils.d.ts +1 -1
  187. package/es/_virtual/_plugin-vue_export-helper.js +10 -0
  188. package/es/index.d.ts +31 -30
  189. package/es/index.js +5 -3
  190. package/es/node_modules/@vueuse/core/index.js +171 -9
  191. package/es/node_modules/@vueuse/shared/index.js +29 -0
  192. package/es/style.css +1 -1
  193. package/lib/Alert/index.d.ts +3 -3
  194. package/lib/Alert/index.vue.d.ts +1 -1
  195. package/lib/Alert/type.d.ts +2 -2
  196. package/lib/Anchor/Anchor.vue.d.ts +1 -1
  197. package/lib/Anchor/hooks/useContext.d.ts +1 -1
  198. package/lib/Anchor/index.d.ts +3 -3
  199. package/lib/Anchor/type.d.ts +3 -2
  200. package/lib/AutoComplete/index.d.ts +18 -9
  201. package/lib/AutoComplete/index.vue.d.ts +36 -18
  202. package/lib/Avatar/Avatar.vue.d.ts +1 -1
  203. package/lib/Avatar/index.d.ts +3 -3
  204. package/lib/Avatar/type.d.ts +3 -2
  205. package/lib/Badge/index.d.ts +3 -3
  206. package/lib/Badge/index.vue.d.ts +1 -1
  207. package/lib/Badge/type.d.ts +2 -2
  208. package/lib/Button/Button.vue.d.ts +2 -2
  209. package/lib/Button/ButtonGroup.vue.d.ts +1 -1
  210. package/lib/Button/hooks/useContext.d.ts +3 -3
  211. package/lib/Button/index.d.ts +9 -9
  212. package/lib/Button/type.d.ts +6 -6
  213. package/lib/Card/Card.vue.d.ts +1 -1
  214. package/lib/Card/index.d.ts +3 -3
  215. package/lib/Card/type.d.ts +1 -2
  216. package/lib/Carousel/Carousel.vue.d.ts +2 -2
  217. package/lib/Carousel/hooks/useContext.d.ts +3 -3
  218. package/lib/Carousel/index.d.ts +6 -6
  219. package/lib/Carousel/type.d.ts +6 -6
  220. package/lib/Cascader/Cascader.vue.d.ts +7 -7
  221. package/lib/Cascader/index.d.ts +6 -6
  222. package/lib/Collapse/hooks/useContext.d.ts +2 -13
  223. package/lib/Collapse/hooks/useContext.js +1 -1
  224. package/lib/Collapse/type.d.ts +2 -1
  225. package/lib/Descriptions/Descriptions.vue.d.ts +3 -3
  226. package/lib/Descriptions/hooks/useContext.d.ts +1 -1
  227. package/lib/Descriptions/index.d.ts +9 -9
  228. package/lib/Descriptions/type.d.ts +7 -6
  229. package/lib/Divider/index.d.ts +6 -6
  230. package/lib/Divider/index.vue.d.ts +2 -2
  231. package/lib/Divider/type.d.ts +4 -3
  232. package/lib/Drawer/Drawer.vue.d.ts +1 -1
  233. package/lib/Drawer/DrawerService.vue.d.ts +1 -1
  234. package/lib/Drawer/index.d.ts +5 -9
  235. package/lib/Drawer/type.d.ts +8 -4
  236. package/lib/Dropdown/Dropdown.vue.d.ts +1 -1
  237. package/lib/Dropdown/DropdownButton.vue.d.ts +1 -1
  238. package/lib/Dropdown/Dsubmenu.vue.d.ts +1 -1
  239. package/lib/Dropdown/index.d.ts +9 -9
  240. package/lib/Dropdown/type.d.ts +4 -6
  241. package/lib/Grid/hooks/useContext.d.ts +0 -11
  242. package/lib/Grid/hooks/useContext.js +1 -1
  243. package/lib/Image/Image.vue.d.ts +2 -2
  244. package/lib/Image/ImagePreview.vue.js +1 -1
  245. package/lib/Image/index.d.ts +6 -6
  246. package/lib/Image/type.d.ts +3 -2
  247. package/lib/Input/Input.vue.d.ts +1 -1
  248. package/lib/Input/InputSuffix.vue.js +1 -1
  249. package/lib/Input/index.d.ts +3 -3
  250. package/lib/InputNumber/InputNumber.vue.d.ts +8 -8
  251. package/lib/InputNumber/InputOperaBtn.vue.d.ts +2 -2
  252. package/lib/InputNumber/index.d.ts +9 -9
  253. package/lib/InputNumber/type.d.ts +5 -4
  254. package/lib/InputTag/index.d.ts +15 -6
  255. package/lib/InputTag/index.vue.d.ts +5 -2
  256. package/lib/InputTag/type.d.ts +2 -1
  257. package/lib/Layout/LayoutSider.vue.d.ts +3 -3
  258. package/lib/Layout/index.d.ts +8 -8
  259. package/lib/Layout/type.d.ts +3 -4
  260. package/lib/Link/index.d.ts +3 -3
  261. package/lib/Link/index.vue.d.ts +1 -1
  262. package/lib/Link/type.d.ts +2 -2
  263. package/lib/List/List.vue.d.ts +7 -7
  264. package/lib/List/index.d.ts +6 -6
  265. package/lib/List/type.d.ts +2 -3
  266. package/lib/Mention/index.d.ts +21 -12
  267. package/lib/Mention/index.vue.d.ts +37 -19
  268. package/lib/Mention/type.d.ts +3 -2
  269. package/lib/Menu/Menu.vue.d.ts +2 -2
  270. package/lib/Menu/index.d.ts +5 -5
  271. package/lib/Menu/type.d.ts +2 -2
  272. package/lib/Message/type.d.ts +3 -3
  273. package/lib/Modal/Modal.vue.d.ts +1 -1
  274. package/lib/Modal/ModalService.vue.d.ts +1 -1
  275. package/lib/Modal/index.d.ts +13 -13
  276. package/lib/Modal/index.js +1 -1
  277. package/lib/Modal/type.d.ts +6 -9
  278. package/lib/Notification/Notification.vue.d.ts +1 -1
  279. package/lib/Notification/index.d.ts +4 -4
  280. package/lib/Notification/type.d.ts +3 -4
  281. package/lib/OverflowList/index.d.ts +3 -3
  282. package/lib/OverflowList/index.vue.d.ts +1 -1
  283. package/lib/OverflowList/type.d.ts +3 -2
  284. package/lib/Popconfirm/index.d.ts +3 -3
  285. package/lib/Popconfirm/index.vue.d.ts +1 -1
  286. package/lib/Popconfirm/type.d.ts +2 -3
  287. package/lib/Progress/Progress.vue.d.ts +1 -1
  288. package/lib/Progress/ProgressCircle.vue.d.ts +3 -3
  289. package/lib/Progress/ProgressLine.vue.d.ts +3 -3
  290. package/lib/Progress/index.d.ts +3 -3
  291. package/lib/Progress/type.d.ts +2 -3
  292. package/lib/Radio/type.d.ts +1 -1
  293. package/lib/ResizeBox/index.d.ts +3 -3
  294. package/lib/ResizeBox/index.vue.d.ts +2 -2
  295. package/lib/ResizeBox/type.d.ts +4 -4
  296. package/lib/Result/index.d.ts +3 -3
  297. package/lib/Result/index.vue.d.ts +1 -1
  298. package/lib/Result/type.d.ts +3 -2
  299. package/lib/Scrollbar/Scrollbar.vue.d.ts +1 -1
  300. package/lib/Scrollbar/index.d.ts +3 -3
  301. package/lib/Scrollbar/type.d.ts +2 -1
  302. package/lib/Select/Select.vue.d.ts +31 -13
  303. package/lib/Select/hooks/useContext.d.ts +2 -2
  304. package/lib/Select/hooks/useSelectOptions.d.ts +2 -2
  305. package/lib/Select/index.d.ts +18 -9
  306. package/lib/Skeleton/SkeletonShape.vue.d.ts +2 -2
  307. package/lib/Skeleton/index.d.ts +2 -2
  308. package/lib/Skeleton/type.d.ts +2 -4
  309. package/lib/Space/index.d.ts +6 -6
  310. package/lib/Space/index.vue.d.ts +2 -2
  311. package/lib/Space/type.d.ts +5 -4
  312. package/lib/Switch/index.d.ts +9 -9
  313. package/lib/Switch/index.vue.d.ts +3 -3
  314. package/lib/Switch/type.d.ts +4 -4
  315. package/lib/Tabs/Tabs.vue.d.ts +1 -1
  316. package/lib/Tabs/hooks/useContext.d.ts +4 -4
  317. package/lib/Tabs/index.d.ts +3 -3
  318. package/lib/Tabs/type.d.ts +2 -3
  319. package/lib/Tag/index.d.ts +3 -3
  320. package/lib/Tag/index.vue.d.ts +1 -1
  321. package/lib/Tag/type.d.ts +1 -2
  322. package/lib/Textarea/type.d.ts +2 -2
  323. package/lib/TimePicker/TimePicker.vue.d.ts +1 -1
  324. package/lib/TimePicker/index.d.ts +3 -3
  325. package/lib/Timeline/TimelineItem.vue.d.ts +1 -1
  326. package/lib/Timeline/index.d.ts +3 -3
  327. package/lib/Timeline/type.d.ts +3 -4
  328. package/lib/Transfer/TransferPanel.vue.js +1 -1
  329. package/lib/Typography/TypographyBase.vue.d.ts +7 -7
  330. package/lib/Typography/TypographyBase.vue.js +1 -1
  331. package/lib/Typography/TypographyParagraph.vue.d.ts +1 -1
  332. package/lib/Typography/TypographyTitle.vue.d.ts +1 -1
  333. package/lib/Typography/type.d.ts +5 -4
  334. package/lib/Upload/Upload.vue.d.ts +53 -0
  335. package/lib/Upload/Upload.vue.js +1 -0
  336. package/lib/Upload/Upload.vue3.js +1 -0
  337. package/lib/Upload/UploadButton.vue.d.ts +2 -0
  338. package/lib/Upload/UploadButton.vue.js +1 -0
  339. package/lib/Upload/UploadButton.vue3.js +1 -0
  340. package/lib/Upload/UploadDrag.vue.d.ts +2 -0
  341. package/lib/Upload/UploadDrag.vue.js +1 -0
  342. package/lib/Upload/UploadDrag.vue3.js +1 -0
  343. package/lib/Upload/UploadFileList.vue.d.ts +24 -0
  344. package/lib/Upload/UploadFileList.vue.js +1 -0
  345. package/lib/Upload/UploadFileList.vue2.js +1 -0
  346. package/lib/Upload/UploadPictureCard.vue.d.ts +4 -0
  347. package/lib/Upload/UploadPictureCard.vue.js +1 -0
  348. package/lib/Upload/UploadPictureCard.vue2.js +1 -0
  349. package/lib/Upload/hooks/useContext.d.ts +49 -0
  350. package/lib/Upload/hooks/useContext.js +1 -0
  351. package/lib/Upload/hooks/useUpload.d.ts +47 -0
  352. package/lib/Upload/hooks/useUpload.js +1 -0
  353. package/lib/Upload/index.css +1 -0
  354. package/lib/Upload/index.d.ts +123 -0
  355. package/lib/Upload/index.js +1 -0
  356. package/lib/Upload/type.d.ts +72 -0
  357. package/lib/VerificationCode/index.d.ts +3 -3
  358. package/lib/VerificationCode/index.vue.d.ts +1 -1
  359. package/lib/VerificationCode/type.d.ts +5 -4
  360. package/lib/_shared/icons/IconCopy.vue.js +1 -1
  361. package/lib/_shared/icons/IconCopy.vue2.js +1 -1
  362. package/lib/_shared/icons/IconDelete.vue.js +1 -1
  363. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  364. package/lib/_shared/icons/IconEdit.vue.js +1 -1
  365. package/lib/_shared/icons/IconEdit.vue2.js +1 -1
  366. package/lib/_shared/icons/IconEyeClose.vue.js +1 -1
  367. package/lib/_shared/icons/IconEyeClose.vue2.js +1 -1
  368. package/lib/_shared/icons/IconFile.vue.d.ts +2 -0
  369. package/lib/_shared/icons/IconFile.vue.js +1 -0
  370. package/lib/_shared/icons/IconFile.vue2.js +1 -0
  371. package/lib/_shared/icons/IconUpload.vue.d.ts +2 -0
  372. package/lib/_shared/icons/IconUpload.vue.js +1 -0
  373. package/lib/_shared/icons/IconUpload.vue2.js +1 -0
  374. package/lib/_shared/icons/index.d.ts +2 -0
  375. package/lib/_shared/type/index.d.ts +3 -1
  376. package/lib/_shared/utils/vue-utils.d.ts +1 -1
  377. package/lib/_virtual/_plugin-vue_export-helper.js +1 -0
  378. package/lib/index.d.ts +31 -30
  379. package/lib/index.js +1 -1
  380. package/lib/node_modules/@vueuse/core/index.js +1 -1
  381. package/lib/node_modules/@vueuse/shared/index.js +1 -1
  382. package/lib/style.css +1 -1
  383. package/package.json +1 -1
@@ -23,7 +23,7 @@ declare const __VLS_component: import('vue').DefineComponent<DropdownProps, {
23
23
  popupVisible: boolean;
24
24
  defaultPopupVisible: boolean;
25
25
  alignPoint: boolean;
26
- position: import('./type').DropdownPosition;
26
+ position: Extract<import('..').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
27
27
  triggerProps: import('../Trigger').TriggerProps;
28
28
  hideOnSelect: boolean;
29
29
  popupMaxHeight: import('..').PopupMaxHeight;
@@ -22,7 +22,7 @@ declare const __VLS_component: import('vue').DefineComponent<DropdownButtonProps
22
22
  popupVisible: boolean;
23
23
  defaultPopupVisible: boolean;
24
24
  disabled: boolean;
25
- position: import('./type').DropdownPosition;
25
+ position: Extract<import('..').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
26
26
  hideOnSelect: boolean;
27
27
  buttonProps: import('../Button').ButtonProps;
28
28
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
@@ -321,7 +321,7 @@ declare const __VLS_component: import('vue').DefineComponent<DsubmenuProps, {
321
321
  popupVisible: boolean;
322
322
  defaultPopupVisible: boolean;
323
323
  disabled: boolean;
324
- position: import('./type').DsubmenuPosition;
324
+ position: Extract<import('..').PopupPosition, "rt" | "lt">;
325
325
  triggerProps: import('../Trigger').TriggerProps;
326
326
  popupMaxHeight: import('..').PopupMaxHeight;
327
327
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
@@ -28,7 +28,7 @@ declare const Dropdown: {
28
28
  popupVisible: boolean;
29
29
  defaultPopupVisible: boolean;
30
30
  alignPoint: boolean;
31
- position: import('./type').DropdownPosition;
31
+ position: Extract<import('..').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
32
32
  triggerProps: import('..').TriggerProps;
33
33
  hideOnSelect: boolean;
34
34
  popupMaxHeight: import('..').PopupMaxHeight;
@@ -52,7 +52,7 @@ declare const Dropdown: {
52
52
  popupVisible: boolean;
53
53
  defaultPopupVisible: boolean;
54
54
  alignPoint: boolean;
55
- position: import('./type').DropdownPosition;
55
+ position: Extract<import('..').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
56
56
  triggerProps: import('..').TriggerProps;
57
57
  hideOnSelect: boolean;
58
58
  popupMaxHeight: import('..').PopupMaxHeight;
@@ -77,7 +77,7 @@ declare const Dropdown: {
77
77
  popupVisible: boolean;
78
78
  defaultPopupVisible: boolean;
79
79
  alignPoint: boolean;
80
- position: import('./type').DropdownPosition;
80
+ position: Extract<import('..').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
81
81
  triggerProps: import('..').TriggerProps;
82
82
  hideOnSelect: boolean;
83
83
  popupMaxHeight: import('..').PopupMaxHeight;
@@ -153,7 +153,7 @@ declare const Dropdown: {
153
153
  popupVisible: boolean;
154
154
  defaultPopupVisible: boolean;
155
155
  disabled: boolean;
156
- position: import('./type').DropdownPosition;
156
+ position: Extract<import('..').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
157
157
  hideOnSelect: boolean;
158
158
  buttonProps: import('..').ButtonProps;
159
159
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
@@ -175,7 +175,7 @@ declare const Dropdown: {
175
175
  popupVisible: boolean;
176
176
  defaultPopupVisible: boolean;
177
177
  disabled: boolean;
178
- position: import('./type').DropdownPosition;
178
+ position: Extract<import('..').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
179
179
  hideOnSelect: boolean;
180
180
  buttonProps: import('..').ButtonProps;
181
181
  }>;
@@ -198,7 +198,7 @@ declare const Dropdown: {
198
198
  popupVisible: boolean;
199
199
  defaultPopupVisible: boolean;
200
200
  disabled: boolean;
201
- position: import('./type').DropdownPosition;
201
+ position: Extract<import('..').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
202
202
  hideOnSelect: boolean;
203
203
  buttonProps: import('..').ButtonProps;
204
204
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
@@ -219,7 +219,7 @@ declare const Dropdown: {
219
219
  popupVisible: boolean;
220
220
  defaultPopupVisible: boolean;
221
221
  disabled: boolean;
222
- position: import('./type').DsubmenuPosition;
222
+ position: Extract<import('..').PopupPosition, "rt" | "lt">;
223
223
  triggerProps: import('..').TriggerProps;
224
224
  popupMaxHeight: import('..').PopupMaxHeight;
225
225
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
@@ -540,7 +540,7 @@ declare const Dropdown: {
540
540
  popupVisible: boolean;
541
541
  defaultPopupVisible: boolean;
542
542
  disabled: boolean;
543
- position: import('./type').DsubmenuPosition;
543
+ position: Extract<import('..').PopupPosition, "rt" | "lt">;
544
544
  triggerProps: import('..').TriggerProps;
545
545
  popupMaxHeight: import('..').PopupMaxHeight;
546
546
  }>;
@@ -561,7 +561,7 @@ declare const Dropdown: {
561
561
  popupVisible: boolean;
562
562
  defaultPopupVisible: boolean;
563
563
  disabled: boolean;
564
- position: import('./type').DsubmenuPosition;
564
+ position: Extract<import('..').PopupPosition, "rt" | "lt">;
565
565
  triggerProps: import('..').TriggerProps;
566
566
  popupMaxHeight: import('..').PopupMaxHeight;
567
567
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
@@ -1,4 +1,4 @@
1
- import { EventTrigger, RecordType, PopupContainer, PopupMaxHeight, Size } from '../_shared/type';
1
+ import { EventTrigger, RecordType, PopupContainer, PopupMaxHeight, PopupPosition, Size } from '../_shared/type';
2
2
  import { TriggerProps, TriggerType } from '../Trigger';
3
3
  import { ButtonProps, ButtonType } from '../Button';
4
4
  import { VNode } from 'vue';
@@ -6,7 +6,7 @@ export interface DropdownProps {
6
6
  popupVisible?: boolean;
7
7
  defaultPopupVisible?: boolean;
8
8
  trigger?: TriggerType;
9
- position?: DropdownPosition;
9
+ position?: Extract<PopupPosition, 'top' | 'tr' | 'tl' | 'bottom' | 'br' | 'bl'>;
10
10
  popupContainer?: PopupContainer;
11
11
  hideOnSelect?: boolean;
12
12
  alignPoint?: boolean;
@@ -41,7 +41,7 @@ export interface DoptionSlots {
41
41
  export interface DsubmenuProps {
42
42
  disabled?: boolean;
43
43
  trigger?: EventTrigger;
44
- position?: DsubmenuPosition;
44
+ position?: Extract<PopupPosition, 'rt' | 'lt'>;
45
45
  popupVisible?: boolean;
46
46
  defaultPopupVisible?: boolean;
47
47
  triggerProps?: TriggerProps;
@@ -67,7 +67,7 @@ export interface DropdownButtonProps {
67
67
  popupVisible?: boolean;
68
68
  defaultPopupVisible?: boolean;
69
69
  trigger?: TriggerType;
70
- position?: DropdownPosition;
70
+ position?: Extract<PopupPosition, 'top' | 'tr' | 'tl' | 'bottom' | 'br' | 'bl'>;
71
71
  popupContainer?: PopupContainer;
72
72
  disabled?: boolean;
73
73
  type?: ButtonType;
@@ -81,5 +81,3 @@ export interface DropdownButtonSlots {
81
81
  icon?: () => VNode[];
82
82
  }
83
83
  export type DoptionValue = string | number | boolean | RecordType;
84
- export type DropdownPosition = 'top' | 'tr' | 'tl' | 'bottom' | 'br' | 'bl';
85
- export type DsubmenuPosition = 'rt' | 'lt';
@@ -1,17 +1,6 @@
1
1
  import { Ref, Reactive } from 'vue';
2
2
  import { GridRowGutter } from '../type';
3
3
  import { RecordType, BreakpointName } from '../../_shared/type';
4
- export declare const GRID_CONTEXT_KEY = "grid-context";
5
- export type GridContext = {
6
- breakpoint: Ref<BreakpointName>;
7
- div: Ref<boolean>;
8
- gutter: Ref<number[]>;
9
- cols: Ref<number>;
10
- colGap: Ref<number>;
11
- spanMap: Reactive<SpanMap>;
12
- collapsed: Ref<boolean>;
13
- collapsedRows: Ref<number>;
14
- };
15
4
  export type SpanMap = Map<string, {
16
5
  id: string;
17
6
  span: number;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../node_modules/nanoid/index.browser.js"),a=require("../../_shared/utils/is.js"),o=require("../../_shared/utils/dom.js"),t="grid-context";exports.GRID_CONTEXT_KEY=t,exports.default=function(){return{provide:r=>{const{gutter:l=e.ref(0),cols:u=e.ref(24),rowGap:s=e.ref(0),colGap:p=e.ref(0),collapsed:n=e.ref(!1),collapsedRows:i=e.ref(1),div:c=e.ref(!1)}=e.toRefs(r),d=e.reactive(new Map),f=e.ref("xxl"),v=e.computed(()=>o.getBreakpointValue(f.value,u.value,24)),g=e.computed(()=>o.getBreakpointValue(f.value,s.value)),m=e.computed(()=>o.getBreakpointValue(f.value,p.value,0)),w=e.computed(()=>a.isArray(l.value)?l.value.map(e=>o.getBreakpointValue(f.value,e,0)):[o.getBreakpointValue(f.value,l.value,0),0]);return e.provide(t,{breakpoint:f,gutter:w,div:c,spanMap:d,cols:v,colGap:m,collapsed:n,collapsedRows:i}),{breakpoint:f,cols:v,colGap:m,rowGap:g,gutter:w}},inject:()=>{const a=e.inject(t,{gutter:e.ref([0,0]),breakpoint:e.ref("xs"),div:e.ref(!1),colGap:e.ref(0),cols:e.ref(24),collapsed:e.ref(!1),collapsedRows:e.ref(1),spanMap:new Map}),{spanMap:o}=a;return{...a,collectSpan:(a,t)=>{const l=r.nanoid();return e.watchEffect(()=>{o.set(l,{id:l,suffix:t.value,span:a.value})}),e.onBeforeUnmount(()=>{o.delete(l)}),{id:l}}}}}};
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../node_modules/nanoid/index.browser.js"),a=require("../../_shared/utils/is.js"),o=require("../../_shared/utils/dom.js"),t="grid-context";exports.default=function(){return{provide:r=>{const{gutter:l=e.ref(0),cols:u=e.ref(24),rowGap:s=e.ref(0),colGap:p=e.ref(0),collapsed:n=e.ref(!1),collapsedRows:i=e.ref(1),div:c=e.ref(!1)}=e.toRefs(r),d=e.reactive(new Map),f=e.ref("xxl"),v=e.computed(()=>o.getBreakpointValue(f.value,u.value,24)),g=e.computed(()=>o.getBreakpointValue(f.value,s.value)),m=e.computed(()=>o.getBreakpointValue(f.value,p.value,0)),w=e.computed(()=>a.isArray(l.value)?l.value.map(e=>o.getBreakpointValue(f.value,e,0)):[o.getBreakpointValue(f.value,l.value,0),0]);return e.provide(t,{breakpoint:f,gutter:w,div:c,spanMap:d,cols:v,colGap:m,collapsed:n,collapsedRows:i}),{breakpoint:f,cols:v,colGap:m,rowGap:g,gutter:w}},inject:()=>{const a=e.inject(t,{gutter:e.ref([0,0]),breakpoint:e.ref("xs"),div:e.ref(!1),colGap:e.ref(0),cols:e.ref(24),collapsed:e.ref(!1),collapsedRows:e.ref(1),spanMap:new Map}),{spanMap:o}=a;return{...a,collectSpan:(a,t)=>{const l=r.nanoid();return e.watchEffect(()=>{o.set(l,{id:l,suffix:t.value,span:a.value})}),e.onBeforeUnmount(()=>{o.delete(l)}),{id:l}}}}}};
@@ -16,8 +16,8 @@ declare const __VLS_component: import('vue').DefineComponent<ImageProps, {}, {},
16
16
  title: string;
17
17
  description: string;
18
18
  src: string;
19
- hideFooter: import('./type').HideFooter;
20
- footerPosition: import('./type').FooterPostion;
19
+ hideFooter: boolean | "never";
20
+ footerPosition: "outer" | "inner";
21
21
  showLoader: boolean;
22
22
  preview: boolean;
23
23
  previewVisible: boolean;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../_shared/utils/dom.js"),/* empty css */,/* empty css */;/* empty css */const o=require("../_shared/icons/IconClose.vue.js"),a=require("../_shared/utils/control.js"),t=require("../_shared/utils/global-config.js"),l=require("../node_modules/@vueuse/core/index.js"),r=require("../Modal/hooks/useModalClose.js"),s=require("./ImagePreviewToolbar.vue.js");;/* empty css */const i={class:"yc-image-preview-mask"},n=["src"],u=e.defineComponent({name:"ImagePreview",inheritAttrs:!1,__name:"ImagePreview",props:{src:{default:""},visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},actionsLayout:{default:()=>["fullScreen","rotateRight","rotateLeft","zoomIn","zoomOut","originalSize"]},popupContainer:{default:void 0},escToClose:{type:Boolean,default:!0},wheelZoom:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},defaultScale:{default:1},zoomRate:{default:1.1}},emits:["update:visible","close"],setup(u,{emit:c}){const d=e.useSlots(),f=u,m=c,{visible:v,defaultVisible:p,maskClosable:w,escToClose:y,defaultScale:g,zoomRate:h,wheelZoom:k,keyboard:b}=e.toRefs(f),{zIndex:C,popupContainer:S,isAbsolute:z}=t.getGlobalConfig(f),B=e.ref(),V=a.useControlValue(e.ref(),g.value),_=e.ref(0),{outerVisible:j,innerVisible:q,handleClose:x,handleAfterLeave:I}=r.default({visible:v,defaultVisible:p,escToClose:y,maskClosable:w,onBeforeOk:()=>!0,onBeforeCancel:()=>!0,emits:m}),L=e=>{switch(e){case"rotateRight":_.value+=90;break;case"rotateLeft":_.value-=90;break;case"zoomIn":V.value*=h.value;break;case"zoomOut":V.value/=h.value;break;case"originalSize":V.value=g.value,_.value=0;break;case"fullScreen":{const{offsetWidth:e,offsetHeight:o}=B.value;V.value=e>o?window.innerHeight/o:window.innerHeight/e}}};return(()=>{if(k.value&&l.useEventListener("wheel",e=>{e.preventDefault(),e.stopPropagation();const o=e.deltaY<0?1:-1;V.value*=Math.pow(h.value,o)}),b.value){const e={ArrowUp:"zoomIn",ArrowDown:"zoomOut"," ":"originalSize"};l.onKeyStroke(["ArrowUp","ArrowDown"," "],o=>{L(e[o.key])})}})(),(a,t)=>(e.openBlock(),e.createBlock(e.Teleport,{to:e.unref(S)},[e.unref(j)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-image-preview",a.$attrs.class,{"yc-image-preview-absolute":e.unref(z)}]),style:e.normalizeStyle({zIndex:e.unref(C),...a.$attrs.style??{}})},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",i,null,512),[[e.vShow,e.unref(q)]])]),_:1}),e.createVNode(e.Transition,{name:"fade",onAfterLeave:e.unref(I)},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:"yc-image-preview-wrapper",onClick:t[2]||(t[2]=e.withModifiers(o=>e.unref(x)("mask",o,!1),["self"]))},[e.createElementVNode("div",{style:e.normalizeStyle({transform:`scale(${e.unref(V)}, ${e.unref(V)})`}),class:"yc-image-preview-img-container",onClick:t[0]||(t[0]=e.withModifiers(o=>e.unref(x)("mask",o,!1),["self"]))},[e.createElementVNode("img",{src:a.src,style:e.normalizeStyle({transform:`translate(-50%, -50%) rotate(${_.value}deg)`}),class:"yc-image-preview-img",ref_key:"imageRef",ref:B},null,12,n)],4),e.createVNode(s.default,{actionsLayout:a.actionsLayout,onClick:L},e.createSlots({_:2},[d.actions?{name:"actions",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"actions")]),key:"0"}:void 0]),1032,["actionsLayout"]),e.renderSlot(a.$slots,"arrow"),a.closable?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-image-preview-close-btn",onClick:t[1]||(t[1]=o=>e.unref(x)("closeBtn",o))},[e.createVNode(e.unref(o.default))])):e.createCommentVNode("",!0)],512),[[e.vShow,e.unref(q)]])]),_:3},8,["onAfterLeave"])],6)):e.createCommentVNode("",!0)],8,["to"]))}});exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../_shared/utils/dom.js"),/* empty css */,/* empty css */;/* empty css */const o=require("../_shared/icons/IconClose.vue.js"),a=require("../_shared/utils/control.js"),t=require("../_shared/utils/global-config.js"),l=require("../node_modules/@vueuse/core/index.js"),r=require("../Modal/hooks/useModalClose.js"),s=require("./ImagePreviewToolbar.vue.js");;/* empty css */const i={class:"yc-image-preview-mask"},n=["src"],u=e.defineComponent({name:"ImagePreview",inheritAttrs:!1,__name:"ImagePreview",props:{src:{default:""},visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},actionsLayout:{default:()=>["fullScreen","rotateRight","rotateLeft","zoomIn","zoomOut","originalSize"]},popupContainer:{default:void 0},escToClose:{type:Boolean,default:!0},wheelZoom:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},defaultScale:{default:1},zoomRate:{default:1.1}},emits:["update:visible","close"],setup(u,{emit:c}){const d=e.useSlots(),f=u,m=c,{visible:v,defaultVisible:p,maskClosable:w,escToClose:y,defaultScale:g,zoomRate:h,wheelZoom:k,keyboard:b}=e.toRefs(f),{zIndex:C,popupContainer:S,isAbsolute:z}=t.getGlobalConfig(f),B=e.ref(),V=a.useControlValue(e.ref(),g.value),_=e.ref(0),{outerVisible:j,innerVisible:q,handleClose:x,handleAfterLeave:I}=r.default({visible:v,defaultVisible:p,escToClose:y,maskClosable:w,onBeforeOk:()=>!0,onBeforeCancel:()=>!0,emits:m}),L=e=>{switch(e){case"rotateRight":_.value+=90;break;case"rotateLeft":_.value-=90;break;case"zoomIn":V.value*=h.value;break;case"zoomOut":V.value/=h.value;break;case"originalSize":V.value=g.value,_.value=0;break;case"fullScreen":{const{offsetWidth:e,offsetHeight:o}=B.value;V.value=e>o?window.innerHeight/o:window.innerHeight/e}}};return(()=>{if(k.value&&l.useEventListener("wheel",e=>{e.preventDefault(),e.stopPropagation();const o=e.deltaY<0?1:-1;V.value*=Math.pow(h.value,o)}),b.value){const e={ArrowUp:"zoomIn",ArrowDown:"zoomOut"," ":"originalSize"};l.onKeyStroke(["ArrowUp","ArrowDown"," "],o=>{L(e[o.key])})}})(),(a,t)=>(e.openBlock(),e.createBlock(e.Teleport,{to:e.unref(S)},[e.unref(j)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-image-preview",a.$attrs.class,{"yc-image-preview-absolute":e.unref(z)}]),style:e.normalizeStyle({zIndex:e.unref(C),...a.$attrs.style??{}})},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",i,null,512),[[e.vShow,e.unref(q)]])]),_:1}),e.createVNode(e.Transition,{name:"fade",onAfterLeave:e.unref(I)},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:"yc-image-preview-wrapper",onClick:t[2]||(t[2]=e.withModifiers(o=>e.unref(x)("mask",o,!1),["self"]))},[e.createElementVNode("div",{style:e.normalizeStyle({transform:`scale(${e.unref(V)}, ${e.unref(V)})`}),class:"yc-image-preview-img-container",onClick:t[0]||(t[0]=e.withModifiers(o=>e.unref(x)("mask",o,!1),["self"]))},[e.createElementVNode("img",{src:a.src,style:e.normalizeStyle({transform:`translate(-50%, -50%) rotate(${_.value}deg)`}),class:"yc-image-preview-img",ref_key:"imageRef",ref:B},null,12,n)],4),e.createVNode(s.default,{actionsLayout:a.actionsLayout,onClick:L},e.createSlots({_:2},[d.actions?{name:"actions",fn:e.withCtx(()=>[e.renderSlot(a.$slots,"actions")]),key:"0"}:void 0]),1032,["actionsLayout"]),e.renderSlot(a.$slots,"arrow"),a.closable?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-image-preview-close-btn",onClick:t[1]||(t[1]=o=>e.unref(x)("closeBtn",o,!1))},[e.createVNode(e.unref(o.default))])):e.createCommentVNode("",!0)],512),[[e.vShow,e.unref(q)]])]),_:3},8,["onAfterLeave"])],6)):e.createCommentVNode("",!0)],8,["to"]))}});exports.default=u;
@@ -19,8 +19,8 @@ declare const Image: {
19
19
  title: string;
20
20
  description: string;
21
21
  src: string;
22
- hideFooter: import('./type').HideFooter;
23
- footerPosition: import('./type').FooterPostion;
22
+ hideFooter: boolean | "never";
23
+ footerPosition: "outer" | "inner";
24
24
  showLoader: boolean;
25
25
  preview: boolean;
26
26
  previewVisible: boolean;
@@ -41,8 +41,8 @@ declare const Image: {
41
41
  title: string;
42
42
  description: string;
43
43
  src: string;
44
- hideFooter: import('./type').HideFooter;
45
- footerPosition: import('./type').FooterPostion;
44
+ hideFooter: boolean | "never";
45
+ footerPosition: "outer" | "inner";
46
46
  showLoader: boolean;
47
47
  preview: boolean;
48
48
  previewVisible: boolean;
@@ -63,8 +63,8 @@ declare const Image: {
63
63
  title: string;
64
64
  description: string;
65
65
  src: string;
66
- hideFooter: import('./type').HideFooter;
67
- footerPosition: import('./type').FooterPostion;
66
+ hideFooter: boolean | "never";
67
+ footerPosition: "outer" | "inner";
68
68
  showLoader: boolean;
69
69
  preview: boolean;
70
70
  previewVisible: boolean;
@@ -78,5 +78,6 @@ export interface ImagePreviewActionEmits {
78
78
  export interface ImagePreviewActionSlots {
79
79
  default?: () => VNode[];
80
80
  }
81
- export type HideFooter = boolean | 'never';
82
- export type FooterPostion = 'inner' | 'outer';
81
+ type HideFooter = boolean | 'never';
82
+ type FooterPostion = 'inner' | 'outer';
83
+ export {};
@@ -35,8 +35,8 @@ declare const __VLS_component: import('vue').DefineComponent<InputProps, {
35
35
  "onVisibility-change"?: ((value: boolean) => any) | undefined;
36
36
  onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
37
37
  }>, {
38
- size: import('..').Size;
39
38
  error: boolean;
39
+ size: import('..').Size;
40
40
  disabled: boolean;
41
41
  placeholder: string;
42
42
  modelValue: string;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=;/* empty css */;/* empty css */const t=;/* empty css */require("../_shared/utils/dom.js"),/* empty css */;/* empty css */const i=require("../_shared/icons/IconEyeClose.vue2.js"),n=require("../_shared/icons/IconEyeOpen.vue2.js"),s={key:0,class:"yc-input-word-limit"},r=e.defineComponent({__name:"InputSuffix",props:{curLength:{},maxLength:{},showWordLimit:{type:Boolean},computedVisibility:{type:Boolean},isPassword:{type:Boolean},invisibleButton:{type:Boolean}},emits:["clear","visibilityChange"],setup:r=>(r,u)=>(e.openBlock(),e.createBlock(e.unref(t.default),{class:"yc-input-suffix"},{default:e.withCtx(()=>[r.showWordLimit?(e.openBlock(),e.createElementBlock("div",s,e.toDisplayString(r.curLength)+"/"+e.toDisplayString(r.maxLength),1)):e.createCommentVNode("",!0),r.isPassword&&r.invisibleButton?(e.openBlock(),e.createBlock(e.unref(o.default),{key:1,size:14,onClick:u[0]||(u[0]=e=>r.$emit("visibilityChange",!r.computedVisibility))},{default:e.withCtx(()=>[r.computedVisibility?(e.openBlock(),e.createBlock(e.unref(n.default),{key:0})):(e.openBlock(),e.createBlock(e.unref(i.default),{key:1}))]),_:1})):e.createCommentVNode("",!0),r.$slots.suffix?e.renderSlot(r.$slots,"suffix",{key:2}):e.createCommentVNode("",!0)]),_:3}))});exports.default=r;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=;/* empty css */;/* empty css */const t=;/* empty css */require("../_shared/utils/dom.js"),/* empty css */;/* empty css */const i=require("../_shared/icons/IconEyeClose.vue.js"),n=require("../_shared/icons/IconEyeOpen.vue2.js"),s={key:0,class:"yc-input-word-limit"},r=e.defineComponent({__name:"InputSuffix",props:{curLength:{},maxLength:{},showWordLimit:{type:Boolean},computedVisibility:{type:Boolean},isPassword:{type:Boolean},invisibleButton:{type:Boolean}},emits:["clear","visibilityChange"],setup:r=>(r,u)=>(e.openBlock(),e.createBlock(e.unref(t.default),{class:"yc-input-suffix"},{default:e.withCtx(()=>[r.showWordLimit?(e.openBlock(),e.createElementBlock("div",s,e.toDisplayString(r.curLength)+"/"+e.toDisplayString(r.maxLength),1)):e.createCommentVNode("",!0),r.isPassword&&r.invisibleButton?(e.openBlock(),e.createBlock(e.unref(o.default),{key:1,size:14,onClick:u[0]||(u[0]=e=>r.$emit("visibilityChange",!r.computedVisibility))},{default:e.withCtx(()=>[r.computedVisibility?(e.openBlock(),e.createBlock(e.unref(n.default),{key:0})):(e.openBlock(),e.createBlock(e.unref(i.default),{key:1}))]),_:1})):e.createCommentVNode("",!0),r.$slots.suffix?e.renderSlot(r.$slots,"suffix",{key:2}):e.createCommentVNode("",!0)]),_:3}))});exports.default=r;
@@ -30,8 +30,8 @@ declare const Input: {
30
30
  "visibility-change": (value: boolean) => any;
31
31
  pressEnter: (ev: KeyboardEvent) => any;
32
32
  }, import('vue').PublicProps, {
33
- size: import('..').Size;
34
33
  error: boolean;
34
+ size: import('..').Size;
35
35
  disabled: boolean;
36
36
  placeholder: string;
37
37
  modelValue: string;
@@ -73,8 +73,8 @@ declare const Input: {
73
73
  blur(): void;
74
74
  getInputRef(): HTMLInputElement;
75
75
  }, {}, {}, {}, {
76
- size: import('..').Size;
77
76
  error: boolean;
77
+ size: import('..').Size;
78
78
  disabled: boolean;
79
79
  placeholder: string;
80
80
  modelValue: string;
@@ -122,8 +122,8 @@ declare const Input: {
122
122
  "visibility-change": (value: boolean) => any;
123
123
  pressEnter: (ev: KeyboardEvent) => any;
124
124
  }, string, {
125
- size: import('..').Size;
126
125
  error: boolean;
126
+ size: import('..').Size;
127
127
  disabled: boolean;
128
128
  placeholder: string;
129
129
  modelValue: string;
@@ -79,8 +79,8 @@ declare function __VLS_template(): {
79
79
  "visibility-change": (value: boolean) => any;
80
80
  pressEnter: (ev: KeyboardEvent) => any;
81
81
  }, string, {
82
- size: import('..').Size;
83
82
  error: boolean;
83
+ size: import('..').Size;
84
84
  disabled: boolean;
85
85
  placeholder: string;
86
86
  modelValue: string;
@@ -118,8 +118,8 @@ declare function __VLS_template(): {
118
118
  $nextTick: typeof import('vue').nextTick;
119
119
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
120
120
  } & Readonly<{
121
- size: import('..').Size;
122
121
  error: boolean;
122
+ size: import('..').Size;
123
123
  disabled: boolean;
124
124
  placeholder: string;
125
125
  modelValue: string;
@@ -147,7 +147,7 @@ declare function __VLS_template(): {
147
147
  "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
148
148
  "onVisibility-change"?: ((value: boolean) => any) | undefined;
149
149
  onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
150
- }>, "blur" | "focus" | "getInputRef" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
150
+ }>, "blur" | "focus" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
151
151
  focus(): void;
152
152
  blur(): void;
153
153
  getInputRef(): HTMLInputElement;
@@ -180,9 +180,9 @@ declare const __VLS_component: import('vue').DefineComponent<InputNumberProps, {
180
180
  "onUpdate:modelValue"?: ((value: InputNumberValue) => any) | undefined;
181
181
  onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
182
182
  }>, {
183
- size: import('..').Size;
184
183
  error: boolean;
185
- mode: import('./type').InputNumberMode;
184
+ size: import('..').Size;
185
+ mode: import('./type').ButtonMode;
186
186
  disabled: boolean;
187
187
  placeholder: string;
188
188
  modelValue: InputNumberValue;
@@ -272,8 +272,8 @@ declare const __VLS_component: import('vue').DefineComponent<InputNumberProps, {
272
272
  "visibility-change": (value: boolean) => any;
273
273
  pressEnter: (ev: KeyboardEvent) => any;
274
274
  }, string, {
275
- size: import('..').Size;
276
275
  error: boolean;
276
+ size: import('..').Size;
277
277
  disabled: boolean;
278
278
  placeholder: string;
279
279
  modelValue: string;
@@ -311,8 +311,8 @@ declare const __VLS_component: import('vue').DefineComponent<InputNumberProps, {
311
311
  $nextTick: typeof import('vue').nextTick;
312
312
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
313
313
  } & Readonly<{
314
- size: import('..').Size;
315
314
  error: boolean;
315
+ size: import('..').Size;
316
316
  disabled: boolean;
317
317
  placeholder: string;
318
318
  modelValue: string;
@@ -340,7 +340,7 @@ declare const __VLS_component: import('vue').DefineComponent<InputNumberProps, {
340
340
  "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
341
341
  "onVisibility-change"?: ((value: boolean) => any) | undefined;
342
342
  onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
343
- }>, "blur" | "focus" | "getInputRef" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
343
+ }>, "blur" | "focus" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
344
344
  focus(): void;
345
345
  blur(): void;
346
346
  getInputRef(): HTMLInputElement;
@@ -1,7 +1,7 @@
1
- import { InputNumberMode, InputNumberValue } from './type';
1
+ import { ButtonMode, InputNumberValue } from './type';
2
2
  import { Size } from '../_shared/type';
3
3
  type __VLS_Props = {
4
- mode: InputNumberMode;
4
+ mode: ButtonMode;
5
5
  type: 'minus' | 'plus';
6
6
  disabled: boolean;
7
7
  computedValue: InputNumberValue;
@@ -25,9 +25,9 @@ declare const InputNumber: {
25
25
  "update:modelValue": (value: import('./type').InputNumberValue) => any;
26
26
  pressEnter: (ev: KeyboardEvent) => any;
27
27
  }, import('vue').PublicProps, {
28
- size: import('..').Size;
29
28
  error: boolean;
30
- mode: import('./type').InputNumberMode;
29
+ size: import('..').Size;
30
+ mode: import('./type').ButtonMode;
31
31
  disabled: boolean;
32
32
  placeholder: string;
33
33
  modelValue: import('./type').InputNumberValue;
@@ -117,8 +117,8 @@ declare const InputNumber: {
117
117
  "visibility-change": (value: boolean) => any;
118
118
  pressEnter: (ev: KeyboardEvent) => any;
119
119
  }, string, {
120
- size: import('..').Size;
121
120
  error: boolean;
121
+ size: import('..').Size;
122
122
  disabled: boolean;
123
123
  placeholder: string;
124
124
  modelValue: string;
@@ -156,8 +156,8 @@ declare const InputNumber: {
156
156
  $nextTick: typeof import('vue').nextTick;
157
157
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
158
158
  } & Readonly<{
159
- size: import('..').Size;
160
159
  error: boolean;
160
+ size: import('..').Size;
161
161
  disabled: boolean;
162
162
  placeholder: string;
163
163
  modelValue: string;
@@ -185,7 +185,7 @@ declare const InputNumber: {
185
185
  "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
186
186
  "onVisibility-change"?: ((value: boolean) => any) | undefined;
187
187
  onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
188
- }>, "blur" | "focus" | "getInputRef" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
188
+ }>, "blur" | "focus" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
189
189
  focus(): void;
190
190
  blur(): void;
191
191
  getInputRef(): HTMLInputElement;
@@ -212,9 +212,9 @@ declare const InputNumber: {
212
212
  focus(): void;
213
213
  blur(): void;
214
214
  }, {}, {}, {}, {
215
- size: import('..').Size;
216
215
  error: boolean;
217
- mode: import('./type').InputNumberMode;
216
+ size: import('..').Size;
217
+ mode: import('./type').ButtonMode;
218
218
  disabled: boolean;
219
219
  placeholder: string;
220
220
  modelValue: import('./type').InputNumberValue;
@@ -253,9 +253,9 @@ declare const InputNumber: {
253
253
  "update:modelValue": (value: import('./type').InputNumberValue) => any;
254
254
  pressEnter: (ev: KeyboardEvent) => any;
255
255
  }, string, {
256
- size: import('..').Size;
257
256
  error: boolean;
258
- mode: import('./type').InputNumberMode;
257
+ size: import('..').Size;
258
+ mode: import('./type').ButtonMode;
259
259
  disabled: boolean;
260
260
  placeholder: string;
261
261
  modelValue: import('./type').InputNumberValue;
@@ -3,7 +3,7 @@ import { VNode } from 'vue';
3
3
  export interface InputNumberProps {
4
4
  modelValue?: InputNumberValue;
5
5
  defaultValue?: InputNumberValue;
6
- mode?: InputNumberMode;
6
+ mode?: ButtonMode;
7
7
  precision?: number;
8
8
  step?: number;
9
9
  disabled?: boolean;
@@ -15,7 +15,7 @@ export interface InputNumberProps {
15
15
  size?: Size;
16
16
  allowClear?: boolean;
17
17
  formatter?: Format<string>;
18
- parser?: InputNumberParser;
18
+ parser?: Parser;
19
19
  readonly?: boolean;
20
20
  inputAttrs?: RecordType;
21
21
  }
@@ -43,5 +43,6 @@ export interface InputNumberExpose {
43
43
  blur(): void;
44
44
  }
45
45
  export type InputNumberValue = number | string;
46
- export type InputNumberMode = 'embed' | 'button';
47
- export type InputNumberParser = (value: string) => string;
46
+ export type ButtonMode = 'embed' | 'button';
47
+ type Parser = (value: string) => string;
48
+ export {};
@@ -27,8 +27,8 @@ declare const InputTag: {
27
27
  "input-value-change": (value: string, ev: Event) => any;
28
28
  "press-enter": (ev: KeyboardEvent) => any;
29
29
  }, import('vue').PublicProps, {
30
- size: import('..').Size;
31
30
  error: boolean;
31
+ size: import('..').Size;
32
32
  disabled: boolean;
33
33
  placeholder: string;
34
34
  modelValue: import('./type').InputTagValue;
@@ -41,7 +41,10 @@ declare const InputTag: {
41
41
  allowCreate: boolean;
42
42
  maxTagCount: number;
43
43
  tagNowrap: boolean;
44
- retainInputValue: import('./type').InputRetainValue;
44
+ retainInputValue: boolean | {
45
+ create?: boolean;
46
+ blur?: boolean;
47
+ };
45
48
  uniqueValue: boolean;
46
49
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
47
50
  mirrorRef: HTMLDivElement;
@@ -67,8 +70,8 @@ declare const InputTag: {
67
70
  focus(): void;
68
71
  blur(): void;
69
72
  }, {}, {}, {}, {
70
- size: import('..').Size;
71
73
  error: boolean;
74
+ size: import('..').Size;
72
75
  disabled: boolean;
73
76
  placeholder: string;
74
77
  modelValue: import('./type').InputTagValue;
@@ -81,7 +84,10 @@ declare const InputTag: {
81
84
  allowCreate: boolean;
82
85
  maxTagCount: number;
83
86
  tagNowrap: boolean;
84
- retainInputValue: import('./type').InputRetainValue;
87
+ retainInputValue: boolean | {
88
+ create?: boolean;
89
+ blur?: boolean;
90
+ };
85
91
  uniqueValue: boolean;
86
92
  }>;
87
93
  __isFragment?: never;
@@ -111,8 +117,8 @@ declare const InputTag: {
111
117
  "input-value-change": (value: string, ev: Event) => any;
112
118
  "press-enter": (ev: KeyboardEvent) => any;
113
119
  }, string, {
114
- size: import('..').Size;
115
120
  error: boolean;
121
+ size: import('..').Size;
116
122
  disabled: boolean;
117
123
  placeholder: string;
118
124
  modelValue: import('./type').InputTagValue;
@@ -125,7 +131,10 @@ declare const InputTag: {
125
131
  allowCreate: boolean;
126
132
  maxTagCount: number;
127
133
  tagNowrap: boolean;
128
- retainInputValue: import('./type').InputRetainValue;
134
+ retainInputValue: boolean | {
135
+ create?: boolean;
136
+ blur?: boolean;
137
+ };
129
138
  uniqueValue: boolean;
130
139
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
131
140
  $slots: any;
@@ -33,8 +33,8 @@ declare const __VLS_component: import('vue').DefineComponent<InputTagProps, {
33
33
  "onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
34
34
  "onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
35
35
  }>, {
36
- size: import('../_shared/type').Size;
37
36
  error: boolean;
37
+ size: import('../_shared/type').Size;
38
38
  disabled: boolean;
39
39
  placeholder: string;
40
40
  modelValue: InputTagValue;
@@ -47,7 +47,10 @@ declare const __VLS_component: import('vue').DefineComponent<InputTagProps, {
47
47
  allowCreate: boolean;
48
48
  maxTagCount: number;
49
49
  tagNowrap: boolean;
50
- retainInputValue: import('./type').InputRetainValue;
50
+ retainInputValue: boolean | {
51
+ create?: boolean;
52
+ blur?: boolean;
53
+ };
51
54
  uniqueValue: boolean;
52
55
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
53
56
  mirrorRef: HTMLDivElement;
@@ -50,7 +50,8 @@ export type TagData = {
50
50
  closeable?: boolean;
51
51
  tagProps?: TagProps;
52
52
  } | RecordType;
53
- export type InputRetainValue = boolean | {
53
+ type InputRetainValue = boolean | {
54
54
  create?: boolean;
55
55
  blur?: boolean;
56
56
  };
57
+ export {};
@@ -7,11 +7,11 @@ declare function __VLS_template(): {
7
7
  };
8
8
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
9
  declare const __VLS_component: import('vue').DefineComponent<LayoutSiderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
- collapse: (collapsed: boolean, type: import('..').collapseType) => any;
10
+ collapse: (collapsed: boolean, type: "clickTrigger" | "responsive") => any;
11
11
  "update:collapsed": (collapsed: boolean) => any;
12
12
  breakpoint: (collapsed: boolean) => any;
13
13
  }, string, import('vue').PublicProps, Readonly<LayoutSiderProps> & Readonly<{
14
- onCollapse?: ((collapsed: boolean, type: import('..').collapseType) => any) | undefined;
14
+ onCollapse?: ((collapsed: boolean, type: "clickTrigger" | "responsive") => any) | undefined;
15
15
  "onUpdate:collapsed"?: ((collapsed: boolean) => any) | undefined;
16
16
  onBreakpoint?: ((collapsed: boolean) => any) | undefined;
17
17
  }>, {
@@ -24,7 +24,7 @@ declare const __VLS_component: import('vue').DefineComponent<LayoutSiderProps, {
24
24
  collapsible: boolean;
25
25
  reverseArrow: boolean;
26
26
  hideTrigger: boolean;
27
- resizeDirections: import('../ResizeBox').ResizeBoxDirection[];
27
+ resizeDirections: import('..').Position[];
28
28
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
29
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
30
30
  export default _default;