beyond-webui 1.1.36 → 1.1.38

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 (451) hide show
  1. package/dist/index.full.js +2 -2
  2. package/dist/index.full.min.js +2 -2
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +2 -2
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +2 -2
  7. package/es/components/affix/index.mjs +2 -2
  8. package/es/components/affix/src/affix.mjs +26 -117
  9. package/es/components/affix/src/affix.mjs.map +1 -1
  10. package/es/components/affix/src/affix2.mjs +117 -26
  11. package/es/components/affix/src/affix2.mjs.map +1 -1
  12. package/es/components/alert/index.mjs +2 -2
  13. package/es/components/alert/src/alert.mjs +96 -36
  14. package/es/components/alert/src/alert.mjs.map +1 -1
  15. package/es/components/alert/src/alert2.mjs +36 -96
  16. package/es/components/alert/src/alert2.mjs.map +1 -1
  17. package/es/components/avatar/index.mjs +2 -2
  18. package/es/components/avatar/src/avatar.mjs +32 -67
  19. package/es/components/avatar/src/avatar.mjs.map +1 -1
  20. package/es/components/avatar/src/avatar2.mjs +67 -32
  21. package/es/components/avatar/src/avatar2.mjs.map +1 -1
  22. package/es/components/button/index.mjs +3 -3
  23. package/es/components/button/src/button-group.mjs +6 -30
  24. package/es/components/button/src/button-group.mjs.map +1 -1
  25. package/es/components/button/src/button-group2.mjs +30 -6
  26. package/es/components/button/src/button-group2.mjs.map +1 -1
  27. package/es/components/button/src/button.mjs +76 -57
  28. package/es/components/button/src/button.mjs.map +1 -1
  29. package/es/components/button/src/button2.mjs +57 -76
  30. package/es/components/button/src/button2.mjs.map +1 -1
  31. package/es/components/calendar/src/calendar.mjs +1 -1
  32. package/es/components/calendar/src/date-table.mjs +87 -33
  33. package/es/components/calendar/src/date-table.mjs.map +1 -1
  34. package/es/components/calendar/src/date-table2.mjs +33 -87
  35. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  36. package/es/components/calendar/src/use-date-table.mjs +1 -1
  37. package/es/components/card/index.mjs +2 -2
  38. package/es/components/card/src/card.mjs +35 -16
  39. package/es/components/card/src/card.mjs.map +1 -1
  40. package/es/components/card/src/card2.mjs +16 -35
  41. package/es/components/card/src/card2.mjs.map +1 -1
  42. package/es/components/carousel/index.mjs +2 -2
  43. package/es/components/carousel/src/carousel-item.mjs +8 -63
  44. package/es/components/carousel/src/carousel-item.mjs.map +1 -1
  45. package/es/components/carousel/src/carousel-item2.mjs +63 -8
  46. package/es/components/carousel/src/carousel-item2.mjs.map +1 -1
  47. package/es/components/cascader-panel/src/index.mjs +1 -1
  48. package/es/components/cascader-panel/src/menu.mjs +1 -1
  49. package/es/components/cascader-panel/src/node.mjs +116 -209
  50. package/es/components/cascader-panel/src/node.mjs.map +1 -1
  51. package/es/components/cascader-panel/src/node2.mjs +209 -116
  52. package/es/components/cascader-panel/src/node2.mjs.map +1 -1
  53. package/es/components/cascader-panel/src/store.mjs +1 -1
  54. package/es/components/check-tag/index.mjs +2 -2
  55. package/es/components/check-tag/src/check-tag.mjs +30 -12
  56. package/es/components/check-tag/src/check-tag.mjs.map +1 -1
  57. package/es/components/check-tag/src/check-tag2.mjs +12 -30
  58. package/es/components/check-tag/src/check-tag2.mjs.map +1 -1
  59. package/es/components/checkbox/index.mjs +2 -2
  60. package/es/components/checkbox/src/checkbox-button.mjs +1 -1
  61. package/es/components/checkbox/src/checkbox.mjs +117 -49
  62. package/es/components/checkbox/src/checkbox.mjs.map +1 -1
  63. package/es/components/checkbox/src/checkbox2.mjs +49 -117
  64. package/es/components/checkbox/src/checkbox2.mjs.map +1 -1
  65. package/es/components/collection/index.mjs +1 -1
  66. package/es/components/collection/src/collection.mjs +62 -10
  67. package/es/components/collection/src/collection.mjs.map +1 -1
  68. package/es/components/collection/src/collection2.mjs +10 -62
  69. package/es/components/collection/src/collection2.mjs.map +1 -1
  70. package/es/components/color-picker/index.mjs +2 -2
  71. package/es/components/color-picker/src/color-picker.mjs +38 -321
  72. package/es/components/color-picker/src/color-picker.mjs.map +1 -1
  73. package/es/components/color-picker/src/color-picker2.mjs +321 -38
  74. package/es/components/color-picker/src/color-picker2.mjs.map +1 -1
  75. package/es/components/color-picker/src/components/predefine.mjs +1 -1
  76. package/es/components/descriptions/src/description2.mjs +1 -1
  77. package/es/components/descriptions/src/descriptions-row.mjs +64 -7
  78. package/es/components/descriptions/src/descriptions-row.mjs.map +1 -1
  79. package/es/components/descriptions/src/descriptions-row2.mjs +7 -64
  80. package/es/components/descriptions/src/descriptions-row2.mjs.map +1 -1
  81. package/es/components/divider/index.mjs +2 -2
  82. package/es/components/divider/src/divider.mjs +35 -17
  83. package/es/components/divider/src/divider.mjs.map +1 -1
  84. package/es/components/divider/src/divider2.mjs +17 -35
  85. package/es/components/divider/src/divider2.mjs.map +1 -1
  86. package/es/components/dropdown/src/dropdown-item-impl.mjs +2 -2
  87. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  88. package/es/components/dropdown/src/dropdown.mjs +1 -1
  89. package/es/components/dropdown/src/dropdown2.mjs +1 -1
  90. package/es/components/form/index.mjs +4 -4
  91. package/es/components/form/src/form-item.mjs +317 -43
  92. package/es/components/form/src/form-item.mjs.map +1 -1
  93. package/es/components/form/src/form-item2.mjs +43 -317
  94. package/es/components/form/src/form-item2.mjs.map +1 -1
  95. package/es/components/form/src/form.mjs +55 -152
  96. package/es/components/form/src/form.mjs.map +1 -1
  97. package/es/components/form/src/form2.mjs +152 -55
  98. package/es/components/form/src/form2.mjs.map +1 -1
  99. package/es/components/icon/index.mjs +2 -2
  100. package/es/components/icon/src/icon.mjs +36 -8
  101. package/es/components/icon/src/icon.mjs.map +1 -1
  102. package/es/components/icon/src/icon2.mjs +8 -36
  103. package/es/components/icon/src/icon2.mjs.map +1 -1
  104. package/es/components/image-viewer/index.mjs +2 -2
  105. package/es/components/image-viewer/src/image-viewer.mjs +396 -39
  106. package/es/components/image-viewer/src/image-viewer.mjs.map +1 -1
  107. package/es/components/image-viewer/src/image-viewer2.mjs +39 -396
  108. package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
  109. package/es/components/index.mjs +28 -28
  110. package/es/components/input-number/index.mjs +2 -2
  111. package/es/components/input-number/src/input-number.mjs +311 -58
  112. package/es/components/input-number/src/input-number.mjs.map +1 -1
  113. package/es/components/input-number/src/input-number2.mjs +58 -311
  114. package/es/components/input-number/src/input-number2.mjs.map +1 -1
  115. package/es/components/page-header/index.mjs +2 -2
  116. package/es/components/page-header/src/page-header.mjs +103 -17
  117. package/es/components/page-header/src/page-header.mjs.map +1 -1
  118. package/es/components/page-header/src/page-header2.mjs +17 -103
  119. package/es/components/page-header/src/page-header2.mjs.map +1 -1
  120. package/es/components/pagination/src/components/next.mjs +19 -58
  121. package/es/components/pagination/src/components/next.mjs.map +1 -1
  122. package/es/components/pagination/src/components/next2.mjs +58 -19
  123. package/es/components/pagination/src/components/next2.mjs.map +1 -1
  124. package/es/components/pagination/src/components/pager.mjs +17 -214
  125. package/es/components/pagination/src/components/pager.mjs.map +1 -1
  126. package/es/components/pagination/src/components/pager2.mjs +214 -17
  127. package/es/components/pagination/src/components/pager2.mjs.map +1 -1
  128. package/es/components/pagination/src/components/total.mjs +7 -28
  129. package/es/components/pagination/src/components/total.mjs.map +1 -1
  130. package/es/components/pagination/src/components/total2.mjs +28 -7
  131. package/es/components/pagination/src/components/total2.mjs.map +1 -1
  132. package/es/components/pagination/src/pagination.mjs +3 -3
  133. package/es/components/popconfirm/index.mjs +2 -2
  134. package/es/components/popconfirm/src/popconfirm.mjs +110 -47
  135. package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
  136. package/es/components/popconfirm/src/popconfirm2.mjs +47 -110
  137. package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
  138. package/es/components/popover/index.mjs +2 -2
  139. package/es/components/popover/src/popover.mjs +111 -66
  140. package/es/components/popover/src/popover.mjs.map +1 -1
  141. package/es/components/popover/src/popover2.mjs +66 -111
  142. package/es/components/popover/src/popover2.mjs.map +1 -1
  143. package/es/components/popper/index.mjs +2 -2
  144. package/es/components/popper/src/popper.mjs +32 -25
  145. package/es/components/popper/src/popper.mjs.map +1 -1
  146. package/es/components/popper/src/popper2.mjs +25 -32
  147. package/es/components/popper/src/popper2.mjs.map +1 -1
  148. package/es/components/radio/index.mjs +2 -2
  149. package/es/components/radio/src/radio-button.mjs +64 -9
  150. package/es/components/radio/src/radio-button.mjs.map +1 -1
  151. package/es/components/radio/src/radio-button2.mjs +9 -64
  152. package/es/components/radio/src/radio-button2.mjs.map +1 -1
  153. package/es/components/result/index.mjs +2 -2
  154. package/es/components/result/src/result.mjs +29 -63
  155. package/es/components/result/src/result.mjs.map +1 -1
  156. package/es/components/result/src/result2.mjs +63 -29
  157. package/es/components/result/src/result2.mjs.map +1 -1
  158. package/es/components/roving-focus-group/index.mjs +3 -3
  159. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  160. package/es/components/roving-focus-group/src/roving-focus-group.mjs +29 -27
  161. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  162. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +27 -29
  163. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  164. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  165. package/es/components/row/index.mjs +2 -2
  166. package/es/components/row/src/row.mjs +30 -45
  167. package/es/components/row/src/row.mjs.map +1 -1
  168. package/es/components/row/src/row2.mjs +45 -30
  169. package/es/components/row/src/row2.mjs.map +1 -1
  170. package/es/components/scrollbar/src/thumb.mjs +1 -1
  171. package/es/components/scrollbar/src/thumb.mjs.map +1 -1
  172. package/es/components/skeleton/index.mjs +4 -4
  173. package/es/components/skeleton/src/skeleton-item.mjs +18 -23
  174. package/es/components/skeleton/src/skeleton-item.mjs.map +1 -1
  175. package/es/components/skeleton/src/skeleton-item2.mjs +23 -18
  176. package/es/components/skeleton/src/skeleton-item2.mjs.map +1 -1
  177. package/es/components/skeleton/src/skeleton.mjs +49 -22
  178. package/es/components/skeleton/src/skeleton.mjs.map +1 -1
  179. package/es/components/skeleton/src/skeleton2.mjs +22 -49
  180. package/es/components/skeleton/src/skeleton2.mjs.map +1 -1
  181. package/es/components/slider/index.mjs +2 -2
  182. package/es/components/slider/src/button.mjs +21 -93
  183. package/es/components/slider/src/button.mjs.map +1 -1
  184. package/es/components/slider/src/button2.mjs +93 -21
  185. package/es/components/slider/src/button2.mjs.map +1 -1
  186. package/es/components/slider/src/slider.mjs +233 -91
  187. package/es/components/slider/src/slider.mjs.map +1 -1
  188. package/es/components/slider/src/slider2.mjs +91 -233
  189. package/es/components/slider/src/slider2.mjs.map +1 -1
  190. package/es/components/steps/index.mjs +2 -2
  191. package/es/components/steps/src/item.mjs +188 -19
  192. package/es/components/steps/src/item.mjs.map +1 -1
  193. package/es/components/steps/src/item2.mjs +19 -188
  194. package/es/components/steps/src/item2.mjs.map +1 -1
  195. package/es/components/table/src/table-header/event-helper.mjs +1 -1
  196. package/es/components/table/src/table-header/event-helper.mjs.map +1 -1
  197. package/es/components/tabs/index.mjs +1 -1
  198. package/es/components/tabs/src/tab-bar.mjs +75 -7
  199. package/es/components/tabs/src/tab-bar.mjs.map +1 -1
  200. package/es/components/tabs/src/tab-bar2.mjs +7 -75
  201. package/es/components/tabs/src/tab-bar2.mjs.map +1 -1
  202. package/es/components/tabs/src/tab-nav.mjs +1 -1
  203. package/es/components/tooltip/src/tooltip.mjs +1 -1
  204. package/es/components/tooltip-v2/index.mjs +3 -3
  205. package/es/components/tooltip-v2/src/root.mjs +17 -80
  206. package/es/components/tooltip-v2/src/root.mjs.map +1 -1
  207. package/es/components/tooltip-v2/src/root2.mjs +80 -17
  208. package/es/components/tooltip-v2/src/root2.mjs.map +1 -1
  209. package/es/components/tooltip-v2/src/tooltip.mjs +73 -20
  210. package/es/components/tooltip-v2/src/tooltip.mjs.map +1 -1
  211. package/es/components/tooltip-v2/src/tooltip2.mjs +20 -73
  212. package/es/components/tooltip-v2/src/tooltip2.mjs.map +1 -1
  213. package/es/components/transfer/src/composables/use-check.mjs +1 -1
  214. package/es/components/transfer/src/transfer-panel.mjs +128 -19
  215. package/es/components/transfer/src/transfer-panel.mjs.map +1 -1
  216. package/es/components/transfer/src/transfer-panel2.mjs +19 -128
  217. package/es/components/transfer/src/transfer-panel2.mjs.map +1 -1
  218. package/es/components/transfer/src/transfer2.mjs +1 -1
  219. package/es/components/upload/index.mjs +2 -2
  220. package/es/components/upload/src/upload-content.mjs +1 -1
  221. package/es/components/upload/src/upload-content2.mjs +1 -1
  222. package/es/components/upload/src/upload-list.mjs +1 -1
  223. package/es/components/upload/src/upload.mjs +105 -119
  224. package/es/components/upload/src/upload.mjs.map +1 -1
  225. package/es/components/upload/src/upload2.mjs +119 -105
  226. package/es/components/upload/src/upload2.mjs.map +1 -1
  227. package/es/components/upload/src/use-handlers.mjs +1 -1
  228. package/es/index.mjs +28 -28
  229. package/lib/components/affix/index.js +2 -2
  230. package/lib/components/affix/src/affix.js +27 -117
  231. package/lib/components/affix/src/affix.js.map +1 -1
  232. package/lib/components/affix/src/affix2.js +117 -27
  233. package/lib/components/affix/src/affix2.js.map +1 -1
  234. package/lib/components/alert/index.js +2 -2
  235. package/lib/components/alert/src/alert.js +95 -37
  236. package/lib/components/alert/src/alert.js.map +1 -1
  237. package/lib/components/alert/src/alert2.js +37 -95
  238. package/lib/components/alert/src/alert2.js.map +1 -1
  239. package/lib/components/avatar/index.js +2 -2
  240. package/lib/components/avatar/src/avatar.js +33 -67
  241. package/lib/components/avatar/src/avatar.js.map +1 -1
  242. package/lib/components/avatar/src/avatar2.js +67 -33
  243. package/lib/components/avatar/src/avatar2.js.map +1 -1
  244. package/lib/components/button/index.js +3 -3
  245. package/lib/components/button/src/button-group.js +6 -30
  246. package/lib/components/button/src/button-group.js.map +1 -1
  247. package/lib/components/button/src/button-group2.js +30 -6
  248. package/lib/components/button/src/button-group2.js.map +1 -1
  249. package/lib/components/button/src/button.js +76 -60
  250. package/lib/components/button/src/button.js.map +1 -1
  251. package/lib/components/button/src/button2.js +60 -76
  252. package/lib/components/button/src/button2.js.map +1 -1
  253. package/lib/components/calendar/src/calendar.js +1 -1
  254. package/lib/components/calendar/src/date-table.js +87 -37
  255. package/lib/components/calendar/src/date-table.js.map +1 -1
  256. package/lib/components/calendar/src/date-table2.js +37 -87
  257. package/lib/components/calendar/src/date-table2.js.map +1 -1
  258. package/lib/components/calendar/src/use-date-table.js +1 -1
  259. package/lib/components/card/index.js +2 -2
  260. package/lib/components/card/src/card.js +35 -16
  261. package/lib/components/card/src/card.js.map +1 -1
  262. package/lib/components/card/src/card2.js +16 -35
  263. package/lib/components/card/src/card2.js.map +1 -1
  264. package/lib/components/carousel/index.js +2 -2
  265. package/lib/components/carousel/src/carousel-item.js +8 -63
  266. package/lib/components/carousel/src/carousel-item.js.map +1 -1
  267. package/lib/components/carousel/src/carousel-item2.js +63 -8
  268. package/lib/components/carousel/src/carousel-item2.js.map +1 -1
  269. package/lib/components/cascader-panel/src/index.js +1 -1
  270. package/lib/components/cascader-panel/src/menu.js +1 -1
  271. package/lib/components/cascader-panel/src/node.js +116 -209
  272. package/lib/components/cascader-panel/src/node.js.map +1 -1
  273. package/lib/components/cascader-panel/src/node2.js +209 -116
  274. package/lib/components/cascader-panel/src/node2.js.map +1 -1
  275. package/lib/components/cascader-panel/src/store.js +1 -1
  276. package/lib/components/check-tag/index.js +2 -2
  277. package/lib/components/check-tag/src/check-tag.js +30 -13
  278. package/lib/components/check-tag/src/check-tag.js.map +1 -1
  279. package/lib/components/check-tag/src/check-tag2.js +13 -30
  280. package/lib/components/check-tag/src/check-tag2.js.map +1 -1
  281. package/lib/components/checkbox/index.js +2 -2
  282. package/lib/components/checkbox/src/checkbox-button.js +1 -1
  283. package/lib/components/checkbox/src/checkbox.js +117 -50
  284. package/lib/components/checkbox/src/checkbox.js.map +1 -1
  285. package/lib/components/checkbox/src/checkbox2.js +50 -117
  286. package/lib/components/checkbox/src/checkbox2.js.map +1 -1
  287. package/lib/components/collection/index.js +1 -1
  288. package/lib/components/collection/src/collection.js +62 -9
  289. package/lib/components/collection/src/collection.js.map +1 -1
  290. package/lib/components/collection/src/collection2.js +9 -62
  291. package/lib/components/collection/src/collection2.js.map +1 -1
  292. package/lib/components/color-picker/index.js +2 -2
  293. package/lib/components/color-picker/src/color-picker.js +38 -319
  294. package/lib/components/color-picker/src/color-picker.js.map +1 -1
  295. package/lib/components/color-picker/src/color-picker2.js +319 -38
  296. package/lib/components/color-picker/src/color-picker2.js.map +1 -1
  297. package/lib/components/color-picker/src/components/predefine.js +1 -1
  298. package/lib/components/descriptions/src/description2.js +1 -1
  299. package/lib/components/descriptions/src/descriptions-row.js +64 -7
  300. package/lib/components/descriptions/src/descriptions-row.js.map +1 -1
  301. package/lib/components/descriptions/src/descriptions-row2.js +7 -64
  302. package/lib/components/descriptions/src/descriptions-row2.js.map +1 -1
  303. package/lib/components/divider/index.js +2 -2
  304. package/lib/components/divider/src/divider.js +35 -17
  305. package/lib/components/divider/src/divider.js.map +1 -1
  306. package/lib/components/divider/src/divider2.js +17 -35
  307. package/lib/components/divider/src/divider2.js.map +1 -1
  308. package/lib/components/dropdown/src/dropdown-item-impl.js +2 -2
  309. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  310. package/lib/components/dropdown/src/dropdown.js +1 -1
  311. package/lib/components/dropdown/src/dropdown2.js +1 -1
  312. package/lib/components/form/index.js +4 -4
  313. package/lib/components/form/src/form-item.js +321 -44
  314. package/lib/components/form/src/form-item.js.map +1 -1
  315. package/lib/components/form/src/form-item2.js +44 -321
  316. package/lib/components/form/src/form-item2.js.map +1 -1
  317. package/lib/components/form/src/form.js +55 -151
  318. package/lib/components/form/src/form.js.map +1 -1
  319. package/lib/components/form/src/form2.js +151 -55
  320. package/lib/components/form/src/form2.js.map +1 -1
  321. package/lib/components/icon/index.js +2 -2
  322. package/lib/components/icon/src/icon.js +36 -8
  323. package/lib/components/icon/src/icon.js.map +1 -1
  324. package/lib/components/icon/src/icon2.js +8 -36
  325. package/lib/components/icon/src/icon2.js.map +1 -1
  326. package/lib/components/image-viewer/index.js +2 -2
  327. package/lib/components/image-viewer/src/image-viewer.js +396 -40
  328. package/lib/components/image-viewer/src/image-viewer.js.map +1 -1
  329. package/lib/components/image-viewer/src/image-viewer2.js +40 -396
  330. package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
  331. package/lib/components/index.js +28 -28
  332. package/lib/components/input-number/index.js +2 -2
  333. package/lib/components/input-number/src/input-number.js +309 -57
  334. package/lib/components/input-number/src/input-number.js.map +1 -1
  335. package/lib/components/input-number/src/input-number2.js +57 -309
  336. package/lib/components/input-number/src/input-number2.js.map +1 -1
  337. package/lib/components/page-header/index.js +2 -2
  338. package/lib/components/page-header/src/page-header.js +103 -18
  339. package/lib/components/page-header/src/page-header.js.map +1 -1
  340. package/lib/components/page-header/src/page-header2.js +18 -103
  341. package/lib/components/page-header/src/page-header2.js.map +1 -1
  342. package/lib/components/pagination/src/components/next.js +19 -58
  343. package/lib/components/pagination/src/components/next.js.map +1 -1
  344. package/lib/components/pagination/src/components/next2.js +58 -19
  345. package/lib/components/pagination/src/components/next2.js.map +1 -1
  346. package/lib/components/pagination/src/components/pager.js +17 -214
  347. package/lib/components/pagination/src/components/pager.js.map +1 -1
  348. package/lib/components/pagination/src/components/pager2.js +214 -17
  349. package/lib/components/pagination/src/components/pager2.js.map +1 -1
  350. package/lib/components/pagination/src/components/total.js +7 -28
  351. package/lib/components/pagination/src/components/total.js.map +1 -1
  352. package/lib/components/pagination/src/components/total2.js +28 -7
  353. package/lib/components/pagination/src/components/total2.js.map +1 -1
  354. package/lib/components/pagination/src/pagination.js +3 -3
  355. package/lib/components/popconfirm/index.js +2 -2
  356. package/lib/components/popconfirm/src/popconfirm.js +110 -48
  357. package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
  358. package/lib/components/popconfirm/src/popconfirm2.js +48 -110
  359. package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
  360. package/lib/components/popover/index.js +2 -2
  361. package/lib/components/popover/src/popover.js +111 -67
  362. package/lib/components/popover/src/popover.js.map +1 -1
  363. package/lib/components/popover/src/popover2.js +67 -111
  364. package/lib/components/popover/src/popover2.js.map +1 -1
  365. package/lib/components/popper/index.js +2 -2
  366. package/lib/components/popper/src/popper.js +32 -28
  367. package/lib/components/popper/src/popper.js.map +1 -1
  368. package/lib/components/popper/src/popper2.js +28 -32
  369. package/lib/components/popper/src/popper2.js.map +1 -1
  370. package/lib/components/radio/index.js +2 -2
  371. package/lib/components/radio/src/radio-button.js +64 -9
  372. package/lib/components/radio/src/radio-button.js.map +1 -1
  373. package/lib/components/radio/src/radio-button2.js +9 -64
  374. package/lib/components/radio/src/radio-button2.js.map +1 -1
  375. package/lib/components/result/index.js +2 -2
  376. package/lib/components/result/src/result.js +31 -63
  377. package/lib/components/result/src/result.js.map +1 -1
  378. package/lib/components/result/src/result2.js +63 -31
  379. package/lib/components/result/src/result2.js.map +1 -1
  380. package/lib/components/roving-focus-group/index.js +2 -2
  381. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  382. package/lib/components/roving-focus-group/src/roving-focus-group.js +33 -27
  383. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  384. package/lib/components/roving-focus-group/src/roving-focus-group2.js +27 -33
  385. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  386. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  387. package/lib/components/row/index.js +2 -2
  388. package/lib/components/row/src/row.js +32 -45
  389. package/lib/components/row/src/row.js.map +1 -1
  390. package/lib/components/row/src/row2.js +45 -32
  391. package/lib/components/row/src/row2.js.map +1 -1
  392. package/lib/components/scrollbar/src/thumb.js +1 -1
  393. package/lib/components/scrollbar/src/thumb.js.map +1 -1
  394. package/lib/components/skeleton/index.js +4 -4
  395. package/lib/components/skeleton/src/skeleton-item.js +18 -23
  396. package/lib/components/skeleton/src/skeleton-item.js.map +1 -1
  397. package/lib/components/skeleton/src/skeleton-item2.js +23 -18
  398. package/lib/components/skeleton/src/skeleton-item2.js.map +1 -1
  399. package/lib/components/skeleton/src/skeleton.js +49 -22
  400. package/lib/components/skeleton/src/skeleton.js.map +1 -1
  401. package/lib/components/skeleton/src/skeleton2.js +22 -49
  402. package/lib/components/skeleton/src/skeleton2.js.map +1 -1
  403. package/lib/components/slider/index.js +2 -2
  404. package/lib/components/slider/src/button.js +22 -93
  405. package/lib/components/slider/src/button.js.map +1 -1
  406. package/lib/components/slider/src/button2.js +93 -22
  407. package/lib/components/slider/src/button2.js.map +1 -1
  408. package/lib/components/slider/src/slider.js +233 -92
  409. package/lib/components/slider/src/slider.js.map +1 -1
  410. package/lib/components/slider/src/slider2.js +92 -233
  411. package/lib/components/slider/src/slider2.js.map +1 -1
  412. package/lib/components/steps/index.js +2 -2
  413. package/lib/components/steps/src/item.js +188 -19
  414. package/lib/components/steps/src/item.js.map +1 -1
  415. package/lib/components/steps/src/item2.js +19 -188
  416. package/lib/components/steps/src/item2.js.map +1 -1
  417. package/lib/components/table/src/table-header/event-helper.js +1 -1
  418. package/lib/components/table/src/table-header/event-helper.js.map +1 -1
  419. package/lib/components/tabs/index.js +1 -1
  420. package/lib/components/tabs/src/tab-bar.js +75 -7
  421. package/lib/components/tabs/src/tab-bar.js.map +1 -1
  422. package/lib/components/tabs/src/tab-bar2.js +7 -75
  423. package/lib/components/tabs/src/tab-bar2.js.map +1 -1
  424. package/lib/components/tabs/src/tab-nav.js +1 -1
  425. package/lib/components/tooltip/src/tooltip.js +1 -1
  426. package/lib/components/tooltip-v2/index.js +3 -3
  427. package/lib/components/tooltip-v2/src/root.js +17 -80
  428. package/lib/components/tooltip-v2/src/root.js.map +1 -1
  429. package/lib/components/tooltip-v2/src/root2.js +80 -17
  430. package/lib/components/tooltip-v2/src/root2.js.map +1 -1
  431. package/lib/components/tooltip-v2/src/tooltip.js +73 -20
  432. package/lib/components/tooltip-v2/src/tooltip.js.map +1 -1
  433. package/lib/components/tooltip-v2/src/tooltip2.js +20 -73
  434. package/lib/components/tooltip-v2/src/tooltip2.js.map +1 -1
  435. package/lib/components/transfer/src/composables/use-check.js +1 -1
  436. package/lib/components/transfer/src/transfer-panel.js +128 -21
  437. package/lib/components/transfer/src/transfer-panel.js.map +1 -1
  438. package/lib/components/transfer/src/transfer-panel2.js +21 -128
  439. package/lib/components/transfer/src/transfer-panel2.js.map +1 -1
  440. package/lib/components/transfer/src/transfer2.js +1 -1
  441. package/lib/components/upload/index.js +2 -2
  442. package/lib/components/upload/src/upload-content.js +1 -1
  443. package/lib/components/upload/src/upload-content2.js +1 -1
  444. package/lib/components/upload/src/upload-list.js +1 -1
  445. package/lib/components/upload/src/upload.js +108 -119
  446. package/lib/components/upload/src/upload.js.map +1 -1
  447. package/lib/components/upload/src/upload2.js +119 -108
  448. package/lib/components/upload/src/upload2.js.map +1 -1
  449. package/lib/components/upload/src/use-handlers.js +1 -1
  450. package/lib/index.js +28 -28
  451. package/package.json +1 -1
