yc-design-vue 2.2.3 → 2.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (542) hide show
  1. package/dist/index.umd.js +1 -1
  2. package/dist/style.css +1 -1
  3. package/es/Affix/index.vue.js +0 -4
  4. package/es/Alert/index.vue.js +2 -6
  5. package/es/Anchor/Anchor.vue.js +0 -4
  6. package/es/Anchor/AnchorLink.vue.js +0 -4
  7. package/es/Anchor/hooks/useContext.js +0 -4
  8. package/es/AutoComplete/index.vue.js +0 -4
  9. package/es/Avatar/Avatar.vue.js +1 -5
  10. package/es/Avatar/AvatarGroup.vue.js +0 -4
  11. package/es/BackTop/index.vue.js +1 -5
  12. package/es/Badge/index.vue.js +0 -4
  13. package/es/Breadcrumb/Breadcrumb.vue.js +0 -4
  14. package/es/Breadcrumb/BreadcrumbItem.vue.js +1 -5
  15. package/es/Breadcrumb/BreadcrumbMore.vue.js +1 -5
  16. package/es/Breadcrumb/BreadcrumbSeparator.vue.js +1 -5
  17. package/es/Button/hooks/useContext.js +0 -4
  18. package/es/Calendar/Calendar.vue.js +32 -51
  19. package/es/Calendar/CalendarMonth.vue.d.ts +4 -6
  20. package/es/Calendar/CalendarMonth.vue.js +32 -43
  21. package/es/Calendar/CalendarYear.vue.d.ts +3 -4
  22. package/es/Calendar/CalendarYear.vue.js +19 -38
  23. package/es/Card/Card.vue.js +0 -4
  24. package/es/Card/CardMeta.vue.js +0 -4
  25. package/es/Carousel/Carousel.vue.js +0 -4
  26. package/es/Carousel/CarouselArrow.vue.js +1 -5
  27. package/es/Carousel/CarouselIndicator.vue.js +0 -4
  28. package/es/Carousel/hooks/useContext.js +0 -4
  29. package/es/Cascader/Cascader.vue.js +0 -4
  30. package/es/Cascader/CascaderIcon.vue.js +2 -6
  31. package/es/Cascader/CascaderOption.vue.js +1 -5
  32. package/es/Cascader/hooks/useContext.js +0 -4
  33. package/es/Checkbox/Checkbox.vue.js +2 -6
  34. package/es/Checkbox/hooks/useContext.js +0 -4
  35. package/es/Collapse/CollapseItem.vue.js +2 -6
  36. package/es/Collapse/hooks/useContext.js +0 -4
  37. package/es/ColorPicker/ColorControl.vue.js +0 -4
  38. package/es/ColorPicker/ColorInput.vue.js +0 -4
  39. package/es/ColorPicker/ColorList.vue.js +0 -4
  40. package/es/ColorPicker/ColorPalette.vue.js +0 -4
  41. package/es/ColorPicker/ColorPanel.vue.js +0 -4
  42. package/es/ColorPicker/ColorPicker.vue.d.ts +1 -1
  43. package/es/ColorPicker/hooks/useContext.js +0 -4
  44. package/es/ColorPicker/index.d.ts +3 -3
  45. package/es/Comment/hooks/useContext.js +0 -4
  46. package/es/Comment/index.vue.js +0 -4
  47. package/es/ConfigProvider/index.vue.js +0 -4
  48. package/es/DatePicker/YcDatePicker.vue.d.ts +69 -1
  49. package/es/DatePicker/YcDatePicker.vue.js +257 -4
  50. package/es/DatePicker/{YcDatePicker.vue2.js → YcDatePicker.vue3.js} +1 -0
  51. package/es/DatePicker/YcMonthPicker.vue.d.ts +4 -2
  52. package/es/DatePicker/YcMonthPicker.vue.js +42 -62
  53. package/es/DatePicker/YcWeekPicker.vue.d.ts +4 -2
  54. package/es/DatePicker/YcWeekPicker.vue.js +262 -4
  55. package/es/DatePicker/YcWeekPicker.vue3.js +5 -0
  56. package/es/DatePicker/YcYearPicker.vue.d.ts +4 -2
  57. package/es/DatePicker/YcYearPicker.vue.js +46 -55
  58. package/es/DatePicker/component/PickerCell.vue.d.ts +2 -2
  59. package/es/DatePicker/component/PickerCell.vue.js +39 -5
  60. package/es/DatePicker/component/PickerCell.vue3.js +5 -0
  61. package/es/DatePicker/component/PickerHeader.vue.d.ts +40 -0
  62. package/es/DatePicker/component/PickerHeader.vue.js +83 -0
  63. package/es/DatePicker/component/PickerHeader.vue3.js +5 -0
  64. package/es/DatePicker/component/PickerInput.vue.js +119 -5
  65. package/es/DatePicker/component/PickerInput.vue3.js +5 -0
  66. package/es/DatePicker/component/PickerPanel.vue.d.ts +6 -1
  67. package/es/DatePicker/component/PickerPanel.vue.js +47 -10
  68. package/es/DatePicker/component/PickerWeekHeader.vue.d.ts +8 -0
  69. package/es/DatePicker/component/PickerWeekHeader.vue.js +58 -0
  70. package/es/DatePicker/component/PickerWeekHeader.vue3.js +5 -0
  71. package/es/DatePicker/hooks/userPicker.d.ts +7 -15
  72. package/es/DatePicker/hooks/userPicker.js +45 -53
  73. package/es/DatePicker/index.css +2 -2
  74. package/es/DatePicker/index.d.ts +156 -3
  75. package/es/DatePicker/index.js +5 -3
  76. package/es/Descriptions/ReuseItem.vue.js +0 -4
  77. package/es/Descriptions/ReuseTd.vue.js +0 -4
  78. package/es/Descriptions/hooks/useContext.js +0 -4
  79. package/es/Divider/index.vue.js +0 -4
  80. package/es/Drawer/Drawer.vue.js +2 -6
  81. package/es/Drawer/DrawerService.vue.js +0 -4
  82. package/es/Dropdown/Dropdown.vue.js +0 -4
  83. package/es/Dropdown/DropdownButton.vue.js +1 -5
  84. package/es/Dropdown/Dsubmenu.vue.js +1 -5
  85. package/es/Dropdown/hooks/useContext.js +0 -4
  86. package/es/Empty/index.vue.js +1 -5
  87. package/es/Grid/Grid.vue.js +0 -4
  88. package/es/Grid/GridCol.vue.js +0 -4
  89. package/es/Grid/GridItem.vue.js +0 -4
  90. package/es/Grid/GridRow.vue.js +0 -4
  91. package/es/Grid/hooks/useContext.js +0 -4
  92. package/es/Image/Image.vue.js +1 -5
  93. package/es/Image/ImagePreview.vue.js +1 -5
  94. package/es/Image/ImagePreviewArrow.vue.js +1 -5
  95. package/es/Image/ImagePreviewGroup.vue.js +0 -4
  96. package/es/Image/ImagePreviewToolbar.vue.js +1 -5
  97. package/es/Image/hooks/useContext.js +0 -4
  98. package/es/Input/Input.vue.js +2 -6
  99. package/es/Input/InputPassword.vue.js +2 -6
  100. package/es/Input/InputSearch.vue.js +2 -6
  101. package/es/Input/hooks/useLimitedInput.js +0 -4
  102. package/es/InputNumber/InputNumber.vue.d.ts +1 -1
  103. package/es/InputNumber/InputNumber.vue.js +0 -4
  104. package/es/InputNumber/InputOperaBtn.vue.js +1 -5
  105. package/es/InputNumber/index.d.ts +3 -3
  106. package/es/InputTag/index.vue.js +2 -6
  107. package/es/Layout/Layout.vue.js +0 -4
  108. package/es/Layout/LayoutSider.vue.d.ts +1 -1
  109. package/es/Layout/LayoutSider.vue.js +1 -5
  110. package/es/Layout/hooks/useSiderContext.js +0 -4
  111. package/es/Layout/index.d.ts +3 -3
  112. package/es/Link/index.vue.js +1 -5
  113. package/es/List/List.vue.js +0 -4
  114. package/es/List/ListVirtual.vue.js +0 -4
  115. package/es/List/hooks/useScrollReach.js +0 -4
  116. package/es/Mention/index.vue.js +0 -4
  117. package/es/Menu/Menu.vue.js +1 -5
  118. package/es/Menu/MenuEllipsis.vue.js +1 -5
  119. package/es/Menu/MenuItem.vue.js +0 -4
  120. package/es/Menu/MenuItemGroup.vue.js +0 -4
  121. package/es/Menu/SubMenu.vue.js +1 -5
  122. package/es/Menu/hooks/useCalcMaxMenuItems.js +0 -4
  123. package/es/Menu/hooks/useContext.js +0 -4
  124. package/es/Message/Message.vue.js +2 -6
  125. package/es/Message/index.js +0 -4
  126. package/es/Modal/Modal.vue.js +2 -6
  127. package/es/Modal/ModalService.vue.js +0 -4
  128. package/es/Modal/hooks/useModalClose.js +0 -4
  129. package/es/Modal/hooks/useModalDraggable.js +0 -4
  130. package/es/Modal/hooks/useOnBeforeClose.js +0 -4
  131. package/es/Notification/Notification.vue.js +2 -6
  132. package/es/Notification/index.js +0 -4
  133. package/es/OverflowList/index.vue.js +0 -4
  134. package/es/PageHeader/index.vue.js +2 -6
  135. package/es/Pagination/Pagination.vue.js +0 -4
  136. package/es/Pagination/PaginationItem.vue.js +1 -5
  137. package/es/Pagination/hooks/useContext.js +0 -4
  138. package/es/Popconfirm/index.vue.js +0 -4
  139. package/es/Popover/index.vue.js +0 -4
  140. package/es/Progress/Progress.vue.js +0 -4
  141. package/es/Progress/ProgressCircle.vue.js +1 -5
  142. package/es/Progress/ProgressLine.vue.js +0 -4
  143. package/es/Progress/ProgressSteps.vue.js +0 -4
  144. package/es/Radio/Radio.vue.js +2 -6
  145. package/es/Radio/hooks/useContext.js +0 -4
  146. package/es/Rate/index.vue.js +1 -5
  147. package/es/ResizeBox/index.vue.js +1 -5
  148. package/es/Scrollbar/Scrollbar.vue.js +0 -4
  149. package/es/Scrollbar/ScrollbarTrack.vue.js +0 -4
  150. package/es/Select/Option.vue.js +0 -4
  151. package/es/Select/Select.vue.js +0 -4
  152. package/es/Select/SelectIcon.vue.js +2 -6
  153. package/es/Select/SelectRealList.vue.js +0 -4
  154. package/es/Select/SelectView.vue.js +0 -4
  155. package/es/Select/SelectVirtualList.vue.js +0 -4
  156. package/es/Select/hooks/useContext.js +0 -4
  157. package/es/Select/hooks/useSelectHotkeys.js +0 -4
  158. package/es/Select/hooks/useSelectOptions.js +0 -4
  159. package/es/Skeleton/SkeletonLine.vue.js +0 -4
  160. package/es/Skeleton/SkeletonShape.vue.js +0 -4
  161. package/es/Slider/Slider.vue.d.ts +1 -1
  162. package/es/Slider/SliderBtn.vue.js +0 -4
  163. package/es/Slider/hooks/useContext.js +0 -4
  164. package/es/Slider/hooks/useSliderDraggable.js +0 -4
  165. package/es/Slider/index.d.ts +3 -3
  166. package/es/Space/index.vue.js +0 -4
  167. package/es/Spin/index.vue.js +1 -5
  168. package/es/Split/index.vue.js +1 -5
  169. package/es/Statistic/Countdown.vue.d.ts +1 -1
  170. package/es/Statistic/Countdown.vue.js +0 -4
  171. package/es/Statistic/Statistic.vue.d.ts +1 -1
  172. package/es/Statistic/Statistic.vue.js +0 -4
  173. package/es/Statistic/index.d.ts +6 -6
  174. package/es/Steps/Step.vue.js +1 -5
  175. package/es/Steps/hooks/useContext.js +0 -4
  176. package/es/Switch/index.vue.js +0 -4
  177. package/es/Tabs/TabButton.vue.js +2 -6
  178. package/es/Tabs/TabPane.vue.js +0 -4
  179. package/es/Tabs/Tabs.vue.js +1 -5
  180. package/es/Tabs/TabsNavInk.vue.js +0 -4
  181. package/es/Tabs/TabsTab.vue.js +0 -4
  182. package/es/Tabs/hooks/useContext.js +0 -4
  183. package/es/Tabs/hooks/useTabsScroll.js +0 -4
  184. package/es/Tag/index.vue.js +2 -6
  185. package/es/Textarea/hooks/useTextareaHeight.js +0 -4
  186. package/es/Textarea/index.vue.js +2 -6
  187. package/es/TimePicker/TimePicker.vue.js +2 -6
  188. package/es/TimePicker/TimePickerPanel.vue.js +0 -4
  189. package/es/TimePicker/hooks/useContext.js +0 -4
  190. package/es/Timeline/TimelineItemPending.vue.js +0 -4
  191. package/es/Timeline/hooks/useContext.js +0 -4
  192. package/es/Tooltip/index.vue.js +0 -4
  193. package/es/Transfer/Transfer.vue.js +1 -5
  194. package/es/Transfer/TransferPanel.vue.js +2 -6
  195. package/es/Transfer/hooks/useContext.js +0 -4
  196. package/es/Trigger/hooks/useContext.js +0 -4
  197. package/es/Trigger/hooks/useTriggerPosition.js +0 -4
  198. package/es/Trigger/hooks/useTriggerVisible.js +0 -4
  199. package/es/Trigger/index.vue.js +1 -5
  200. package/es/Typography/TypographyBase.vue.js +1 -5
  201. package/es/Upload/UploadButton.vue.js +1 -5
  202. package/es/Upload/UploadDrag.vue.js +1 -5
  203. package/es/Upload/UploadFileList.vue.js +2 -6
  204. package/es/Upload/UploadPictureCard.vue.js +1 -5
  205. package/es/Upload/hooks/useContext.js +0 -4
  206. package/es/Upload/hooks/useUpload.js +0 -4
  207. package/es/VerificationCode/index.vue.js +0 -4
  208. package/es/Watermark/index.vue.js +0 -4
  209. package/es/_shared/components/ExpandTransition/index.vue2.js +0 -4
  210. package/es/_shared/components/Icon/index.vue3.js +0 -4
  211. package/es/_shared/components/IconButton/{index.vue.js → index.vue2.js} +1 -5
  212. package/es/_shared/components/IconButton/index.vue3.js +2 -2
  213. package/es/_shared/constants/index.js +1 -5
  214. package/es/_shared/icons/IconArrowDown.vue.js +1 -5
  215. package/es/_shared/icons/IconArrowRight.vue.js +1 -5
  216. package/es/_shared/icons/IconCalendar.vue2.js +1 -5
  217. package/es/_shared/icons/IconCheck.vue.js +1 -5
  218. package/es/_shared/icons/IconCheckboxChecked.vue.js +1 -5
  219. package/es/_shared/icons/IconClose.vue.js +1 -5
  220. package/es/_shared/icons/IconCopy.vue2.js +1 -5
  221. package/es/_shared/icons/IconDelete.vue2.js +1 -5
  222. package/es/_shared/icons/IconDoubleLeft.vue.js +1 -28
  223. package/es/_shared/icons/IconDoubleLeft.vue2.js +24 -1
  224. package/es/_shared/icons/IconDoubleRight.vue.js +1 -28
  225. package/es/_shared/icons/IconDoubleRight.vue2.js +24 -1
  226. package/es/_shared/icons/IconDragDot.vue.js +1 -5
  227. package/es/_shared/icons/IconEdit.vue2.js +1 -5
  228. package/es/_shared/icons/IconEmpty.vue.js +1 -5
  229. package/es/_shared/icons/IconError.vue.js +1 -5
  230. package/es/_shared/icons/IconExclamation.vue2.js +1 -5
  231. package/es/_shared/icons/IconEyeClose.vue.js +1 -5
  232. package/es/_shared/icons/IconEyeOpen.vue.js +1 -5
  233. package/es/_shared/icons/IconFaceSmile.vue.js +1 -5
  234. package/es/_shared/icons/IconFile.vue2.js +1 -5
  235. package/es/_shared/icons/IconFullScreen.vue2.js +1 -5
  236. package/es/_shared/icons/IconImageClose.vue.js +1 -5
  237. package/es/_shared/icons/IconInfo.vue.js +1 -5
  238. package/es/_shared/icons/IconInfoLine.vue.js +1 -5
  239. package/es/_shared/icons/IconLink.vue.js +1 -5
  240. package/es/_shared/icons/IconLoading.vue.js +1 -5
  241. package/es/_shared/icons/IconMenuFold.vue.js +1 -5
  242. package/es/_shared/icons/IconMenuUnfold.vue.js +1 -5
  243. package/es/_shared/icons/IconMinus.vue2.js +1 -5
  244. package/es/_shared/icons/IconMore.vue.js +1 -5
  245. package/es/_shared/icons/IconOriginSize.vue2.js +1 -5
  246. package/es/_shared/icons/IconPlus.vue.js +1 -5
  247. package/es/_shared/icons/IconRight.vue.js +1 -5
  248. package/es/_shared/icons/IconRotateLeft.vue2.js +1 -5
  249. package/es/_shared/icons/IconRotateRight.vue2.js +1 -5
  250. package/es/_shared/icons/IconSearch.vue.js +1 -5
  251. package/es/_shared/icons/IconSeparator.vue2.js +1 -5
  252. package/es/_shared/icons/IconStar.vue.js +1 -5
  253. package/es/_shared/icons/IconSuccess.vue.js +1 -5
  254. package/es/_shared/icons/IconTime.vue.js +1 -5
  255. package/es/_shared/icons/IconToTop.vue.js +1 -5
  256. package/es/_shared/icons/IconUpload.vue2.js +1 -5
  257. package/es/_shared/icons/IconWarning.vue.js +1 -5
  258. package/es/_shared/icons/IconZoomIn.vue2.js +1 -5
  259. package/es/_shared/icons/IconZoomOut.vue2.js +1 -5
  260. package/es/_shared/utils/color.js +0 -4
  261. package/es/_shared/utils/dependencies.d.ts +0 -4
  262. package/es/_shared/utils/dom.js +0 -4
  263. package/es/_shared/utils/locale.d.ts +0 -5
  264. package/es/_shared/utils/time.d.ts +20 -8
  265. package/es/_shared/utils/time.js +64 -16
  266. package/es/index.d.ts +30 -18
  267. package/es/style.css +1 -1
  268. package/lib/Affix/index.vue.js +1 -1
  269. package/lib/Alert/index.vue.js +1 -1
  270. package/lib/Anchor/Anchor.vue.js +1 -1
  271. package/lib/Anchor/AnchorLink.vue.js +1 -1
  272. package/lib/Anchor/hooks/useContext.js +1 -1
  273. package/lib/AutoComplete/index.vue.js +1 -1
  274. package/lib/Avatar/Avatar.vue.js +1 -1
  275. package/lib/Avatar/AvatarGroup.vue.js +1 -1
  276. package/lib/BackTop/index.vue.js +1 -1
  277. package/lib/Badge/index.vue.js +1 -1
  278. package/lib/Breadcrumb/Breadcrumb.vue.js +1 -1
  279. package/lib/Breadcrumb/BreadcrumbItem.vue.js +1 -1
  280. package/lib/Breadcrumb/BreadcrumbMore.vue.js +1 -1
  281. package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  282. package/lib/Button/hooks/useContext.js +1 -1
  283. package/lib/Calendar/Calendar.vue.js +1 -1
  284. package/lib/Calendar/CalendarMonth.vue.d.ts +4 -6
  285. package/lib/Calendar/CalendarMonth.vue.js +1 -1
  286. package/lib/Calendar/CalendarYear.vue.d.ts +3 -4
  287. package/lib/Calendar/CalendarYear.vue.js +1 -1
  288. package/lib/Card/Card.vue.js +1 -1
  289. package/lib/Card/CardMeta.vue.js +1 -1
  290. package/lib/Carousel/Carousel.vue.js +1 -1
  291. package/lib/Carousel/CarouselArrow.vue.js +1 -1
  292. package/lib/Carousel/CarouselIndicator.vue.js +1 -1
  293. package/lib/Carousel/hooks/useContext.js +1 -1
  294. package/lib/Cascader/Cascader.vue.js +1 -1
  295. package/lib/Cascader/CascaderIcon.vue.js +1 -1
  296. package/lib/Cascader/CascaderOption.vue.js +1 -1
  297. package/lib/Cascader/hooks/useContext.js +1 -1
  298. package/lib/Checkbox/Checkbox.vue.js +1 -1
  299. package/lib/Checkbox/hooks/useContext.js +1 -1
  300. package/lib/Collapse/CollapseItem.vue.js +1 -1
  301. package/lib/Collapse/hooks/useContext.js +1 -1
  302. package/lib/ColorPicker/ColorControl.vue.js +1 -1
  303. package/lib/ColorPicker/ColorInput.vue.js +1 -1
  304. package/lib/ColorPicker/ColorList.vue.js +1 -1
  305. package/lib/ColorPicker/ColorPalette.vue.js +1 -1
  306. package/lib/ColorPicker/ColorPanel.vue.js +1 -1
  307. package/lib/ColorPicker/ColorPicker.vue.d.ts +1 -1
  308. package/lib/ColorPicker/hooks/useContext.js +1 -1
  309. package/lib/ColorPicker/index.d.ts +3 -3
  310. package/lib/Comment/hooks/useContext.js +1 -1
  311. package/lib/Comment/index.vue.js +1 -1
  312. package/lib/ConfigProvider/index.vue.js +1 -1
  313. package/lib/DatePicker/YcDatePicker.vue.d.ts +69 -1
  314. package/lib/DatePicker/YcDatePicker.vue.js +1 -1
  315. package/lib/DatePicker/{YcDatePicker.vue2.js → YcDatePicker.vue3.js} +1 -1
  316. package/lib/DatePicker/YcMonthPicker.vue.d.ts +4 -2
  317. package/lib/DatePicker/YcMonthPicker.vue.js +1 -1
  318. package/lib/DatePicker/YcWeekPicker.vue.d.ts +4 -2
  319. package/lib/DatePicker/YcWeekPicker.vue.js +1 -1
  320. package/lib/DatePicker/YcWeekPicker.vue3.js +1 -0
  321. package/lib/DatePicker/YcYearPicker.vue.d.ts +4 -2
  322. package/lib/DatePicker/YcYearPicker.vue.js +1 -1
  323. package/lib/DatePicker/component/PickerCell.vue.d.ts +2 -2
  324. package/lib/DatePicker/component/PickerCell.vue.js +1 -1
  325. package/lib/DatePicker/component/PickerCell.vue3.js +1 -0
  326. package/lib/DatePicker/component/PickerHeader.vue.d.ts +40 -0
  327. package/lib/DatePicker/component/PickerHeader.vue.js +1 -0
  328. package/lib/DatePicker/component/PickerHeader.vue3.js +1 -0
  329. package/lib/DatePicker/component/PickerInput.vue.js +1 -1
  330. package/lib/DatePicker/component/PickerInput.vue3.js +1 -0
  331. package/lib/DatePicker/component/PickerPanel.vue.d.ts +6 -1
  332. package/lib/DatePicker/component/PickerPanel.vue.js +1 -1
  333. package/lib/DatePicker/component/PickerWeekHeader.vue.d.ts +8 -0
  334. package/lib/DatePicker/component/PickerWeekHeader.vue.js +1 -0
  335. package/lib/DatePicker/component/PickerWeekHeader.vue3.js +1 -0
  336. package/lib/DatePicker/hooks/userPicker.d.ts +7 -15
  337. package/lib/DatePicker/hooks/userPicker.js +1 -1
  338. package/lib/DatePicker/index.css +2 -2
  339. package/lib/DatePicker/index.d.ts +156 -3
  340. package/lib/DatePicker/index.js +1 -1
  341. package/lib/Descriptions/ReuseItem.vue.js +1 -1
  342. package/lib/Descriptions/ReuseTd.vue.js +1 -1
  343. package/lib/Descriptions/hooks/useContext.js +1 -1
  344. package/lib/Divider/index.vue.js +1 -1
  345. package/lib/Drawer/Drawer.vue.js +1 -1
  346. package/lib/Drawer/DrawerService.vue.js +1 -1
  347. package/lib/Dropdown/Dropdown.vue.js +1 -1
  348. package/lib/Dropdown/DropdownButton.vue.js +1 -1
  349. package/lib/Dropdown/Dsubmenu.vue.js +1 -1
  350. package/lib/Dropdown/hooks/useContext.js +1 -1
  351. package/lib/Empty/index.vue.js +1 -1
  352. package/lib/Grid/Grid.vue.js +1 -1
  353. package/lib/Grid/GridCol.vue.js +1 -1
  354. package/lib/Grid/GridItem.vue.js +1 -1
  355. package/lib/Grid/GridRow.vue.js +1 -1
  356. package/lib/Grid/hooks/useContext.js +1 -1
  357. package/lib/Image/Image.vue.js +1 -1
  358. package/lib/Image/ImagePreview.vue.js +1 -1
  359. package/lib/Image/ImagePreviewArrow.vue.js +1 -1
  360. package/lib/Image/ImagePreviewGroup.vue.js +1 -1
  361. package/lib/Image/ImagePreviewToolbar.vue.js +1 -1
  362. package/lib/Image/hooks/useContext.js +1 -1
  363. package/lib/Input/Input.vue.js +1 -1
  364. package/lib/Input/InputPassword.vue.js +1 -1
  365. package/lib/Input/InputSearch.vue.js +1 -1
  366. package/lib/Input/hooks/useLimitedInput.js +1 -1
  367. package/lib/InputNumber/InputNumber.vue.d.ts +1 -1
  368. package/lib/InputNumber/InputNumber.vue.js +1 -1
  369. package/lib/InputNumber/InputOperaBtn.vue.js +1 -1
  370. package/lib/InputNumber/index.d.ts +3 -3
  371. package/lib/InputTag/index.vue.js +1 -1
  372. package/lib/Layout/Layout.vue.js +1 -1
  373. package/lib/Layout/LayoutSider.vue.d.ts +1 -1
  374. package/lib/Layout/LayoutSider.vue.js +1 -1
  375. package/lib/Layout/hooks/useSiderContext.js +1 -1
  376. package/lib/Layout/index.d.ts +3 -3
  377. package/lib/Link/index.vue.js +1 -1
  378. package/lib/List/List.vue.js +1 -1
  379. package/lib/List/ListVirtual.vue.js +1 -1
  380. package/lib/List/hooks/useScrollReach.js +1 -1
  381. package/lib/Mention/index.vue.js +1 -1
  382. package/lib/Menu/Menu.vue.js +1 -1
  383. package/lib/Menu/MenuEllipsis.vue.js +1 -1
  384. package/lib/Menu/MenuItem.vue.js +1 -1
  385. package/lib/Menu/MenuItemGroup.vue.js +1 -1
  386. package/lib/Menu/SubMenu.vue.js +1 -1
  387. package/lib/Menu/hooks/useCalcMaxMenuItems.js +1 -1
  388. package/lib/Menu/hooks/useContext.js +1 -1
  389. package/lib/Message/Message.vue.js +1 -1
  390. package/lib/Message/index.js +1 -1
  391. package/lib/Modal/Modal.vue.js +1 -1
  392. package/lib/Modal/ModalService.vue.js +1 -1
  393. package/lib/Modal/hooks/useModalClose.js +1 -1
  394. package/lib/Modal/hooks/useModalDraggable.js +1 -1
  395. package/lib/Modal/hooks/useOnBeforeClose.js +1 -1
  396. package/lib/Notification/Notification.vue.js +1 -1
  397. package/lib/Notification/index.js +1 -1
  398. package/lib/OverflowList/index.vue.js +1 -1
  399. package/lib/PageHeader/index.vue.js +1 -1
  400. package/lib/Pagination/Pagination.vue.js +1 -1
  401. package/lib/Pagination/PaginationItem.vue.js +1 -1
  402. package/lib/Pagination/hooks/useContext.js +1 -1
  403. package/lib/Popconfirm/index.vue.js +1 -1
  404. package/lib/Popover/index.vue.js +1 -1
  405. package/lib/Progress/Progress.vue.js +1 -1
  406. package/lib/Progress/ProgressCircle.vue.js +1 -1
  407. package/lib/Progress/ProgressLine.vue.js +1 -1
  408. package/lib/Progress/ProgressSteps.vue.js +1 -1
  409. package/lib/Radio/Radio.vue.js +1 -1
  410. package/lib/Radio/hooks/useContext.js +1 -1
  411. package/lib/Rate/index.vue.js +1 -1
  412. package/lib/ResizeBox/index.vue.js +1 -1
  413. package/lib/Scrollbar/Scrollbar.vue.js +1 -1
  414. package/lib/Scrollbar/ScrollbarTrack.vue.js +1 -1
  415. package/lib/Select/Option.vue.js +1 -1
  416. package/lib/Select/Select.vue.js +1 -1
  417. package/lib/Select/SelectIcon.vue.js +1 -1
  418. package/lib/Select/SelectRealList.vue.js +1 -1
  419. package/lib/Select/SelectView.vue.js +1 -1
  420. package/lib/Select/SelectVirtualList.vue.js +1 -1
  421. package/lib/Select/hooks/useContext.js +1 -1
  422. package/lib/Select/hooks/useSelectHotkeys.js +1 -1
  423. package/lib/Select/hooks/useSelectOptions.js +1 -1
  424. package/lib/Skeleton/SkeletonLine.vue.js +1 -1
  425. package/lib/Skeleton/SkeletonShape.vue.js +1 -1
  426. package/lib/Slider/Slider.vue.d.ts +1 -1
  427. package/lib/Slider/SliderBtn.vue.js +1 -1
  428. package/lib/Slider/hooks/useContext.js +1 -1
  429. package/lib/Slider/hooks/useSliderDraggable.js +1 -1
  430. package/lib/Slider/index.d.ts +3 -3
  431. package/lib/Space/index.vue.js +1 -1
  432. package/lib/Spin/index.vue.js +1 -1
  433. package/lib/Split/index.vue.js +1 -1
  434. package/lib/Statistic/Countdown.vue.d.ts +1 -1
  435. package/lib/Statistic/Countdown.vue.js +1 -1
  436. package/lib/Statistic/Statistic.vue.d.ts +1 -1
  437. package/lib/Statistic/Statistic.vue.js +1 -1
  438. package/lib/Statistic/index.d.ts +6 -6
  439. package/lib/Steps/Step.vue.js +1 -1
  440. package/lib/Steps/hooks/useContext.js +1 -1
  441. package/lib/Switch/index.vue.js +1 -1
  442. package/lib/Tabs/TabButton.vue.js +1 -1
  443. package/lib/Tabs/TabPane.vue.js +1 -1
  444. package/lib/Tabs/Tabs.vue.js +1 -1
  445. package/lib/Tabs/TabsNavInk.vue.js +1 -1
  446. package/lib/Tabs/TabsTab.vue.js +1 -1
  447. package/lib/Tabs/hooks/useContext.js +1 -1
  448. package/lib/Tabs/hooks/useTabsScroll.js +1 -1
  449. package/lib/Tag/index.vue.js +1 -1
  450. package/lib/Textarea/hooks/useTextareaHeight.js +1 -1
  451. package/lib/Textarea/index.vue.js +1 -1
  452. package/lib/TimePicker/TimePicker.vue.js +1 -1
  453. package/lib/TimePicker/TimePickerPanel.vue.js +1 -1
  454. package/lib/TimePicker/hooks/useContext.js +1 -1
  455. package/lib/Timeline/TimelineItemPending.vue.js +1 -1
  456. package/lib/Timeline/hooks/useContext.js +1 -1
  457. package/lib/Tooltip/index.vue.js +1 -1
  458. package/lib/Transfer/Transfer.vue.js +1 -1
  459. package/lib/Transfer/TransferPanel.vue.js +1 -1
  460. package/lib/Transfer/hooks/useContext.js +1 -1
  461. package/lib/Trigger/hooks/useContext.js +1 -1
  462. package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
  463. package/lib/Trigger/hooks/useTriggerVisible.js +1 -1
  464. package/lib/Trigger/index.vue.js +1 -1
  465. package/lib/Typography/TypographyBase.vue.js +1 -1
  466. package/lib/Upload/UploadButton.vue.js +1 -1
  467. package/lib/Upload/UploadDrag.vue.js +1 -1
  468. package/lib/Upload/UploadFileList.vue.js +1 -1
  469. package/lib/Upload/UploadPictureCard.vue.js +1 -1
  470. package/lib/Upload/hooks/useContext.js +1 -1
  471. package/lib/Upload/hooks/useUpload.js +1 -1
  472. package/lib/VerificationCode/index.vue.js +1 -1
  473. package/lib/Watermark/index.vue.js +1 -1
  474. package/lib/_shared/components/ExpandTransition/index.vue2.js +1 -1
  475. package/lib/_shared/components/Icon/index.vue3.js +1 -1
  476. package/lib/_shared/components/IconButton/index.vue2.js +1 -0
  477. package/lib/_shared/components/IconButton/index.vue3.js +1 -1
  478. package/lib/_shared/constants/index.js +1 -1
  479. package/lib/_shared/icons/IconArrowDown.vue.js +1 -1
  480. package/lib/_shared/icons/IconArrowRight.vue.js +1 -1
  481. package/lib/_shared/icons/IconCalendar.vue2.js +1 -1
  482. package/lib/_shared/icons/IconCheck.vue.js +1 -1
  483. package/lib/_shared/icons/IconCheckboxChecked.vue.js +1 -1
  484. package/lib/_shared/icons/IconClose.vue.js +1 -1
  485. package/lib/_shared/icons/IconCopy.vue2.js +1 -1
  486. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  487. package/lib/_shared/icons/IconDoubleLeft.vue.js +1 -1
  488. package/lib/_shared/icons/IconDoubleLeft.vue2.js +1 -1
  489. package/lib/_shared/icons/IconDoubleRight.vue.js +1 -1
  490. package/lib/_shared/icons/IconDoubleRight.vue2.js +1 -1
  491. package/lib/_shared/icons/IconDragDot.vue.js +1 -1
  492. package/lib/_shared/icons/IconEdit.vue2.js +1 -1
  493. package/lib/_shared/icons/IconEmpty.vue.js +1 -1
  494. package/lib/_shared/icons/IconError.vue.js +1 -1
  495. package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
  496. package/lib/_shared/icons/IconEyeClose.vue.js +1 -1
  497. package/lib/_shared/icons/IconEyeOpen.vue.js +1 -1
  498. package/lib/_shared/icons/IconFaceSmile.vue.js +1 -1
  499. package/lib/_shared/icons/IconFile.vue2.js +1 -1
  500. package/lib/_shared/icons/IconFullScreen.vue2.js +1 -1
  501. package/lib/_shared/icons/IconImageClose.vue.js +1 -1
  502. package/lib/_shared/icons/IconInfo.vue.js +1 -1
  503. package/lib/_shared/icons/IconInfoLine.vue.js +1 -1
  504. package/lib/_shared/icons/IconLink.vue.js +1 -1
  505. package/lib/_shared/icons/IconLoading.vue.js +1 -1
  506. package/lib/_shared/icons/IconMenuFold.vue.js +1 -1
  507. package/lib/_shared/icons/IconMenuUnfold.vue.js +1 -1
  508. package/lib/_shared/icons/IconMinus.vue2.js +1 -1
  509. package/lib/_shared/icons/IconMore.vue.js +1 -1
  510. package/lib/_shared/icons/IconOriginSize.vue2.js +1 -1
  511. package/lib/_shared/icons/IconPlus.vue.js +1 -1
  512. package/lib/_shared/icons/IconRight.vue.js +1 -1
  513. package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
  514. package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
  515. package/lib/_shared/icons/IconSearch.vue.js +1 -1
  516. package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
  517. package/lib/_shared/icons/IconStar.vue.js +1 -1
  518. package/lib/_shared/icons/IconSuccess.vue.js +1 -1
  519. package/lib/_shared/icons/IconTime.vue.js +1 -1
  520. package/lib/_shared/icons/IconToTop.vue.js +1 -1
  521. package/lib/_shared/icons/IconUpload.vue2.js +1 -1
  522. package/lib/_shared/icons/IconWarning.vue.js +1 -1
  523. package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
  524. package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
  525. package/lib/_shared/utils/color.js +1 -1
  526. package/lib/_shared/utils/dependencies.d.ts +0 -4
  527. package/lib/_shared/utils/dom.js +1 -1
  528. package/lib/_shared/utils/locale.d.ts +0 -5
  529. package/lib/_shared/utils/time.d.ts +20 -8
  530. package/lib/_shared/utils/time.js +1 -1
  531. package/lib/index.d.ts +30 -18
  532. package/lib/style.css +1 -1
  533. package/package.json +1 -1
  534. package/es/DatePicker/YcWeekPicker.vue2.js +0 -319
  535. package/es/DatePicker/component/PickerCell.vue2.js +0 -41
  536. package/es/DatePicker/component/PickerInput.vue2.js +0 -125
  537. package/es/_virtual/_plugin-vue_export-helper.js +0 -10
  538. package/lib/DatePicker/YcWeekPicker.vue2.js +0 -1
  539. package/lib/DatePicker/component/PickerCell.vue2.js +0 -1
  540. package/lib/DatePicker/component/PickerInput.vue2.js +0 -1
  541. package/lib/_shared/components/IconButton/index.vue.js +0 -1
  542. package/lib/_virtual/_plugin-vue_export-helper.js +0 -1
