yc-design-vue 2.2.2 → 2.2.4

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 (594) hide show
  1. package/dist/index.umd.js +1 -1
  2. package/dist/lang-es/zh-cn.js +26 -26
  3. package/dist/style.css +1 -1
  4. package/es/Affix/index.vue.js +0 -4
  5. package/es/Alert/index.vue.js +0 -4
  6. package/es/Anchor/Anchor.vue.js +0 -4
  7. package/es/Anchor/AnchorLink.vue.js +0 -4
  8. package/es/Anchor/hooks/useContext.d.ts +1 -1
  9. package/es/Anchor/hooks/useContext.js +5 -13
  10. package/es/AutoComplete/index.vue.js +0 -4
  11. package/es/Avatar/Avatar.vue.js +0 -4
  12. package/es/Avatar/AvatarGroup.vue.js +0 -4
  13. package/es/BackTop/index.vue.js +0 -4
  14. package/es/Badge/index.vue.js +0 -4
  15. package/es/Breadcrumb/Breadcrumb.vue.js +0 -4
  16. package/es/Breadcrumb/BreadcrumbItem.vue.js +0 -4
  17. package/es/Breadcrumb/BreadcrumbMore.vue.js +0 -4
  18. package/es/Breadcrumb/BreadcrumbSeparator.vue.js +0 -4
  19. package/es/Button/hooks/useContext.js +0 -4
  20. package/es/Calendar/Calendar.vue.js +30 -49
  21. package/es/Calendar/CalendarMonth.vue.d.ts +4 -6
  22. package/es/Calendar/CalendarMonth.vue.js +34 -43
  23. package/es/Calendar/CalendarYear.vue.d.ts +3 -4
  24. package/es/Calendar/CalendarYear.vue.js +19 -38
  25. package/es/Calendar/hooks/useCalendar.d.ts +7 -0
  26. package/es/Calendar/hooks/useCalendar.js +36 -0
  27. package/es/Card/Card.vue.js +0 -4
  28. package/es/Card/CardMeta.vue.js +0 -4
  29. package/es/Carousel/Carousel.vue.js +0 -4
  30. package/es/Carousel/CarouselArrow.vue.js +0 -4
  31. package/es/Carousel/CarouselIndicator.vue.js +0 -4
  32. package/es/Carousel/hooks/useContext.d.ts +11 -2
  33. package/es/Carousel/hooks/useContext.js +4 -8
  34. package/es/Cascader/Cascader.vue.js +0 -4
  35. package/es/Cascader/CascaderIcon.vue.js +0 -4
  36. package/es/Cascader/CascaderOption.vue.js +0 -4
  37. package/es/Cascader/hooks/useContext.d.ts +69 -8
  38. package/es/Cascader/hooks/useContext.js +5 -17
  39. package/es/Cascader/index.css +1 -1
  40. package/es/Checkbox/Checkbox.vue.js +0 -4
  41. package/es/Checkbox/hooks/useContext.js +0 -4
  42. package/es/Collapse/CollapseItem.vue.js +0 -4
  43. package/es/Collapse/hooks/useContext.js +0 -4
  44. package/es/ColorPicker/ColorControl.vue.js +0 -4
  45. package/es/ColorPicker/ColorInput.vue.js +0 -4
  46. package/es/ColorPicker/ColorList.vue.js +0 -4
  47. package/es/ColorPicker/ColorPalette.vue.js +0 -4
  48. package/es/ColorPicker/ColorPanel.vue.js +0 -4
  49. package/es/ColorPicker/hooks/useContext.d.ts +12 -1
  50. package/es/ColorPicker/hooks/useContext.js +5 -9
  51. package/es/Comment/hooks/useContext.js +0 -4
  52. package/es/Comment/index.vue.js +0 -4
  53. package/es/ConfigProvider/index.vue.js +0 -4
  54. package/es/DatePicker/PickerRange.vue.d.ts +2 -0
  55. package/es/DatePicker/PickerRange.vue.js +15 -0
  56. package/es/DatePicker/PickerRange.vue2.js +4 -0
  57. package/es/DatePicker/YcDatePicker.vue.d.ts +2 -0
  58. package/es/DatePicker/YcDatePicker.vue.js +15 -0
  59. package/es/DatePicker/YcDatePicker.vue2.js +4 -0
  60. package/es/DatePicker/YcMonthPicker.vue.d.ts +66 -0
  61. package/es/DatePicker/YcMonthPicker.vue.js +230 -0
  62. package/es/DatePicker/YcMonthPicker.vue3.js +5 -0
  63. package/es/DatePicker/YcWeekPicker.vue.d.ts +67 -0
  64. package/es/DatePicker/YcWeekPicker.vue.js +7 -0
  65. package/es/DatePicker/YcWeekPicker.vue2.js +315 -0
  66. package/es/DatePicker/YcYearPicker.vue.d.ts +65 -0
  67. package/es/DatePicker/YcYearPicker.vue.js +196 -0
  68. package/es/DatePicker/YcYearPicker.vue3.js +5 -0
  69. package/es/DatePicker/component/PickerCell.vue.d.ts +36 -0
  70. package/es/DatePicker/component/PickerCell.vue.js +7 -0
  71. package/es/DatePicker/component/PickerCell.vue2.js +41 -0
  72. package/es/DatePicker/component/PickerInput.vue.d.ts +297 -0
  73. package/es/DatePicker/component/PickerInput.vue.js +7 -0
  74. package/es/DatePicker/component/PickerInput.vue2.js +121 -0
  75. package/es/DatePicker/component/PickerPanel.vue.d.ts +33 -0
  76. package/es/DatePicker/component/PickerPanel.vue.js +104 -0
  77. package/es/DatePicker/component/PickerPanel.vue3.js +5 -0
  78. package/es/DatePicker/hooks/useContext.d.ts +19 -0
  79. package/es/DatePicker/hooks/useContext.js +37 -0
  80. package/es/DatePicker/hooks/userPicker.d.ts +44 -0
  81. package/es/DatePicker/hooks/userPicker.js +217 -0
  82. package/es/DatePicker/index.css +3 -0
  83. package/es/DatePicker/index.d.ts +38 -0
  84. package/es/DatePicker/index.js +23 -0
  85. package/es/DatePicker/type.d.ts +104 -0
  86. package/es/Descriptions/ReuseItem.vue.js +0 -4
  87. package/es/Descriptions/ReuseTd.vue.js +0 -4
  88. package/es/Descriptions/hooks/useContext.js +0 -4
  89. package/es/Divider/index.vue.js +0 -4
  90. package/es/Drawer/Drawer.vue.js +0 -4
  91. package/es/Drawer/DrawerService.vue.js +1 -5
  92. package/es/Dropdown/Dropdown.vue.js +0 -4
  93. package/es/Dropdown/DropdownButton.vue.js +0 -4
  94. package/es/Dropdown/Dsubmenu.vue.js +0 -4
  95. package/es/Dropdown/hooks/useContext.js +0 -4
  96. package/es/Empty/index.vue.js +0 -4
  97. package/es/Grid/Grid.vue.js +0 -4
  98. package/es/Grid/GridCol.vue.js +0 -4
  99. package/es/Grid/GridItem.vue.js +0 -4
  100. package/es/Grid/GridRow.vue.js +0 -4
  101. package/es/Grid/hooks/useContext.d.ts +6 -2
  102. package/es/Grid/hooks/useContext.js +5 -11
  103. package/es/Image/Image.vue.js +0 -4
  104. package/es/Image/ImagePreview.vue.js +0 -4
  105. package/es/Image/ImagePreviewArrow.vue.js +0 -4
  106. package/es/Image/ImagePreviewGroup.vue.js +0 -4
  107. package/es/Image/ImagePreviewToolbar.vue.js +0 -4
  108. package/es/Image/hooks/useContext.js +0 -4
  109. package/es/Input/Input.vue.js +0 -4
  110. package/es/Input/InputPassword.vue.js +0 -4
  111. package/es/Input/InputSearch.vue.js +0 -4
  112. package/es/Input/hooks/useLimitedInput.js +0 -4
  113. package/es/InputNumber/InputNumber.vue.js +0 -4
  114. package/es/InputNumber/InputOperaBtn.vue.js +0 -4
  115. package/es/InputTag/index.vue.js +0 -4
  116. package/es/Layout/Layout.vue.js +0 -4
  117. package/es/Layout/LayoutSider.vue.js +0 -4
  118. package/es/Layout/hooks/useSiderContext.js +0 -4
  119. package/es/Link/index.vue.js +0 -4
  120. package/es/List/List.vue.js +0 -4
  121. package/es/List/ListVirtual.vue.js +0 -4
  122. package/es/List/hooks/useScrollReach.js +0 -4
  123. package/es/Mention/index.vue.js +0 -4
  124. package/es/Menu/Menu.vue.js +0 -4
  125. package/es/Menu/MenuEllipsis.vue.js +0 -4
  126. package/es/Menu/MenuItem.vue.js +0 -4
  127. package/es/Menu/MenuItemGroup.vue.js +0 -4
  128. package/es/Menu/SubMenu.vue.js +0 -4
  129. package/es/Menu/hooks/useCalcMaxMenuItems.js +0 -4
  130. package/es/Menu/hooks/useContext.d.ts +17 -2
  131. package/es/Menu/hooks/useContext.js +5 -11
  132. package/es/Message/Message.vue.js +1 -5
  133. package/es/Message/index.js +0 -4
  134. package/es/Modal/Modal.vue.js +0 -4
  135. package/es/Modal/ModalService.vue.js +2 -6
  136. package/es/Modal/hooks/useModalClose.js +0 -4
  137. package/es/Modal/hooks/useModalDraggable.js +0 -4
  138. package/es/Modal/hooks/useOnBeforeClose.js +0 -4
  139. package/es/Notification/Notification.vue.js +2 -6
  140. package/es/Notification/index.js +0 -4
  141. package/es/OverflowList/index.vue.js +0 -4
  142. package/es/PageHeader/index.vue.js +0 -4
  143. package/es/Pagination/Pagination.vue.js +0 -4
  144. package/es/Pagination/PaginationItem.vue.js +0 -4
  145. package/es/Pagination/hooks/useContext.js +0 -4
  146. package/es/Popconfirm/index.vue.js +0 -4
  147. package/es/Popover/index.vue.js +0 -4
  148. package/es/Progress/Progress.vue.js +0 -4
  149. package/es/Progress/ProgressCircle.vue.js +0 -4
  150. package/es/Progress/ProgressLine.vue.js +0 -4
  151. package/es/Progress/ProgressSteps.vue.js +0 -4
  152. package/es/Radio/Radio.vue.js +0 -4
  153. package/es/Radio/hooks/useContext.js +0 -4
  154. package/es/Rate/index.vue.js +0 -4
  155. package/es/ResizeBox/index.vue.js +0 -4
  156. package/es/Scrollbar/Scrollbar.vue.js +0 -4
  157. package/es/Scrollbar/ScrollbarTrack.vue.js +0 -4
  158. package/es/Select/Option.vue.js +0 -4
  159. package/es/Select/Select.vue.js +0 -4
  160. package/es/Select/SelectIcon.vue.js +0 -4
  161. package/es/Select/SelectRealList.vue.js +0 -4
  162. package/es/Select/SelectView.vue.js +0 -4
  163. package/es/Select/SelectVirtualList.vue.js +0 -4
  164. package/es/Select/hooks/useContext.d.ts +2 -2
  165. package/es/Select/hooks/useContext.js +0 -4
  166. package/es/Select/hooks/useSelectHotkeys.js +0 -4
  167. package/es/Select/hooks/useSelectOptions.d.ts +2 -2
  168. package/es/Select/hooks/useSelectOptions.js +0 -4
  169. package/es/Skeleton/SkeletonLine.vue.js +0 -4
  170. package/es/Skeleton/SkeletonShape.vue.js +0 -4
  171. package/es/Slider/SliderBtn.vue.js +0 -4
  172. package/es/Slider/hooks/useContext.d.ts +12 -6
  173. package/es/Slider/hooks/useContext.js +5 -16
  174. package/es/Slider/hooks/useSliderDraggable.js +0 -4
  175. package/es/Space/index.vue.js +0 -4
  176. package/es/Spin/index.vue.js +0 -4
  177. package/es/Split/index.vue.js +0 -4
  178. package/es/Statistic/Countdown.vue.js +0 -4
  179. package/es/Statistic/Statistic.vue.js +3 -7
  180. package/es/Steps/Step.vue.js +0 -4
  181. package/es/Steps/hooks/useContext.d.ts +9 -1
  182. package/es/Steps/hooks/useContext.js +3 -10
  183. package/es/Switch/index.vue.js +0 -4
  184. package/es/Tabs/TabButton.vue.js +0 -4
  185. package/es/Tabs/TabPane.vue.js +0 -4
  186. package/es/Tabs/Tabs.vue.js +0 -4
  187. package/es/Tabs/TabsNavInk.vue.js +0 -4
  188. package/es/Tabs/TabsTab.vue.js +0 -4
  189. package/es/Tabs/hooks/useContext.d.ts +9 -2
  190. package/es/Tabs/hooks/useContext.js +5 -13
  191. package/es/Tabs/hooks/useTabsScroll.js +0 -4
  192. package/es/Tag/index.vue.js +0 -4
  193. package/es/Textarea/hooks/useTextareaHeight.js +0 -4
  194. package/es/Textarea/index.vue.js +0 -4
  195. package/es/TimePicker/TimePicker.vue.js +1 -5
  196. package/es/TimePicker/TimePickerPanel.vue.js +0 -4
  197. package/es/TimePicker/hooks/useContext.d.ts +17 -7
  198. package/es/TimePicker/hooks/useContext.js +4 -13
  199. package/es/Timeline/TimelineItemPending.vue.js +0 -4
  200. package/es/Timeline/hooks/useContext.d.ts +4 -2
  201. package/es/Timeline/hooks/useContext.js +3 -10
  202. package/es/Tooltip/index.vue.js +0 -4
  203. package/es/Transfer/Transfer.vue.js +0 -4
  204. package/es/Transfer/TransferPanel.vue.js +1 -5
  205. package/es/Transfer/hooks/useContext.d.ts +1 -6
  206. package/es/Transfer/hooks/useContext.js +3 -11
  207. package/es/Trigger/hooks/useContext.js +0 -4
  208. package/es/Trigger/hooks/useTriggerPosition.js +0 -4
  209. package/es/Trigger/hooks/useTriggerVisible.js +0 -4
  210. package/es/Trigger/index.vue.js +0 -4
  211. package/es/Typography/TypographyBase.vue.js +2 -6
  212. package/es/Upload/Upload.vue.js +6 -4
  213. package/es/Upload/UploadButton.vue.js +0 -4
  214. package/es/Upload/UploadDrag.vue.js +0 -4
  215. package/es/Upload/UploadFileList.vue.js +125 -5
  216. package/es/Upload/UploadFileList.vue3.js +5 -0
  217. package/es/Upload/UploadPictureCard.vue.js +131 -5
  218. package/es/Upload/UploadPictureCard.vue3.js +5 -0
  219. package/es/Upload/hooks/useContext.js +0 -4
  220. package/es/Upload/hooks/useUpload.js +0 -4
  221. package/es/VerificationCode/index.vue.js +0 -4
  222. package/es/Watermark/index.vue.js +0 -4
  223. package/es/_shared/components/ExpandTransition/index.vue2.js +0 -4
  224. package/es/_shared/components/Icon/index.vue3.js +0 -4
  225. package/es/_shared/components/IconButton/index.vue.js +0 -4
  226. package/es/_shared/constants/index.js +0 -4
  227. package/es/_shared/icons/IconArrowDown.vue.js +0 -4
  228. package/es/_shared/icons/IconArrowRight.vue.js +0 -4
  229. package/es/_shared/icons/IconCalendar.vue.d.ts +2 -0
  230. package/es/_shared/icons/IconCalendar.vue.js +4 -0
  231. package/es/_shared/icons/IconCalendar.vue2.js +27 -0
  232. package/es/_shared/icons/IconCheck.vue.js +0 -4
  233. package/es/_shared/icons/IconCheckboxChecked.vue.js +0 -4
  234. package/es/_shared/icons/IconClose.vue.js +0 -4
  235. package/es/_shared/icons/IconCopy.vue.js +1 -28
  236. package/es/_shared/icons/IconCopy.vue2.js +24 -1
  237. package/es/_shared/icons/IconDelete.vue.js +1 -28
  238. package/es/_shared/icons/IconDelete.vue2.js +24 -1
  239. package/es/_shared/icons/IconDoubleLeft.vue.d.ts +2 -0
  240. package/es/_shared/icons/IconDoubleLeft.vue.js +27 -0
  241. package/es/_shared/icons/IconDoubleLeft.vue2.js +4 -0
  242. package/es/_shared/icons/IconDoubleRight.vue.d.ts +2 -0
  243. package/es/_shared/icons/IconDoubleRight.vue.js +27 -0
  244. package/es/_shared/icons/IconDoubleRight.vue2.js +4 -0
  245. package/es/_shared/icons/IconDragDot.vue.js +0 -4
  246. package/es/_shared/icons/IconEdit.vue.js +1 -28
  247. package/es/_shared/icons/IconEdit.vue2.js +24 -1
  248. package/es/_shared/icons/IconEmpty.vue.js +0 -4
  249. package/es/_shared/icons/IconError.vue.js +0 -4
  250. package/es/_shared/icons/IconExclamation.vue2.js +0 -4
  251. package/es/_shared/icons/IconEyeClose.vue.js +0 -4
  252. package/es/_shared/icons/IconEyeOpen.vue.js +0 -4
  253. package/es/_shared/icons/IconFaceSmile.vue.js +0 -4
  254. package/es/_shared/icons/IconFile.vue2.js +0 -4
  255. package/es/_shared/icons/IconFullScreen.vue2.js +0 -4
  256. package/es/_shared/icons/IconImageClose.vue.js +0 -4
  257. package/es/_shared/icons/IconInfo.vue.js +0 -4
  258. package/es/_shared/icons/IconInfoLine.vue.js +0 -4
  259. package/es/_shared/icons/IconLink.vue.js +0 -4
  260. package/es/_shared/icons/IconLoading.vue.js +0 -4
  261. package/es/_shared/icons/IconMenuFold.vue.js +0 -4
  262. package/es/_shared/icons/IconMenuUnfold.vue.js +0 -4
  263. package/es/_shared/icons/IconMinus.vue2.js +0 -4
  264. package/es/_shared/icons/IconMore.vue.js +0 -4
  265. package/es/_shared/icons/IconOriginSize.vue2.js +0 -4
  266. package/es/_shared/icons/IconPlus.vue.js +0 -4
  267. package/es/_shared/icons/IconRight.vue.js +0 -4
  268. package/es/_shared/icons/IconRotateLeft.vue2.js +0 -4
  269. package/es/_shared/icons/IconRotateRight.vue2.js +0 -4
  270. package/es/_shared/icons/IconSearch.vue.js +0 -4
  271. package/es/_shared/icons/IconSeparator.vue2.js +0 -4
  272. package/es/_shared/icons/IconStar.vue.js +0 -4
  273. package/es/_shared/icons/IconSuccess.vue.js +0 -4
  274. package/es/_shared/icons/IconTime.vue.js +0 -4
  275. package/es/_shared/icons/IconToTop.vue.js +0 -4
  276. package/es/_shared/icons/IconUpload.vue2.js +0 -4
  277. package/es/_shared/icons/IconWarning.vue.js +0 -4
  278. package/es/_shared/icons/IconZoomIn.vue2.js +0 -4
  279. package/es/_shared/icons/IconZoomOut.vue2.js +0 -4
  280. package/es/_shared/icons/index.d.ts +3 -0
  281. package/es/_shared/type/index.d.ts +1 -1
  282. package/es/_shared/utils/color.js +0 -4
  283. package/es/_shared/utils/dependencies.d.ts +0 -4
  284. package/es/_shared/utils/dom.js +0 -4
  285. package/es/_shared/utils/hooks.js +1 -1
  286. package/es/_shared/utils/locale.d.ts +0 -5
  287. package/es/_shared/utils/time.d.ts +0 -9
  288. package/es/_shared/utils/time.js +0 -30
  289. package/es/_shared/utils/vue-utils.d.ts +1 -1
  290. package/es/_virtual/isoWeek.js +4 -0
  291. package/es/index.d.ts +307 -1
  292. package/es/index.js +42 -33
  293. package/es/lang-es/zh-cn.js +26 -26
  294. package/es/node_modules/dayjs/plugin/isoWeek.js +33 -0
  295. package/es/src/lang/lang-es/zh-cn.js +26 -26
  296. package/es/style.css +1 -1
  297. package/lib/Affix/index.vue.js +1 -1
  298. package/lib/Alert/index.vue.js +1 -1
  299. package/lib/Anchor/Anchor.vue.js +1 -1
  300. package/lib/Anchor/AnchorLink.vue.js +1 -1
  301. package/lib/Anchor/hooks/useContext.d.ts +1 -1
  302. package/lib/Anchor/hooks/useContext.js +1 -1
  303. package/lib/AutoComplete/index.vue.js +1 -1
  304. package/lib/Avatar/Avatar.vue.js +1 -1
  305. package/lib/Avatar/AvatarGroup.vue.js +1 -1
  306. package/lib/BackTop/index.vue.js +1 -1
  307. package/lib/Badge/index.vue.js +1 -1
  308. package/lib/Breadcrumb/Breadcrumb.vue.js +1 -1
  309. package/lib/Breadcrumb/BreadcrumbItem.vue.js +1 -1
  310. package/lib/Breadcrumb/BreadcrumbMore.vue.js +1 -1
  311. package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  312. package/lib/Button/hooks/useContext.js +1 -1
  313. package/lib/Calendar/Calendar.vue.js +1 -1
  314. package/lib/Calendar/CalendarMonth.vue.d.ts +4 -6
  315. package/lib/Calendar/CalendarMonth.vue.js +1 -1
  316. package/lib/Calendar/CalendarYear.vue.d.ts +3 -4
  317. package/lib/Calendar/CalendarYear.vue.js +1 -1
  318. package/lib/Calendar/hooks/useCalendar.d.ts +7 -0
  319. package/lib/Calendar/hooks/useCalendar.js +1 -0
  320. package/lib/Card/Card.vue.js +1 -1
  321. package/lib/Card/CardMeta.vue.js +1 -1
  322. package/lib/Carousel/Carousel.vue.js +1 -1
  323. package/lib/Carousel/CarouselArrow.vue.js +1 -1
  324. package/lib/Carousel/CarouselIndicator.vue.js +1 -1
  325. package/lib/Carousel/hooks/useContext.d.ts +11 -2
  326. package/lib/Carousel/hooks/useContext.js +1 -1
  327. package/lib/Cascader/Cascader.vue.js +1 -1
  328. package/lib/Cascader/CascaderIcon.vue.js +1 -1
  329. package/lib/Cascader/CascaderOption.vue.js +1 -1
  330. package/lib/Cascader/hooks/useContext.d.ts +69 -8
  331. package/lib/Cascader/hooks/useContext.js +1 -1
  332. package/lib/Cascader/index.css +1 -1
  333. package/lib/Checkbox/Checkbox.vue.js +1 -1
  334. package/lib/Checkbox/hooks/useContext.js +1 -1
  335. package/lib/Collapse/CollapseItem.vue.js +1 -1
  336. package/lib/Collapse/hooks/useContext.js +1 -1
  337. package/lib/ColorPicker/ColorControl.vue.js +1 -1
  338. package/lib/ColorPicker/ColorInput.vue.js +1 -1
  339. package/lib/ColorPicker/ColorList.vue.js +1 -1
  340. package/lib/ColorPicker/ColorPalette.vue.js +1 -1
  341. package/lib/ColorPicker/ColorPanel.vue.js +1 -1
  342. package/lib/ColorPicker/hooks/useContext.d.ts +12 -1
  343. package/lib/ColorPicker/hooks/useContext.js +1 -1
  344. package/lib/Comment/hooks/useContext.js +1 -1
  345. package/lib/Comment/index.vue.js +1 -1
  346. package/lib/ConfigProvider/index.vue.js +1 -1
  347. package/lib/DatePicker/PickerRange.vue.d.ts +2 -0
  348. package/lib/DatePicker/PickerRange.vue.js +1 -0
  349. package/lib/DatePicker/PickerRange.vue2.js +1 -0
  350. package/lib/DatePicker/YcDatePicker.vue.d.ts +2 -0
  351. package/lib/DatePicker/YcDatePicker.vue.js +1 -0
  352. package/lib/DatePicker/YcDatePicker.vue2.js +1 -0
  353. package/lib/DatePicker/YcMonthPicker.vue.d.ts +66 -0
  354. package/lib/DatePicker/YcMonthPicker.vue.js +1 -0
  355. package/lib/DatePicker/YcMonthPicker.vue3.js +1 -0
  356. package/lib/DatePicker/YcWeekPicker.vue.d.ts +67 -0
  357. package/lib/DatePicker/YcWeekPicker.vue.js +1 -0
  358. package/lib/DatePicker/YcWeekPicker.vue2.js +1 -0
  359. package/lib/DatePicker/YcYearPicker.vue.d.ts +65 -0
  360. package/lib/DatePicker/YcYearPicker.vue.js +1 -0
  361. package/lib/DatePicker/YcYearPicker.vue3.js +1 -0
  362. package/lib/DatePicker/component/PickerCell.vue.d.ts +36 -0
  363. package/lib/DatePicker/component/PickerCell.vue.js +1 -0
  364. package/lib/DatePicker/component/PickerCell.vue2.js +1 -0
  365. package/lib/DatePicker/component/PickerInput.vue.d.ts +297 -0
  366. package/lib/DatePicker/component/PickerInput.vue.js +1 -0
  367. package/lib/DatePicker/component/PickerInput.vue2.js +1 -0
  368. package/lib/DatePicker/component/PickerPanel.vue.d.ts +33 -0
  369. package/lib/DatePicker/component/PickerPanel.vue.js +1 -0
  370. package/lib/DatePicker/component/PickerPanel.vue3.js +1 -0
  371. package/lib/DatePicker/hooks/useContext.d.ts +19 -0
  372. package/lib/DatePicker/hooks/useContext.js +1 -0
  373. package/lib/DatePicker/hooks/userPicker.d.ts +44 -0
  374. package/lib/DatePicker/hooks/userPicker.js +1 -0
  375. package/lib/DatePicker/index.css +3 -0
  376. package/lib/DatePicker/index.d.ts +38 -0
  377. package/lib/DatePicker/index.js +1 -0
  378. package/lib/DatePicker/type.d.ts +104 -0
  379. package/lib/Descriptions/ReuseItem.vue.js +1 -1
  380. package/lib/Descriptions/ReuseTd.vue.js +1 -1
  381. package/lib/Descriptions/hooks/useContext.js +1 -1
  382. package/lib/Divider/index.vue.js +1 -1
  383. package/lib/Drawer/Drawer.vue.js +1 -1
  384. package/lib/Drawer/DrawerService.vue.js +1 -1
  385. package/lib/Dropdown/Dropdown.vue.js +1 -1
  386. package/lib/Dropdown/DropdownButton.vue.js +1 -1
  387. package/lib/Dropdown/Dsubmenu.vue.js +1 -1
  388. package/lib/Dropdown/hooks/useContext.js +1 -1
  389. package/lib/Empty/index.vue.js +1 -1
  390. package/lib/Grid/Grid.vue.js +1 -1
  391. package/lib/Grid/GridCol.vue.js +1 -1
  392. package/lib/Grid/GridItem.vue.js +1 -1
  393. package/lib/Grid/GridRow.vue.js +1 -1
  394. package/lib/Grid/hooks/useContext.d.ts +6 -2
  395. package/lib/Grid/hooks/useContext.js +1 -1
  396. package/lib/Image/Image.vue.js +1 -1
  397. package/lib/Image/ImagePreview.vue.js +1 -1
  398. package/lib/Image/ImagePreviewArrow.vue.js +1 -1
  399. package/lib/Image/ImagePreviewGroup.vue.js +1 -1
  400. package/lib/Image/ImagePreviewToolbar.vue.js +1 -1
  401. package/lib/Image/hooks/useContext.js +1 -1
  402. package/lib/Input/Input.vue.js +1 -1
  403. package/lib/Input/InputPassword.vue.js +1 -1
  404. package/lib/Input/InputSearch.vue.js +1 -1
  405. package/lib/Input/hooks/useLimitedInput.js +1 -1
  406. package/lib/InputNumber/InputNumber.vue.js +1 -1
  407. package/lib/InputNumber/InputOperaBtn.vue.js +1 -1
  408. package/lib/InputTag/index.vue.js +1 -1
  409. package/lib/Layout/Layout.vue.js +1 -1
  410. package/lib/Layout/LayoutSider.vue.js +1 -1
  411. package/lib/Layout/hooks/useSiderContext.js +1 -1
  412. package/lib/Link/index.vue.js +1 -1
  413. package/lib/List/List.vue.js +1 -1
  414. package/lib/List/ListVirtual.vue.js +1 -1
  415. package/lib/List/hooks/useScrollReach.js +1 -1
  416. package/lib/Mention/index.vue.js +1 -1
  417. package/lib/Menu/Menu.vue.js +1 -1
  418. package/lib/Menu/MenuEllipsis.vue.js +1 -1
  419. package/lib/Menu/MenuItem.vue.js +1 -1
  420. package/lib/Menu/MenuItemGroup.vue.js +1 -1
  421. package/lib/Menu/SubMenu.vue.js +1 -1
  422. package/lib/Menu/hooks/useCalcMaxMenuItems.js +1 -1
  423. package/lib/Menu/hooks/useContext.d.ts +17 -2
  424. package/lib/Menu/hooks/useContext.js +1 -1
  425. package/lib/Message/Message.vue.js +1 -1
  426. package/lib/Message/index.js +1 -1
  427. package/lib/Modal/Modal.vue.js +1 -1
  428. package/lib/Modal/ModalService.vue.js +1 -1
  429. package/lib/Modal/hooks/useModalClose.js +1 -1
  430. package/lib/Modal/hooks/useModalDraggable.js +1 -1
  431. package/lib/Modal/hooks/useOnBeforeClose.js +1 -1
  432. package/lib/Notification/Notification.vue.js +1 -1
  433. package/lib/Notification/index.js +1 -1
  434. package/lib/OverflowList/index.vue.js +1 -1
  435. package/lib/PageHeader/index.vue.js +1 -1
  436. package/lib/Pagination/Pagination.vue.js +1 -1
  437. package/lib/Pagination/PaginationItem.vue.js +1 -1
  438. package/lib/Pagination/hooks/useContext.js +1 -1
  439. package/lib/Popconfirm/index.vue.js +1 -1
  440. package/lib/Popover/index.vue.js +1 -1
  441. package/lib/Progress/Progress.vue.js +1 -1
  442. package/lib/Progress/ProgressCircle.vue.js +1 -1
  443. package/lib/Progress/ProgressLine.vue.js +1 -1
  444. package/lib/Progress/ProgressSteps.vue.js +1 -1
  445. package/lib/Radio/Radio.vue.js +1 -1
  446. package/lib/Radio/hooks/useContext.js +1 -1
  447. package/lib/Rate/index.vue.js +1 -1
  448. package/lib/ResizeBox/index.vue.js +1 -1
  449. package/lib/Scrollbar/Scrollbar.vue.js +1 -1
  450. package/lib/Scrollbar/ScrollbarTrack.vue.js +1 -1
  451. package/lib/Select/Option.vue.js +1 -1
  452. package/lib/Select/Select.vue.js +1 -1
  453. package/lib/Select/SelectIcon.vue.js +1 -1
  454. package/lib/Select/SelectRealList.vue.js +1 -1
  455. package/lib/Select/SelectView.vue.js +1 -1
  456. package/lib/Select/SelectVirtualList.vue.js +1 -1
  457. package/lib/Select/hooks/useContext.d.ts +2 -2
  458. package/lib/Select/hooks/useContext.js +1 -1
  459. package/lib/Select/hooks/useSelectHotkeys.js +1 -1
  460. package/lib/Select/hooks/useSelectOptions.d.ts +2 -2
  461. package/lib/Select/hooks/useSelectOptions.js +1 -1
  462. package/lib/Skeleton/SkeletonLine.vue.js +1 -1
  463. package/lib/Skeleton/SkeletonShape.vue.js +1 -1
  464. package/lib/Slider/SliderBtn.vue.js +1 -1
  465. package/lib/Slider/hooks/useContext.d.ts +12 -6
  466. package/lib/Slider/hooks/useContext.js +1 -1
  467. package/lib/Slider/hooks/useSliderDraggable.js +1 -1
  468. package/lib/Space/index.vue.js +1 -1
  469. package/lib/Spin/index.vue.js +1 -1
  470. package/lib/Split/index.vue.js +1 -1
  471. package/lib/Statistic/Countdown.vue.js +1 -1
  472. package/lib/Statistic/Statistic.vue.js +1 -1
  473. package/lib/Steps/Step.vue.js +1 -1
  474. package/lib/Steps/hooks/useContext.d.ts +9 -1
  475. package/lib/Steps/hooks/useContext.js +1 -1
  476. package/lib/Switch/index.vue.js +1 -1
  477. package/lib/Tabs/TabButton.vue.js +1 -1
  478. package/lib/Tabs/TabPane.vue.js +1 -1
  479. package/lib/Tabs/Tabs.vue.js +1 -1
  480. package/lib/Tabs/TabsNavInk.vue.js +1 -1
  481. package/lib/Tabs/TabsTab.vue.js +1 -1
  482. package/lib/Tabs/hooks/useContext.d.ts +9 -2
  483. package/lib/Tabs/hooks/useContext.js +1 -1
  484. package/lib/Tabs/hooks/useTabsScroll.js +1 -1
  485. package/lib/Tag/index.vue.js +1 -1
  486. package/lib/Textarea/hooks/useTextareaHeight.js +1 -1
  487. package/lib/Textarea/index.vue.js +1 -1
  488. package/lib/TimePicker/TimePicker.vue.js +1 -1
  489. package/lib/TimePicker/TimePickerPanel.vue.js +1 -1
  490. package/lib/TimePicker/hooks/useContext.d.ts +17 -7
  491. package/lib/TimePicker/hooks/useContext.js +1 -1
  492. package/lib/Timeline/TimelineItemPending.vue.js +1 -1
  493. package/lib/Timeline/hooks/useContext.d.ts +4 -2
  494. package/lib/Timeline/hooks/useContext.js +1 -1
  495. package/lib/Tooltip/index.vue.js +1 -1
  496. package/lib/Transfer/Transfer.vue.js +1 -1
  497. package/lib/Transfer/TransferPanel.vue.js +1 -1
  498. package/lib/Transfer/hooks/useContext.d.ts +1 -6
  499. package/lib/Transfer/hooks/useContext.js +1 -1
  500. package/lib/Trigger/hooks/useContext.js +1 -1
  501. package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
  502. package/lib/Trigger/hooks/useTriggerVisible.js +1 -1
  503. package/lib/Trigger/index.vue.js +1 -1
  504. package/lib/Typography/TypographyBase.vue.js +1 -1
  505. package/lib/Upload/Upload.vue.js +1 -1
  506. package/lib/Upload/UploadButton.vue.js +1 -1
  507. package/lib/Upload/UploadDrag.vue.js +1 -1
  508. package/lib/Upload/UploadFileList.vue.js +1 -1
  509. package/lib/Upload/UploadFileList.vue3.js +1 -0
  510. package/lib/Upload/UploadPictureCard.vue.js +1 -1
  511. package/lib/Upload/UploadPictureCard.vue3.js +1 -0
  512. package/lib/Upload/hooks/useContext.js +1 -1
  513. package/lib/Upload/hooks/useUpload.js +1 -1
  514. package/lib/VerificationCode/index.vue.js +1 -1
  515. package/lib/Watermark/index.vue.js +1 -1
  516. package/lib/_shared/components/ExpandTransition/index.vue2.js +1 -1
  517. package/lib/_shared/components/Icon/index.vue3.js +1 -1
  518. package/lib/_shared/components/IconButton/index.vue.js +1 -1
  519. package/lib/_shared/constants/index.js +1 -1
  520. package/lib/_shared/icons/IconArrowDown.vue.js +1 -1
  521. package/lib/_shared/icons/IconArrowRight.vue.js +1 -1
  522. package/lib/_shared/icons/IconCalendar.vue.d.ts +2 -0
  523. package/lib/_shared/icons/IconCalendar.vue.js +1 -0
  524. package/lib/_shared/icons/IconCalendar.vue2.js +1 -0
  525. package/lib/_shared/icons/IconCheck.vue.js +1 -1
  526. package/lib/_shared/icons/IconCheckboxChecked.vue.js +1 -1
  527. package/lib/_shared/icons/IconClose.vue.js +1 -1
  528. package/lib/_shared/icons/IconCopy.vue.js +1 -1
  529. package/lib/_shared/icons/IconCopy.vue2.js +1 -1
  530. package/lib/_shared/icons/IconDelete.vue.js +1 -1
  531. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  532. package/lib/_shared/icons/IconDoubleLeft.vue.d.ts +2 -0
  533. package/lib/_shared/icons/IconDoubleLeft.vue.js +1 -0
  534. package/lib/_shared/icons/IconDoubleLeft.vue2.js +1 -0
  535. package/lib/_shared/icons/IconDoubleRight.vue.d.ts +2 -0
  536. package/lib/_shared/icons/IconDoubleRight.vue.js +1 -0
  537. package/lib/_shared/icons/IconDoubleRight.vue2.js +1 -0
  538. package/lib/_shared/icons/IconDragDot.vue.js +1 -1
  539. package/lib/_shared/icons/IconEdit.vue.js +1 -1
  540. package/lib/_shared/icons/IconEdit.vue2.js +1 -1
  541. package/lib/_shared/icons/IconEmpty.vue.js +1 -1
  542. package/lib/_shared/icons/IconError.vue.js +1 -1
  543. package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
  544. package/lib/_shared/icons/IconEyeClose.vue.js +1 -1
  545. package/lib/_shared/icons/IconEyeOpen.vue.js +1 -1
  546. package/lib/_shared/icons/IconFaceSmile.vue.js +1 -1
  547. package/lib/_shared/icons/IconFile.vue2.js +1 -1
  548. package/lib/_shared/icons/IconFullScreen.vue2.js +1 -1
  549. package/lib/_shared/icons/IconImageClose.vue.js +1 -1
  550. package/lib/_shared/icons/IconInfo.vue.js +1 -1
  551. package/lib/_shared/icons/IconInfoLine.vue.js +1 -1
  552. package/lib/_shared/icons/IconLink.vue.js +1 -1
  553. package/lib/_shared/icons/IconLoading.vue.js +1 -1
  554. package/lib/_shared/icons/IconMenuFold.vue.js +1 -1
  555. package/lib/_shared/icons/IconMenuUnfold.vue.js +1 -1
  556. package/lib/_shared/icons/IconMinus.vue2.js +1 -1
  557. package/lib/_shared/icons/IconMore.vue.js +1 -1
  558. package/lib/_shared/icons/IconOriginSize.vue2.js +1 -1
  559. package/lib/_shared/icons/IconPlus.vue.js +1 -1
  560. package/lib/_shared/icons/IconRight.vue.js +1 -1
  561. package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
  562. package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
  563. package/lib/_shared/icons/IconSearch.vue.js +1 -1
  564. package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
  565. package/lib/_shared/icons/IconStar.vue.js +1 -1
  566. package/lib/_shared/icons/IconSuccess.vue.js +1 -1
  567. package/lib/_shared/icons/IconTime.vue.js +1 -1
  568. package/lib/_shared/icons/IconToTop.vue.js +1 -1
  569. package/lib/_shared/icons/IconUpload.vue2.js +1 -1
  570. package/lib/_shared/icons/IconWarning.vue.js +1 -1
  571. package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
  572. package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
  573. package/lib/_shared/icons/index.d.ts +3 -0
  574. package/lib/_shared/type/index.d.ts +1 -1
  575. package/lib/_shared/utils/color.js +1 -1
  576. package/lib/_shared/utils/dependencies.d.ts +0 -4
  577. package/lib/_shared/utils/dom.js +1 -1
  578. package/lib/_shared/utils/hooks.js +1 -1
  579. package/lib/_shared/utils/locale.d.ts +0 -5
  580. package/lib/_shared/utils/time.d.ts +0 -9
  581. package/lib/_shared/utils/time.js +1 -1
  582. package/lib/_shared/utils/vue-utils.d.ts +1 -1
  583. package/lib/_virtual/isoWeek.js +1 -0
  584. package/lib/index.d.ts +307 -1
  585. package/lib/index.js +1 -1
  586. package/lib/lang-es/zh-cn.js +26 -26
  587. package/lib/node_modules/dayjs/plugin/isoWeek.js +1 -0
  588. package/lib/src/lang/lang-es/zh-cn.js +1 -1
  589. package/lib/style.css +1 -1
  590. package/package.json +1 -1
  591. package/es/Upload/UploadFileList.vue2.js +0 -131
  592. package/es/Upload/UploadPictureCard.vue2.js +0 -137
  593. package/lib/Upload/UploadFileList.vue2.js +0 -1
  594. package/lib/Upload/UploadPictureCard.vue2.js +0 -1