@@ -2,69 +2,85 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var vue = require('vue');
6
+ var index$1 = require('../../icon/index.js');
5
7
  require('../../../hooks/index.js');
6
- require('../../../utils/index.js');
7
- var iconsVue = require('@element-plus/icons-vue');
8
- var runtime = require('../../../utils/vue/props/runtime.js');
9
- var index = require('../../../hooks/use-size/index.js');
10
- var icon = require('../../../utils/vue/icon.js');
8
+ var useButton = require('./use-button.js');
9
+ var button = require('./button2.js');
10
+ var buttonCustom = require('./button-custom.js');
11
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
12
+ var index = require('../../../hooks/use-namespace/index.js');
11
13
 
12
- const buttonTypes = [
13
- "default",
14
- "primary",
15
- "success",
16
- "warning",
17
- "info",
18
- "danger",
19
- "text",
20
- ""
21
- ];
22
- const buttonNativeTypes = ["button", "submit", "reset"];
23
- const buttonProps = runtime.buildProps({
24
- size: index.useSizeProp,
25
- disabled: Boolean,
26
- type: {
27
- type: String,
28
- values: buttonTypes,
29
- default: ""
30
- },
31
- icon: {
32
- type: icon.iconPropType
33
- },
34
- nativeType: {
35
- type: String,
36
- values: buttonNativeTypes,
37
- default: "button"
38
- },
39
- loading: Boolean,
40
- loadingIcon: {
41
- type: icon.iconPropType,
42
- default: () => iconsVue.Loading
43
- },
44
- plain: Boolean,
45
- text: Boolean,
46
- link: Boolean,
47
- bg: Boolean,
48
- autofocus: Boolean,
49
- round: Boolean,
50
- circle: Boolean,
51
- color: String,
52
- dark: Boolean,
53
- autoInsertSpace: {
54
- type: Boolean,
55
- default: void 0
56
- },
57
- tag: {
58
- type: runtime.definePropType([String, Object]),
59
- default: "button"
14
+ const __default__ = vue.defineComponent({
15
+ name: "ElButton"
16
+ });
17
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
18
+ ...__default__,
19
+ props: button.buttonProps,
20
+ emits: button.buttonEmits,
21
+ setup(__props, { expose, emit }) {
22
+ const props = __props;
23
+ const buttonStyle = buttonCustom.useButtonCustomStyle(props);
24
+ const ns = index.useNamespace("button");
25
+ const { _ref, _size, _type, _disabled, _props, shouldAddSpace, handleClick } = useButton.useButton(props, emit);
26
+ expose({
27
+ ref: _ref,
28
+ size: _size,
29
+ type: _type,
30
+ disabled: _disabled,
31
+ shouldAddSpace
32
+ });
33
+ return (_ctx, _cache) => {
34
+ return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.tag), vue.mergeProps({
35
+ ref_key: "_ref",
36
+ ref: _ref
37
+ }, vue.unref(_props), {
38
+ class: [
39
+ vue.unref(ns).b(),
40
+ vue.unref(ns).m(vue.unref(_type)),
41
+ vue.unref(ns).m(vue.unref(_size)),
42
+ vue.unref(ns).is("disabled", vue.unref(_disabled)),
43
+ vue.unref(ns).is("loading", _ctx.loading),
44
+ vue.unref(ns).is("plain", _ctx.plain),
45
+ vue.unref(ns).is("round", _ctx.round),
46
+ vue.unref(ns).is("circle", _ctx.circle),
47
+ vue.unref(ns).is("text", _ctx.text),
48
+ vue.unref(ns).is("link", _ctx.link),
49
+ vue.unref(ns).is("has-bg", _ctx.bg)
50
+ ],
51
+ style: vue.unref(buttonStyle),
52
+ onClick: vue.unref(handleClick)
53
+ }), {
54
+ default: vue.withCtx(() => [
55
+ _ctx.loading ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
56
+ _ctx.$slots.loading ? vue.renderSlot(_ctx.$slots, "loading", { key: 0 }) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
57
+ key: 1,
58
+ class: vue.normalizeClass(vue.unref(ns).is("loading"))
59
+ }, {
60
+ default: vue.withCtx(() => [
61
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.loadingIcon)))
62
+ ]),
63
+ _: 1
64
+ }, 8, ["class"]))
65
+ ], 64)) : _ctx.icon || _ctx.$slots.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), { key: 1 }, {
66
+ default: vue.withCtx(() => [
67
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon), { key: 0 })) : vue.renderSlot(_ctx.$slots, "icon", { key: 1 })
68
+ ]),
69
+ _: 3
70
+ })) : vue.createCommentVNode("v-if", true),
71
+ _ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", {
72
+ key: 2,
73
+ class: vue.normalizeClass({ [vue.unref(ns).em("text", "expand")]: vue.unref(shouldAddSpace) })
74
+ }, [
75
+ vue.renderSlot(_ctx.$slots, "default")
76
+ ], 2)) : vue.createCommentVNode("v-if", true)
77
+ ]),
78
+ _: 3
79
+ }, 16, ["class", "style", "onClick"]);
80
+ };
60
81
  }