@@ -1,7 +1,265 @@
1
- import _sfc_main from "./YcWeekPicker.vue2.js";
1
+ import { defineComponent, useSlots, ref, watch, createElementBlock, openBlock, Fragment, createVNode, createBlock, unref, withCtx, createSlots, createElementVNode, renderSlot, renderList, normalizeClass, normalizeStyle } from "vue";
2
+ import usePicker from "./hooks/userPicker.js";
3
+ import "../node_modules/b-tween/dist/b-tween.es.js";
4
+ import dayjs from "../node_modules/dayjs/dayjs.min.js";
5
+ import "../node_modules/tinycolor2/esm/tinycolor.js";
6
+ import "../_shared/utils/dom.js";
7
+ import "../_shared/utils/locale.js";
8
+ import "../_shared/utils/time.js";
9
+ import _sfc_main$4 from "./component/PickerHeader.vue.js";
10
+ /* empty css */
11
+ import _sfc_main$5 from "./component/PickerWeekHeader.vue.js";
12
+ /* empty css */
13
+ import _sfc_main$6 from "./component/PickerCell.vue.js";
14
+ /* empty css */
15
+ import _sfc_main$3 from "./component/PickerPanel.vue.js";
16
+ /* empty css */
17
+ import _sfc_main$7 from "./component/PickerInput.vue.js";
18
+ /* empty css */
19
+ import _sfc_main$1 from "./YcYearPicker.vue.js";
2
20
  /* empty css */