@@ -0,0 +1,44 @@
1
+ import { BasePickerEmits, DatePickerValue, DayStartOfWeek, ShortcutType } from '../type';
2
+ import { RecordType } from '../../_shared/type';
3
+ export type YearData = {
4
+ label: string;
5
+ value: Date;
6
+ };
7
+ export interface DayData {
8
+ label: string;
9
+ value: Date;
10
+ }
11
+ export interface WeekData {
12
+ label: number;
13
+ value: Date;
14
+ time: DayData[];
15
+ }
16
+ export default function usePicker(params: {
17
+ props: RecordType;
18
+ emits: BasePickerEmits;
19
+ }): {
20
+ formatValue: import('vue').ComputedRef<string>;
21
+ computedValue: import('vue').WritableComputedRef<DatePickerValue, DatePickerValue>;
22
+ computedVisible: import('vue').WritableComputedRef<boolean, boolean>;
23
+ computedPickerValue: import('vue').WritableComputedRef<DatePickerValue, DatePickerValue>;
24
+ dayStartOfWeek: import('vue').Ref<any, any>;
25
+ locale: import('vue').Ref<any, any>;
26
+ abbreviation: import('vue').Ref<any, any>;
27
+ showYearPicker: import('vue').Ref<boolean, boolean>;
28
+ showMonthPicker: import('vue').Ref<boolean, boolean>;
29
+ curMonth: import('vue').Ref<number, number>;
30
+ curYear: import('vue').Ref<number, number>;
31
+ DefinePanel: import('@vueuse/core').DefineTemplateComponent<Record<string, any>, Record<"default", undefined>>;
32
+ ReusePanel: import('@vueuse/core').ReuseTemplateComponent<Record<string, any>, Record<"default", undefined>>;
33
+ t: (key: string, ...args: any[]) => string;
34
+ getDateFromFormat: (val: DatePickerValue) => Date | "";
35
+ getFormatFromDate: (val: Date) => string | number | Date;
36
+ getRangeOfYear: (curYear: number) => {
37
+ range: YearData[][];
38
+ startYear: number;
39
+ };
40
+ getWeeksOfMonth: (year: number, month: number, startOfWeek?: DayStartOfWeek) => WeekData[];
41
+ handleSelect: (date: Date) => void;
42
+ handleConfirm: () => Promise<void>;
43
+ handleShortcut: (shortcut: ShortcutType, hover: boolean) => void;
44
+ };
@@ -0,0 +1,217 @@
1
+ import { toRefs, computed, ref, watch } from "vue";
2
+ import { createReusableTemplate } from "../../node_modules/@vueuse/core/index.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 { sleep } from "../../_shared/utils/dom.js";
7
+ import { isUndefined, isString } from "../../_shared/utils/is.js";
8
+ import { useControlValue } from "../../_shared/utils/hooks.js";
9
+ import { useI18n } from "../../_shared/utils/locale.js";
10
+ import "../../_shared/utils/time.js";
11
+ import usePickerInputContext from "./useContext.js";
12
+ import isoWeek from "../../node_modules/dayjs/plugin/isoWeek.js";
13
+ dayjs.extend(isoWeek);
14
+ function usePicker(params) {
15
+ const { props, emits } = params;
16
+ const {
17
+ modelValue,
18
+ defaultValue,
19
+ popupVisible,
20
+ defaultPopupVisible,
21
+ pickerValue,
22
+ defaultPickerValue,
23
+ format,
24
+ valueFormat,
25
+ dayStartOfWeek,
26
+ showConfirmBtn,
27
+ locale,
28
+ abbreviation
29
+ } = toRefs(props);
30
+ const computedValue = useControlValue(
31
+ modelValue,
32
+ defaultValue.value,
33
+ (val, controlValue) => {
34
+ const date = getFormatFromDate(val);
35
+ controlValue.value = date;
36
+ emits("update:modelValue", date);
37
+ }
38
+ );
39
+ const computedVisible = useControlValue(
40
+ popupVisible,
41
+ defaultPopupVisible.value,
42
+ (val) => {
43
+ emits("popup-visible-change", val);
44
+ emits("update:popupVisible", val);
45
+ }
46
+ );
47
+ const computedPickerValue = useControlValue(
48
+ pickerValue,
49
+ defaultPickerValue.value,
50
+ (val) => {
51
+ emits("update:pickerValue", val);
52
+ }
53
+ );
54
+ const formatValue = computed(() => {
55
+ const date = getDateFromFormat(computedValue.value);
56
+ if (!date) return "";
57
+ return format.value && computedValue.value ? dayjs(date).format(format.value) : computedValue.value;
58
+ });
59
+ const { define: DefinePanel, reuse: ReusePanel } = createReusableTemplate();
60
+ const { t } = useI18n();
61
+ let oldDate;
62
+ let selectDate;
63
+ let isConfirm = false;
64
+ const curYear = ref(0);
65
+ const curMonth = ref(0);
66
+ const showYearPicker = ref(false);
67
+ const showMonthPicker = ref(false);
68
+ watch(
69
+ () => computedVisible.value,
70
+ (val) => {
71
+ if (val) {
72
+ isConfirm = false;
73
+ oldDate = computedValue.value ? getDateFromFormat(computedValue.value) : computedValue.value;
74
+ } else {
75
+ showYearPicker.value = false;
76
+ showMonthPicker.value = false;
77
+ if (!showConfirmBtn.value || isConfirm || isUndefined(oldDate)) return;
78
+ computedValue.value = oldDate;
79
+ }
80
+ },
81
+ {
82
+ immediate: true
83
+ }
84
+ );
85
+ const handleShortcut = (shortcut, hover) => {
86
+ if (!hover) {
87
+ emits("select-shortcut", shortcut);
88
+ }
89
+ if (shortcut.value) {
90
+ computedValue.value = shortcut.value;
91
+ }
92
+ if (hover) return;
93
+ isConfirm = true;
94
+ computedVisible.value = false;
95
+ };
96
+ const handleSelect = (date) => {
97
+ computedValue.value = date;
98
+ selectDate = date;
99
+ const dateString = dayjs(date).format("YYYY-MM-DD");
100
+ emits("select", computedValue.value, date, dateString);
101
+ if (showConfirmBtn.value) return;
102
+ emits("change", computedValue.value, date, dateString);
103
+ };
104
+ const handleConfirm = async () => {
105
+ isConfirm = true;
106
+ const dateString = dayjs(selectDate).format("YYYY-MM-DD");
107
+ emits("change", computedValue.value, selectDate, dateString);
108
+ emits("ok", computedValue.value, selectDate, dateString);
109
+ await sleep(0);
110
+ computedVisible.value = false;
111
+ };
112
+ const getDateFromFormat = (val) => {
113
+ if (!val) return "";
114
+ let date;
115
+ if (["timestamp", "Date"].includes(valueFormat.value) || !isString(val)) {
116
+ date = dayjs(val);
117
+ } else {
118
+ date = dayjs(val, valueFormat.value);
119
+ }
120
+ if (!date.isValid()) return "";
121
+ return date.toDate();
122
+ };
123
+ const getFormatFromDate = (val) => {
124
+ if (!val || !dayjs(val).isValid()) return "";
125
+ const date = val;
126
+ if (valueFormat.value == "timestamp") {
127
+ return dayjs(date).valueOf();
128
+ }
129
+ if (valueFormat.value != "Date") {
130
+ return dayjs(date).format(valueFormat.value);
131
+ }
132
+ return date;
133
+ };
134
+ const getRangeOfYear = (curYear2) => {
135
+ const decadeStartYear = Math.floor(curYear2 / 10) * 10;
136
+ const startYear = decadeStartYear - 1;
137
+ const flatYearArray = Array.from({ length: 12 }, (_, i) => {
138
+ const year = startYear + i;
139
+ return {
140
+ label: year.toString(),
141
+ value: dayjs().year(year).startOf("year").toDate()
142
+ };
143
+ });
144
+ const grid = [];
145
+ const columns = 3;
146
+ for (let i = 0; i < flatYearArray.length; i += columns) {
147
+ const chunk = flatYearArray.slice(i, i + columns);
148
+ grid.push(chunk);
149
+ }
150
+ return {
151
+ range: grid,
152
+ startYear: decadeStartYear
153
+ };
154
+ };
155
+ const getWeeksOfMonth = (year, month, startOfWeek = dayStartOfWeek.value) => {
156
+ const firstDayOfMonth = dayjs(new Date(year, month, 1));
157
+ const weekData = [];
158
+ const dayOfWeekOfFirst = firstDayOfMonth.toDate().getDay();
159
+ const offset = (dayOfWeekOfFirst - startOfWeek + 7) % 7;
160
+ let currentDay = firstDayOfMonth.subtract(offset, "day");
161
+ for (let i = 0; i < 6; i++) {
162
+ const daysOfWeek = [];
163
+ const weekRowStartDate = currentDay;
164
+ for (let j = 0; j < 7; j++) {
165
+ daysOfWeek.push({
166
+ label: String(currentDay.date()),
167
+ value: currentDay.toDate()
168
+ });
169
+ currentDay = currentDay.add(1, "day");
170
+ }
171
+ const representativeDayOfWeek = weekRowStartDate.add(3, "day");
172
+ const correctIsoWeek = representativeDayOfWeek.isoWeek();
173
+ const mondayOfCorrectIsoWeek = representativeDayOfWeek.startOf("isoWeek").toDate();
174
+ weekData.push({
175
+ label: correctIsoWeek,
176
+ value: mondayOfCorrectIsoWeek,
177
+ time: daysOfWeek
178
+ });
179
+ }
180
+ return weekData;
181
+ };
182
+ usePickerInputContext().provide(
183
+ {
184
+ computedValue,
185
+ computedVisible,
186
+ formatValue,
187
+ emits
188
+ },
189
+ props
190
+ );
191
+ return {
192
+ formatValue,
193
+ computedValue,
194
+ computedVisible,
195
+ computedPickerValue,
196
+ dayStartOfWeek,
197
+ locale,
198
+ abbreviation,
199
+ showYearPicker,
200
+ showMonthPicker,
201
+ curMonth,
202
+ curYear,
203
+ DefinePanel,
204
+ ReusePanel,
205
+ t,
206
+ getDateFromFormat,
207
+ getFormatFromDate,
208
+ getRangeOfYear,
209
+ getWeeksOfMonth,
210
+ handleSelect,
211
+ handleConfirm,
212
+ handleShortcut
213
+ };
214
+ }
215
+ export {
216
+ usePicker as default
217
+ };
@@ -0,0 +1,3 @@
1
+ .yc-panel-year,.yc-panel-month,.yc-panel-week{width:265px;display:flex;flex-direction:column}.yc-panel-year .yc-picker-header,.yc-panel-month .yc-picker-header,.yc-panel-week .yc-picker-header{padding:8px 16px;border-bottom:1px solid var(--color-neutral-3);display:flex}.yc-panel-year .yc-picker-header .yc-picker-header-icon,.yc-panel-month .yc-picker-header .yc-picker-header-icon,.yc-panel-week .yc-picker-header .yc-picker-header-icon{cursor:pointer;width:24px;height:24px;margin-right:2px;margin-left:2px;color:var(--color-text-2);font-size:12px;line-height:24px;text-align:center;background-color:var(--color-bg-popup);border-radius:50%;transition:all .1s cubic-bezier(0, 0, 1, 1);user-select:none}.yc-panel-year .yc-picker-header .yc-picker-header-icon:hover,.yc-panel-month .yc-picker-header .yc-picker-header-icon:hover,.yc-panel-week .yc-picker-header .yc-picker-header-icon:hover{background-color:var(--color-fill-3)}.yc-panel-year .yc-picker-header .yc-picker-header-title,.yc-panel-month .yc-picker-header .yc-picker-header-title,.yc-panel-week .yc-picker-header .yc-picker-header-title{flex:1;color:var(--color-text-1);font-size:14px;line-height:24px;display:flex;justify-content:center;align-items:center}.yc-panel-year .yc-picker-header .yc-picker-header-title .yc-picker-header-label,.yc-panel-month .yc-picker-header .yc-picker-header-title .yc-picker-header-label,.yc-panel-week .yc-picker-header .yc-picker-header-title .yc-picker-header-label{cursor:pointer;padding:2px;border-radius:2px;transition:all .1s}.yc-panel-year .yc-picker-header .yc-picker-header-title .yc-picker-header-label:hover,.yc-panel-month .yc-picker-header .yc-picker-header-title .yc-picker-header-label:hover,.yc-panel-week .yc-picker-header .yc-picker-header-title .yc-picker-header-label:hover{background-color:var(--color-fill-3)}.yc-panel-year .yc-picker-body,.yc-panel-month .yc-picker-body,.yc-panel-week .yc-picker-body{padding:14px 16px}.yc-panel-year .yc-picker-body .yc-picker-row,.yc-panel-month .yc-picker-body .yc-picker-row,.yc-panel-week .yc-picker-body .yc-picker-row{padding:2px 0;display:flex}.yc-panel-week{width:298px}.yc-panel-week .yc-picker-week-list{width:100%;padding:14px 16px 0 16px;display:flex}.yc-panel-week .yc-picker-week-list .yc-picker-week-list-item{flex:1;height:32px;padding:0;color:#7d7d7f;font-weight:400;display:flex;justify-content:center;align-items:center}.yc-panel-week .yc-picker-body .yc-picker-week-row:not(.yc-picker-week-row-selected):not(
2
+ .yc-picker-week-row-disabled
3
+ ):hover .yc-picker-cell:not(:first-child) .yc-picker-date .yc-picker-date-value{background-color:var(--color-fill-3)}.yc-panel-week .yc-picker-body .yc-picker-week-row .yc-picker-cell .yc-picker-date{padding-left:0;padding-right:0}.yc-panel-week .yc-picker-body .yc-picker-week-row .yc-picker-cell .yc-picker-date .yc-picker-date-value{border-radius:0}.yc-panel-week .yc-picker-body .yc-picker-week-row .yc-week-picker-cell-first .yc-picker-date{border-top-left-radius:24px;border-bottom-left-radius:24px}.yc-panel-week .yc-picker-body .yc-picker-week-row .yc-week-picker-cell-first .yc-picker-date .yc-picker-date-value{border-top-left-radius:24px;border-bottom-left-radius:24px}.yc-panel-week .yc-picker-body .yc-picker-week-row .yc-week-picker-cell-last .yc-picker-date{border-top-right-radius:24px;border-bottom-right-radius:24px}.yc-panel-week .yc-picker-body .yc-picker-week-row .yc-week-picker-cell-last .yc-picker-date .yc-picker-date-value{border-top-right-radius:24px;border-bottom-right-radius:24px}.yc-panel-week .yc-picker-body .yc-picker-week-row-selected .yc-picker-cell:not(:first-child) .yc-picker-date .yc-picker-date-value{background-color:rgb(var(--primary-6));color:var(--color-white);transition:background-color .1s cubic-bezier(0, 0, 1, 1)}.yc-panel-week .yc-picker-body .yc-picker-week-row-selected.yc-picker-week-row-disabled .yc-picker-cell:not(:first-child) .yc-picker-date .yc-picker-date-value{background-color:var(--color-link-light-3);color:var(--color-white)}.yc-panel-week .yc-picker-body .yc-picker-week-row-disabled .yc-picker-cell:not(:first-child) .yc-picker-date{cursor:not-allowed;background-color:var(--color-fill-1)}.yc-panel-week .yc-picker-body .yc-picker-week-row-disabled .yc-picker-cell:not(:first-child) .yc-picker-date .yc-picker-date-value{cursor:not-allowed;background-color:transparent;color:var(--color-text-4)}.yc-picker-container{overflow:hidden;min-height:60px;background-color:var(--color-bg-popup);border:1px solid var(--color-neutral-3);border-radius:var(--border-radius-medium);box-shadow:0 2px 5px #0000001a;display:flex}.yc-picker-container .yc-picker-panel-wrapper .yc-picker-footer{width:min-content;min-width:100%}.yc-picker-container .yc-picker-panel-wrapper .yc-picker-footer .yc-picker-footer-extra-wrapper{padding:8px 24px;border-top:1px solid var(--color-neutral-3);color:var(--color-text-1);font-size:12px}.yc-picker-container .yc-picker-panel-wrapper .yc-picker-footer .yc-picker-footer-btn-wrapper{padding:8px;border-top:1px solid var(--color-neutral-3);display:flex;align-items:center;justify-content:flex-end;gap:10px}.yc-picker-container .yc-picker-shortcuts{overflow-y:auto;padding:10px 8px;flex:1;display:flex;flex-direction:column;gap:5px}.yc-picker-container .yc-picker-shortcuts.yc-picker-shortcuts-left{border-right:1px solid var(--color-neutral-3)}.yc-picker-container .yc-picker-shortcuts.yc-picker-shortcuts-right{border-left:1px solid var(--color-neutral-3)}.yc-picker-container .yc-picker-shortcuts.yc-picker-shortcuts-bottom{padding:0;overflow:hidden;flex-direction:row;flex-wrap:wrap;gap:5px 10px}.yc-picker-container-shortcuts-right{flex-direction:row-reverse}.yc-picker-container-shortcuts-bottom{flex-direction:row-reverse}.yc-picker-container-shortcuts-bottom .yc-picker-panel-wrapper .yc-picker-footer .yc-picker-footer-btn-wrapper{justify-content:space-between}.yc-picker-cell{flex:1}.yc-picker-cell .yc-picker-date{cursor:pointer;width:100%;height:100%;padding:4px;display:flex;justify-content:center}.yc-picker-cell .yc-picker-date .yc-picker-date-value{cursor:pointer;height:24px;width:100%;border-radius:24px;color:var(--color-text-4);font-size:14px;line-height:24px;text-align:center}.yc-picker-cell-in-view .yc-picker-date .yc-picker-date-value{color:var(--color-text-1);font-weight:500}.yc-picker-cell-today{position:relative}.yc-picker-cell-today:after{position:absolute;bottom:-2px;left:50%;display:block;width:4px;height:4px;margin-left:-2px;background-color:rgb(var(--primary-6));border-radius:50%;content:''}.yc-picker-cell-selected .yc-picker-date .yc-picker-date-value{color:var(--color-white);background-color:rgb(var(--primary-6));transition:background-color .1s cubic-bezier(0, 0, 1, 1)}.yc-picker-cell-disabled .yc-picker-date{background-color:var(--color-fill-1);cursor:not-allowed}.yc-picker-cell-disabled .yc-picker-date .yc-picker-date-value{color:var(--color-text-4);background-color:transparent;cursor:not-allowed}.yc-picker-cell-hoverable.yc-picker-cell-in-view:not(.yc-picker-cell-selected):not(.yc-picker-cell-disabled) .yc-picker-date .yc-picker-date-value:hover{color:var(--color-text-1);background-color:var(--color-fill-3)}.yc-picker-allow-clear:not(.yc-input-disabled):hover .yc-icon-button{display:flex}.yc-picker-allow-clear:not(.yc-input-disabled):hover .yc-picker-suffix-icon{display:none}.yc-picker-allow-clear .yc-icon-button{font-size:16px;display:none}.yc-picker-allow-clear .yc-picker-suffix-icon{font-size:16px;height:100%;display:flex;justify-content:center;align-items:center}
@@ -0,0 +1,38 @@
1
+ import { App } from 'vue';
2
+ import { default as _DatePicker } from './YcDatePicker.vue';
3
+ import { default as _RangePicker } from './PickerRange.vue';
4
+ import { default as _YearPicker } from './YcYearPicker.vue';
5
+ import { default as _MonthPicker } from './YcMonthPicker.vue';
6
+ import { default as _WeekPicker } from './YcWeekPicker.vue';
7
+ export type DatePickerInstance = InstanceType<typeof _DatePicker>;
8
+ export type RangePickerInstance = InstanceType<typeof _RangePicker>;
9
+ export type YearPickerInstance = InstanceType<typeof _YearPicker>;
10
+ export type MonthPickerInstance = InstanceType<typeof _MonthPicker>;
11
+ export type WeekPickerInstance = InstanceType<typeof _WeekPicker>;
12
+ export * from './type';
13
+ declare const DatePicker: {
14
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
15
+ P: {};
16
+ B: {};
17
+ D: {};
18
+ C: {};
19
+ M: {};
20
+ Defaults: {};
21
+ }, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
22
+ __isFragment?: never;
23
+ __isTeleport?: never;
24
+ __isSuspense?: never;
25
+ } & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
26
+ install: (app: App) => void;
27
+ };
28
+ export { _RangePicker as RangePicker, _YearPicker as YearPicker, _MonthPicker as MonthPicker, _WeekPicker as WeekPicker, };
29
+ declare module 'vue' {
30
+ interface GlobalComponents {
31
+ YcDatePicker: typeof DatePicker;
32
+ YcRangePicker: typeof _RangePicker;
33
+ YcYearPicker: typeof _YearPicker;
34
+ YcMonthPicker: typeof _MonthPicker;
35
+ YcWeekPicker: typeof _WeekPicker;
36
+ }
37
+ }
38
+ export default DatePicker;
@@ -0,0 +1,23 @@
1
+ import _sfc_main from "./YcDatePicker.vue.js";
2
+ import _sfc_main$1 from "./PickerRange.vue.js";
3
+ import _sfc_main$2 from "./YcYearPicker.vue.js";
4
+ /* empty css */
5
+ import _sfc_main$3 from "./YcMonthPicker.vue.js";
6
+ /* empty css */
7
+ import _WeekPicker from "./YcWeekPicker.vue.js";
8
+ const DatePicker = Object.assign(_sfc_main, {
9
+ install: (app) => {
10
+ app.component("Yc" + _sfc_main.name, _sfc_main);
11
+ app.component("Yc" + _sfc_main$1.name, _sfc_main$1);
12
+ app.component("Yc" + _sfc_main$2.name, _sfc_main$2);
13
+ app.component("Yc" + _sfc_main$3.name, _sfc_main$3);
14
+ app.component("Yc" + _WeekPicker.name, _WeekPicker);
15
+ }
16
+ });
17
+ export {
18
+ _sfc_main$3 as MonthPicker,
19
+ _sfc_main$1 as RangePicker,
20
+ _WeekPicker as WeekPicker,
21
+ _sfc_main$2 as YearPicker,
22
+ DatePicker as default
23
+ };
@@ -0,0 +1,104 @@
1
+ import { VNode } from 'vue';
2
+ import { PopupContainer, Position, Size } from '../_shared/type';
3
+ import { TriggerProps } from '../Trigger';
4
+ import { TimePickerProps } from '../TimePicker';
5
+ export interface BasePickerProps {
6
+ locale?: Record<string, any>;
7
+ hideTrigger?: boolean;
8
+ allowClear?: boolean;
9
+ readonly?: boolean;
10
+ error?: boolean;
11
+ size?: Size;
12
+ shortcuts?: ShortcutType[];
13
+ shortcutsPosition?: ShortcutsPosition;
14
+ position?: DatePickerPosition;
15
+ popupVisible?: boolean;
16
+ defaultPopupVisible?: boolean;
17
+ triggerProps?: TriggerProps;
18
+ unmountOnClose?: boolean;
19
+ placeholder?: string;
20
+ disabled?: boolean;
21
+ disabledDate?: DisabledDate;
22
+ disabledTime?: DisabledTime;
23
+ pickerValue?: DatePickerValue;
24
+ defaultPickerValue?: DatePickerValue;
25
+ popupContainer?: PopupContainer;
26
+ valueFormat?: ValueFormat;
27
+ format?: string;
28
+ previewShortcut?: boolean;
29
+ showConfirmBtn?: boolean;
30
+ disabledInput?: boolean;
31
+ abbreviation?: boolean;
32
+ }
33
+ export interface BasePickerEmits {
34
+ (e: 'update:popupVisible', value: boolean): void;
35
+ (e: 'update:pickerValue', value: DatePickerValue): void;
36
+ (e: 'change', value: DatePickerValue, date: Date, dateString: string): void;
37
+ (e: 'select', value: DatePickerValue, date: Date, dateString: string): void;
38
+ (e: 'ok', value: DatePickerValue, date: Date, dateString: string): void;
39
+ (e: 'picker-value-change', value: DatePickerValue, date: Date, dateString: string): void;
40
+ (e: 'popup-visible-change', visible: boolean): void;
41
+ (e: 'clear'): void;
42
+ (e: 'select-shortcut', shortcut: ShortcutType): void;
43
+ }
44
+ export interface BasePickerSlots {
45
+ prefix?: () => VNode[];
46
+ 'suffix-icon'?: () => VNode[];
47
+ 'icon-next-double'?: () => VNode[];
48
+ 'icon-prev-double'?: () => VNode[];
49
+ 'icon-next'?: () => VNode[];
50
+ 'icon-prev'?: () => VNode[];
51
+ cell?: (scope: {
52
+ date: Date;
53
+ }) => VNode[];
54
+ extra?: () => VNode[];
55
+ }
56
+ export interface YearPickerProps extends BasePickerProps {
57
+ modelValue?: DatePickerValue;
58
+ defaultValue?: DatePickerValue;
59
+ }
60
+ export interface YearPickerEmits extends BasePickerEmits {
61
+ (e: 'update:modelValue', value: DatePickerValue): void;
62
+ }
63
+ export interface MonthPickerProps extends BasePickerProps {
64
+ modelValue?: DatePickerValue;
65
+ defaultValue?: DatePickerValue;
66
+ }
67
+ export interface MonthPickerEmits extends BasePickerEmits {
68
+ (e: 'update:modelValue', value: DatePickerValue): void;
69
+ }
70
+ export interface WeekPickerProps extends BasePickerProps {
71
+ modelValue?: DatePickerValue;
72
+ defaultValue?: DatePickerValue;
73
+ dayStartOfWeek?: DayStartOfWeek;
74
+ }
75
+ export interface WeekPickerEmits extends BasePickerEmits {
76
+ (e: 'update:modelValue', value: DatePickerValue): void;
77
+ }
78
+ export interface DatePickerProps extends BasePickerProps {
79
+ modelValue?: DatePickerValue;
80
+ defaultValue?: DatePickerValue;
81
+ dayStartOfWeek?: DayStartOfWeek;
82
+ showTime?: boolean;
83
+ timePickerProps?: TimePickerProps;
84
+ showNowBtn?: boolean;
85
+ }
86
+ export interface DatePickerEmits extends BasePickerEmits {
87
+ (e: 'update:modelValue', value: DatePickerValue): void;
88
+ }
89
+ export type DatePickerValue = Date | string | number;
90
+ export type DatePickerPosition = 'top' | 'tl' | 'tr' | 'bottom' | 'bl' | 'br';
91
+ export type DayStartOfWeek = 0 | 1 | 2 | 3 | 4 | 5 | 6;
92
+ export type ValueFormat = 'timestamp' | 'Date' | string;
93
+ export type ShortcutsPosition = Exclude<Position, 'top'>;
94
+ export type DisabledDate = (current: Date) => boolean;
95
+ export type DisabledTime = (current: Date) => {
96
+ disabledHours?: () => number[];
97
+ disabledMinutes?: () => number[];
98
+ disabledSeconds?: () => number[];
99
+ };
100
+ export type ShortcutType = {
101
+ label: string | number | (() => VNode);
102
+ value: Date | Date[] | (() => Date | Date[]);
103
+ format: string;
104
+ };
@@ -2,10 +2,6 @@ import { defineComponent, createElementBlock, openBlock, createElementVNode, nor
2
2
  import "../node_modules/b-tween/dist/b-tween.es.js";
3
3
  import "../node_modules/dayjs/dayjs.min.js";
4
4
  import "../node_modules/tinycolor2/esm/tinycolor.js";
5
- import "../node_modules/dayjs/plugin/duration.js";
6
- import "../node_modules/dayjs/plugin/toObject.js";
7
- import "../node_modules/dayjs/plugin/isSameOrAfter.js";
8
- import "../node_modules/dayjs/plugin/isSameOrBefore.js";
9
5
  import "../_shared/utils/dom.js";
10
6
  import { isObject } from "../_shared/utils/is.js";
11
7
  import "../_shared/utils/locale.js";
@@ -2,10 +2,6 @@ import { defineComponent, createElementBlock, openBlock, normalizeStyle, normali
2
2
  import "../node_modules/b-tween/dist/b-tween.es.js";
3
3
  import "../node_modules/dayjs/dayjs.min.js";
4
4
  import "../node_modules/tinycolor2/esm/tinycolor.js";
5
- import "../node_modules/dayjs/plugin/duration.js";
6
- import "../node_modules/dayjs/plugin/toObject.js";
7
- import "../node_modules/dayjs/plugin/isSameOrAfter.js";
8
- import "../node_modules/dayjs/plugin/isSameOrBefore.js";
9
5
  import "../_shared/utils/dom.js";
10
6
  import { isObject } from "../_shared/utils/is.js";
11
7
  import "../_shared/utils/locale.js";
@@ -2,10 +2,6 @@ import { toRefs, useSlots, computed, ref, provide, inject } from "vue";
2
2
  import "../../node_modules/b-tween/dist/b-tween.es.js";
3
3
  import "../../node_modules/dayjs/dayjs.min.js";
4
4
  import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
- import "../../node_modules/dayjs/plugin/duration.js";
6
- import "../../node_modules/dayjs/plugin/toObject.js";
7
- import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
8
- import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
9
5
  import { getBreakpointValue, mediaQueryHandler } from "../../_shared/utils/dom.js";
10
6
  import { getGlobalConfig } from "../../_shared/utils/global-config.js";
11
7
  import "../../_shared/utils/locale.js";
@@ -2,10 +2,6 @@ import { defineComponent, useSlots, toRefs, computed, createElementBlock, openBl
2
2
  import "../node_modules/b-tween/dist/b-tween.es.js";
3
3
  import "../node_modules/dayjs/dayjs.min.js";
4
4
  import "../node_modules/tinycolor2/esm/tinycolor.js";
5
- import "../node_modules/dayjs/plugin/duration.js";
6
- import "../node_modules/dayjs/plugin/toObject.js";
7
- import "../node_modules/dayjs/plugin/isSameOrAfter.js";
8
- import "../node_modules/dayjs/plugin/isSameOrBefore.js";
9
5
  import { valueToPx } from "../_shared/utils/dom.js";
10
6
  import { isUndefined } from "../_shared/utils/is.js";
11
7
  import "../_shared/utils/locale.js";
@@ -2,10 +2,6 @@ import { defineComponent, toRefs, computed, createBlock, openBlock, Teleport, un
2
2
  import "../node_modules/b-tween/dist/b-tween.es.js";
3
3
  import "../node_modules/dayjs/dayjs.min.js";
4
4
  import "../node_modules/tinycolor2/esm/tinycolor.js";
5
- import "../node_modules/dayjs/plugin/duration.js";
6
- import "../node_modules/dayjs/plugin/toObject.js";
7
- import "../node_modules/dayjs/plugin/isSameOrAfter.js";
8
- import "../node_modules/dayjs/plugin/isSameOrBefore.js";
9
5
  import { valueToPx } from "../_shared/utils/dom.js";
10
6
  import { getGlobalConfig } from "../_shared/utils/global-config.js";
11
7
  import { useI18n } from "../_shared/utils/locale.js";
@@ -2,10 +2,6 @@ import { defineComponent, ref, onMounted, createBlock, openBlock, mergeProps, wi
2
2
  import "../node_modules/b-tween/dist/b-tween.es.js";
3
3
  import "../node_modules/dayjs/dayjs.min.js";
4
4
  import "../node_modules/tinycolor2/esm/tinycolor.js";
5
- import "../node_modules/dayjs/plugin/duration.js";
6
- import "../node_modules/dayjs/plugin/toObject.js";
7
- import "../node_modules/dayjs/plugin/isSameOrAfter.js";
8
- import "../node_modules/dayjs/plugin/isSameOrBefore.js";
9
5
  import "../_shared/utils/dom.js";
10
6
  import "../_shared/utils/locale.js";
11
7
  import "../_shared/utils/time.js";
@@ -17,7 +13,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17
13
  __name: "DrawerService",
18
14
  props: {
19
15
  placement: { default: "right" },
20
- title: { type: [String, Array, Function], default: "" },
16
+ title: { type: [String, Number, Array, Function], default: "" },
21
17
  mask: { type: Boolean, default: true },
22
18
  maskClosable: { type: Boolean, default: true },
23
19
  closable: { type: Boolean, default: true },
@@ -2,10 +2,6 @@ import { defineComponent, useSlots, toRefs, computed, createBlock, openBlock, un
2
2
  import "../node_modules/b-tween/dist/b-tween.es.js";
3
3
  import "../node_modules/dayjs/dayjs.min.js";
4
4
  import "../node_modules/tinycolor2/esm/tinycolor.js";
5
- import "../node_modules/dayjs/plugin/duration.js";
6
- import "../node_modules/dayjs/plugin/toObject.js";
7
- import "../node_modules/dayjs/plugin/isSameOrAfter.js";
8
- import "../node_modules/dayjs/plugin/isSameOrBefore.js";
9
5
  import { valueToPx } from "../_shared/utils/dom.js";
10
6
  import { isBoolean, isUndefined } from "../_shared/utils/is.js";
11
7
  import "../_shared/utils/locale.js";
@@ -2,10 +2,6 @@ import { defineComponent, createBlock, openBlock, unref, withCtx, createVNode, m
2
2
  import "../node_modules/b-tween/dist/b-tween.es.js";
3
3
  import "../node_modules/dayjs/dayjs.min.js";
4
4
  import "../node_modules/tinycolor2/esm/tinycolor.js";
5
- import "../node_modules/dayjs/plugin/duration.js";
6
- import "../node_modules/dayjs/plugin/toObject.js";
7
- import "../node_modules/dayjs/plugin/isSameOrAfter.js";
8
- import "../node_modules/dayjs/plugin/isSameOrBefore.js";
9
5
  import "../_shared/utils/dom.js";
10
6
  import "../_shared/utils/locale.js";
11
7
  import "../_shared/utils/time.js";
@@ -3,10 +3,6 @@ import { unrefElement } from "../node_modules/@vueuse/core/index.js";
3
3
  import "../node_modules/b-tween/dist/b-tween.es.js";
4
4
  import "../node_modules/dayjs/dayjs.min.js";
5
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
6
  import { valueToPx } from "../_shared/utils/dom.js";
11
7
  import { isBoolean, isUndefined } from "../_shared/utils/is.js";
12
8
  import { useControlValue } from "../_shared/utils/hooks.js";
@@ -2,10 +2,6 @@ import { toRefs, provide, inject } from "vue";
2
2
  import "../../node_modules/b-tween/dist/b-tween.es.js";
3
3
  import "../../node_modules/dayjs/dayjs.min.js";
4
4
  import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
- import "../../node_modules/dayjs/plugin/duration.js";
6
- import "../../node_modules/dayjs/plugin/toObject.js";
7
- import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
8
- import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
9
5
  import "../../_shared/utils/dom.js";
10
6
  import { useControlValue } from "../../_shared/utils/hooks.js";
11
7
  import "../../_shared/utils/locale.js";
@@ -2,10 +2,6 @@ import { defineComponent, toRefs, createElementBlock, openBlock, createElementVN
2
2
  import "../node_modules/b-tween/dist/b-tween.es.js";
3
3
  import "../node_modules/dayjs/dayjs.min.js";
4
4
  import "../node_modules/tinycolor2/esm/tinycolor.js";
5
- import "../node_modules/dayjs/plugin/duration.js";
6
- import "../node_modules/dayjs/plugin/toObject.js";
7
- import "../node_modules/dayjs/plugin/isSameOrAfter.js";
8
- import "../node_modules/dayjs/plugin/isSameOrBefore.js";
9
5
  import "../_shared/utils/dom.js";
10
6
  import { useI18n } from "../_shared/utils/locale.js";
11
7
  import "../_shared/utils/time.js";
@@ -2,10 +2,6 @@ import { defineComponent, createElementBlock, openBlock, normalizeStyle, unref,
2
2
  import "../node_modules/b-tween/dist/b-tween.es.js";
3
3
  import "../node_modules/dayjs/dayjs.min.js";
4
4
  import "../node_modules/tinycolor2/esm/tinycolor.js";
5
- import "../node_modules/dayjs/plugin/duration.js";
6
- import "../node_modules/dayjs/plugin/toObject.js";
7
- import "../node_modules/dayjs/plugin/isSameOrAfter.js";
8
- import "../node_modules/dayjs/plugin/isSameOrBefore.js";
9
5
  import { mediaQueryHandler, valueToPx } from "../_shared/utils/dom.js";
10
6
  import "../_shared/utils/locale.js";
11
7
  import "../_shared/utils/time.js";
@@ -2,10 +2,6 @@ import { defineComponent, toRefs, computed, createElementBlock, openBlock, norma
2
2
  import "../node_modules/b-tween/dist/b-tween.es.js";
3
3
  import "../node_modules/dayjs/dayjs.min.js";
4
4
  import "../node_modules/tinycolor2/esm/tinycolor.js";
5
- import "../node_modules/dayjs/plugin/duration.js";
6
- import "../node_modules/dayjs/plugin/toObject.js";
7
- import "../node_modules/dayjs/plugin/isSameOrAfter.js";
8
- import "../node_modules/dayjs/plugin/isSameOrBefore.js";
9
5
  import { getBreakpointValue, valueToPx } from "../_shared/utils/dom.js";
10
6
  import { isString } from "../_shared/utils/is.js";
11
7
  import "../_shared/utils/locale.js";
@@ -2,10 +2,6 @@ import { defineComponent, toRefs, computed, withDirectives, createElementBlock,
2
2
  import "../node_modules/b-tween/dist/b-tween.es.js";
3
3
  import "../node_modules/dayjs/dayjs.min.js";
4
4
  import "../node_modules/tinycolor2/esm/tinycolor.js";
5
- import "../node_modules/dayjs/plugin/duration.js";
6
- import "../node_modules/dayjs/plugin/toObject.js";
7
- import "../node_modules/dayjs/plugin/isSameOrAfter.js";
8
- import "../node_modules/dayjs/plugin/isSameOrBefore.js";
9
5
  import { getBreakpointValue, valueToPx } from "../_shared/utils/dom.js";
10
6
  import "../_shared/utils/locale.js";
11
7
  import "../_shared/utils/time.js";
@@ -2,10 +2,6 @@ import { defineComponent, toRefs, createElementBlock, openBlock, normalizeStyle,
2
2
  import "../node_modules/b-tween/dist/b-tween.es.js";
3
3
  import "../node_modules/dayjs/dayjs.min.js";
4
4
  import "../node_modules/tinycolor2/esm/tinycolor.js";
5
- import "../node_modules/dayjs/plugin/duration.js";
6
- import "../node_modules/dayjs/plugin/toObject.js";
7
- import "../node_modules/dayjs/plugin/isSameOrAfter.js";
8
- import "../node_modules/dayjs/plugin/isSameOrBefore.js";
9
5
  import { mediaQueryHandler, valueToPx } from "../_shared/utils/dom.js";
10
6
  import "../_shared/utils/locale.js";
11
7
  import "../_shared/utils/time.js";