61
82
  });
62
- const buttonEmits = {
63
- click: (evt) => evt instanceof MouseEvent
64
- };
83
+ var Button = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "D:\\beyondtrucks\\beyond-ui\\packages\\components\\button\\src\\button.vue"]]);
65
84
 
66
- exports.buttonEmits = buttonEmits;
67
- exports.buttonNativeTypes = buttonNativeTypes;
68
- exports.buttonProps = buttonProps;
69
- exports.buttonTypes = buttonTypes;
85
+ exports["default"] = Button;
70
86
  //# sourceMappingURL=button.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button.js","sources":["../../../../../../packages/components/button/src/button.ts"],"sourcesContent":["import { useSizeProp } from '@element-plus/hooks'\nimport { buildProps, definePropType, iconPropType } from '@element-plus/utils'\nimport { Loading } from '@element-plus/icons-vue'\nimport type { Component, ExtractPropTypes } from 'vue'\n\nexport const buttonTypes = [\n 'default',\n 'primary',\n 'success',\n 'warning',\n 'info',\n 'danger',\n /**\n * @deprecated\n * Text type will be deprecated in the next major version (3.0.0)\n */\n 'text',\n '',\n] as const\nexport const buttonNativeTypes = ['button', 'submit', 'reset'] as const\n\nexport const buttonProps = buildProps({\n /**\n * @description button size\n */\n size: useSizeProp,\n /**\n * @description disable the button\n */\n disabled: Boolean,\n /**\n * @description button type\n */\n type: {\n type: String,\n values: buttonTypes,\n default: '',\n },\n /**\n * @description icon component\n */\n icon: {\n type: iconPropType,\n },\n /**\n * @description native button type\n */\n nativeType: {\n type: String,\n values: buttonNativeTypes,\n default: 'button',\n },\n /**\n * @description determine whether it's loading\n */\n loading: Boolean,\n /**\n * @description customize loading icon component\n */\n loadingIcon: {\n type: iconPropType,\n default: () => Loading,\n },\n /**\n * @description determine whether it's a plain button\n */\n plain: Boolean,\n /**\n * @description determine whether it's a text button\n */\n text: Boolean,\n /**\n * @description determine whether it's a link button\n */\n link: Boolean,\n /**\n * @description determine whether the text button background color is always on\n */\n bg: Boolean,\n /**\n * @description native button autofocus\n */\n autofocus: Boolean,\n /**\n * @description determine whether it's a round button\n */\n round: Boolean,\n /**\n * @description determine whether it's a circle button\n */\n circle: Boolean,\n /**\n * @description custom button color, automatically calculate `hover` and `active` color\n */\n color: String,\n /**\n * @description dark mode, which automatically converts `color` to dark mode colors\n */\n dark: Boolean,\n /**\n * @description automatically insert a space between two chinese characters\n */\n autoInsertSpace: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description custom element tag\n */\n tag: {\n type: definePropType<string | Component>([String, Object]),\n default: 'button',\n },\n} as const)\nexport const buttonEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\n\nexport type ButtonProps = ExtractPropTypes<typeof buttonProps>\nexport type ButtonEmits = typeof buttonEmits\n\nexport type ButtonType = ButtonProps['type']\nexport type ButtonNativeType = ButtonProps['nativeType']\n\nexport interface ButtonConfigContext {\n autoInsertSpace?: boolean\n}\n"],"names":["buildProps","useSizeProp","iconPropType","Loading","definePropType"],"mappings":";;;;;;;;;;;AAGY,MAAC,WAAW,GAAG;AAC3B,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,MAAM;AACR,EAAE,QAAQ;AACV,EAAE,MAAM;AACR,EAAE,EAAE;AACJ,EAAE;AACU,MAAC,iBAAiB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE;AACnD,MAAC,WAAW,GAAGA,kBAAU,CAAC;AACtC,EAAE,IAAI,EAAEC,iBAAW;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,WAAW;AACvB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEC,iBAAY;AACtB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,iBAAiB;AAC7B,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAEA,iBAAY;AACtB,IAAI,OAAO,EAAE,MAAMC,gBAAO;AAC1B,GAAG;AACH,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,EAAE,EAAE,OAAO;AACb,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,WAAW,GAAG;AAC3B,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;;;;"}