3
- import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const _WeekPicker = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a96c5df4"]]);
21
+ import _sfc_main$2 from "./YcMonthPicker.vue.js";
22
+ /* empty css */
23
+ const _hoisted_1 = { class: "yc-panel-week" };
24
+ const _hoisted_2 = { class: "yc-picker-body" };
25
+ const _hoisted_3 = ["onClick"];
26
+ const _sfc_main = /* @__PURE__ */ defineComponent({
27
+ ...{
28
+ name: "WeekPicker",
29
+ inheritAttrs: false
30
+ },
31
+ __name: "YcWeekPicker",
32
+ props: {
33
+ modelValue: { default: void 0 },
34
+ defaultValue: { default: "" },
35
+ dayStartOfWeek: { default: 0 },
36
+ locale: { default: () => ({}) },
37
+ hideTrigger: { type: Boolean, default: false },
38
+ allowClear: { type: Boolean, default: false },
39
+ readonly: { type: Boolean, default: false },
40
+ error: { type: Boolean, default: false },
41
+ size: { default: void 0 },
42
+ shortcuts: { default: () => [] },
43
+ shortcutsPosition: { default: "bottom" },
44
+ position: { default: "bl" },
45
+ popupVisible: { type: Boolean, default: void 0 },
46
+ defaultPopupVisible: { type: Boolean, default: false },
47
+ triggerProps: { default: () => ({}) },
48
+ unmountOnClose: { type: Boolean, default: false },
49
+ placeholder: { default: "" },
50
+ disabled: { type: Boolean, default: false },
51
+ disabledDate: { type: Function, default: void 0 },
52
+ disabledTime: {},
53
+ pickerValue: { default: void 0 },
54
+ defaultPickerValue: { default: "" },
55
+ popupContainer: { default: void 0 },
56
+ valueFormat: { default: "YYYY-MM-DD" },
57
+ format: { default: "gggg-wo" },
58
+ previewShortcut: { type: Boolean, default: true },
59
+ showConfirmBtn: { type: Boolean, default: false },
60
+ disabledInput: { type: Boolean, default: false },
61
+ abbreviation: { type: Boolean, default: true }
62
+ },
63
+ emits: ["update:modelValue", "update:popupVisible", "update:pickerValue", "change", "select", "ok", "picker-value-change", "popup-visible-change", "clear", "select-shortcut"],
64
+ setup(__props, { emit: __emit }) {
65
+ const $slots = useSlots();
66
+ const props = __props;
67
+ const emits = __emit;
68
+ const {
69
+ computedValue,
70
+ locale,
71
+ abbreviation,
72
+ dayStartOfWeek,
73
+ curMonth,
74
+ curYear,
75
+ showMonthPicker,
76
+ showYearPicker,
77
+ DefinePanel,
78
+ ReusePanel,
79
+ getDateFromFormat,
80
+ isCellInView,
81
+ isToday,
82
+ isSelected,
83
+ getWeeksOfMonth,
84
+ handleConfirm,
85
+ handleSelect,
86
+ handleShortcut
87
+ } = usePicker({
88
+ props,
89
+ emits
90
+ });
91
+ const weekData = ref([]);
92
+ const handleDateChange = (dateType, type) => {
93
+ if (dateType == "year") {
94
+ curYear.value = type == "pre" ? curYear.value - 1 : curYear.value + 1;
95
+ weekData.value = getWeeksOfMonth(curYear.value, curMonth.value);
96
+ } else {
97
+ const base = dayjs().set("year", curYear.value).set("month", curMonth.value);
98
+ const date = type == "pre" ? base.subtract(1, "month") : base.add(1, "month");
99
+ curYear.value = date.year();
100
+ curMonth.value = date.month();
101
+ weekData.value = getWeeksOfMonth(curYear.value, curMonth.value);
102
+ }
103
+ };
104
+ watch(
105
+ () => computedValue.value,
106
+ (val) => {
107
+ const date = val ? getDateFromFormat(val) : /* @__PURE__ */ new Date();
108
+ curYear.value = date.getFullYear();
109
+ curMonth.value = date.getMonth();
110
+ weekData.value = getWeeksOfMonth(curYear.value, curMonth.value);
111
+ },
112
+ {
113
+ immediate: true
114
+ }
115
+ );
116
+ return (_ctx, _cache) => {
117
+ return openBlock(), createElementBlock(Fragment, null, [
118
+ createVNode(unref(DefinePanel), null, {
119
+ default: withCtx(() => [
120
+ unref(showYearPicker) ? (openBlock(), createBlock(_sfc_main$1, {
121
+ key: 0,
122
+ "model-value": `${unref(curYear)}`,
123
+ "hide-trigger": "",
124
+ "value-format": "YYYY",
125
+ onChange: _cache[0] || (_cache[0] = (_, date) => {
126
+ curYear.value = date.getFullYear();
127
+ weekData.value = unref(getWeeksOfMonth)(unref(curYear), unref(curMonth));
128
+ showYearPicker.value = false;
129
+ })
130
+ }, null, 8, ["model-value"])) : unref(showMonthPicker) ? (openBlock(), createBlock(_sfc_main$2, {
131
+ key: 1,
132
+ "model-value": `${unref(curYear)}-${unref(curMonth) + 1 < 10 ? `0${unref(curMonth) + 1}` : unref(curMonth) + 1}`,
133
+ "hide-trigger": "",
134
+ "value-format": "YYYY-MM",
135
+ onChange: _cache[1] || (_cache[1] = (_, date) => {
136
+ curMonth.value = date.getMonth();
137
+ weekData.value = unref(getWeeksOfMonth)(unref(curYear), unref(curMonth));
138
+ showMonthPicker.value = false;
139
+ })
140
+ }, null, 8, ["model-value"])) : (openBlock(), createBlock(_sfc_main$3, {
141
+ key: 2,
142
+ locale: unref(locale),
143
+ "preview-shortcut": _ctx.previewShortcut,
144
+ shortcuts: _ctx.shortcuts,
145
+ "shortcuts-position": _ctx.shortcutsPosition,
146
+ "confirm-btn-disabled": !unref(computedValue),
147
+ "show-confirm-btn": _ctx.showConfirmBtn,
148
+ onConfirm: unref(handleConfirm),
149
+ onShortcutSelect: unref(handleShortcut)
150
+ }, createSlots({
151
+ default: withCtx(() => [
152
+ createElementVNode("div", _hoisted_1, [
153
+ createVNode(_sfc_main$4, {
154
+ year: unref(curYear),
155
+ month: unref(curMonth),
156
+ type: "week",
157
+ onPrevClick: _cache[2] || (_cache[2] = ($event) => handleDateChange("month", "pre")),
158
+ onNextClick: _cache[3] || (_cache[3] = ($event) => handleDateChange("month", "next")),
159
+ onPrevDoubleClick: _cache[4] || (_cache[4] = ($event) => handleDateChange("year", "pre")),
160
+ onNextDoubleClick: _cache[5] || (_cache[5] = ($event) => handleDateChange("year", "next")),
161
+ onYearClick: _cache[6] || (_cache[6] = ($event) => showYearPicker.value = true),
162
+ onMonthClick: _cache[7] || (_cache[7] = ($event) => showMonthPicker.value = true)
163
+ }, createSlots({ _: 2 }, [
164
+ $slots["icon-prev"] ? {
165
+ name: "icon-prev-double",
166
+ fn: withCtx(() => [
167
+ renderSlot(_ctx.$slots, "icon-next")
168
+ ]),
169
+ key: "0"
170
+ } : void 0,
171
+ $slots["icon-next"] ? {
172
+ name: "icon-next-double",
173
+ fn: withCtx(() => [
174
+ renderSlot(_ctx.$slots, "icon-next")
175
+ ]),
176
+ key: "1"
177
+ } : void 0,
178
+ $slots["icon-prev-double"] ? {
179
+ name: "icon-prev-double",
180
+ fn: withCtx(() => [
181
+ renderSlot(_ctx.$slots, "icon-next-double")
182
+ ]),
183
+ key: "2"
184
+ } : void 0,
185
+ $slots["icon-next-double"] ? {
186
+ name: "icon-next-double",
187
+ fn: withCtx(() => [
188
+ renderSlot(_ctx.$slots, "icon-next-double")
189
+ ]),
190
+ key: "3"
191
+ } : void 0
192
+ ]), 1032, ["year", "month"]),
193
+ createVNode(_sfc_main$5, {
194
+ locale: unref(locale),
195
+ abbreviation: unref(abbreviation),
196
+ "day-start-of-week": unref(dayStartOfWeek)
197
+ }, null, 8, ["locale", "abbreviation", "day-start-of-week"]),
198
+ createElementVNode("div", _hoisted_2, [
199
+ (openBlock(true), createElementBlock(Fragment, null, renderList(weekData.value, ({ label, time, value }, i) => {
200
+ var _a;
201
+ return openBlock(), createElementBlock("div", {
202
+ key: i,
203
+ class: normalizeClass([
204
+ "yc-picker-row",
205
+ "yc-picker-week-row",
206
+ {
207
+ "yc-picker-week-row-disabled": (_a = _ctx.disabledDate) == null ? void 0 : _a.call(_ctx, value),
208
+ "yc-picker-week-row-selected": unref(isSelected)(value, "week")
209
+ }
210
+ ]),
211
+ onClick: ($event) => unref(handleSelect)(value)
212
+ }, [
213
+ createVNode(_sfc_main$6, {
214
+ "cell-in-view": false,
215
+ value: label
216
+ }, null, 8, ["value"]),
217
+ (openBlock(true), createElementBlock(Fragment, null, renderList(time, ({ value: date, label: label2 }, k) => {
218
+ return openBlock(), createBlock(_sfc_main$6, {
219
+ key: k,
220
+ value: label2,
221
+ "cell-in-view": unref(isCellInView)(date, "week"),
222
+ "is-today": unref(isToday)(date, "week"),
223
+ hoverable: false,
224
+ class: normalizeClass({
225
+ "yc-week-picker-cell-first": !i,
226
+ "yc-week-picker-cell-last": i == time.length - 1
227
+ })
228
+ }, null, 8, ["value", "cell-in-view", "is-today", "class"]);
229
+ }), 128))
230
+ ], 10, _hoisted_3);
231
+ }), 128))
232
+ ])
233
+ ])
234
+ ]),
235
+ _: 2
236
+ }, [
237
+ $slots.extra ? {
238
+ name: "extra",
239
+ fn: withCtx(() => [
240
+ renderSlot(_ctx.$slots, "extra")
241
+ ]),
242
+ key: "0"
243
+ } : void 0
244
+ ]), 1032, ["locale", "preview-shortcut", "shortcuts", "shortcuts-position", "confirm-btn-disabled", "show-confirm-btn", "onConfirm", "onShortcutSelect"]))
245
+ ]),
246
+ _: 3
247
+ }),
248
+ !_ctx.hideTrigger ? (openBlock(), createBlock(_sfc_main$7, {
249
+ key: 0,
250
+ class: normalizeClass(_ctx.$attrs.class),
251
+ style: normalizeStyle(_ctx.$attrs.style),
252
+ type: "week"
253
+ }, {
254
+ content: withCtx(() => [
255
+ createVNode(unref(ReusePanel))
256
+ ]),
257
+ _: 1
258
+ }, 8, ["class", "style"])) : (openBlock(), createBlock(unref(ReusePanel), { key: 1 }))
259
+ ], 64);
260
+ };
261
+ }
262
+ });
5
263
  export {
6
- _WeekPicker as default
264
+ _sfc_main as default
7
265
  };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./YcWeekPicker.vue.js";
