yc-design-vue 2.0.4 → 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 (568) hide show
  1. package/dist/index.umd.js +1 -0
  2. package/dist/style.css +1 -0
  3. package/es/Affix/index.vue.js +1 -1
  4. package/es/Alert/index.d.ts +3 -3
  5. package/es/Alert/index.vue.d.ts +1 -1
  6. package/es/Alert/type.d.ts +2 -2
  7. package/es/Anchor/Anchor.vue.d.ts +1 -1
  8. package/es/Anchor/Anchor.vue.js +2 -2
  9. package/es/Anchor/AnchorLink.vue.js +2 -2
  10. package/es/Anchor/hooks/useContext.d.ts +3 -3
  11. package/es/Anchor/hooks/useContext.js +3 -3
  12. package/es/Anchor/index.d.ts +3 -3
  13. package/es/Anchor/type.d.ts +3 -2
  14. package/es/AutoComplete/index.d.ts +40 -31
  15. package/es/AutoComplete/index.vue.d.ts +72 -54
  16. package/es/Avatar/Avatar.vue.d.ts +1 -1
  17. package/es/Avatar/Avatar.vue.js +3 -3
  18. package/es/Avatar/AvatarGroup.vue.js +2 -2
  19. package/es/Avatar/hooks/useContext.d.ts +1 -2
  20. package/es/Avatar/hooks/useContext.js +3 -3
  21. package/es/Avatar/index.d.ts +3 -3
  22. package/es/Avatar/type.d.ts +3 -2
  23. package/es/BackTop/index.vue.js +1 -1
  24. package/es/Badge/index.d.ts +3 -3
  25. package/es/Badge/index.vue.d.ts +1 -1
  26. package/es/Badge/type.d.ts +2 -2
  27. package/es/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  28. package/es/Button/Button.vue.d.ts +2 -2
  29. package/es/Button/Button.vue.js +2 -2
  30. package/es/Button/ButtonGroup.vue.d.ts +1 -1
  31. package/es/Button/ButtonGroup.vue.js +2 -2
  32. package/es/Button/hooks/useContext.d.ts +4 -5
  33. package/es/Button/hooks/useContext.js +3 -3
  34. package/es/Button/index.d.ts +9 -9
  35. package/es/Button/type.d.ts +6 -6
  36. package/es/Card/Card.vue.d.ts +1 -1
  37. package/es/Card/Card.vue.js +2 -2
  38. package/es/Card/CardMeta.vue.js +2 -2
  39. package/es/Card/hooks/useContext.d.ts +2 -2
  40. package/es/Card/hooks/useContext.js +3 -3
  41. package/es/Card/index.d.ts +3 -3
  42. package/es/Card/type.d.ts +1 -2
  43. package/es/Carousel/Carousel.vue.d.ts +2 -2
  44. package/es/Carousel/Carousel.vue.js +2 -2
  45. package/es/Carousel/CarouselArrow.vue.js +2 -2
  46. package/es/Carousel/CarouselIndicator.vue.js +2 -2
  47. package/es/Carousel/CarouselItem.vue.js +2 -2
  48. package/es/Carousel/hooks/useContext.d.ts +5 -5
  49. package/es/Carousel/hooks/useContext.js +3 -3
  50. package/es/Carousel/index.d.ts +6 -6
  51. package/es/Carousel/type.d.ts +6 -6
  52. package/es/Cascader/Cascader.vue.d.ts +23 -23
  53. package/es/Cascader/Cascader.vue.js +2 -2
  54. package/es/Cascader/CascaderIcon.vue.js +2 -2
  55. package/es/Cascader/CascaderOption.vue.js +2 -2
  56. package/es/Cascader/CascaderPanel.vue.js +2 -2
  57. package/es/Cascader/CascaderSearchPanel.vue.js +2 -2
  58. package/es/Cascader/hooks/useContext.d.ts +2 -2
  59. package/es/Cascader/hooks/useContext.js +3 -3
  60. package/es/Cascader/index.d.ts +26 -26
  61. package/es/Checkbox/Checkbox.vue.js +2 -2
  62. package/es/Checkbox/CheckboxGroup.vue.js +2 -2
  63. package/es/Checkbox/hooks/useContext.d.ts +2 -2
  64. package/es/Checkbox/hooks/useContext.js +3 -3
  65. package/es/Collapse/Collapse.vue.js +2 -2
  66. package/es/Collapse/CollapseItem.vue.js +2 -2
  67. package/es/Collapse/hooks/useContext.d.ts +3 -15
  68. package/es/Collapse/hooks/useContext.js +3 -4
  69. package/es/Collapse/type.d.ts +2 -1
  70. package/es/ColorPicker/ColorControl.vue.js +1 -1
  71. package/es/ColorPicker/ColorPalette.vue.js +1 -1
  72. package/es/ColorPicker/ColorPanel.vue.js +2 -2
  73. package/es/ColorPicker/ColorPicker.vue.js +2 -2
  74. package/es/ColorPicker/hooks/useContext.d.ts +2 -2
  75. package/es/ColorPicker/hooks/useContext.js +3 -3
  76. package/es/Comment/hooks/useContext.d.ts +1 -2
  77. package/es/Comment/hooks/useContext.js +3 -3
  78. package/es/Comment/index.vue.js +2 -2
  79. package/es/Descriptions/Descriptions.vue.d.ts +3 -3
  80. package/es/Descriptions/Descriptions.vue.js +2 -2
  81. package/es/Descriptions/ReuseItem.vue.js +2 -2
  82. package/es/Descriptions/ReuseTd.vue.js +2 -2
  83. package/es/Descriptions/hooks/useContext.d.ts +3 -3
  84. package/es/Descriptions/hooks/useContext.js +3 -3
  85. package/es/Descriptions/index.d.ts +9 -9
  86. package/es/Descriptions/type.d.ts +7 -6
  87. package/es/Divider/index.d.ts +6 -6
  88. package/es/Divider/index.vue.d.ts +2 -2
  89. package/es/Divider/type.d.ts +4 -3
  90. package/es/Drawer/Drawer.vue.d.ts +1 -1
  91. package/es/Drawer/DrawerService.vue.d.ts +1 -1
  92. package/es/Drawer/index.d.ts +5 -9
  93. package/es/Drawer/type.d.ts +8 -4
  94. package/es/Dropdown/Doption.vue.js +2 -2
  95. package/es/Dropdown/Dropdown.vue.d.ts +3 -3
  96. package/es/Dropdown/Dropdown.vue.js +2 -2
  97. package/es/Dropdown/DropdownButton.vue.d.ts +3 -3
  98. package/es/Dropdown/Dsubmenu.vue.d.ts +1 -1
  99. package/es/Dropdown/Dsubmenu.vue.js +1 -1
  100. package/es/Dropdown/hooks/useContext.d.ts +2 -2
  101. package/es/Dropdown/hooks/useContext.js +3 -3
  102. package/es/Dropdown/index.d.ts +19 -19
  103. package/es/Dropdown/type.d.ts +4 -6
  104. package/es/Grid/Grid.vue.js +2 -2
  105. package/es/Grid/GridCol.vue.js +2 -2
  106. package/es/Grid/GridItem.vue.js +2 -2
  107. package/es/Grid/GridRow.vue.js +2 -2
  108. package/es/Grid/hooks/useContext.d.ts +1 -13
  109. package/es/Grid/hooks/useContext.js +3 -4
  110. package/es/Image/Image.vue.d.ts +2 -2
  111. package/es/Image/Image.vue.js +2 -2
  112. package/es/Image/ImagePreview.vue.js +2 -2
  113. package/es/Image/ImagePreviewGroup.vue.js +2 -2
  114. package/es/Image/hooks/useContext.d.ts +2 -2
  115. package/es/Image/hooks/useContext.js +3 -3
  116. package/es/Image/index.d.ts +6 -6
  117. package/es/Image/type.d.ts +3 -2
  118. package/es/Input/Input.vue.d.ts +3 -3
  119. package/es/Input/InputSuffix.vue.js +1 -1
  120. package/es/Input/index.d.ts +8 -8
  121. package/es/InputNumber/InputNumber.vue.d.ts +20 -20
  122. package/es/InputNumber/InputOperaBtn.vue.d.ts +2 -2
  123. package/es/InputNumber/index.d.ts +19 -19
  124. package/es/InputNumber/type.d.ts +5 -4
  125. package/es/InputTag/index.d.ts +20 -11
  126. package/es/InputTag/index.vue.d.ts +7 -4
  127. package/es/InputTag/index.vue.js +1 -1
  128. package/es/InputTag/type.d.ts +2 -1
  129. package/es/Layout/LayoutSider.vue.d.ts +3 -3
  130. package/es/Layout/LayoutSider.vue.js +2 -2
  131. package/es/Layout/hooks/useSiderContext.d.ts +1 -2
  132. package/es/Layout/hooks/useSiderContext.js +3 -3
  133. package/es/Layout/index.d.ts +8 -8
  134. package/es/Layout/type.d.ts +3 -4
  135. package/es/Link/index.d.ts +3 -3
  136. package/es/Link/index.vue.d.ts +1 -1
  137. package/es/Link/type.d.ts +2 -2
  138. package/es/List/List.vue.d.ts +7 -7
  139. package/es/List/hooks/useScrollReach.js +1 -0
  140. package/es/List/index.d.ts +6 -6
  141. package/es/List/type.d.ts +2 -3
  142. package/es/Mention/index.d.ts +49 -40
  143. package/es/Mention/index.vue.d.ts +85 -67
  144. package/es/Mention/type.d.ts +3 -2
  145. package/es/Menu/Menu.vue.d.ts +2 -2
  146. package/es/Menu/MenuItem.vue.js +1 -1
  147. package/es/Menu/hooks/useContext.d.ts +2 -2
  148. package/es/Menu/hooks/useContext.js +5 -5
  149. package/es/Menu/index.d.ts +5 -5
  150. package/es/Menu/type.d.ts +2 -2
  151. package/es/Message/type.d.ts +3 -3
  152. package/es/Modal/Modal.vue.d.ts +1 -1
  153. package/es/Modal/ModalService.vue.d.ts +1 -1
  154. package/es/Modal/index.d.ts +13 -13
  155. package/es/Modal/index.js +1 -4
  156. package/es/Modal/type.d.ts +6 -9
  157. package/es/Notification/Notification.vue.d.ts +1 -1
  158. package/es/Notification/index.d.ts +4 -4
  159. package/es/Notification/type.d.ts +3 -4
  160. package/es/OverflowList/index.d.ts +3 -3
  161. package/es/OverflowList/index.vue.d.ts +1 -1
  162. package/es/OverflowList/index.vue.js +2 -2
  163. package/es/OverflowList/type.d.ts +3 -2
  164. package/es/Pagination/Pagination.vue.js +2 -2
  165. package/es/Pagination/PaginationItem.vue.js +2 -2
  166. package/es/Pagination/hooks/useContext.d.ts +2 -2
  167. package/es/Pagination/hooks/useContext.js +3 -3
  168. package/es/Popconfirm/index.d.ts +8 -8
  169. package/es/Popconfirm/index.vue.d.ts +3 -3
  170. package/es/Popconfirm/type.d.ts +2 -3
  171. package/es/Progress/Progress.vue.d.ts +1 -1
  172. package/es/Progress/ProgressCircle.vue.d.ts +3 -3
  173. package/es/Progress/ProgressLine.vue.d.ts +3 -3
  174. package/es/Progress/index.d.ts +3 -3
  175. package/es/Progress/type.d.ts +2 -3
  176. package/es/Radio/Radio.vue.js +2 -2
  177. package/es/Radio/RadioGroup.vue.js +2 -2
  178. package/es/Radio/hooks/useContext.d.ts +2 -2
  179. package/es/Radio/hooks/useContext.js +3 -3
  180. package/es/Radio/type.d.ts +1 -1
  181. package/es/ResizeBox/index.d.ts +3 -3
  182. package/es/ResizeBox/index.vue.d.ts +2 -2
  183. package/es/ResizeBox/type.d.ts +4 -4
  184. package/es/Result/index.d.ts +3 -3
  185. package/es/Result/index.vue.d.ts +1 -1
  186. package/es/Result/type.d.ts +3 -2
  187. package/es/Scrollbar/Scrollbar.vue.d.ts +1 -1
  188. package/es/Scrollbar/Scrollbar.vue.js +2 -2
  189. package/es/Scrollbar/ScrollbarTrack.vue.js +2 -2
  190. package/es/Scrollbar/hooks/useContext.d.ts +2 -2
  191. package/es/Scrollbar/hooks/useContext.js +3 -3
  192. package/es/Scrollbar/index.d.ts +3 -3
  193. package/es/Scrollbar/type.d.ts +2 -1
  194. package/es/Select/Option.vue.js +2 -2
  195. package/es/Select/Select.vue.d.ts +45 -27
  196. package/es/Select/Select.vue.js +2 -2
  197. package/es/Select/SelectIcon.vue.js +2 -2
  198. package/es/Select/SelectRealList.vue.js +2 -2
  199. package/es/Select/SelectView.vue.js +2 -2
  200. package/es/Select/SelectVirtualList.vue.js +3 -3
  201. package/es/Select/hooks/useContext.d.ts +4 -4
  202. package/es/Select/hooks/useContext.js +3 -3
  203. package/es/Select/hooks/useSelectOptions.d.ts +2 -2
  204. package/es/Select/index.d.ts +33 -24
  205. package/es/Skeleton/SkeletonShape.vue.d.ts +2 -2
  206. package/es/Skeleton/index.d.ts +2 -2
  207. package/es/Skeleton/type.d.ts +2 -4
  208. package/es/Slider/Slider.vue.js +2 -2
  209. package/es/Slider/SliderBtn.vue.js +2 -2
  210. package/es/Slider/SliderInput.vue.js +2 -2
  211. package/es/Slider/SliderTicks.vue.js +2 -2
  212. package/es/Slider/hooks/useContext.d.ts +2 -2
  213. package/es/Slider/hooks/useContext.js +3 -3
  214. package/es/Space/index.d.ts +6 -6
  215. package/es/Space/index.vue.d.ts +2 -2
  216. package/es/Space/type.d.ts +5 -4
  217. package/es/Spin/index.vue.js +1 -1
  218. package/es/Steps/Step.vue.js +2 -2
  219. package/es/Steps/Steps.vue.js +2 -2
  220. package/es/Steps/hooks/useContext.d.ts +1 -2
  221. package/es/Steps/hooks/useContext.js +3 -3
  222. package/es/Switch/index.d.ts +14 -14
  223. package/es/Switch/index.vue.d.ts +5 -5
  224. package/es/Switch/type.d.ts +4 -4
  225. package/es/Tabs/TabPane.vue.js +2 -2
  226. package/es/Tabs/Tabs.vue.d.ts +1 -1
  227. package/es/Tabs/Tabs.vue.js +2 -2
  228. package/es/Tabs/TabsNavInk.vue.js +2 -2
  229. package/es/Tabs/TabsTab.vue.js +2 -2
  230. package/es/Tabs/hooks/useContext.d.ts +6 -6
  231. package/es/Tabs/hooks/useContext.js +3 -3
  232. package/es/Tabs/index.d.ts +3 -3
  233. package/es/Tabs/type.d.ts +2 -3
  234. package/es/Tag/index.d.ts +3 -3
  235. package/es/Tag/index.vue.d.ts +1 -1
  236. package/es/Tag/type.d.ts +1 -2
  237. package/es/Textarea/hooks/useTextareaHeight.js +1 -1
  238. package/es/Textarea/index.d.ts +5 -5
  239. package/es/Textarea/index.vue.d.ts +2 -2
  240. package/es/Textarea/type.d.ts +2 -2
  241. package/es/TimePicker/TimePicker.vue.d.ts +5 -5
  242. package/es/TimePicker/TimePicker.vue.js +2 -2
  243. package/es/TimePicker/TimePickerPanel.vue.js +2 -2
  244. package/es/TimePicker/hooks/useContext.d.ts +2 -2
  245. package/es/TimePicker/hooks/useContext.js +3 -3
  246. package/es/TimePicker/index.d.ts +13 -13
  247. package/es/Timeline/Timeline.vue.js +2 -2
  248. package/es/Timeline/TimelineItem.vue.d.ts +1 -1
  249. package/es/Timeline/TimelineItem.vue.js +2 -2
  250. package/es/Timeline/hooks/useContext.d.ts +2 -2
  251. package/es/Timeline/hooks/useContext.js +3 -3
  252. package/es/Timeline/index.d.ts +3 -3
  253. package/es/Timeline/type.d.ts +3 -4
  254. package/es/Transfer/Transfer.vue.js +2 -2
  255. package/es/Transfer/TransferPanel.vue.js +3 -3
  256. package/es/Transfer/hooks/useContext.d.ts +2 -2
  257. package/es/Transfer/hooks/useContext.js +3 -3
  258. package/es/Trigger/hooks/useContext.d.ts +2 -3
  259. package/es/Trigger/hooks/useContext.js +4 -4
  260. package/es/Trigger/hooks/useTriggerPosition.js +1 -1
  261. package/es/Trigger/hooks/useTriggerVisible.js +2 -2
  262. package/es/Typography/TypographyBase.vue.d.ts +17 -17
  263. package/es/Typography/TypographyBase.vue.js +1 -1
  264. package/es/Typography/TypographyParagraph.vue.d.ts +1 -1
  265. package/es/Typography/TypographyTitle.vue.d.ts +1 -1
  266. package/es/Typography/type.d.ts +5 -4
  267. package/es/Upload/Upload.vue.d.ts +53 -0
  268. package/es/Upload/Upload.vue.js +110 -0
  269. package/es/Upload/Upload.vue3.js +5 -0
  270. package/es/Upload/UploadButton.vue.d.ts +2 -0
  271. package/es/Upload/UploadButton.vue.js +39 -0
  272. package/es/Upload/UploadButton.vue3.js +5 -0
  273. package/es/Upload/UploadDrag.vue.d.ts +2 -0
  274. package/es/Upload/UploadDrag.vue.js +37 -0
  275. package/es/Upload/UploadDrag.vue3.js +5 -0
  276. package/es/Upload/UploadFileList.vue.d.ts +24 -0
  277. package/es/Upload/UploadFileList.vue.js +7 -0
  278. package/es/Upload/UploadFileList.vue2.js +126 -0
  279. package/es/Upload/UploadPictureCard.vue.d.ts +4 -0
  280. package/es/Upload/UploadPictureCard.vue.js +7 -0
  281. package/es/Upload/UploadPictureCard.vue2.js +132 -0
  282. package/es/Upload/hooks/useContext.d.ts +49 -0
  283. package/es/Upload/hooks/useContext.js +92 -0
  284. package/es/Upload/hooks/useUpload.d.ts +47 -0
  285. package/es/Upload/hooks/useUpload.js +80 -0
  286. package/es/Upload/index.css +1 -0
  287. package/es/Upload/index.d.ts +123 -0
  288. package/es/Upload/index.js +10 -0
  289. package/es/Upload/type.d.ts +72 -0
  290. package/es/VerificationCode/index.d.ts +3 -3
  291. package/es/VerificationCode/index.vue.d.ts +1 -1
  292. package/es/VerificationCode/type.d.ts +5 -4
  293. package/es/Watermark/index.vue.js +1 -1
  294. package/es/_shared/icons/IconDelete.vue.js +19 -1
  295. package/es/_shared/icons/IconDelete.vue2.js +1 -19
  296. package/es/_shared/icons/IconEyeOpen.vue.js +1 -20
  297. package/es/_shared/icons/IconEyeOpen.vue2.js +20 -1
  298. package/es/_shared/icons/IconFile.vue.d.ts +2 -0
  299. package/es/_shared/icons/IconFile.vue.js +22 -0
  300. package/es/_shared/icons/IconFile.vue2.js +4 -0
  301. package/es/_shared/icons/IconSeparator.vue.js +1 -19
  302. package/es/_shared/icons/IconSeparator.vue2.js +19 -1
  303. package/es/_shared/icons/IconUpload.vue.d.ts +2 -0
  304. package/es/_shared/icons/IconUpload.vue.js +22 -0
  305. package/es/_shared/icons/IconUpload.vue2.js +4 -0
  306. package/es/_shared/icons/index.d.ts +2 -0
  307. package/es/_shared/type/index.d.ts +3 -1
  308. package/es/_shared/utils/is.d.ts +0 -15
  309. package/es/_shared/utils/vue-utils.d.ts +1 -0
  310. package/es/_virtual/_plugin-vue_export-helper.js +10 -0
  311. package/es/index.d.ts +36 -35
  312. package/es/index.js +5 -3
  313. package/es/node_modules/@vueuse/core/index.js +171 -9
  314. package/es/node_modules/@vueuse/shared/index.js +29 -0
  315. package/es/style.css +1 -1
  316. package/lib/Affix/index.vue.js +1 -1
  317. package/lib/Alert/index.d.ts +3 -3
  318. package/lib/Alert/index.vue.d.ts +1 -1
  319. package/lib/Alert/type.d.ts +2 -2
  320. package/lib/Anchor/Anchor.vue.d.ts +1 -1
  321. package/lib/Anchor/hooks/useContext.d.ts +3 -3
  322. package/lib/Anchor/hooks/useContext.js +1 -1
  323. package/lib/Anchor/index.d.ts +3 -3
  324. package/lib/Anchor/type.d.ts +3 -2
  325. package/lib/AutoComplete/index.d.ts +40 -31
  326. package/lib/AutoComplete/index.vue.d.ts +72 -54
  327. package/lib/Avatar/Avatar.vue.d.ts +1 -1
  328. package/lib/Avatar/Avatar.vue.js +1 -1
  329. package/lib/Avatar/hooks/useContext.d.ts +1 -2
  330. package/lib/Avatar/hooks/useContext.js +1 -1
  331. package/lib/Avatar/index.d.ts +3 -3
  332. package/lib/Avatar/type.d.ts +3 -2
  333. package/lib/BackTop/index.vue.js +1 -1
  334. package/lib/Badge/index.d.ts +3 -3
  335. package/lib/Badge/index.vue.d.ts +1 -1
  336. package/lib/Badge/type.d.ts +2 -2
  337. package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  338. package/lib/Button/Button.vue.d.ts +2 -2
  339. package/lib/Button/ButtonGroup.vue.d.ts +1 -1
  340. package/lib/Button/hooks/useContext.d.ts +4 -5
  341. package/lib/Button/hooks/useContext.js +1 -1
  342. package/lib/Button/index.d.ts +9 -9
  343. package/lib/Button/type.d.ts +6 -6
  344. package/lib/Card/Card.vue.d.ts +1 -1
  345. package/lib/Card/hooks/useContext.d.ts +2 -2
  346. package/lib/Card/hooks/useContext.js +1 -1
  347. package/lib/Card/index.d.ts +3 -3
  348. package/lib/Card/type.d.ts +1 -2
  349. package/lib/Carousel/Carousel.vue.d.ts +2 -2
  350. package/lib/Carousel/hooks/useContext.d.ts +5 -5
  351. package/lib/Carousel/hooks/useContext.js +1 -1
  352. package/lib/Carousel/index.d.ts +6 -6
  353. package/lib/Carousel/type.d.ts +6 -6
  354. package/lib/Cascader/Cascader.vue.d.ts +23 -23
  355. package/lib/Cascader/hooks/useContext.d.ts +2 -2
  356. package/lib/Cascader/hooks/useContext.js +1 -1
  357. package/lib/Cascader/index.d.ts +26 -26
  358. package/lib/Checkbox/hooks/useContext.d.ts +2 -2
  359. package/lib/Checkbox/hooks/useContext.js +1 -1
  360. package/lib/Collapse/hooks/useContext.d.ts +3 -15
  361. package/lib/Collapse/hooks/useContext.js +1 -1
  362. package/lib/Collapse/type.d.ts +2 -1
  363. package/lib/ColorPicker/ColorControl.vue.js +1 -1
  364. package/lib/ColorPicker/ColorPalette.vue.js +1 -1
  365. package/lib/ColorPicker/hooks/useContext.d.ts +2 -2
  366. package/lib/ColorPicker/hooks/useContext.js +1 -1
  367. package/lib/Comment/hooks/useContext.d.ts +1 -2
  368. package/lib/Comment/hooks/useContext.js +1 -1
  369. package/lib/Descriptions/Descriptions.vue.d.ts +3 -3
  370. package/lib/Descriptions/hooks/useContext.d.ts +3 -3
  371. package/lib/Descriptions/hooks/useContext.js +1 -1
  372. package/lib/Descriptions/index.d.ts +9 -9
  373. package/lib/Descriptions/type.d.ts +7 -6
  374. package/lib/Divider/index.d.ts +6 -6
  375. package/lib/Divider/index.vue.d.ts +2 -2
  376. package/lib/Divider/type.d.ts +4 -3
  377. package/lib/Drawer/Drawer.vue.d.ts +1 -1
  378. package/lib/Drawer/DrawerService.vue.d.ts +1 -1
  379. package/lib/Drawer/index.d.ts +5 -9
  380. package/lib/Drawer/type.d.ts +8 -4
  381. package/lib/Dropdown/Dropdown.vue.d.ts +3 -3
  382. package/lib/Dropdown/DropdownButton.vue.d.ts +3 -3
  383. package/lib/Dropdown/Dsubmenu.vue.d.ts +1 -1
  384. package/lib/Dropdown/Dsubmenu.vue.js +1 -1
  385. package/lib/Dropdown/hooks/useContext.d.ts +2 -2
  386. package/lib/Dropdown/hooks/useContext.js +1 -1
  387. package/lib/Dropdown/index.d.ts +19 -19
  388. package/lib/Dropdown/type.d.ts +4 -6
  389. package/lib/Grid/hooks/useContext.d.ts +1 -13
  390. package/lib/Grid/hooks/useContext.js +1 -1
  391. package/lib/Image/Image.vue.d.ts +2 -2
  392. package/lib/Image/ImagePreview.vue.js +1 -1
  393. package/lib/Image/hooks/useContext.d.ts +2 -2
  394. package/lib/Image/hooks/useContext.js +1 -1
  395. package/lib/Image/index.d.ts +6 -6
  396. package/lib/Image/type.d.ts +3 -2
  397. package/lib/Input/Input.vue.d.ts +3 -3
  398. package/lib/Input/InputSuffix.vue.js +1 -1
  399. package/lib/Input/index.d.ts +8 -8
  400. package/lib/InputNumber/InputNumber.vue.d.ts +20 -20
  401. package/lib/InputNumber/InputOperaBtn.vue.d.ts +2 -2
  402. package/lib/InputNumber/index.d.ts +19 -19
  403. package/lib/InputNumber/type.d.ts +5 -4
  404. package/lib/InputTag/index.d.ts +20 -11
  405. package/lib/InputTag/index.vue.d.ts +7 -4
  406. package/lib/InputTag/index.vue.js +1 -1
  407. package/lib/InputTag/type.d.ts +2 -1
  408. package/lib/Layout/LayoutSider.vue.d.ts +3 -3
  409. package/lib/Layout/hooks/useSiderContext.d.ts +1 -2
  410. package/lib/Layout/hooks/useSiderContext.js +1 -1
  411. package/lib/Layout/index.d.ts +8 -8
  412. package/lib/Layout/type.d.ts +3 -4
  413. package/lib/Link/index.d.ts +3 -3
  414. package/lib/Link/index.vue.d.ts +1 -1
  415. package/lib/Link/type.d.ts +2 -2
  416. package/lib/List/List.vue.d.ts +7 -7
  417. package/lib/List/hooks/useScrollReach.js +1 -1
  418. package/lib/List/index.d.ts +6 -6
  419. package/lib/List/type.d.ts +2 -3
  420. package/lib/Mention/index.d.ts +49 -40
  421. package/lib/Mention/index.vue.d.ts +85 -67
  422. package/lib/Mention/type.d.ts +3 -2
  423. package/lib/Menu/Menu.vue.d.ts +2 -2
  424. package/lib/Menu/MenuItem.vue.js +1 -1
  425. package/lib/Menu/hooks/useContext.d.ts +2 -2
  426. package/lib/Menu/hooks/useContext.js +1 -1
  427. package/lib/Menu/index.d.ts +5 -5
  428. package/lib/Menu/type.d.ts +2 -2
  429. package/lib/Message/type.d.ts +3 -3
  430. package/lib/Modal/Modal.vue.d.ts +1 -1
  431. package/lib/Modal/ModalService.vue.d.ts +1 -1
  432. package/lib/Modal/index.d.ts +13 -13
  433. package/lib/Modal/index.js +1 -1
  434. package/lib/Modal/type.d.ts +6 -9
  435. package/lib/Notification/Notification.vue.d.ts +1 -1
  436. package/lib/Notification/index.d.ts +4 -4
  437. package/lib/Notification/type.d.ts +3 -4
  438. package/lib/OverflowList/index.d.ts +3 -3
  439. package/lib/OverflowList/index.vue.d.ts +1 -1
  440. package/lib/OverflowList/index.vue.js +1 -1
  441. package/lib/OverflowList/type.d.ts +3 -2
  442. package/lib/Pagination/hooks/useContext.d.ts +2 -2
  443. package/lib/Pagination/hooks/useContext.js +1 -1
  444. package/lib/Popconfirm/index.d.ts +8 -8
  445. package/lib/Popconfirm/index.vue.d.ts +3 -3
  446. package/lib/Popconfirm/type.d.ts +2 -3
  447. package/lib/Progress/Progress.vue.d.ts +1 -1
  448. package/lib/Progress/ProgressCircle.vue.d.ts +3 -3
  449. package/lib/Progress/ProgressLine.vue.d.ts +3 -3
  450. package/lib/Progress/index.d.ts +3 -3
  451. package/lib/Progress/type.d.ts +2 -3
  452. package/lib/Radio/hooks/useContext.d.ts +2 -2
  453. package/lib/Radio/hooks/useContext.js +1 -1
  454. package/lib/Radio/type.d.ts +1 -1
  455. package/lib/ResizeBox/index.d.ts +3 -3
  456. package/lib/ResizeBox/index.vue.d.ts +2 -2
  457. package/lib/ResizeBox/type.d.ts +4 -4
  458. package/lib/Result/index.d.ts +3 -3
  459. package/lib/Result/index.vue.d.ts +1 -1
  460. package/lib/Result/type.d.ts +3 -2
  461. package/lib/Scrollbar/Scrollbar.vue.d.ts +1 -1
  462. package/lib/Scrollbar/hooks/useContext.d.ts +2 -2
  463. package/lib/Scrollbar/hooks/useContext.js +1 -1
  464. package/lib/Scrollbar/index.d.ts +3 -3
  465. package/lib/Scrollbar/type.d.ts +2 -1
  466. package/lib/Select/Select.vue.d.ts +45 -27
  467. package/lib/Select/SelectVirtualList.vue.js +1 -1
  468. package/lib/Select/hooks/useContext.d.ts +4 -4
  469. package/lib/Select/hooks/useContext.js +1 -1
  470. package/lib/Select/hooks/useSelectOptions.d.ts +2 -2
  471. package/lib/Select/index.d.ts +33 -24
  472. package/lib/Skeleton/SkeletonShape.vue.d.ts +2 -2
  473. package/lib/Skeleton/index.d.ts +2 -2
  474. package/lib/Skeleton/type.d.ts +2 -4
  475. package/lib/Slider/hooks/useContext.d.ts +2 -2
  476. package/lib/Slider/hooks/useContext.js +1 -1
  477. package/lib/Space/index.d.ts +6 -6
  478. package/lib/Space/index.vue.d.ts +2 -2
  479. package/lib/Space/type.d.ts +5 -4
  480. package/lib/Spin/index.vue.js +1 -1
  481. package/lib/Steps/hooks/useContext.d.ts +1 -2
  482. package/lib/Steps/hooks/useContext.js +1 -1
  483. package/lib/Switch/index.d.ts +14 -14
  484. package/lib/Switch/index.vue.d.ts +5 -5
  485. package/lib/Switch/type.d.ts +4 -4
  486. package/lib/Tabs/Tabs.vue.d.ts +1 -1
  487. package/lib/Tabs/hooks/useContext.d.ts +6 -6
  488. package/lib/Tabs/hooks/useContext.js +1 -1
  489. package/lib/Tabs/index.d.ts +3 -3
  490. package/lib/Tabs/type.d.ts +2 -3
  491. package/lib/Tag/index.d.ts +3 -3
  492. package/lib/Tag/index.vue.d.ts +1 -1
  493. package/lib/Tag/type.d.ts +1 -2
  494. package/lib/Textarea/hooks/useTextareaHeight.js +1 -1
  495. package/lib/Textarea/index.d.ts +5 -5
  496. package/lib/Textarea/index.vue.d.ts +2 -2
  497. package/lib/Textarea/type.d.ts +2 -2
  498. package/lib/TimePicker/TimePicker.vue.d.ts +5 -5
  499. package/lib/TimePicker/hooks/useContext.d.ts +2 -2
  500. package/lib/TimePicker/hooks/useContext.js +1 -1
  501. package/lib/TimePicker/index.d.ts +13 -13
  502. package/lib/Timeline/TimelineItem.vue.d.ts +1 -1
  503. package/lib/Timeline/hooks/useContext.d.ts +2 -2
  504. package/lib/Timeline/hooks/useContext.js +1 -1
  505. package/lib/Timeline/index.d.ts +3 -3
  506. package/lib/Timeline/type.d.ts +3 -4
  507. package/lib/Transfer/TransferPanel.vue.js +1 -1
  508. package/lib/Transfer/hooks/useContext.d.ts +2 -2
  509. package/lib/Transfer/hooks/useContext.js +1 -1
  510. package/lib/Trigger/hooks/useContext.d.ts +2 -3
  511. package/lib/Trigger/hooks/useContext.js +1 -1
  512. package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
  513. package/lib/Trigger/hooks/useTriggerVisible.js +1 -1
  514. package/lib/Typography/TypographyBase.vue.d.ts +17 -17
  515. package/lib/Typography/TypographyBase.vue.js +1 -1
  516. package/lib/Typography/TypographyParagraph.vue.d.ts +1 -1
  517. package/lib/Typography/TypographyTitle.vue.d.ts +1 -1
  518. package/lib/Typography/type.d.ts +5 -4
  519. package/lib/Upload/Upload.vue.d.ts +53 -0
  520. package/lib/Upload/Upload.vue.js +1 -0
  521. package/lib/Upload/Upload.vue3.js +1 -0
  522. package/lib/Upload/UploadButton.vue.d.ts +2 -0
  523. package/lib/Upload/UploadButton.vue.js +1 -0
  524. package/lib/Upload/UploadButton.vue3.js +1 -0
  525. package/lib/Upload/UploadDrag.vue.d.ts +2 -0
  526. package/lib/Upload/UploadDrag.vue.js +1 -0
  527. package/lib/Upload/UploadDrag.vue3.js +1 -0
  528. package/lib/Upload/UploadFileList.vue.d.ts +24 -0
  529. package/lib/Upload/UploadFileList.vue.js +1 -0
  530. package/lib/Upload/UploadFileList.vue2.js +1 -0
  531. package/lib/Upload/UploadPictureCard.vue.d.ts +4 -0
  532. package/lib/Upload/UploadPictureCard.vue.js +1 -0
  533. package/lib/Upload/UploadPictureCard.vue2.js +1 -0
  534. package/lib/Upload/hooks/useContext.d.ts +49 -0
  535. package/lib/Upload/hooks/useContext.js +1 -0
  536. package/lib/Upload/hooks/useUpload.d.ts +47 -0
  537. package/lib/Upload/hooks/useUpload.js +1 -0
  538. package/lib/Upload/index.css +1 -0
  539. package/lib/Upload/index.d.ts +123 -0
  540. package/lib/Upload/index.js +1 -0
  541. package/lib/Upload/type.d.ts +72 -0
  542. package/lib/VerificationCode/index.d.ts +3 -3
  543. package/lib/VerificationCode/index.vue.d.ts +1 -1
  544. package/lib/VerificationCode/type.d.ts +5 -4
  545. package/lib/Watermark/index.vue.js +1 -1
  546. package/lib/_shared/icons/IconDelete.vue.js +1 -1
  547. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  548. package/lib/_shared/icons/IconEyeOpen.vue.js +1 -1
  549. package/lib/_shared/icons/IconEyeOpen.vue2.js +1 -1
  550. package/lib/_shared/icons/IconFile.vue.d.ts +2 -0
  551. package/lib/_shared/icons/IconFile.vue.js +1 -0
  552. package/lib/_shared/icons/IconFile.vue2.js +1 -0
  553. package/lib/_shared/icons/IconSeparator.vue.js +1 -1
  554. package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
  555. package/lib/_shared/icons/IconUpload.vue.d.ts +2 -0
  556. package/lib/_shared/icons/IconUpload.vue.js +1 -0
  557. package/lib/_shared/icons/IconUpload.vue2.js +1 -0
  558. package/lib/_shared/icons/index.d.ts +2 -0
  559. package/lib/_shared/type/index.d.ts +3 -1
  560. package/lib/_shared/utils/is.d.ts +0 -15
  561. package/lib/_shared/utils/vue-utils.d.ts +1 -0
  562. package/lib/_virtual/_plugin-vue_export-helper.js +1 -0
  563. package/lib/index.d.ts +36 -35
  564. package/lib/index.js +1 -1
  565. package/lib/node_modules/@vueuse/core/index.js +1 -1
  566. package/lib/node_modules/@vueuse/shared/index.js +1 -1
  567. package/lib/style.css +1 -1
  568. package/package.json +1 -1