1
+ {"version":3,"file":"button.js","sources":["../../../../../../packages/components/button/src/button.vue"],"sourcesContent":["<template>\n <component\n :is=\"tag\"\n ref=\"_ref\"\n v-bind=\"_props\"\n :class=\"[\n ns.b(),\n ns.m(_type),\n ns.m(_size),\n ns.is('disabled', _disabled),\n ns.is('loading', loading),\n ns.is('plain', plain),\n ns.is('round', round),\n ns.is('circle', circle),\n ns.is('text', text),\n ns.is('link', link),\n ns.is('has-bg', bg),\n ]\"\n :style=\"buttonStyle\"\n @click=\"handleClick\"\n >\n <template v-if=\"loading\">\n <slot v-if=\"$slots.loading\" name=\"loading\" />\n <el-icon v-else :class=\"ns.is('loading')\">\n <component :is=\"loadingIcon\" />\n </el-icon>\n </template>\n <el-icon v-else-if=\"icon || $slots.icon\">\n <component :is=\"icon\" v-if=\"icon\" />\n <slot v-else name=\"icon\" />\n </el-icon>\n <span\n v-if=\"$slots.default\"\n :class=\"{ [ns.em('text', 'expand')]: shouldAddSpace }\"\n >\n <slot />\n </span>\n </component>\n</template>\n\n<script lang=\"ts\" setup>\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useButton } from './use-button'\nimport { buttonEmits, buttonProps } from './button'\nimport { useButtonCustomStyle } from './button-custom'\n\ndefineOptions({\n name: 'ElButton',\n})\n\nconst props = defineProps(buttonProps)\nconst emit = defineEmits(buttonEmits)\n\nconst buttonStyle = useButtonCustomStyle(props)\nconst ns = useNamespace('button')\nconst { _ref, _size, _type, _disabled, _props, shouldAddSpace, handleClick } =\n useButton(props, emit)\n\ndefineExpose({\n /** @description button html element */\n ref: _ref,\n /** @description button size */\n size: _size,\n /** @description button type */\n type: _type,\n /** @description button disabled */\n disabled: _disabled,\n /** @description whether adding space */\n shouldAddSpace,\n})\n</script>\n"],"names":["useButtonCustomStyle","useNamespace","useButton"],"mappings":";;;;;;;;;;;;;uCA+Cc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,WAAA,GAAcA,kCAAqB,KAAK,CAAA,CAAA;AAC9C,IAAM,MAAA,EAAA,GAAKC,mBAAa,QAAQ,CAAA,CAAA;AAChC,IAAM,MAAA,EAAE,IAAM,EAAA,KAAA,EAAO,KAAO,EAAA,SAAA,EAAW,QAAQ,cAAgB,EAAA,WAAA,EAAA,GAC7DC,mBAAU,CAAA,KAAA,EAAO,IAAI,CAAA,CAAA;AAEvB,IAAa,MAAA,CAAA;AAAA,MAEX,GAAK,EAAA,IAAA;AAAA,MAEL,IAAM,EAAA,KAAA;AAAA,MAEN,IAAM,EAAA,KAAA;AAAA,MAEN,QAAU,EAAA,SAAA;AAAA,MAEV,cAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,85 +2,69 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var index$1 = require('../../icon/index.js');
7
5
  require('../../../hooks/index.js');
8
- var useButton = require('./use-button.js');
9
- var button = require('./button.js');
10
- var buttonCustom = require('./button-custom.js');
11
- var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
12
- var index = require('../../../hooks/use-namespace/index.js');
6
+ require('../../../utils/index.js');
7
+ var iconsVue = require('@element-plus/icons-vue');
8
+ var runtime = require('../../../utils/vue/props/runtime.js');
9
+ var index = require('../../../hooks/use-size/index.js');
10
+ var icon = require('../../../utils/vue/icon.js');
13
11
 
14
- const __default__ = vue.defineComponent({
15
- name: "ElButton"
16
- });
17
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
18
- ...__default__,
19
- props: button.buttonProps,
20
- emits: button.buttonEmits,
21
- setup(__props, { expose, emit }) {
22
- const props = __props;
23
- const buttonStyle = buttonCustom.useButtonCustomStyle(props);
24
- const ns = index.useNamespace("button");
25
- const { _ref, _size, _type, _disabled, _props, shouldAddSpace, handleClick } = useButton.useButton(props, emit);
26
- expose({
27
- ref: _ref,
28
- size: _size,
29
- type: _type,
30
- disabled: _disabled,
31
- shouldAddSpace
32
- });
33
- return (_ctx, _cache) => {
34
- return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.tag), vue.mergeProps({
35
- ref_key: "_ref",
36
- ref: _ref
37
- }, vue.unref(_props), {
38
- class: [
39
- vue.unref(ns).b(),
40
- vue.unref(ns).m(vue.unref(_type)),
41
- vue.unref(ns).m(vue.unref(_size)),
42
- vue.unref(ns).is("disabled", vue.unref(_disabled)),
43
- vue.unref(ns).is("loading", _ctx.loading),
44
- vue.unref(ns).is("plain", _ctx.plain),
45
- vue.unref(ns).is("round", _ctx.round),
46
- vue.unref(ns).is("circle", _ctx.circle),
47
- vue.unref(ns).is("text", _ctx.text),
48
- vue.unref(ns).is("link", _ctx.link),
49
- vue.unref(ns).is("has-bg", _ctx.bg)
50
- ],
51
- style: vue.unref(buttonStyle),
52
- onClick: vue.unref(handleClick)
53
- }), {
54
- default: vue.withCtx(() => [
55
- _ctx.loading ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
56
- _ctx.$slots.loading ? vue.renderSlot(_ctx.$slots, "loading", { key: 0 }) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
57
- key: 1,
58
- class: vue.normalizeClass(vue.unref(ns).is("loading"))
59
- }, {
60
- default: vue.withCtx(() => [
61
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.loadingIcon)))
62
- ]),
63
- _: 1
64
- }, 8, ["class"]))
65
- ], 64)) : _ctx.icon || _ctx.$slots.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), { key: 1 }, {
66
- default: vue.withCtx(() => [
67
- _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon), { key: 0 })) : vue.renderSlot(_ctx.$slots, "icon", { key: 1 })
68
- ]),
69
- _: 3
70
- })) : vue.createCommentVNode("v-if", true),
71
- _ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", {
72
- key: 2,
73
- class: vue.normalizeClass({ [vue.unref(ns).em("text", "expand")]: vue.unref(shouldAddSpace) })
74
- }, [
75
- vue.renderSlot(_ctx.$slots, "default")
76
- ], 2)) : vue.createCommentVNode("v-if", true)
77
- ]),
78
- _: 3
79
- }, 16, ["class", "style", "onClick"]);
80
- };
12
+ const buttonTypes = [
13
+ "default",
14
+ "primary",
15
+ "success",
16
+ "warning",
17
+ "info",
18
+ "danger",
19
+ "text",
20
+ ""
21
+ ];
22
+ const buttonNativeTypes = ["button", "submit", "reset"];
23
+ const buttonProps = runtime.buildProps({
24
+ size: index.useSizeProp,
25
+ disabled: Boolean,
26
+ type: {
27
+ type: String,
28
+ values: buttonTypes,
29
+ default: ""
30
+ },
31
+ icon: {
32
+ type: icon.iconPropType
33
+ },
34
+ nativeType: {
35
+ type: String,
36
+ values: buttonNativeTypes,
37
+ default: "button"
38
+ },
39
+ loading: Boolean,
40
+ loadingIcon: {
41
+ type: icon.iconPropType,
42
+ default: () => iconsVue.Loading
43
+ },
44
+ plain: Boolean,
45
+ text: Boolean,
46
+ link: Boolean,
47
+ bg: Boolean,
48
+ autofocus: Boolean,
49
+ round: Boolean,
50
+ circle: Boolean,
51
+ color: String,
52
+ dark: Boolean,
53
+ autoInsertSpace: {
54
+ type: Boolean,
55
+ default: void 0
56
+ },
57
+ tag: {
58
+ type: runtime.definePropType([String, Object]),
59
+ default: "button"
81
60
  }
82
61
  });