2
+ /* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -44,15 +44,17 @@ declare const __VLS_component: import('vue').DefineComponent<YearPickerProps, {}
44
44
  allowClear: boolean;
45
45
  readonly: boolean;
46
46
  triggerProps: import('..').TriggerProps;
47
- hideTrigger: boolean;
48
47
  format: string;
48
+ pickerValue: import('./type').DatePickerValue;
49
+ defaultPickerValue: import('./type').DatePickerValue;
49
50
  valueFormat: import('./type').ValueFormat;
50
51
  showConfirmBtn: boolean;
52
+ disabledDate: import('./type').DisabledDate;
51
53
  shortcutsPosition: import('./type').ShortcutsPosition;
52
54
  shortcuts: import('./type').ShortcutType[];
53
55
  previewShortcut: boolean;
54
56
  disabledInput: boolean;
55
- disabledDate: import('./type').DisabledDate;
57
+ hideTrigger: boolean;
56
58
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
57
59
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
58
60
  export default _default;
@@ -1,28 +1,15 @@
1
- import { defineComponent, useSlots, ref, watch, createElementBlock, openBlock, Fragment, createVNode, createBlock, unref, withCtx, createSlots, createElementVNode, renderSlot, toDisplayString, renderList, normalizeStyle, normalizeClass } from "vue";
1
+ import { defineComponent, useSlots, ref, watch, createElementBlock, openBlock, Fragment, createVNode, createBlock, unref, withCtx, createSlots, createElementVNode, createTextVNode, toDisplayString, renderSlot, renderList, normalizeStyle, normalizeClass } from "vue";
2
2
  import usePicker from "./hooks/userPicker.js";
3
- import "../node_modules/b-tween/dist/b-tween.es.js";
4
- import dayjs from "../node_modules/dayjs/dayjs.min.js";
5
- import "../node_modules/tinycolor2/esm/tinycolor.js";
6
- import "../node_modules/dayjs/plugin/duration.js";
7
- import "../node_modules/dayjs/plugin/toObject.js";
8
- import "../node_modules/dayjs/plugin/isSameOrAfter.js";
9
- import "../node_modules/dayjs/plugin/isSameOrBefore.js";
10
- import "../_shared/utils/dom.js";
11
- import "../_shared/utils/locale.js";
12
- import "../_shared/utils/time.js";
13
- /* empty css */
14
- /* empty css */
15
- /* empty css */
16
- import _sfc_main$2 from "../_shared/icons/IconDoubleLeft.vue.js";
17
- import _sfc_main$3 from "../_shared/icons/IconDoubleRight.vue.js";
18
- import PickerCell from "./component/PickerCell.vue.js";
3
+ import _sfc_main$2 from "./component/PickerHeader.vue.js";
4
+ /* empty css */
5
+ import _sfc_main$3 from "./component/PickerCell.vue.js";
6
+ /* empty css */
19
7
  import _sfc_main$1 from "./component/PickerPanel.vue.js";