@@ -10,20 +10,20 @@ declare const __VLS_component: import('vue').DefineComponent<DropdownProps, {
10
10
  show(): void;
11
11
  hide(): void;
12
12
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
13
+ select: (value: DoptionValue, ev: MouseEvent) => any;
13
14
  "update:popupVisible": (value: boolean) => any;
14
15
  "popup-visible-change": (value: boolean) => any;
15
- select: (value: DoptionValue, ev: MouseEvent) => any;
16
16
  }, string, import('vue').PublicProps, Readonly<DropdownProps> & Readonly<{
17
+ onSelect?: ((value: DoptionValue, ev: MouseEvent) => any) | undefined;
17
18
  "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
18
19
  "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
19
- onSelect?: ((value: DoptionValue, ev: MouseEvent) => any) | undefined;
20
20
  }>, {
21
21
  popupContainer: import('..').PopupContainer;
22
22
  trigger: import('../Trigger').TriggerType;
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;
@@ -8,12 +8,12 @@ declare function __VLS_template(): {
8
8
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
9
  declare const __VLS_component: import('vue').DefineComponent<DropdownButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
10
  click: (ev: MouseEvent) => any;
11
- "popup-visible-change": (value: boolean) => any;
12
11
  select: (value: DoptionValue) => any;
12
+ "popup-visible-change": (value: boolean) => any;
13
13
  }, string, import('vue').PublicProps, Readonly<DropdownButtonProps> & Readonly<{
14
14
  onClick?: ((ev: MouseEvent) => any) | undefined;
15
- "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
16
15
  onSelect?: ((value: DoptionValue) => any) | undefined;
16
+ "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
17
17
  }>, {
18
18
  size: import('..').Size;
19
19
  type: import('../Button').ButtonType;
@@ -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, {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../node_modules/@vueuse/core/index.js"),o=require("../_shared/utils/is.js"),i=require("../_shared/utils/dom.js"),r=require("../_shared/utils/control.js");,/* empty css */,/* empty css */;/* empty css */const s=require("../_shared/icons/IconArrowRight.vue.js");require("./index.js");const l=require("../Trigger/index.js"),u=require("../Scrollbar/index.js"),n=require("./Doption.vue.js");;/* empty css */const a={class:"yc-dropdown"},d={class:"yc-dropdown-list"},p={key:0,class:"yc-dropdown-footer"},c=e.defineComponent({name:"Dsubmenu",__name:"Dsubmenu",props:{disabled:{type:Boolean,default:!1},trigger:{default:"click"},position:{default:"rt"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},triggerProps:{default:()=>({})},popupMaxHeight:{type:[Boolean,Number],default:200}},emits:["update:popupVisible","popup-visible-change"],setup(c,{expose:f,emit:v}){const m=e.useSlots(),g=c,b=v,{defaultPopupVisible:h,popupVisible:x,trigger:y,position:_,popupMaxHeight:j}=e.toRefs(g),q=r.useControlValue(x,h.value,e=>{b("update:popupVisible",e),b("popup-visible-change",e)}),V=e.ref(),w=e.ref(),B=e.computed(()=>["rt","lt"].includes(_.value)?_.value:"rt"),k=e.computed(()=>["hover","click"].includes(y.value)?y.value:"hover"),C=e.computed(()=>o.isBoolean(j.value)&&!j.value||o.isUndefined(j)?"":i.valueToPx(o.isBoolean(j.value)?200:j.value)),S=async()=>{var o;await e.nextTick();const i=t.unrefElement(V);if(!i)return;const{left:r,top:s,right:l,width:u}=i.getBoundingClientRect(),n="rt"==B.value?l:r-u,a=s-5;null==(o=w.value)||o.updatePosition(n,a)};return f({show(){q.value=!0},hide(){q.value=!1}}),(t,o)=>(e.openBlock(),e.createBlock(e.unref(l.default),e.mergeProps({"popup-visible":e.unref(q),"onUpdate:popupVisible":o[0]||(o[0]=t=>e.isRef(q)?q.value=t:null),trigger:k.value,position:B.value,"popup-offset":4,disabled:t.disabled,"mouse-enter-delay":150,"mouse-leave-delay":150,"on-trigger-mouseenter":S,"on-trigger-mouseclick":S,"need-transform-origin":"","auto-set-position":"","auto-fit-popup-min-width":"",ref_key:"triggerRef",ref:w},t.triggerProps),{content:e.withCtx(()=>[e.createElementVNode("div",a,[e.createVNode(e.unref(u.default),{style:e.normalizeStyle({maxHeight:C.value})},{default:e.withCtx(()=>[e.createElementVNode("div",d,[e.renderSlot(t.$slots,"content")])]),_:3},8,["style"]),m.footer?(e.openBlock(),e.createElementBlock("div",p,[e.renderSlot(t.$slots,"footer")])):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createVNode(e.unref(n.default),{disabled:t.disabled,class:e.normalizeClass(t.$attrs.class),style:e.normalizeStyle(t.$attrs.style),"is-submenu":"",ref_key:"optionRef",ref:V},{suffix:e.withCtx(()=>[e.createVNode(e.unref(s.default))]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["disabled","class","style"])]),_:3},16,["popup-visible","trigger","position","disabled"]))}});exports.default=c;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../_shared/utils/is.js"),o=require("../_shared/utils/dom.js"),i=require("../_shared/utils/control.js"),r=require("../node_modules/@vueuse/core/index.js");,/* empty css */,/* empty css */;/* empty css */const s=require("../_shared/icons/IconArrowRight.vue.js");require("./index.js");const l=require("../Trigger/index.js"),u=require("../Scrollbar/index.js"),n=require("./Doption.vue.js");;/* empty css */const a={class:"yc-dropdown"},d={class:"yc-dropdown-list"},p={key:0,class:"yc-dropdown-footer"},c=e.defineComponent({name:"Dsubmenu",__name:"Dsubmenu",props:{disabled:{type:Boolean,default:!1},trigger:{default:"click"},position:{default:"rt"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},triggerProps:{default:()=>({})},popupMaxHeight:{type:[Boolean,Number],default:200}},emits:["update:popupVisible","popup-visible-change"],setup(c,{expose:f,emit:v}){const m=e.useSlots(),g=c,b=v,{defaultPopupVisible:h,popupVisible:x,trigger:y,position:_,popupMaxHeight:j}=e.toRefs(g),q=i.useControlValue(x,h.value,e=>{b("update:popupVisible",e),b("popup-visible-change",e)}),V=e.ref(),w=e.ref(),B=e.computed(()=>["rt","lt"].includes(_.value)?_.value:"rt"),k=e.computed(()=>["hover","click"].includes(y.value)?y.value:"hover"),C=e.computed(()=>t.isBoolean(j.value)&&!j.value||t.isUndefined(j)?"":o.valueToPx(t.isBoolean(j.value)?200:j.value)),S=async()=>{var t;await e.nextTick();const o=r.unrefElement(V);if(!o)return;const{left:i,top:s,right:l,width:u}=o.getBoundingClientRect(),n="rt"==B.value?l:i-u,a=s-5;null==(t=w.value)||t.updatePosition(n,a)};return f({show(){q.value=!0},hide(){q.value=!1}}),(t,o)=>(e.openBlock(),e.createBlock(e.unref(l.default),e.mergeProps({"popup-visible":e.unref(q),"onUpdate:popupVisible":o[0]||(o[0]=t=>e.isRef(q)?q.value=t:null),trigger:k.value,position:B.value,"popup-offset":4,disabled:t.disabled,"mouse-enter-delay":150,"mouse-leave-delay":150,"on-trigger-mouseenter":S,"on-trigger-mouseclick":S,"need-transform-origin":"","auto-set-position":"","auto-fit-popup-min-width":"",ref_key:"triggerRef",ref:w},t.triggerProps),{content:e.withCtx(()=>[e.createElementVNode("div",a,[e.createVNode(e.unref(u.default),{style:e.normalizeStyle({maxHeight:C.value})},{default:e.withCtx(()=>[e.createElementVNode("div",d,[e.renderSlot(t.$slots,"content")])]),_:3},8,["style"]),m.footer?(e.openBlock(),e.createElementBlock("div",p,[e.renderSlot(t.$slots,"footer")])):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createVNode(e.unref(n.default),{disabled:t.disabled,class:e.normalizeClass(t.$attrs.class),style:e.normalizeStyle(t.$attrs.style),"is-submenu":"",ref_key:"optionRef",ref:V},{suffix:e.withCtx(()=>[e.createVNode(e.unref(s.default))]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["disabled","class","style"])]),_:3},16,["popup-visible","trigger","position","disabled"]))}});exports.default=c;
@@ -3,10 +3,10 @@ import { RecordType } from '../../_shared/type';
3
3
  type DropdownContext = {
4
4
  select: (value: DoptionValue, ev: MouseEvent) => void;
5
5
  };
6
- declare const _default: () => {
6
+ export default function useDropdownContext(): {
7
7
  provide: (props: RecordType, emits: DropdownEmits) => {
8
8
  computedVisible: import('vue').WritableComputedRef<boolean, boolean>;
9
9
  };
10
10
  inject: () => DropdownContext;
11
11
  };
12
- export default _default;
12
+ export {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../_shared/utils/control.js"),o="dropdown-context";exports.default=()=>({provide:(i,l)=>{const{popupVisible:u,defaultPopupVisible:s,hideOnSelect:p,position:r}=e.toRefs(i),c=t.useControlValue(u,s.value,e=>{l("update:popupVisible",e),l("popup-visible-change",e)});return e.provide(o,{select:(e,t)=>{l("select",e,t),p.value&&(c.value=!1)}}),{computedVisible:c}},inject:()=>e.inject(o,{select:()=>{}})});
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../_shared/utils/control.js"),o="dropdown-context";exports.default=function(){return{provide:(i,u)=>{const{popupVisible:l,defaultPopupVisible:s,hideOnSelect:p,position:r}=e.toRefs(i),n=t.useControlValue(l,s.value,e=>{u("update:popupVisible",e),u("popup-visible-change",e)});return e.provide(o,{select:(e,t)=>{u("select",e,t),p.value&&(n.value=!1)}}),{computedVisible:n}},inject:()=>e.inject(o,{select:()=>{}})}};
@@ -12,23 +12,23 @@ export type DsubmenuInstance = InstanceType<typeof _Dsubmenu>;
12
12
  export * from './type';
13
13
  declare const Dropdown: {
14
14
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').DropdownProps> & Readonly<{
15
+ onSelect?: ((value: import('./type').DoptionValue, ev: MouseEvent) => any) | undefined;
15
16
  "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
16
17
  "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
17
- onSelect?: ((value: import('./type').DoptionValue, ev: MouseEvent) => any) | undefined;
18
18
  }>, {
19
19
  show(): void;
20
20
  hide(): void;
21
21
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
22
+ select: (value: import('./type').DoptionValue, ev: MouseEvent) => any;
22
23
  "update:popupVisible": (value: boolean) => any;
23
24
  "popup-visible-change": (value: boolean) => any;
24
- select: (value: import('./type').DoptionValue, ev: MouseEvent) => any;
25
25
  }, import('vue').PublicProps, {
26
26
  popupContainer: import('..').PopupContainer;
27
27
  trigger: import('..').TriggerType;
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;
@@ -40,9 +40,9 @@ declare const Dropdown: {
40
40
  M: {};
41
41
  Defaults: {};
42
42
  }, Readonly<import('./type').DropdownProps> & Readonly<{
43
+ onSelect?: ((value: import('./type').DoptionValue, ev: MouseEvent) => any) | undefined;
43
44
  "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
44
45
  "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
45
- onSelect?: ((value: import('./type').DoptionValue, ev: MouseEvent) => any) | undefined;
46
46
  }>, {
47
47
  show(): void;
48
48
  hide(): void;
@@ -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;
@@ -61,23 +61,23 @@ declare const Dropdown: {
61
61
  __isTeleport?: never;
62
62
  __isSuspense?: never;
63
63
  } & import('vue').ComponentOptionsBase<Readonly<import('./type').DropdownProps> & Readonly<{
64
+ onSelect?: ((value: import('./type').DoptionValue, ev: MouseEvent) => any) | undefined;
64
65
  "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
65
66
  "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
66
- onSelect?: ((value: import('./type').DoptionValue, ev: MouseEvent) => any) | undefined;
67
67
  }>, {
68
68
  show(): void;
69
69
  hide(): void;
70
70
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
71
+ select: (value: import('./type').DoptionValue, ev: MouseEvent) => any;
71
72
  "update:popupVisible": (value: boolean) => any;
72
73
  "popup-visible-change": (value: boolean) => any;
73
- select: (value: import('./type').DoptionValue, ev: MouseEvent) => any;
74
74
  }, string, {
75
75
  popupContainer: import('..').PopupContainer;
76
76
  trigger: import('..').TriggerType;
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;
@@ -139,12 +139,12 @@ declare const Dropdown: {
139
139
  button: {
140
140
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').DropdownButtonProps> & Readonly<{
141
141
  onClick?: ((ev: MouseEvent) => any) | undefined;
142
- "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
143
142
  onSelect?: ((value: import('./type').DoptionValue) => any) | undefined;
143
+ "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
144
144
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
145
145
  click: (ev: MouseEvent) => any;
146
- "popup-visible-change": (value: boolean) => any;
147
146
  select: (value: import('./type').DoptionValue) => any;
147
+ "popup-visible-change": (value: boolean) => any;
148
148
  }, import('vue').PublicProps, {
149
149
  size: import('..').Size;
150
150
  type: import('..').ButtonType;
@@ -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, {
@@ -165,8 +165,8 @@ declare const Dropdown: {
165
165
  Defaults: {};
166
166
  }, Readonly<import('./type').DropdownButtonProps> & Readonly<{
167
167
  onClick?: ((ev: MouseEvent) => any) | undefined;
168
- "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
169
168
  onSelect?: ((value: import('./type').DoptionValue) => any) | undefined;
169
+ "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
170
170
  }>, {}, {}, {}, {}, {
171
171
  size: import('..').Size;
172
172
  type: import('..').ButtonType;
@@ -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
  }>;
@@ -184,12 +184,12 @@ declare const Dropdown: {
184
184
  __isSuspense?: never;
185
185
  } & import('vue').ComponentOptionsBase<Readonly<import('./type').DropdownButtonProps> & Readonly<{
186
186
  onClick?: ((ev: MouseEvent) => any) | undefined;
187
- "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
188
187
  onSelect?: ((value: import('./type').DoptionValue) => any) | undefined;
188
+ "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
189
189
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
190
190
  click: (ev: MouseEvent) => any;
191
- "popup-visible-change": (value: boolean) => any;
192
191
  select: (value: import('./type').DoptionValue) => any;
192
+ "popup-visible-change": (value: boolean) => any;
193
193
  }, string, {
194
194
  size: import('..').Size;
195
195
  type: import('..').ButtonType;
@@ -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,24 +1,13 @@
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;
18
7
  suffix: boolean;
19
8
  }>;
20
9
  export type GutterValue = GridRowGutter | [GridRowGutter, GridRowGutter];
21
- declare const _default: () => {
10
+ export default function useGridContext(): {
22
11
  provide: (props: RecordType) => {
23
12
  breakpoint: Ref<BreakpointName, BreakpointName>;
24
13
  cols: import('vue').ComputedRef<number>;
@@ -40,4 +29,3 @@ declare const _default: () => {
40
29
  collapsedRows: Ref<number>;
41
30
  };
42
31
  };
43
- export default _default;
@@ -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=()=>({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"),o=require("../node_modules/@vueuse/core/index.js");require("../_shared/utils/dom.js"),/* empty css */,/* empty css */;/* empty css */const a=require("../_shared/icons/IconClose.vue.js"),t=require("../_shared/utils/control.js"),l=require("../_shared/utils/global-config.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}=l.getGlobalConfig(f),B=e.ref(),V=t.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&&o.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"};o.onKeyStroke(["ArrowUp","ArrowDown"," "],o=>{L(e[o.key])})}})(),(o,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",o.$attrs.class,{"yc-image-preview-absolute":e.unref(z)}]),style:e.normalizeStyle({zIndex:e.unref(C),...o.$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:o.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:o.actionsLayout,onClick:L},e.createSlots({_:2},[d.actions?{name:"actions",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"actions")]),key:"0"}:void 0]),1032,["actionsLayout"]),e.renderSlot(o.$slots,"arrow"),o.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(a.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;
@@ -5,7 +5,7 @@ type ImageContext = {
5
5
  hasGroupFather: Ref<boolean>;
6
6
  handleClick: (src: string) => void;
7
7
  };
8
- declare const _default: () => {
8
+ export default function useImageContext(): {
9
9
  provide: (props: RecordType, emits: ImagePreviewGroupEmits) => {
10
10
  src: import('vue').ComputedRef<string>;
11
11
  srcList: import('vue').ComputedRef<string[]>;
@@ -14,4 +14,4 @@ declare const _default: () => {
14
14
  };
15
15
  inject: () => ImageContext;
16
16
  };
17
- export default _default;
17
+ export {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../_shared/utils/control.js"),r=require("../../_shared/utils/vue-utils.js"),t=require("../Image.vue.js");;/* empty css */const l="image-context";exports.default=()=>({provide:(a,s)=>{const{srcList:i,current:n,defaultCurrent:o,visible:d,defaultVisible:c}=e.toRefs(a),v=e.useSlots(),p=e.computed(()=>{var e;if(i.value.length)return i.value;if(!v.default)return[];return r.findComponentsFromVnodes((null==(e=v.default)?void 0:e.call(v))||[],t.default.name).map(e=>{var u;return null==(u=null==e?void 0:e.props)?void 0:u.src})}),f=u.useControlValue(n,o.value,e=>{s("update:current",e),s("change",e)}),m=u.useControlValue(d,c.value,e=>{s("update:visible",e),s("visible-change",e)}),h=e.computed(()=>p.value[f.value]);return e.provide(l,{hasGroupFather:e.ref(!0),handleClick:e=>{const u=p.value.findIndex(u=>u==e);f.value=u,m.value=!0}}),{src:h,srcList:p,computedCurrent:f,computedVisible:m}},inject:()=>e.inject(l,{hasGroupFather:e.ref(!1),handleClick:()=>{}})});
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("../../_shared/utils/control.js"),r=require("../../_shared/utils/vue-utils.js"),t=require("../Image.vue.js");;/* empty css */const l="image-context";exports.default=function(){return{provide:(a,s)=>{const{srcList:i,current:n,defaultCurrent:o,visible:d,defaultVisible:c}=e.toRefs(a),v=e.useSlots(),p=e.computed(()=>{var e;if(i.value.length)return i.value;if(!v.default)return[];return r.findComponentsFromVnodes((null==(e=v.default)?void 0:e.call(v))||[],t.default.name).map(e=>{var u;return null==(u=null==e?void 0:e.props)?void 0:u.src})}),f=u.useControlValue(n,o.value,e=>{s("update:current",e),s("change",e)}),m=u.useControlValue(d,c.value,e=>{s("update:visible",e),s("visible-change",e)}),h=e.computed(()=>p.value[f.value]);return e.provide(l,{hasGroupFather:e.ref(!0),handleClick:e=>{const u=p.value.findIndex(u=>u==e);f.value=u,m.value=!0}}),{src:h,srcList:p,computedCurrent:f,computedVisible:m}},inject:()=>e.inject(l,{hasGroupFather:e.ref(!1),handleClick:()=>{}})}};
@@ -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 {};
@@ -14,10 +14,10 @@ declare const __VLS_component: import('vue').DefineComponent<InputProps, {
14
14
  getInputRef(): HTMLInputElement;
15
15
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
16
16
  change: (value: string, ev: Event) => any;
17
- focus: (ev: FocusEvent) => any;
18
17
  clear: (ev: MouseEvent) => any;
19
18
  input: (value: string, ev: Event) => any;
20
19
  blur: (ev: FocusEvent) => any;
20
+ focus: (ev: FocusEvent) => any;
21
21
  keydown: (ev: KeyboardEvent) => any;
22
22
  "update:modelValue": (value: string) => any;
23
23
  "update:visibility": (value: boolean) => any;
@@ -25,18 +25,18 @@ declare const __VLS_component: import('vue').DefineComponent<InputProps, {
25
25
  pressEnter: (ev: KeyboardEvent) => any;
26
26
  }, string, import('vue').PublicProps, Readonly<InputProps> & Readonly<{
27
27
  onChange?: ((value: string, ev: Event) => any) | undefined;
28
- onFocus?: ((ev: FocusEvent) => any) | undefined;
29
28
  onClear?: ((ev: MouseEvent) => any) | undefined;
30
29
  onInput?: ((value: string, ev: Event) => any) | undefined;
31
30
  onBlur?: ((ev: FocusEvent) => any) | undefined;
31
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
32
32
  onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
33
33
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
34
34
  "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
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.vue.js"),n=require("../_shared/icons/IconEyeOpen.vue.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;
@@ -5,10 +5,10 @@ export * from './type';
5
5
  declare const Input: {
6
6
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').InputProps> & Readonly<{
7
7
  onChange?: ((value: string, ev: Event) => any) | undefined;
8
- onFocus?: ((ev: FocusEvent) => any) | undefined;
9
8
  onClear?: ((ev: MouseEvent) => any) | undefined;
10
9
  onInput?: ((value: string, ev: Event) => any) | undefined;
11
10
  onBlur?: ((ev: FocusEvent) => any) | undefined;
11
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
12
12
  onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
13
13
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
14
14
  "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
@@ -20,18 +20,18 @@ declare const Input: {
20
20
  getInputRef(): HTMLInputElement;
21
21
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
22
22
  change: (value: string, ev: Event) => any;
23
- focus: (ev: FocusEvent) => any;
24
23
  clear: (ev: MouseEvent) => any;
25
24
  input: (value: string, ev: Event) => any;
26
25
  blur: (ev: FocusEvent) => any;
26
+ focus: (ev: FocusEvent) => any;
27
27
  keydown: (ev: KeyboardEvent) => any;
28
28
  "update:modelValue": (value: string) => any;
29
29
  "update:visibility": (value: boolean) => any;
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;
@@ -59,10 +59,10 @@ declare const Input: {
59
59
  Defaults: {};
60
60
  }, Readonly<import('./type').InputProps> & Readonly<{
61
61
  onChange?: ((value: string, ev: Event) => any) | undefined;
62
- onFocus?: ((ev: FocusEvent) => any) | undefined;
63
62
  onClear?: ((ev: MouseEvent) => any) | undefined;
64
63
  onInput?: ((value: string, ev: Event) => any) | undefined;
65
64
  onBlur?: ((ev: FocusEvent) => any) | undefined;
65
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
66
66
  onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
67
67
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
68
68
  "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
@@ -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;
@@ -97,10 +97,10 @@ declare const Input: {
97
97
  __isSuspense?: never;
98
98
  } & import('vue').ComponentOptionsBase<Readonly<import('./type').InputProps> & Readonly<{
99
99
  onChange?: ((value: string, ev: Event) => any) | undefined;
100
- onFocus?: ((ev: FocusEvent) => any) | undefined;
101
100
  onClear?: ((ev: MouseEvent) => any) | undefined;
102
101
  onInput?: ((value: string, ev: Event) => any) | undefined;
103
102
  onBlur?: ((ev: FocusEvent) => any) | undefined;
103
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
104
104
  onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
105
105
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
106
106
  "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
@@ -112,18 +112,18 @@ declare const Input: {
112
112
  getInputRef(): HTMLInputElement;
113
113
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
114
114
  change: (value: string, ev: Event) => any;
115
- focus: (ev: FocusEvent) => any;
116
115
  clear: (ev: MouseEvent) => any;
117
116
  input: (value: string, ev: Event) => any;
118
117
  blur: (ev: FocusEvent) => any;
118
+ focus: (ev: FocusEvent) => any;
119
119
  keydown: (ev: KeyboardEvent) => any;
120
120
  "update:modelValue": (value: string) => any;
121
121
  "update:visibility": (value: boolean) => any;
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;