83
- var Button = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "D:\\beyondtrucks\\beyond-ui\\packages\\components\\button\\src\\button.vue"]]);
62
+ const buttonEmits = {
63
+ click: (evt) => evt instanceof MouseEvent
64
+ };
84
65
 
85
- exports["default"] = Button;
66
+ exports.buttonEmits = buttonEmits;
67
+ exports.buttonNativeTypes = buttonNativeTypes;
68
+ exports.buttonProps = buttonProps;
69
+ exports.buttonTypes = buttonTypes;
86
70
  //# sourceMappingURL=button2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"button2.js","sources":["../../../../../../packages/components/button/src/button.vue"],"sourcesContent":["<template>\n <component\n :is=\"tag\"\n ref=\"_ref\"\n v-bind=\"_props\"\n :class=\"[\n ns.b(),\n ns.m(_type),\n ns.m(_size),\n ns.is('disabled', _disabled),\n ns.is('loading', loading),\n ns.is('plain', plain),\n ns.is('round', round),\n ns.is('circle', circle),\n ns.is('text', text),\n ns.is('link', link),\n ns.is('has-bg', bg),\n ]\"\n :style=\"buttonStyle\"\n @click=\"handleClick\"\n >\n <template v-if=\"loading\">\n <slot v-if=\"$slots.loading\" name=\"loading\" />\n <el-icon v-else :class=\"ns.is('loading')\">\n <component :is=\"loadingIcon\" />\n </el-icon>\n </template>\n <el-icon v-else-if=\"icon || $slots.icon\">\n <component :is=\"icon\" v-if=\"icon\" />\n <slot v-else name=\"icon\" />\n </el-icon>\n <span\n v-if=\"$slots.default\"\n :class=\"{ [ns.em('text', 'expand')]: shouldAddSpace }\"\n >\n <slot />\n </span>\n </component>\n</template>\n\n<script lang=\"ts\" setup>\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { useButton } from './use-button'\nimport { buttonEmits, buttonProps } from './button'\nimport { useButtonCustomStyle } from './button-custom'\n\ndefineOptions({\n name: 'ElButton',\n})\n\nconst props = defineProps(buttonProps)\nconst emit = defineEmits(buttonEmits)\n\nconst buttonStyle = useButtonCustomStyle(props)\nconst ns = useNamespace('button')\nconst { _ref, _size, _type, _disabled, _props, shouldAddSpace, handleClick } =\n useButton(props, emit)\n\ndefineExpose({\n /** @description button html element */\n ref: _ref,\n /** @description button size */\n size: _size,\n /** @description button type */\n type: _type,\n /** @description button disabled */\n disabled: _disabled,\n /** @description whether adding space */\n shouldAddSpace,\n})\n</script>\n"],"names":["useButtonCustomStyle","useNamespace","useButton"],"mappings":";;;;;;;;;;;;;uCA+Cc,CAAA;AAAA,EACZ,IAAM,EAAA,UAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,WAAA,GAAcA,kCAAqB,KAAK,CAAA,CAAA;AAC9C,IAAM,MAAA,EAAA,GAAKC,mBAAa,QAAQ,CAAA,CAAA;AAChC,IAAM,MAAA,EAAE,IAAM,EAAA,KAAA,EAAO,KAAO,EAAA,SAAA,EAAW,QAAQ,cAAgB,EAAA,WAAA,EAAA,GAC7DC,mBAAU,CAAA,KAAA,EAAO,IAAI,CAAA,CAAA;AAEvB,IAAa,MAAA,CAAA;AAAA,MAEX,GAAK,EAAA,IAAA;AAAA,MAEL,IAAM,EAAA,KAAA;AAAA,MAEN,IAAM,EAAA,KAAA;AAAA,MAEN,QAAU,EAAA,SAAA;AAAA,MAEV,cAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"button2.js","sources":["../../../../../../packages/components/button/src/button.ts"],"sourcesContent":["import { useSizeProp } from '@element-plus/hooks'\nimport { buildProps, definePropType, iconPropType } from '@element-plus/utils'\nimport { Loading } from '@element-plus/icons-vue'\nimport type { Component, ExtractPropTypes } from 'vue'\n\nexport const buttonTypes = [\n 'default',\n 'primary',\n 'success',\n 'warning',\n 'info',\n 'danger',\n /**\n * @deprecated\n * Text type will be deprecated in the next major version (3.0.0)\n */\n 'text',\n '',\n] as const\nexport const buttonNativeTypes = ['button', 'submit', 'reset'] as const\n\nexport const buttonProps = buildProps({\n /**\n * @description button size\n */\n size: useSizeProp,\n /**\n * @description disable the button\n */\n disabled: Boolean,\n /**\n * @description button type\n */\n type: {\n type: String,\n values: buttonTypes,\n default: '',\n },\n /**\n * @description icon component\n */\n icon: {\n type: iconPropType,\n },\n /**\n * @description native button type\n */\n nativeType: {\n type: String,\n values: buttonNativeTypes,\n default: 'button',\n },\n /**\n * @description determine whether it's loading\n */\n loading: Boolean,\n /**\n * @description customize loading icon component\n */\n loadingIcon: {\n type: iconPropType,\n default: () => Loading,\n },\n /**\n * @description determine whether it's a plain button\n */\n plain: Boolean,\n /**\n * @description determine whether it's a text button\n */\n text: Boolean,\n /**\n * @description determine whether it's a link button\n */\n link: Boolean,\n /**\n * @description determine whether the text button background color is always on\n */\n bg: Boolean,\n /**\n * @description native button autofocus\n */\n autofocus: Boolean,\n /**\n * @description determine whether it's a round button\n */\n round: Boolean,\n /**\n * @description determine whether it's a circle button\n */\n circle: Boolean,\n /**\n * @description custom button color, automatically calculate `hover` and `active` color\n */\n color: String,\n /**\n * @description dark mode, which automatically converts `color` to dark mode colors\n */\n dark: Boolean,\n /**\n * @description automatically insert a space between two chinese characters\n */\n autoInsertSpace: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description custom element tag\n */\n tag: {\n type: definePropType<string | Component>([String, Object]),\n default: 'button',\n },\n} as const)\nexport const buttonEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\n\nexport type ButtonProps = ExtractPropTypes<typeof buttonProps>\nexport type ButtonEmits = typeof buttonEmits\n\nexport type ButtonType = ButtonProps['type']\nexport type ButtonNativeType = ButtonProps['nativeType']\n\nexport interface ButtonConfigContext {\n autoInsertSpace?: boolean\n}\n"],"names":["buildProps","useSizeProp","iconPropType","Loading","definePropType"],"mappings":";;;;;;;;;;;AAGY,MAAC,WAAW,GAAG;AAC3B,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,MAAM;AACR,EAAE,QAAQ;AACV,EAAE,MAAM;AACR,EAAE,EAAE;AACJ,EAAE;AACU,MAAC,iBAAiB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE;AACnD,MAAC,WAAW,GAAGA,kBAAU,CAAC;AACtC,EAAE,IAAI,EAAEC,iBAAW;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,WAAW;AACvB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEC,iBAAY;AACtB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,iBAAiB;AAC7B,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAEA,iBAAY;AACtB,IAAI,OAAO,EAAE,MAAMC,gBAAO;AAC1B,GAAG;AACH,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,EAAE,EAAE,OAAO;AACb,EAAE,SAAS,EAAE,OAAO;AACpB,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,eAAe,EAAE;AACnB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,WAAW,GAAG;AAC3B,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;;;;"}
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var vue = require('vue');
6
6
  var index$2 = require('../../button/index.js');