20
8
  /* empty css */
21
- import PickerInput from "./component/PickerInput.vue.js";
9
+ import _sfc_main$4 from "./component/PickerInput.vue.js";
10
+ /* empty css */
22
11
  const _hoisted_1 = { class: "yc-panel-year" };
23
- const _hoisted_2 = { class: "yc-picker-header" };
24
- const _hoisted_3 = { class: "yc-picker-header-title" };
25
- const _hoisted_4 = { class: "yc-picker-body" };
12
+ const _hoisted_2 = { class: "yc-picker-body" };
26
13
  const _sfc_main = /* @__PURE__ */ defineComponent({
27
14
  ...{
28
15
  name: "YearPicker",
@@ -49,8 +36,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
36
  disabled: { type: Boolean, default: false },
50
37
  disabledDate: { type: Function, default: void 0 },
51
38
  disabledTime: {},
52
- pickerValue: {},
53
- defaultPickerValue: {},
39
+ pickerValue: { default: void 0 },
40
+ defaultPickerValue: { default: "" },
54
41
  popupContainer: { default: void 0 },
55
42
  valueFormat: { default: "YYYY" },
56
43
  format: { default: "YYYY" },
@@ -69,6 +56,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
69
56
  DefinePanel,
70
57
  ReusePanel,
71
58
  curYear,
59
+ isToday,
60
+ isCellInView,
61
+ isSelected,
72
62
  getDateFromFormat,
73
63
  getRangeOfYear,
74
64
  handleConfirm,
@@ -79,11 +69,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
79
69
  emits
80
70
  });
81
71
  const yearData = ref([]);
82
- const isSelected = (val) => {
83
- const date = getDateFromFormat(computedValue.value);
84
- if (!date) return false;
85
- return date.getFullYear() == val.getFullYear();
86
- };
87
72
  const handleYearChange = (type) => {
88
73
  curYear.value = type == "pre" ? curYear.value - 10 : curYear.value + 10;
89
74
  const { range } = getRangeOfYear(curYear.value);
@@ -117,26 +102,32 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
117
102
  }, createSlots({
118
103
  default: withCtx(() => [
119
104
  createElementVNode("div", _hoisted_1, [
120
- createElementVNode("div", _hoisted_2, [
121
- createElementVNode("div", {
122
- class: "yc-picker-header-icon",
123
- onClick: _cache[0] || (_cache[0] = ($event) => handleYearChange("pre"))
124
- }, [
125
- renderSlot(_ctx.$slots, "icon-prev-double", {}, () => [
126
- createVNode(unref(_sfc_main$2))
127
- ])
105
+ createVNode(_sfc_main$2, {
106
+ type: "year",
107
+ onPrevDoubleClick: _cache[0] || (_cache[0] = ($event) => handleYearChange("pre")),
108
+ onNextDoubleClick: _cache[1] || (_cache[1] = ($event) => handleYearChange("next"))
109
+ }, createSlots({
110
+ default: withCtx(() => [
111
+ createTextVNode(toDisplayString(unref(curYear)) + "-" + toDisplayString(unref(curYear) + 10) + " ", 1)
128
112
  ]),
129
- createElementVNode("div", _hoisted_3, toDisplayString(unref(curYear)) + "-" + toDisplayString(unref(curYear) + 10), 1),
130
- createElementVNode("div", {
131
- class: "yc-picker-header-icon",
132
- onClick: _cache[1] || (_cache[1] = ($event) => handleYearChange("next"))
133
- }, [
134
- renderSlot(_ctx.$slots, "icon-next-double", {}, () => [
135
- createVNode(unref(_sfc_main$3))
136
- ])
137
- ])
138
- ]),
139
- createElementVNode("div", _hoisted_4, [
113
+ _: 2
114
+ }, [
115
+ $slots["icon-prev-double"] ? {
116
+ name: "icon-prev-double",
117
+ fn: withCtx(() => [
118
+ renderSlot(_ctx.$slots, "icon-next-double")
119
+ ]),
120
+ key: "0"
121
+ } : void 0,
122
+ $slots["icon-next-double"] ? {
123
+ name: "icon-next-double",
124
+ fn: withCtx(() => [
125
+ renderSlot(_ctx.$slots, "icon-next-double")
126
+ ]),
127
+ key: "1"
128
+ } : void 0
129
+ ]), 1024),
130
+ createElementVNode("div", _hoisted_2, [
140
131
  (openBlock(true), createElementBlock(Fragment, null, renderList(yearData.value, (row, i) => {
141
132
  return openBlock(), createElementBlock("div", {
142
133
  key: i,
@@ -144,13 +135,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
144
135
  }, [
145
136
  (openBlock(true), createElementBlock(Fragment, null, renderList(row, ({ value: date, label }, k) => {
146
137
  var _a;
147
- return openBlock(), createBlock(PickerCell, {
148
- key: date.getFullYear(),
149
- "cell-in-view": !!(i || k),
150
- "is-today": date.getFullYear() == unref(dayjs)().year(),
151
- "is-selected": isSelected(date),
152
- disabled: (_a = _ctx.disabledDate) == null ? void 0 : _a.call(_ctx, date),
138
+ return openBlock(), createBlock(_sfc_main$3, {
139
+ key: k,
153
140
  value: label,
141
+ "cell-in-view": unref(isCellInView)(date, "year"),
142
+ "is-today": unref(isToday)(date, "year"),
143
+ "is-selected": unref(isSelected)(date, "year"),
144
+ disabled: (_a = _ctx.disabledDate) == null ? void 0 : _a.call(_ctx, date),
154
145
  onClick: ($event) => unref(handleSelect)(date)
155
146
  }, createSlots({ _: 2 }, [
156
147
  $slots.cell ? {
@@ -160,7 +151,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
160
151
  ]),
161
152
  key: "0"
162
153
  } : void 0
163
- ]), 1032, ["cell-in-view", "is-today", "is-selected", "disabled", "value", "onClick"]);
154
+ ]), 1032, ["value", "cell-in-view", "is-today", "is-selected", "disabled", "onClick"]);
164
155
  }), 128))
165
156
  ]);
166
157
  }), 128))
@@ -180,7 +171,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
180
171
  ]),
181
172
  _: 3
182
173
  }),
183
- !_ctx.hideTrigger ? (openBlock(), createBlock(PickerInput, {
174
+ !_ctx.hideTrigger ? (openBlock(), createBlock(_sfc_main$4, {
184
175
  key: 0,
185
176
  class: normalizeClass(_ctx.$attrs.class),
186
177
  style: normalizeStyle(_ctx.$attrs.style),
@@ -23,9 +23,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
23
23
  disabled: boolean;
24
24
  value: number | string;
25
25
  hoverable: boolean;
26
- isSelected: boolean;
27
- isToday: boolean;
28
26
  cellInView: boolean;
27
+ isToday: boolean;
28
+ isSelected: boolean;
29
29
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
30
30
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
31
31
  export default _default;
@@ -1,7 +1,41 @@
1
- import _sfc_main from "./PickerCell.vue2.js";
2
- /* empty css */
3
- import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
- const PickerCell = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-20192805"]]);
1
+ import { defineComponent, createElementBlock, openBlock, normalizeClass, renderSlot, createElementVNode, toDisplayString } from "vue";
2
+ const _hoisted_1 = { class: "yc-picker-date" };
3
+ const _hoisted_2 = { class: "yc-picker-date-value" };
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "PickerCell",
6
+ props: {
7
+ cellInView: { type: Boolean, default: false },
8
+ isToday: { type: Boolean, default: false },
9
+ isSelected: { type: Boolean, default: false },
10
+ disabled: { type: Boolean, default: false },
11
+ value: { default: "" },
12
+ hoverable: { type: Boolean, default: true }
13
+ },
14
+ emits: ["click"],
15
+ setup(__props) {
16
+ return (_ctx, _cache) => {
17
+ return openBlock(), createElementBlock("div", {
18
+ class: normalizeClass([
19
+ "yc-picker-cell",
20
+ {
21
+ "yc-picker-cell-in-view": _ctx.cellInView,
22
+ "yc-picker-cell-today": _ctx.isToday,
23
+ "yc-picker-cell-selected": _ctx.isSelected,
24
+ "yc-picker-cell-disabled": _ctx.disabled,
25
+ "yc-picker-cell-hoverable": _ctx.hoverable
26
+ }
27
+ ]),
28
+ onClick: _cache[0] || (_cache[0] = ($event) => !_ctx.disabled && _ctx.$emit("click", $event))
29
+ }, [
30
+ renderSlot(_ctx.$slots, "cell", {}, () => [
31
+ createElementVNode("div", _hoisted_1, [
32
+ createElementVNode("div", _hoisted_2, toDisplayString(_ctx.value), 1)
33
+ ])
34
+ ])
35
+ ], 2);
36
+ };
37
+ }
38
+ });
5
39
  export {
6
- PickerCell as default
40
+ _sfc_main as default
7
41
  };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./PickerCell.vue.js";
2
+ /* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -0,0 +1,40 @@
1
+ type __VLS_Props = {
2
+ type: 'year' | 'month' | 'week' | 'date';
3
+ year?: number;
4
+ month?: number;
5
+ };
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ 'icon-prev-double'?(_: {}): any;
10
+ 'icon-prev'?(_: {}): any;
11
+ default?(_: {}): any;
12
+ 'icon-next'?(_: {}): any;
13
+ 'icon-next-double'?(_: {}): any;
14
+ };
15
+ refs: {};
16
+ rootEl: HTMLDivElement;
17
+ };
18
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
20
+ "prev-double-click": () => any;
21
+ "prev-click": () => any;
22
+ "next-double-click": () => any;
23
+ "next-click": () => any;
24
+ "year-click": () => any;
25
+ "month-click": () => any;
26
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
27
+ "onPrev-double-click"?: (() => any) | undefined;
28
+ "onPrev-click"?: (() => any) | undefined;
29
+ "onNext-double-click"?: (() => any) | undefined;
30
+ "onNext-click"?: (() => any) | undefined;
31
+ "onYear-click"?: (() => any) | undefined;
32
+ "onMonth-click"?: (() => any) | undefined;
33
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
34
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
35
+ export default _default;
36
+ type __VLS_WithTemplateSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -0,0 +1,83 @@
1
+ import { defineComponent, createElementBlock, openBlock, createElementVNode, createCommentVNode, renderSlot, createVNode, unref, toDisplayString, Fragment } from "vue";
2
+ import "../../node_modules/b-tween/dist/b-tween.es.js";
3
+ import "../../node_modules/dayjs/dayjs.min.js";
4
+ import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
+ import "../../_shared/utils/dom.js";
6
+ import { isUndefined } from "../../_shared/utils/is.js";
7
+ import "../../_shared/utils/locale.js";
8
+ import "../../_shared/utils/time.js";
9
+ /* empty css */
10
+ /* empty css */
11
+ /* empty css */
12
+ import _sfc_main$2 from "../../_shared/icons/IconArrowRight.vue.js";
13
+ import _sfc_main$1 from "../../_shared/icons/IconDoubleLeft.vue2.js";
14
+ import _sfc_main$3 from "../../_shared/icons/IconDoubleRight.vue2.js";
15
+ const _hoisted_1 = { class: "yc-picker-header" };
16
+ const _hoisted_2 = { class: "yc-picker-header-title" };
17
+ const _sfc_main = /* @__PURE__ */ defineComponent({
18
+ __name: "PickerHeader",
19
+ props: {
20
+ type: {},
21
+ year: {},
22
+ month: {}
23
+ },
24
+ emits: ["prev-double-click", "prev-click", "next-double-click", "next-click", "year-click", "month-click"],
25
+ setup(__props) {
26
+ return (_ctx, _cache) => {
27
+ return openBlock(), createElementBlock("div", _hoisted_1, [
28
+ createElementVNode("div", {
29
+ class: "yc-picker-header-icon",
30
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("prev-double-click"))
31
+ }, [
32
+ renderSlot(_ctx.$slots, "icon-prev-double", {}, () => [
33
+ createVNode(unref(_sfc_main$1))
34
+ ])
35
+ ]),
36
+ ["week", "date"].includes(_ctx.type) ? (openBlock(), createElementBlock("div", {
37
+ key: 0,
38
+ class: "yc-picker-header-icon",
39
+ onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("prev-click"))
40
+ }, [
41
+ renderSlot(_ctx.$slots, "icon-prev", {}, () => [
42
+ createVNode(unref(_sfc_main$2), { rotate: 180 })
43
+ ])
44
+ ])) : createCommentVNode("", true),
45
+ createElementVNode("div", _hoisted_2, [
46
+ renderSlot(_ctx.$slots, "default", {}, () => [
47
+ createElementVNode("span", {
48
+ class: "yc-picker-header-label",
49
+ onClick: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("year-click"))
50
+ }, toDisplayString(_ctx.year), 1),
51
+ !unref(isUndefined)(_ctx.month) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
52
+ _cache[6] || (_cache[6] = createElementVNode("span", null, "-", -1)),
53
+ createElementVNode("span", {
54
+ class: "yc-picker-header-label",
55
+ onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("month-click"))
56
+ }, toDisplayString(_ctx.month < 9 ? `0${_ctx.month + 1}` : _ctx.month + 1), 1)
57
+ ], 64)) : createCommentVNode("", true)
58
+ ])
59
+ ]),
60
+ ["week", "date"].includes(_ctx.type) ? (openBlock(), createElementBlock("div", {
61
+ key: 1,
62
+ class: "yc-picker-header-icon",
63
+ onClick: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("next-click"))
64
+ }, [
65
+ renderSlot(_ctx.$slots, "icon-next", {}, () => [
66
+ createVNode(unref(_sfc_main$2))
67
+ ])
68
+ ])) : createCommentVNode("", true),
69
+ createElementVNode("div", {
70
+ class: "yc-picker-header-icon",
71
+ onClick: _cache[5] || (_cache[5] = ($event) => _ctx.$emit("next-double-click"))
72
+ }, [
73
+ renderSlot(_ctx.$slots, "icon-next-double", {}, () => [
74
+ createVNode(unref(_sfc_main$3))
75
+ ])
76
+ ])
77
+ ]);
78
+ };
79
+ }
80
+ });
81
+ export {
82
+ _sfc_main as default
83
+ };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./PickerHeader.vue.js";
2
+ /* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };