yc-design-vue 2.3.0 → 2.3.2

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 (237) hide show
  1. package/dist/index.umd.js +1 -1
  2. package/es/Alert/index.vue.js +2 -2
  3. package/es/Avatar/Avatar.vue.js +1 -1
  4. package/es/BackTop/index.vue.js +1 -1
  5. package/es/Breadcrumb/BreadcrumbItem.vue.js +1 -1
  6. package/es/Breadcrumb/BreadcrumbMore.vue.js +1 -1
  7. package/es/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  8. package/es/Calendar/Calendar.vue.js +2 -2
  9. package/es/Carousel/CarouselArrow.vue.js +1 -1
  10. package/es/Cascader/CascaderIcon.vue.js +2 -2
  11. package/es/Cascader/CascaderOption.vue.js +1 -1
  12. package/es/Checkbox/Checkbox.vue.js +2 -2
  13. package/es/Collapse/CollapseItem.vue.js +2 -2
  14. package/es/DatePicker/DatePicker.vue.js +3 -1
  15. package/es/DatePicker/MonthPicker.vue.js +6 -4
  16. package/es/DatePicker/WeekPicker.vue.js +6 -4
  17. package/es/DatePicker/YearPicker.vue.js +6 -4
  18. package/es/DatePicker/component/Picker.vue.d.ts +5 -1
  19. package/es/DatePicker/component/Picker.vue.js +6 -3
  20. package/es/DatePicker/component/PickerHeader.vue.js +1 -1
  21. package/es/DatePicker/hooks/userPicker.d.ts +3 -2
  22. package/es/DatePicker/hooks/userPicker.js +24 -25
  23. package/es/DatePicker/type.d.ts +3 -1
  24. package/es/Drawer/Drawer.vue.js +2 -2
  25. package/es/Dropdown/DropdownButton.vue.js +1 -1
  26. package/es/Dropdown/Dsubmenu.vue.js +1 -1
  27. package/es/Empty/index.vue.js +1 -1
  28. package/es/Image/Image.vue.js +1 -1
  29. package/es/Image/ImagePreview.vue.js +1 -1
  30. package/es/Image/ImagePreviewArrow.vue.js +1 -1
  31. package/es/Image/ImagePreviewToolbar.vue.js +1 -1
  32. package/es/Input/Input.vue.js +2 -2
  33. package/es/Input/InputPassword.vue.js +2 -2
  34. package/es/Input/InputSearch.vue.js +2 -2
  35. package/es/InputNumber/InputOperaBtn.vue.js +1 -1
  36. package/es/InputTag/index.vue.js +2 -2
  37. package/es/Layout/LayoutSider.vue.js +1 -1
  38. package/es/Link/index.vue.js +1 -1
  39. package/es/Menu/Menu.vue.js +1 -1
  40. package/es/Menu/MenuEllipsis.vue.js +1 -1
  41. package/es/Menu/SubMenu.vue.js +1 -1
  42. package/es/Message/Message.vue.js +2 -2
  43. package/es/Modal/Modal.vue.js +2 -2
  44. package/es/Notification/Notification.vue.js +2 -2
  45. package/es/PageHeader/index.vue.js +2 -2
  46. package/es/Pagination/PaginationItem.vue.js +1 -1
  47. package/es/Progress/ProgressCircle.vue.js +1 -1
  48. package/es/Radio/Radio.vue.js +2 -2
  49. package/es/Rate/index.vue.js +1 -1
  50. package/es/ResizeBox/index.vue.js +1 -1
  51. package/es/Select/SelectIcon.vue.js +2 -2
  52. package/es/Spin/index.vue.js +1 -1
  53. package/es/Split/index.vue.js +1 -1
  54. package/es/Steps/Step.vue.js +1 -1
  55. package/es/Tabs/TabButton.vue.js +2 -2
  56. package/es/Tabs/Tabs.vue.js +1 -1
  57. package/es/Tag/index.vue.js +2 -2
  58. package/es/Textarea/index.vue.js +2 -2
  59. package/es/TimePicker/TimePicker.vue.d.ts +6 -6
  60. package/es/TimePicker/TimePicker.vue.js +2 -2
  61. package/es/TimePicker/TimePickerPanel.vue.d.ts +2 -2
  62. package/es/Transfer/Transfer.vue.js +1 -1
  63. package/es/Transfer/TransferPanel.vue.js +2 -2
  64. package/es/Trigger/index.vue.js +1 -1
  65. package/es/Typography/TypographyBase.vue.js +1 -1
  66. package/es/Upload/UploadButton.vue.js +1 -1
  67. package/es/Upload/UploadDrag.vue.js +1 -1
  68. package/es/Upload/UploadFileList.vue.js +2 -2
  69. package/es/Upload/UploadPictureCard.vue.js +1 -1
  70. package/es/_shared/components/IconButton/{index.vue2.js → index.vue.js} +1 -1
  71. package/es/_shared/components/IconButton/index.vue3.js +2 -2
  72. package/es/_shared/constants/index.js +1 -1
  73. package/es/_shared/icons/IconArrowDown.vue.js +1 -1
  74. package/es/_shared/icons/IconArrowRight.vue.js +1 -1
  75. package/es/_shared/icons/IconCalendar.vue2.js +1 -1
  76. package/es/_shared/icons/IconCheck.vue.js +1 -1
  77. package/es/_shared/icons/IconCheckboxChecked.vue.js +1 -1
  78. package/es/_shared/icons/IconClose.vue.js +1 -1
  79. package/es/_shared/icons/IconCopy.vue.js +1 -1
  80. package/es/_shared/icons/IconDelete.vue2.js +1 -1
  81. package/es/_shared/icons/IconDoubleLeft.vue2.js +1 -1
  82. package/es/_shared/icons/IconDoubleRight.vue2.js +1 -1
  83. package/es/_shared/icons/IconDragDot.vue.js +1 -1
  84. package/es/_shared/icons/IconEdit.vue.js +1 -1
  85. package/es/_shared/icons/IconEmpty.vue.js +1 -1
  86. package/es/_shared/icons/IconError.vue.js +1 -1
  87. package/es/_shared/icons/IconExclamation.vue2.js +1 -1
  88. package/es/_shared/icons/IconEyeClose.vue.js +1 -1
  89. package/es/_shared/icons/IconEyeOpen.vue.js +1 -1
  90. package/es/_shared/icons/IconFaceSmile.vue.js +1 -1
  91. package/es/_shared/icons/IconFile.vue2.js +1 -1
  92. package/es/_shared/icons/IconFullScreen.vue2.js +1 -1
  93. package/es/_shared/icons/IconImageClose.vue.js +1 -1
  94. package/es/_shared/icons/IconInfo.vue.js +1 -1
  95. package/es/_shared/icons/IconInfoLine.vue.js +1 -1
  96. package/es/_shared/icons/IconLink.vue.js +1 -1
  97. package/es/_shared/icons/IconLoading.vue.js +1 -1
  98. package/es/_shared/icons/IconMenuFold.vue.js +1 -1
  99. package/es/_shared/icons/IconMenuUnfold.vue.js +1 -1
  100. package/es/_shared/icons/IconMinus.vue2.js +1 -1
  101. package/es/_shared/icons/IconMore.vue.js +1 -1
  102. package/es/_shared/icons/IconOriginSize.vue2.js +1 -1
  103. package/es/_shared/icons/IconPlus.vue.js +1 -1
  104. package/es/_shared/icons/IconRight.vue.js +1 -1
  105. package/es/_shared/icons/IconRotateLeft.vue2.js +1 -1
  106. package/es/_shared/icons/IconRotateRight.vue2.js +1 -1
  107. package/es/_shared/icons/IconSearch.vue.js +1 -1
  108. package/es/_shared/icons/IconSeparator.vue2.js +1 -1
  109. package/es/_shared/icons/IconStar.vue.js +1 -1
  110. package/es/_shared/icons/IconSuccess.vue.js +1 -1
  111. package/es/_shared/icons/IconTime.vue.js +1 -1
  112. package/es/_shared/icons/IconToTop.vue.js +1 -1
  113. package/es/_shared/icons/IconUpload.vue2.js +1 -1
  114. package/es/_shared/icons/IconWarning.vue.js +1 -1
  115. package/es/_shared/icons/IconZoomIn.vue2.js +1 -1
  116. package/es/_shared/icons/IconZoomOut.vue2.js +1 -1
  117. package/es/_shared/utils/dependencies.d.ts +2 -2
  118. package/es/node_modules/dayjs/dayjs.min.js +1 -0
  119. package/lib/Alert/index.vue.js +1 -1
  120. package/lib/Avatar/Avatar.vue.js +1 -1
  121. package/lib/BackTop/index.vue.js +1 -1
  122. package/lib/Breadcrumb/BreadcrumbItem.vue.js +1 -1
  123. package/lib/Breadcrumb/BreadcrumbMore.vue.js +1 -1
  124. package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  125. package/lib/Calendar/Calendar.vue.js +1 -1
  126. package/lib/Carousel/CarouselArrow.vue.js +1 -1
  127. package/lib/Cascader/CascaderIcon.vue.js +1 -1
  128. package/lib/Cascader/CascaderOption.vue.js +1 -1
  129. package/lib/Checkbox/Checkbox.vue.js +1 -1
  130. package/lib/Collapse/CollapseItem.vue.js +1 -1
  131. package/lib/DatePicker/DatePicker.vue.js +1 -1
  132. package/lib/DatePicker/MonthPicker.vue.js +1 -1
  133. package/lib/DatePicker/WeekPicker.vue.js +1 -1
  134. package/lib/DatePicker/YearPicker.vue.js +1 -1
  135. package/lib/DatePicker/component/Picker.vue.d.ts +5 -1
  136. package/lib/DatePicker/component/Picker.vue.js +1 -1
  137. package/lib/DatePicker/component/PickerHeader.vue.js +1 -1
  138. package/lib/DatePicker/hooks/userPicker.d.ts +3 -2
  139. package/lib/DatePicker/hooks/userPicker.js +1 -1
  140. package/lib/DatePicker/type.d.ts +3 -1
  141. package/lib/Drawer/Drawer.vue.js +1 -1
  142. package/lib/Dropdown/DropdownButton.vue.js +1 -1
  143. package/lib/Dropdown/Dsubmenu.vue.js +1 -1
  144. package/lib/Empty/index.vue.js +1 -1
  145. package/lib/Image/Image.vue.js +1 -1
  146. package/lib/Image/ImagePreview.vue.js +1 -1
  147. package/lib/Image/ImagePreviewArrow.vue.js +1 -1
  148. package/lib/Image/ImagePreviewToolbar.vue.js +1 -1
  149. package/lib/Input/Input.vue.js +1 -1
  150. package/lib/Input/InputPassword.vue.js +1 -1
  151. package/lib/Input/InputSearch.vue.js +1 -1
  152. package/lib/InputNumber/InputOperaBtn.vue.js +1 -1
  153. package/lib/InputTag/index.vue.js +1 -1
  154. package/lib/Layout/LayoutSider.vue.js +1 -1
  155. package/lib/Link/index.vue.js +1 -1
  156. package/lib/Menu/Menu.vue.js +1 -1
  157. package/lib/Menu/MenuEllipsis.vue.js +1 -1
  158. package/lib/Menu/SubMenu.vue.js +1 -1
  159. package/lib/Message/Message.vue.js +1 -1
  160. package/lib/Modal/Modal.vue.js +1 -1
  161. package/lib/Notification/Notification.vue.js +1 -1
  162. package/lib/PageHeader/index.vue.js +1 -1
  163. package/lib/Pagination/PaginationItem.vue.js +1 -1
  164. package/lib/Progress/ProgressCircle.vue.js +1 -1
  165. package/lib/Radio/Radio.vue.js +1 -1
  166. package/lib/Rate/index.vue.js +1 -1
  167. package/lib/ResizeBox/index.vue.js +1 -1
  168. package/lib/Select/SelectIcon.vue.js +1 -1
  169. package/lib/Spin/index.vue.js +1 -1
  170. package/lib/Split/index.vue.js +1 -1
  171. package/lib/Steps/Step.vue.js +1 -1
  172. package/lib/Tabs/TabButton.vue.js +1 -1
  173. package/lib/Tabs/Tabs.vue.js +1 -1
  174. package/lib/Tag/index.vue.js +1 -1
  175. package/lib/Textarea/index.vue.js +1 -1
  176. package/lib/TimePicker/TimePicker.vue.d.ts +6 -6
  177. package/lib/TimePicker/TimePicker.vue.js +1 -1
  178. package/lib/TimePicker/TimePickerPanel.vue.d.ts +2 -2
  179. package/lib/Transfer/Transfer.vue.js +1 -1
  180. package/lib/Transfer/TransferPanel.vue.js +1 -1
  181. package/lib/Trigger/index.vue.js +1 -1
  182. package/lib/Typography/TypographyBase.vue.js +1 -1
  183. package/lib/Upload/UploadButton.vue.js +1 -1
  184. package/lib/Upload/UploadDrag.vue.js +1 -1
  185. package/lib/Upload/UploadFileList.vue.js +1 -1
  186. package/lib/Upload/UploadPictureCard.vue.js +1 -1
  187. package/lib/_shared/components/IconButton/index.vue.js +1 -0
  188. package/lib/_shared/components/IconButton/index.vue3.js +1 -1
  189. package/lib/_shared/constants/index.js +1 -1
  190. package/lib/_shared/icons/IconArrowDown.vue.js +1 -1
  191. package/lib/_shared/icons/IconArrowRight.vue.js +1 -1
  192. package/lib/_shared/icons/IconCalendar.vue2.js +1 -1
  193. package/lib/_shared/icons/IconCheck.vue.js +1 -1
  194. package/lib/_shared/icons/IconCheckboxChecked.vue.js +1 -1
  195. package/lib/_shared/icons/IconClose.vue.js +1 -1
  196. package/lib/_shared/icons/IconCopy.vue.js +1 -1
  197. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  198. package/lib/_shared/icons/IconDoubleLeft.vue2.js +1 -1
  199. package/lib/_shared/icons/IconDoubleRight.vue2.js +1 -1
  200. package/lib/_shared/icons/IconDragDot.vue.js +1 -1
  201. package/lib/_shared/icons/IconEdit.vue.js +1 -1
  202. package/lib/_shared/icons/IconEmpty.vue.js +1 -1
  203. package/lib/_shared/icons/IconError.vue.js +1 -1
  204. package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
  205. package/lib/_shared/icons/IconEyeClose.vue.js +1 -1
  206. package/lib/_shared/icons/IconEyeOpen.vue.js +1 -1
  207. package/lib/_shared/icons/IconFaceSmile.vue.js +1 -1
  208. package/lib/_shared/icons/IconFile.vue2.js +1 -1
  209. package/lib/_shared/icons/IconFullScreen.vue2.js +1 -1
  210. package/lib/_shared/icons/IconImageClose.vue.js +1 -1
  211. package/lib/_shared/icons/IconInfo.vue.js +1 -1
  212. package/lib/_shared/icons/IconInfoLine.vue.js +1 -1
  213. package/lib/_shared/icons/IconLink.vue.js +1 -1
  214. package/lib/_shared/icons/IconLoading.vue.js +1 -1
  215. package/lib/_shared/icons/IconMenuFold.vue.js +1 -1
  216. package/lib/_shared/icons/IconMenuUnfold.vue.js +1 -1
  217. package/lib/_shared/icons/IconMinus.vue2.js +1 -1
  218. package/lib/_shared/icons/IconMore.vue.js +1 -1
  219. package/lib/_shared/icons/IconOriginSize.vue2.js +1 -1
  220. package/lib/_shared/icons/IconPlus.vue.js +1 -1
  221. package/lib/_shared/icons/IconRight.vue.js +1 -1
  222. package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
  223. package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
  224. package/lib/_shared/icons/IconSearch.vue.js +1 -1
  225. package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
  226. package/lib/_shared/icons/IconStar.vue.js +1 -1
  227. package/lib/_shared/icons/IconSuccess.vue.js +1 -1
  228. package/lib/_shared/icons/IconTime.vue.js +1 -1
  229. package/lib/_shared/icons/IconToTop.vue.js +1 -1
  230. package/lib/_shared/icons/IconUpload.vue2.js +1 -1
  231. package/lib/_shared/icons/IconWarning.vue.js +1 -1
  232. package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
  233. package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
  234. package/lib/_shared/utils/dependencies.d.ts +2 -2
  235. package/lib/node_modules/dayjs/dayjs.min.js +1 -1
  236. package/package.json +1 -1
  237. package/lib/_shared/components/IconButton/index.vue2.js +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../_virtual/_commonjsHelpers.js"),e=require("../../_virtual/dayjs.min.js");var r;r=e.__module,t.commonjsGlobal,r.exports=function(){var t=1e3,e=6e4,r=36e5,n="millisecond",s="second",i="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},M=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},y={s:M,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),s=r%60;return(e<=0?"+":"-")+M(n,2,"0")+":"+M(s,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),s=e.clone().add(n,c),i=r-s<0,u=e.clone().add(n+(i?-1:1),c);return+(-(n+(r-s)/(i?s-u:u-s))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:i,s:s,ms:n,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=v;var p="$isDayjsObject",S=function(t){return t instanceof b||!(!t||!t[p])},w=function t(e,r,n){var s;if(!e)return g;if("string"==typeof e){var i=e.toLowerCase();D[i]&&(s=i),r&&(D[i]=r,s=i);var u=e.split("-");if(!s&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,s=a}return!n&&s&&(g=s),s||!n&&g},_=function(t,e){if(S(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new b(r)},O=y;O.l=w,O.i=S,O.w=function(t,e){return _(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var b=function(){function v(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var M=v.prototype;return M.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match($);if(n){var s=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(e)}(t),this.init()},M.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},M.$utils=function(){return O},M.isValid=function(){return!(this.$d.toString()===l)},M.isSame=function(t,e){var r=_(t);return this.startOf(e)<=r&&r<=this.endOf(e)},M.isAfter=function(t,e){return _(t)<this.startOf(e)},M.isBefore=function(t,e){return this.endOf(e)<_(t)},M.$g=function(t,e,r){return O.u(t)?this[e]:this.set(r,t)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(t,e){var r=this,n=!!O.u(e)||e,f=O.p(t),l=function(t,e){var s=O.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return n?s:s.endOf(a)},$=function(t,e){return O.w(r.toDate()[t].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},m=this.$W,v=this.$M,M=this.$D,y="set"+(this.$u?"UTC":"");switch(f){case h:return n?l(1,0):l(31,11);case c:return n?l(1,v):l(0,v+1);case o:var g=this.$locale().weekStart||0,D=(m<g?m+7:m)-g;return l(n?M-D:M+(6-D),v);case a:case d:return $(y+"Hours",0);case u:return $(y+"Minutes",1);case i:return $(y+"Seconds",2);case s:return $(y+"Milliseconds",3);default:return this.clone()}},M.endOf=function(t){return this.startOf(t,!1)},M.$set=function(t,e){var r,o=O.p(t),f="set"+(this.$u?"UTC":""),l=(r={},r[a]=f+"Date",r[d]=f+"Date",r[c]=f+"Month",r[h]=f+"FullYear",r[u]=f+"Hours",r[i]=f+"Minutes",r[s]=f+"Seconds",r[n]=f+"Milliseconds",r)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var m=this.clone().set(d,1);m.$d[l]($),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},M.set=function(t,e){return this.clone().$set(t,e)},M.get=function(t){return this[O.p(t)]()},M.add=function(n,f){var d,l=this;n=Number(n);var $=O.p(f),m=function(t){var e=_(l);return O.w(e.date(e.date()+Math.round(t*n)),l)};if($===c)return this.set(c,this.$M+n);if($===h)return this.set(h,this.$y+n);if($===a)return m(1);if($===o)return m(7);var v=(d={},d[i]=e,d[u]=r,d[s]=t,d)[$]||1,M=this.$d.getTime()+n*v;return O.w(M,this)},M.subtract=function(t,e){return this.add(-1*t,e)},M.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||l;var n=t||"YYYY-MM-DDTHH:mm:ssZ",s=O.z(this),i=this.$H,u=this.$m,a=this.$M,o=r.weekdays,c=r.months,f=r.meridiem,h=function(t,r,s,i){return t&&(t[r]||t(e,n))||s[r].slice(0,i)},d=function(t){return O.s(i%12||12,t,"0")},$=f||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(m,function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return O.s(e.$y,4,"0");case"M":return a+1;case"MM":return O.s(a+1,2,"0");case"MMM":return h(r.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return O.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(r.weekdaysMin,e.$W,o,2);case"ddd":return h(r.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(i);case"HH":return O.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(i,u,!0);case"A":return $(i,u,!1);case"m":return String(u);case"mm":return O.s(u,2,"0");case"s":return String(e.$s);case"ss":return O.s(e.$s,2,"0");case"SSS":return O.s(e.$ms,3,"0");case"Z":return s}return null}(t)||s.replace(":","")})},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(n,d,l){var $,m=this,v=O.p(d),M=_(n),y=(M.utcOffset()-this.utcOffset())*e,g=this-M,D=function(){return O.m(m,M)};switch(v){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-y)/6048e5;break;case a:$=(g-y)/864e5;break;case u:$=g/r;break;case i:$=g/e;break;case s:$=g/t;break;default:$=g}return l?$:O.a($)},M.daysInMonth=function(){return this.endOf(c).$D},M.$locale=function(){return D[this.$L]},M.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=w(t,e,!0);return n&&(r.$L=n),r},M.clone=function(){return O.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},v}(),k=b.prototype;return _.prototype=k,[["$ms",n],["$s",s],["$m",i],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach(function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),_.extend=function(t,e){return t.$i||(t(e,b,_),t.$i=!0),_},_.locale=w,_.isDayjs=S,_.unix=function(t){return _(1e3*t)},_.en=D[g],_.Ls=D,_.p={},_}();var n=e.__module.exports;const s=t.getDefaultExportFromCjs(n);exports.default=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../../_virtual/_commonjsHelpers.js"),e=require("../../_virtual/dayjs.min.js");var r;r=e.__module,t.commonjsGlobal,r.exports=function(){var t=1e3,e=6e4,r=36e5,n="millisecond",s="second",i="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},M=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},y={s:M,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),s=r%60;return(e<=0?"+":"-")+M(n,2,"0")+":"+M(s,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),s=e.clone().add(n,c),i=r-s<0,u=e.clone().add(n+(i?-1:1),c);return+(-(n+(r-s)/(i?s-u:u-s))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:i,s:s,ms:n,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=v;var p="$isDayjsObject",S=function(t){return t instanceof b||!(!t||!t[p])},_=function t(e,r,n){var s;if(!e)return g;if("string"==typeof e){var i=e.toLowerCase();D[i]&&(s=i),r&&(D[i]=r,s=i);var u=e.split("-");if(!s&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,s=a}return!n&&s&&(g=s),s||!n&&g},w=function(t,e){if(S(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new b(r)},O=y;O.l=_,O.i=S,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var b=function(){function v(t){this.$L=_(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var M=v.prototype;return M.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match($);if(n){var s=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(e)}(t),this.init()},M.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},M.$utils=function(){return O},M.isValid=function(){return!(this.$d.toString()===l)},M.isSame=function(t,e){var r=w(t);return this.startOf(e)<=r&&r<=this.endOf(e)},M.isAfter=function(t,e){return w(t)<this.startOf(e)},M.isBefore=function(t,e){return this.endOf(e)<w(t)},M.$g=function(t,e,r){return O.u(t)?this[e]:this.set(r,t)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(t,e){var r=this,n=!!O.u(e)||e,f=O.p(t),l=function(t,e){var s=O.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return n?s:s.endOf(a)},$=function(t,e){return O.w(r.toDate()[t].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},m=this.$W,v=this.$M,M=this.$D,y="set"+(this.$u?"UTC":"");switch(f){case h:return n?l(1,0):l(31,11);case c:return n?l(1,v):l(0,v+1);case o:var g=this.$locale().weekStart||0,D=(m<g?m+7:m)-g;return l(n?M-D:M+(6-D),v);case a:case d:return $(y+"Hours",0);case u:return $(y+"Minutes",1);case i:return $(y+"Seconds",2);case s:return $(y+"Milliseconds",3);default:return this.clone()}},M.endOf=function(t){return this.startOf(t,!1)},M.$set=function(t,e){var r,o=O.p(t),f="set"+(this.$u?"UTC":""),l=(r={},r[a]=f+"Date",r[d]=f+"Date",r[c]=f+"Month",r[h]=f+"FullYear",r[u]=f+"Hours",r[i]=f+"Minutes",r[s]=f+"Seconds",r[n]=f+"Milliseconds",r)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var m=this.clone().set(d,1);m.$d[l]($),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},M.set=function(t,e){return this.clone().$set(t,e)},M.get=function(t){return this[O.p(t)]()},M.add=function(n,f){var d,l=this;n=Number(n);var $=O.p(f),m=function(t){var e=w(l);return O.w(e.date(e.date()+Math.round(t*n)),l)};if($===c)return this.set(c,this.$M+n);if($===h)return this.set(h,this.$y+n);if($===a)return m(1);if($===o)return m(7);var v=(d={},d[i]=e,d[u]=r,d[s]=t,d)[$]||1,M=this.$d.getTime()+n*v;return O.w(M,this)},M.subtract=function(t,e){return this.add(-1*t,e)},M.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||l;var n=t||"YYYY-MM-DDTHH:mm:ssZ",s=O.z(this),i=this.$H,u=this.$m,a=this.$M,o=r.weekdays,c=r.months,f=r.meridiem,h=function(t,r,s,i){return t&&(t[r]||t(e,n))||s[r].slice(0,i)},d=function(t){return O.s(i%12||12,t,"0")},$=f||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(m,function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return O.s(e.$y,4,"0");case"M":return a+1;case"MM":return O.s(a+1,2,"0");case"MMM":return h(r.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return O.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(r.weekdaysMin,e.$W,o,2);case"ddd":return h(r.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(i);case"HH":return O.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(i,u,!0);case"A":return $(i,u,!1);case"m":return String(u);case"mm":return O.s(u,2,"0");case"s":return String(e.$s);case"ss":return O.s(e.$s,2,"0");case"SSS":return O.s(e.$ms,3,"0");case"Z":return s}return null}(t)||s.replace(":","")})},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(n,d,l){var $,m=this,v=O.p(d),M=w(n),y=(M.utcOffset()-this.utcOffset())*e,g=this-M,D=function(){return O.m(m,M)};switch(v){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-y)/6048e5;break;case a:$=(g-y)/864e5;break;case u:$=g/r;break;case i:$=g/e;break;case s:$=g/t;break;default:$=g}return l?$:O.a($)},M.daysInMonth=function(){return this.endOf(c).$D},M.$locale=function(){return D[this.$L]},M.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=_(t,e,!0);return n&&(r.$L=n),r},M.clone=function(){return O.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},v}(),x=b.prototype;return w.prototype=x,[["$ms",n],["$s",s],["$m",i],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach(function(t){x[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),w.extend=function(t,e){return t.$i||(t(e,b,w),t.$i=!0),w},w.locale=_,w.isDayjs=S,w.unix=function(t){return w(1e3*t)},w.en=D[g],w.Ls=D,w.p={},w}();var n=e.__module.exports;const s=t.getDefaultExportFromCjs(n);exports.dayjs_minExports=n,exports.default=s;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yc-design-vue",
3
3
  "private": false,
4
- "version": "2.3.0",
4
+ "version": "2.3.2",
5
5
  "type": "module",
6
6
  "description": "A Vue 3 component library.",
7
7
  "keywords": [
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../node_modules/b-tween/dist/b-tween.es.js"),require("../../../node_modules/dayjs/dayjs.min.js"),require("../../../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../../utils/dom.js");require("../../utils/locale.js"),require("../../utils/time.js"),/* empty css */,/* empty css */;/* empty css */const t=require("../../icons/IconClose.vue.js"),s=e.defineComponent({__name:"index",props:{size:{default:12},hoverSize:{default:20},disabled:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!0},preventFocus:{type:Boolean,default:!0}},setup(s){const n=s,{hoverSize:l}=e.toRefs(n),u=e.computed(()=>o.valueToPx(l.value));return(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-icon-button",{"yc-icon-button-disabled":o.disabled,"yc-icon-button-hoverable":o.hoverable}]),style:e.normalizeStyle({"--icon-btn-size":u.value}),onMousedown:s[0]||(s[0]=e=>o.preventFocus&&e.preventDefault())},[e.renderSlot(o.$slots,"default",{},()=>[e.createVNode(e.unref(t.default),{size:o.size},null,8,["size"])])],38))}});exports.default=s;