7
7
  require('../../../hooks/index.js');
8
- var dateTable = require('./date-table2.js');
8
+ var dateTable = require('./date-table.js');
9
9
  var useCalendar = require('./use-calendar.js');
10
10
  var calendar = require('./calendar2.js');
11
11
  var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
@@ -2,46 +2,96 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('../../../utils/index.js');
6
- require('../../time-picker/index.js');
7
- var utils = require('../../time-picker/src/utils.js');
8
- var runtime = require('../../../utils/vue/props/runtime.js');
9
- var shared = require('@vue/shared');
5
+ var vue = require('vue');
6
+ require('../../../hooks/index.js');
7
+ var dateTable = require('./date-table2.js');
8
+ var useDateTable = require('./use-date-table.js');
9
+ var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
10
+ var index = require('../../../hooks/use-namespace/index.js');
10
11
 
11
- const getPrevMonthLastDays = (date, count) => {
12
- const lastDay = date.subtract(1, "month").endOf("month").date();
13
- return utils.rangeArr(count).map((_, index) => lastDay - (count - index - 1));
14
- };
15
- const getMonthDays = (date) => {
16
- const days = date.daysInMonth();
17
- return utils.rangeArr(days).map((_, index) => index + 1);
18
- };
19
- const toNestedArr = (days) => utils.rangeArr(days.length / 7).map((index) => {
20
- const start = index * 7;
21
- return days.slice(start, start + 7);
12
+ const _hoisted_1 = { key: 0 };
13
+ const _hoisted_2 = ["onClick"];
14
+ const __default__ = vue.defineComponent({
15
+ name: "DateTable"
22
16
  });
23
- const dateTableProps = runtime.buildProps({
24
- selectedDay: {
25
- type: runtime.definePropType(Object)
26
- },
27
- range: {
28
- type: runtime.definePropType(Array)
29
- },
30
- date: {
31
- type: runtime.definePropType(Object),
32
- required: true
33
- },
34
- hideHeader: {
35
- type: Boolean
17
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
18
+ ...__default__,
19
+ props: dateTable.dateTableProps,
20
+ emits: dateTable.dateTableEmits,
21
+ setup(__props, { expose, emit }) {
22
+ const props = __props;
23
+ const {
24
+ isInRange,
25
+ now,
26
+ rows,
27
+ weekDays,
28
+ getFormattedDate,
29
+ handlePickDay,
30
+ getSlotData
31
+ } = useDateTable.useDateTable(props, emit);
32
+ const nsTable = index.useNamespace("calendar-table");
33
+ const nsDay = index.useNamespace("calendar-day");
34
+ const getCellClass = ({ text, type }) => {
35
+ const classes = [type];
36
+ if (type === "current") {
37
+ const date = getFormattedDate(text, type);
38
+ if (date.isSame(props.selectedDay, "day")) {
39
+ classes.push(nsDay.is("selected"));
40
+ }
41
+ if (date.isSame(now, "day")) {
42
+ classes.push(nsDay.is("today"));
43
+ }
44
+ }
45
+ return classes;
46
+ };
47
+ expose({
48
+ getFormattedDate
49
+ });
50
+ return (_ctx, _cache) => {
51
+ return vue.openBlock(), vue.createElementBlock("table", {
52
+ class: vue.normalizeClass([vue.unref(nsTable).b(), vue.unref(nsTable).is("range", vue.unref(isInRange))]),
53
+ cellspacing: "0",
54
+ cellpadding: "0"
55
+ }, [
56
+ !_ctx.hideHeader ? (vue.openBlock(), vue.createElementBlock("thead", _hoisted_1, [
57
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(weekDays), (day) => {
58
+ return vue.openBlock(), vue.createElementBlock("th", { key: day }, vue.toDisplayString(day), 1);
59
+ }), 128))
60
+ ])) : vue.createCommentVNode("v-if", true),
61
+ vue.createElementVNode("tbody", null, [
62
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(rows), (row, index) => {
63
+ return vue.openBlock(), vue.createElementBlock("tr", {
64
+ key: index,
65
+ class: vue.normalizeClass({
66
+ [vue.unref(nsTable).e("row")]: true,
67
+ [vue.unref(nsTable).em("row", "hide-border")]: index === 0 && _ctx.hideHeader
68
+ })
69
+ }, [
70
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(row, (cell, key) => {
71
+ return vue.openBlock(), vue.createElementBlock("td", {
72
+ key,
73
+ class: vue.normalizeClass(getCellClass(cell)),
74
+ onClick: ($event) => vue.unref(handlePickDay)(cell)
75
+ }, [
76
+ vue.createElementVNode("div", {
77
+ class: vue.normalizeClass(vue.unref(nsDay).b())
78
+ }, [
79
+ vue.renderSlot(_ctx.$slots, "date-cell", {
80
+ data: vue.unref(getSlotData)(cell)
81
+ }, () => [
82
+ vue.createElementVNode("span", null, vue.toDisplayString(cell.text), 1)
83
+ ])
84
+ ], 2)
85
+ ], 10, _hoisted_2);
86
+ }), 128))
87
+ ], 2);
88
+ }), 128))
89
+ ])
90
+ ], 2);
91
+ };
36
92
  }
37
93
  });
38
- const dateTableEmits = {
39
- pick: (value) => shared.isObject(value)
40
- };
94
+ var DateTable = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "D:\\beyondtrucks\\beyond-ui\\packages\\components\\calendar\\src\\date-table.vue"]]);
41
95
 
42
- exports.dateTableEmits = dateTableEmits;
43
- exports.dateTableProps = dateTableProps;
44
- exports.getMonthDays = getMonthDays;
45
- exports.getPrevMonthLastDays = getPrevMonthLastDays;
46
- exports.toNestedArr = toNestedArr;
96
+ exports["default"] = DateTable;
47
97
  //# sourceMappingURL=date-table.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"date-table.js","sources":["../../../../../../packages/components/calendar/src/date-table.ts"],"sourcesContent":["import { buildProps, definePropType, isObject } from '@element-plus/utils'\nimport { rangeArr } from '@element-plus/components/time-picker'\nimport type { ExtractPropTypes } from 'vue'\nimport type { Dayjs } from 'dayjs'\n\nexport type CalendarDateCellType = 'next' | 'prev' | 'current'\nexport type CalendarDateCell = {\n text: number\n type: CalendarDateCellType\n}\n\nexport const getPrevMonthLastDays = (date: Dayjs, count: number) => {\n const lastDay = date.subtract(1, 'month').endOf('month').date()\n return rangeArr(count).map((_, index) => lastDay - (count - index - 1))\n}\n\nexport const getMonthDays = (date: Dayjs) => {\n const days = date.daysInMonth()\n return rangeArr(days).map((_, index) => index + 1)\n}\n\nexport const toNestedArr = (days: CalendarDateCell[]) =>\n rangeArr(days.length / 7).map((index) => {\n const start = index * 7\n return days.slice(start, start + 7)\n })\n\nexport const dateTableProps = buildProps({\n selectedDay: {\n type: definePropType<Dayjs>(Object),\n },\n range: {\n type: definePropType<[Dayjs, Dayjs]>(Array),\n },\n date: {\n type: definePropType<Dayjs>(Object),\n required: true,\n },\n hideHeader: {\n type: Boolean,\n },\n} as const)\nexport type DateTableProps = ExtractPropTypes<typeof dateTableProps>\n\nexport const dateTableEmits = {\n pick: (value: Dayjs) => isObject(value),\n}\nexport type DateTableEmits = typeof dateTableEmits\n"],"names":["rangeArr","buildProps","definePropType","isObject"],"mappings":";;;;;;;;;;AAEY,MAAC,oBAAoB,GAAG,CAAC,IAAI,EAAE,KAAK,KAAK;AACrD,EAAE,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;AAClE,EAAE,OAAOA,cAAQ,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,KAAK,OAAO,IAAI,KAAK,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC;AAC1E,EAAE;AACU,MAAC,YAAY,GAAG,CAAC,IAAI,KAAK;AACtC,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;AAClC,EAAE,OAAOA,cAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,KAAK,KAAK,GAAG,CAAC,CAAC,CAAC;AACrD,EAAE;AACU,MAAC,WAAW,GAAG,CAAC,IAAI,KAAKA,cAAQ,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,KAAK;AAC9E,EAAE,MAAM,KAAK,GAAG,KAAK,GAAG,CAAC,CAAC;AAC1B,EAAE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;AACtC,CAAC,EAAE;AACS,MAAC,cAAc,GAAGC,kBAAU,CAAC;AACzC,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAEC,sBAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAEA,sBAAc,CAAC,KAAK,CAAC;AAC/B,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEA,sBAAc,CAAC,MAAM,CAAC;AAChC,IAAI,QAAQ,EAAE,IAAI;AAClB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,OAAO;AACjB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,cAAc,GAAG;AAC9B,EAAE,IAAI,EAAE,CAAC,KAAK,KAAKC,eAAQ,CAAC,KAAK,CAAC;AAClC;;;;;;;;"}
1
+ {"version":3,"file":"date-table.js","sources":["../../../../../../packages/components/calendar/src/date-table.vue"],"sourcesContent":["<template>\n <table\n :class=\"[nsTable.b(), nsTable.is('range', isInRange)]\"\n cellspacing=\"0\"\n cellpadding=\"0\"\n >\n <thead v-if=\"!hideHeader\">\n <th v-for=\"day in weekDays\" :key=\"day\">{{ day }}</th>\n </thead>\n\n <tbody>\n <tr\n v-for=\"(row, index) in rows\"\n :key=\"index\"\n :class=\"{\n [nsTable.e('row')]: true,\n [nsTable.em('row', 'hide-border')]: index === 0 && hideHeader,\n }\"\n >\n <td\n v-for=\"(cell, key) in row\"\n :key=\"key\"\n :class=\"getCellClass(cell)\"\n @click=\"handlePickDay(cell)\"\n >\n <div :class=\"nsDay.b()\">\n <slot name=\"date-cell\" :data=\"getSlotData(cell)\">\n <span>{{ cell.text }}</span>\n </slot>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n</template>\n\n<script lang=\"ts\" setup>\nimport { useNamespace } from '@element-plus/hooks'\nimport { dateTableEmits, dateTableProps } from './date-table'\nimport { useDateTable } from './use-date-table'\n\nimport type { CalendarDateCell } from './date-table'\n\ndefineOptions({\n name: 'DateTable',\n})\n\nconst props = defineProps(dateTableProps)\nconst emit = defineEmits(dateTableEmits)\n\nconst {\n isInRange,\n now,\n rows,\n weekDays,\n getFormattedDate,\n handlePickDay,\n getSlotData,\n} = useDateTable(props, emit)\n\nconst nsTable = useNamespace('calendar-table')\nconst nsDay = useNamespace('calendar-day')\n\nconst getCellClass = ({ text, type }: CalendarDateCell) => {\n const classes: string[] = [type]\n if (type === 'current') {\n const date = getFormattedDate(text, type)\n if (date.isSame(props.selectedDay, 'day')) {\n classes.push(nsDay.is('selected'))\n }\n if (date.isSame(now, 'day')) {\n classes.push(nsDay.is('today'))\n }\n }\n return classes\n}\n\ndefineExpose({\n /** @description toggle date panel */\n getFormattedDate,\n})\n</script>\n"],"names":["useDateTable","useNamespace"],"mappings":";;;;;;;;;;;;;uCA2Cc,CAAA;AAAA,EACZ,IAAM,EAAA,WAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA;AAAA,MACJ,SAAA;AAAA,MACA,GAAA;AAAA,MACA,IAAA;AAAA,MACA,QAAA;AAAA,MACA,gBAAA;AAAA,MACA,aAAA;AAAA,MACA,WAAA;AAAA,KACE,GAAAA,yBAAA,CAAa,OAAO,IAAI,CAAA,CAAA;AAE5B,IAAM,MAAA,OAAA,GAAUC,mBAAa,gBAAgB,CAAA,CAAA;AAC7C,IAAM,MAAA,KAAA,GAAQA,mBAAa,cAAc,CAAA,CAAA;AAEzC,IAAA,MAAM,YAAe,GAAA,CAAC,EAAE,IAAA,EAAM,IAA6B,EAAA,KAAA;AACzD,MAAM,MAAA,OAAA,GAAoB,CAAC,IAAI,CAAA,CAAA;AAC/B,MAAA,IAAI,SAAS,SAAW,EAAA;AACtB,QAAM,MAAA,IAAA,GAAO,gBAAiB,CAAA,IAAA,EAAM,IAAI,CAAA,CAAA;AACxC,QAAA,IAAI,IAAK,CAAA,MAAA,CAAO,KAAM,CAAA,WAAA,EAAa,KAAK,CAAG,EAAA;AACzC,UAAA,OAAA,CAAQ,IAAK,CAAA,KAAA,CAAM,EAAG,CAAA,UAAU,CAAC,CAAA,CAAA;AAAA,SACnC;AACA,QAAA,IAAI,IAAK,CAAA,MAAA,CAAO,GAAK,EAAA,KAAK,CAAG,EAAA;AAC3B,UAAA,OAAA,CAAQ,IAAK,CAAA,KAAA,CAAM,EAAG,CAAA,OAAO,CAAC,CAAA,CAAA;AAAA,SAChC;AAAA,OACF;AACA,MAAO,OAAA,OAAA,CAAA;AAAA,KACT,CAAA;AAEA,IAAa,MAAA,CAAA;AAAA,MAEX,gBAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}