@element-plus/nightly 0.0.20220506 → 0.0.20220507

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 (421) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +509 -398
  4. package/dist/index.full.min.js +17 -17
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +17 -17
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +508 -399
  9. package/dist/locale/af.js +1 -1
  10. package/dist/locale/af.min.js +1 -1
  11. package/dist/locale/af.min.mjs +1 -1
  12. package/dist/locale/af.mjs +1 -1
  13. package/dist/locale/ar.js +1 -1
  14. package/dist/locale/ar.min.js +1 -1
  15. package/dist/locale/ar.min.mjs +1 -1
  16. package/dist/locale/ar.mjs +1 -1
  17. package/dist/locale/az.js +1 -1
  18. package/dist/locale/az.min.js +1 -1
  19. package/dist/locale/az.min.mjs +1 -1
  20. package/dist/locale/az.mjs +1 -1
  21. package/dist/locale/bg.js +1 -1
  22. package/dist/locale/bg.min.js +1 -1
  23. package/dist/locale/bg.min.mjs +1 -1
  24. package/dist/locale/bg.mjs +1 -1
  25. package/dist/locale/bn.js +1 -1
  26. package/dist/locale/bn.min.js +1 -1
  27. package/dist/locale/bn.min.mjs +1 -1
  28. package/dist/locale/bn.mjs +1 -1
  29. package/dist/locale/ca.js +1 -1
  30. package/dist/locale/ca.min.js +1 -1
  31. package/dist/locale/ca.min.mjs +1 -1
  32. package/dist/locale/ca.mjs +1 -1
  33. package/dist/locale/cs.js +1 -1
  34. package/dist/locale/cs.min.js +1 -1
  35. package/dist/locale/cs.min.mjs +1 -1
  36. package/dist/locale/cs.mjs +1 -1
  37. package/dist/locale/da.js +1 -1
  38. package/dist/locale/da.min.js +1 -1
  39. package/dist/locale/da.min.mjs +1 -1
  40. package/dist/locale/da.mjs +1 -1
  41. package/dist/locale/de.js +1 -1
  42. package/dist/locale/de.min.js +1 -1
  43. package/dist/locale/de.min.mjs +1 -1
  44. package/dist/locale/de.mjs +1 -1
  45. package/dist/locale/el.js +1 -1
  46. package/dist/locale/el.min.js +1 -1
  47. package/dist/locale/el.min.mjs +1 -1
  48. package/dist/locale/el.mjs +1 -1
  49. package/dist/locale/en.js +1 -1
  50. package/dist/locale/en.min.js +1 -1
  51. package/dist/locale/en.min.mjs +1 -1
  52. package/dist/locale/en.mjs +1 -1
  53. package/dist/locale/eo.js +1 -1
  54. package/dist/locale/eo.min.js +1 -1
  55. package/dist/locale/eo.min.mjs +1 -1
  56. package/dist/locale/eo.mjs +1 -1
  57. package/dist/locale/es.js +1 -1
  58. package/dist/locale/es.min.js +1 -1
  59. package/dist/locale/es.min.mjs +1 -1
  60. package/dist/locale/es.mjs +1 -1
  61. package/dist/locale/et.js +1 -1
  62. package/dist/locale/et.min.js +1 -1
  63. package/dist/locale/et.min.mjs +1 -1
  64. package/dist/locale/et.mjs +1 -1
  65. package/dist/locale/eu.js +1 -1
  66. package/dist/locale/eu.min.js +1 -1
  67. package/dist/locale/eu.min.mjs +1 -1
  68. package/dist/locale/eu.mjs +1 -1
  69. package/dist/locale/fa.js +1 -1
  70. package/dist/locale/fa.min.js +1 -1
  71. package/dist/locale/fa.min.mjs +1 -1
  72. package/dist/locale/fa.mjs +1 -1
  73. package/dist/locale/fi.js +1 -1
  74. package/dist/locale/fi.min.js +1 -1
  75. package/dist/locale/fi.min.mjs +1 -1
  76. package/dist/locale/fi.mjs +1 -1
  77. package/dist/locale/fr.js +1 -1
  78. package/dist/locale/fr.min.js +1 -1
  79. package/dist/locale/fr.min.mjs +1 -1
  80. package/dist/locale/fr.mjs +1 -1
  81. package/dist/locale/he.js +1 -1
  82. package/dist/locale/he.min.js +1 -1
  83. package/dist/locale/he.min.mjs +1 -1
  84. package/dist/locale/he.mjs +1 -1
  85. package/dist/locale/hr.js +1 -1
  86. package/dist/locale/hr.min.js +1 -1
  87. package/dist/locale/hr.min.mjs +1 -1
  88. package/dist/locale/hr.mjs +1 -1
  89. package/dist/locale/hu.js +1 -1
  90. package/dist/locale/hu.min.js +1 -1
  91. package/dist/locale/hu.min.mjs +1 -1
  92. package/dist/locale/hu.mjs +1 -1
  93. package/dist/locale/hy-am.js +1 -1
  94. package/dist/locale/hy-am.min.js +1 -1
  95. package/dist/locale/hy-am.min.mjs +1 -1
  96. package/dist/locale/hy-am.mjs +1 -1
  97. package/dist/locale/id.js +1 -1
  98. package/dist/locale/id.min.js +1 -1
  99. package/dist/locale/id.min.mjs +1 -1
  100. package/dist/locale/id.mjs +1 -1
  101. package/dist/locale/it.js +1 -1
  102. package/dist/locale/it.min.js +1 -1
  103. package/dist/locale/it.min.mjs +1 -1
  104. package/dist/locale/it.mjs +1 -1
  105. package/dist/locale/ja.js +1 -1
  106. package/dist/locale/ja.min.js +1 -1
  107. package/dist/locale/ja.min.mjs +1 -1
  108. package/dist/locale/ja.mjs +1 -1
  109. package/dist/locale/kk.js +1 -1
  110. package/dist/locale/kk.min.js +1 -1
  111. package/dist/locale/kk.min.mjs +1 -1
  112. package/dist/locale/kk.mjs +1 -1
  113. package/dist/locale/km.js +1 -1
  114. package/dist/locale/km.min.js +1 -1
  115. package/dist/locale/km.min.mjs +1 -1
  116. package/dist/locale/km.mjs +1 -1
  117. package/dist/locale/ko.js +1 -1
  118. package/dist/locale/ko.min.js +1 -1
  119. package/dist/locale/ko.min.mjs +1 -1
  120. package/dist/locale/ko.mjs +1 -1
  121. package/dist/locale/ku.js +1 -1
  122. package/dist/locale/ku.min.js +1 -1
  123. package/dist/locale/ku.min.mjs +1 -1
  124. package/dist/locale/ku.mjs +1 -1
  125. package/dist/locale/ky.js +1 -1
  126. package/dist/locale/ky.min.js +1 -1
  127. package/dist/locale/ky.min.mjs +1 -1
  128. package/dist/locale/ky.mjs +1 -1
  129. package/dist/locale/lt.js +1 -1
  130. package/dist/locale/lt.min.js +1 -1
  131. package/dist/locale/lt.min.mjs +1 -1
  132. package/dist/locale/lt.mjs +1 -1
  133. package/dist/locale/lv.js +1 -1
  134. package/dist/locale/lv.min.js +1 -1
  135. package/dist/locale/lv.min.mjs +1 -1
  136. package/dist/locale/lv.mjs +1 -1
  137. package/dist/locale/mg.js +1 -1
  138. package/dist/locale/mg.min.js +1 -1
  139. package/dist/locale/mg.min.mjs +1 -1
  140. package/dist/locale/mg.mjs +1 -1
  141. package/dist/locale/mn.js +1 -1
  142. package/dist/locale/mn.min.js +1 -1
  143. package/dist/locale/mn.min.mjs +1 -1
  144. package/dist/locale/mn.mjs +1 -1
  145. package/dist/locale/nb-no.js +1 -1
  146. package/dist/locale/nb-no.min.js +1 -1
  147. package/dist/locale/nb-no.min.mjs +1 -1
  148. package/dist/locale/nb-no.mjs +1 -1
  149. package/dist/locale/nl.js +1 -1
  150. package/dist/locale/nl.min.js +1 -1
  151. package/dist/locale/nl.min.mjs +1 -1
  152. package/dist/locale/nl.mjs +1 -1
  153. package/dist/locale/pa.js +1 -1
  154. package/dist/locale/pa.min.js +1 -1
  155. package/dist/locale/pa.min.mjs +1 -1
  156. package/dist/locale/pa.mjs +1 -1
  157. package/dist/locale/pl.js +1 -1
  158. package/dist/locale/pl.min.js +1 -1
  159. package/dist/locale/pl.min.mjs +1 -1
  160. package/dist/locale/pl.mjs +1 -1
  161. package/dist/locale/pt-br.js +1 -1
  162. package/dist/locale/pt-br.min.js +1 -1
  163. package/dist/locale/pt-br.min.mjs +1 -1
  164. package/dist/locale/pt-br.mjs +1 -1
  165. package/dist/locale/pt.js +1 -1
  166. package/dist/locale/pt.min.js +1 -1
  167. package/dist/locale/pt.min.mjs +1 -1
  168. package/dist/locale/pt.mjs +1 -1
  169. package/dist/locale/ro.js +1 -1
  170. package/dist/locale/ro.min.js +1 -1
  171. package/dist/locale/ro.min.mjs +1 -1
  172. package/dist/locale/ro.mjs +1 -1
  173. package/dist/locale/ru.js +1 -1
  174. package/dist/locale/ru.min.js +1 -1
  175. package/dist/locale/ru.min.mjs +1 -1
  176. package/dist/locale/ru.mjs +1 -1
  177. package/dist/locale/sk.js +1 -1
  178. package/dist/locale/sk.min.js +1 -1
  179. package/dist/locale/sk.min.mjs +1 -1
  180. package/dist/locale/sk.mjs +1 -1
  181. package/dist/locale/sl.js +1 -1
  182. package/dist/locale/sl.min.js +1 -1
  183. package/dist/locale/sl.min.mjs +1 -1
  184. package/dist/locale/sl.mjs +1 -1
  185. package/dist/locale/sr.js +1 -1
  186. package/dist/locale/sr.min.js +1 -1
  187. package/dist/locale/sr.min.mjs +1 -1
  188. package/dist/locale/sr.mjs +1 -1
  189. package/dist/locale/sv.js +1 -1
  190. package/dist/locale/sv.min.js +1 -1
  191. package/dist/locale/sv.min.mjs +1 -1
  192. package/dist/locale/sv.mjs +1 -1
  193. package/dist/locale/ta.js +1 -1
  194. package/dist/locale/ta.min.js +1 -1
  195. package/dist/locale/ta.min.mjs +1 -1
  196. package/dist/locale/ta.mjs +1 -1
  197. package/dist/locale/th.js +1 -1
  198. package/dist/locale/th.min.js +1 -1
  199. package/dist/locale/th.min.mjs +1 -1
  200. package/dist/locale/th.mjs +1 -1
  201. package/dist/locale/tk.js +1 -1
  202. package/dist/locale/tk.min.js +1 -1
  203. package/dist/locale/tk.min.mjs +1 -1
  204. package/dist/locale/tk.mjs +1 -1
  205. package/dist/locale/tr.js +1 -1
  206. package/dist/locale/tr.min.js +1 -1
  207. package/dist/locale/tr.min.mjs +1 -1
  208. package/dist/locale/tr.mjs +1 -1
  209. package/dist/locale/ug-cn.js +1 -1
  210. package/dist/locale/ug-cn.min.js +1 -1
  211. package/dist/locale/ug-cn.min.mjs +1 -1
  212. package/dist/locale/ug-cn.mjs +1 -1
  213. package/dist/locale/uk.js +1 -1
  214. package/dist/locale/uk.min.js +1 -1
  215. package/dist/locale/uk.min.mjs +1 -1
  216. package/dist/locale/uk.mjs +1 -1
  217. package/dist/locale/uz-uz.js +1 -1
  218. package/dist/locale/uz-uz.min.js +1 -1
  219. package/dist/locale/uz-uz.min.mjs +1 -1
  220. package/dist/locale/uz-uz.mjs +1 -1
  221. package/dist/locale/vi.js +1 -1
  222. package/dist/locale/vi.min.js +1 -1
  223. package/dist/locale/vi.min.mjs +1 -1
  224. package/dist/locale/vi.mjs +1 -1
  225. package/dist/locale/zh-cn.js +1 -1
  226. package/dist/locale/zh-cn.min.js +1 -1
  227. package/dist/locale/zh-cn.min.mjs +1 -1
  228. package/dist/locale/zh-cn.mjs +1 -1
  229. package/dist/locale/zh-tw.js +1 -1
  230. package/dist/locale/zh-tw.min.js +1 -1
  231. package/dist/locale/zh-tw.min.mjs +1 -1
  232. package/dist/locale/zh-tw.mjs +1 -1
  233. package/es/component2.mjs +2 -1
  234. package/es/component2.mjs.map +1 -1
  235. package/es/components/calendar/index.mjs +1 -1
  236. package/es/components/calendar/index2.mjs +2 -2
  237. package/es/components/calendar/src/calendar.mjs +1 -1
  238. package/es/components/calendar/src/calendar3.mjs +15 -237
  239. package/es/components/calendar/src/calendar3.mjs.map +1 -1
  240. package/es/components/calendar/src/calendar4.mjs +237 -15
  241. package/es/components/calendar/src/calendar4.mjs.map +1 -1
  242. package/es/components/calendar/src/date-table.mjs +1 -1
  243. package/es/components/calendar/src/date-table3.mjs +31 -153
  244. package/es/components/calendar/src/date-table3.mjs.map +1 -1
  245. package/es/components/calendar/src/date-table4.mjs +153 -31
  246. package/es/components/calendar/src/date-table4.mjs.map +1 -1
  247. package/es/components/image/index.mjs +1 -1
  248. package/es/components/image/index2.mjs +2 -2
  249. package/es/components/image/src/image.mjs +1 -1
  250. package/es/components/image/src/image3.mjs +52 -220
  251. package/es/components/image/src/image3.mjs.map +1 -1
  252. package/es/components/image/src/image4.mjs +220 -52
  253. package/es/components/image/src/image4.mjs.map +1 -1
  254. package/es/components/index.mjs +4 -3
  255. package/es/components/index.mjs.map +1 -1
  256. package/es/components/index2.mjs +1 -1
  257. package/es/components/popconfirm/index.d.ts +1182 -5
  258. package/es/components/popconfirm/src/popconfirm.vue.d.ts +1182 -5
  259. package/es/components/popconfirm/src/popconfirm4.mjs +74 -85
  260. package/es/components/popconfirm/src/popconfirm4.mjs.map +1 -1
  261. package/es/components/table-v2/index.d.ts +33 -6
  262. package/es/components/table-v2/index.mjs +2 -1
  263. package/es/components/table-v2/index.mjs.map +1 -1
  264. package/es/components/table-v2/index2.mjs +4 -1
  265. package/es/components/table-v2/index2.mjs.map +1 -1
  266. package/es/components/table-v2/src/auto-resizer.d.ts +12 -0
  267. package/es/components/table-v2/src/auto-resizer.mjs +2 -0
  268. package/es/components/table-v2/src/auto-resizer.mjs.map +1 -0
  269. package/es/components/table-v2/src/auto-resizer2.mjs +13 -0
  270. package/es/components/table-v2/src/auto-resizer2.mjs.map +1 -0
  271. package/es/components/table-v2/src/components/auto-resizer.d.ts +23 -0
  272. package/es/components/table-v2/src/components/auto-resizer.mjs +39 -0
  273. package/es/components/table-v2/src/components/auto-resizer.mjs.map +1 -0
  274. package/es/components/table-v2/src/components/row.d.ts +9 -9
  275. package/es/components/table-v2/src/components/row.mjs.map +1 -1
  276. package/es/components/table-v2/src/composables/index.d.ts +1 -0
  277. package/es/components/table-v2/src/composables/index.mjs +1 -0
  278. package/es/components/table-v2/src/composables/index.mjs.map +1 -1
  279. package/es/components/table-v2/src/composables/index2.mjs +1 -0
  280. package/es/components/table-v2/src/composables/index2.mjs.map +1 -1
  281. package/es/components/table-v2/src/composables/use-auto-resize.d.ts +7 -0
  282. package/es/components/table-v2/src/composables/use-auto-resize.mjs +2 -0
  283. package/es/components/table-v2/src/composables/use-auto-resize.mjs.map +1 -0
  284. package/es/components/table-v2/src/composables/use-auto-resize2.mjs +39 -0
  285. package/es/components/table-v2/src/composables/use-auto-resize2.mjs.map +1 -0
  286. package/es/components/table-v2/src/composables/use-row.d.ts +2 -2
  287. package/es/components/table-v2/src/composables/use-row2.mjs.map +1 -1
  288. package/es/components/table-v2/src/composables/use-scrollbar.d.ts +3 -1
  289. package/es/components/table-v2/src/composables/use-scrollbar2.mjs +5 -0
  290. package/es/components/table-v2/src/composables/use-scrollbar2.mjs.map +1 -1
  291. package/es/components/table-v2/src/renderers/cell.d.ts +1 -1
  292. package/es/components/table-v2/src/renderers/cell.mjs +12 -3
  293. package/es/components/table-v2/src/renderers/cell.mjs.map +1 -1
  294. package/es/components/table-v2/src/row.d.ts +18 -18
  295. package/es/components/table-v2/src/row2.mjs.map +1 -1
  296. package/es/components/table-v2/src/table-grid.d.ts +7 -1
  297. package/es/components/table-v2/src/table-grid.mjs +9 -2
  298. package/es/components/table-v2/src/table-grid.mjs.map +1 -1
  299. package/es/components/table-v2/src/table-v2.d.ts +36 -7
  300. package/es/components/table-v2/src/table-v2.mjs +15 -2
  301. package/es/components/table-v2/src/table-v2.mjs.map +1 -1
  302. package/es/components/table-v2/src/table.d.ts +9 -5
  303. package/es/components/table-v2/src/table2.mjs +6 -0
  304. package/es/components/table-v2/src/table2.mjs.map +1 -1
  305. package/es/components/table-v2/src/types.d.ts +6 -6
  306. package/es/components/table-v2/src/use-table.d.ts +3 -2
  307. package/es/components/table-v2/src/use-table2.mjs +2 -0
  308. package/es/components/table-v2/src/use-table2.mjs.map +1 -1
  309. package/es/components/virtual-list/src/hooks/use-grid-wheel2.mjs +4 -0
  310. package/es/components/virtual-list/src/hooks/use-grid-wheel2.mjs.map +1 -1
  311. package/es/index.mjs +4 -3
  312. package/es/index.mjs.map +1 -1
  313. package/es/version.d.ts +1 -1
  314. package/es/version2.mjs +1 -1
  315. package/es/version2.mjs.map +1 -1
  316. package/lib/component2.js +130 -129
  317. package/lib/component2.js.map +1 -1
  318. package/lib/components/calendar/index.js +1 -1
  319. package/lib/components/calendar/index2.js +2 -2
  320. package/lib/components/calendar/src/calendar.js +1 -1
  321. package/lib/components/calendar/src/calendar3.js +16 -241
  322. package/lib/components/calendar/src/calendar3.js.map +1 -1
  323. package/lib/components/calendar/src/calendar4.js +241 -16
  324. package/lib/components/calendar/src/calendar4.js.map +1 -1
  325. package/lib/components/calendar/src/date-table.js +1 -1
  326. package/lib/components/calendar/src/date-table3.js +35 -158
  327. package/lib/components/calendar/src/date-table3.js.map +1 -1
  328. package/lib/components/calendar/src/date-table4.js +158 -35
  329. package/lib/components/calendar/src/date-table4.js.map +1 -1
  330. package/lib/components/image/index.js +1 -1
  331. package/lib/components/image/index2.js +2 -2
  332. package/lib/components/image/src/image.js +1 -1
  333. package/lib/components/image/src/image3.js +53 -220
  334. package/lib/components/image/src/image3.js.map +1 -1
  335. package/lib/components/image/src/image4.js +220 -53
  336. package/lib/components/image/src/image4.js.map +1 -1
  337. package/lib/components/index.js +5 -2
  338. package/lib/components/index.js.map +1 -1
  339. package/lib/components/index2.js +1 -0
  340. package/lib/components/index2.js.map +1 -1
  341. package/lib/components/popconfirm/index.d.ts +1182 -5
  342. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +1182 -5
  343. package/lib/components/popconfirm/src/popconfirm4.js +80 -91
  344. package/lib/components/popconfirm/src/popconfirm4.js.map +1 -1
  345. package/lib/components/table-v2/index.d.ts +33 -6
  346. package/lib/components/table-v2/index.js +3 -0
  347. package/lib/components/table-v2/index.js.map +1 -1
  348. package/lib/components/table-v2/index2.js +5 -0
  349. package/lib/components/table-v2/index2.js.map +1 -1
  350. package/lib/components/table-v2/src/auto-resizer.d.ts +12 -0
  351. package/lib/components/table-v2/src/auto-resizer.js +10 -0
  352. package/lib/components/table-v2/src/auto-resizer.js.map +1 -0
  353. package/lib/components/table-v2/src/auto-resizer2.js +17 -0
  354. package/lib/components/table-v2/src/auto-resizer2.js.map +1 -0
  355. package/lib/components/table-v2/src/components/auto-resizer.d.ts +23 -0
  356. package/lib/components/table-v2/src/components/auto-resizer.js +43 -0
  357. package/lib/components/table-v2/src/components/auto-resizer.js.map +1 -0
  358. package/lib/components/table-v2/src/components/row.d.ts +9 -9
  359. package/lib/components/table-v2/src/components/row.js.map +1 -1
  360. package/lib/components/table-v2/src/composables/index.d.ts +1 -0
  361. package/lib/components/table-v2/src/composables/index.js +2 -0
  362. package/lib/components/table-v2/src/composables/index.js.map +1 -1
  363. package/lib/components/table-v2/src/composables/index2.js +2 -0
  364. package/lib/components/table-v2/src/composables/index2.js.map +1 -1
  365. package/lib/components/table-v2/src/composables/use-auto-resize.d.ts +7 -0
  366. package/lib/components/table-v2/src/composables/use-auto-resize.js +10 -0
  367. package/lib/components/table-v2/src/composables/use-auto-resize.js.map +1 -0
  368. package/lib/components/table-v2/src/composables/use-auto-resize2.js +43 -0
  369. package/lib/components/table-v2/src/composables/use-auto-resize2.js.map +1 -0
  370. package/lib/components/table-v2/src/composables/use-row.d.ts +2 -2
  371. package/lib/components/table-v2/src/composables/use-row2.js.map +1 -1
  372. package/lib/components/table-v2/src/composables/use-scrollbar.d.ts +3 -1
  373. package/lib/components/table-v2/src/composables/use-scrollbar2.js +5 -0
  374. package/lib/components/table-v2/src/composables/use-scrollbar2.js.map +1 -1
  375. package/lib/components/table-v2/src/renderers/cell.d.ts +1 -1
  376. package/lib/components/table-v2/src/renderers/cell.js +11 -2
  377. package/lib/components/table-v2/src/renderers/cell.js.map +1 -1
  378. package/lib/components/table-v2/src/row.d.ts +18 -18
  379. package/lib/components/table-v2/src/row2.js.map +1 -1
  380. package/lib/components/table-v2/src/table-grid.d.ts +7 -1
  381. package/lib/components/table-v2/src/table-grid.js +9 -2
  382. package/lib/components/table-v2/src/table-grid.js.map +1 -1
  383. package/lib/components/table-v2/src/table-v2.d.ts +36 -7
  384. package/lib/components/table-v2/src/table-v2.js +15 -2
  385. package/lib/components/table-v2/src/table-v2.js.map +1 -1
  386. package/lib/components/table-v2/src/table.d.ts +9 -5
  387. package/lib/components/table-v2/src/table2.js +6 -0
  388. package/lib/components/table-v2/src/table2.js.map +1 -1
  389. package/lib/components/table-v2/src/types.d.ts +6 -6
  390. package/lib/components/table-v2/src/use-table.d.ts +3 -2
  391. package/lib/components/table-v2/src/use-table2.js +2 -0
  392. package/lib/components/table-v2/src/use-table2.js.map +1 -1
  393. package/lib/components/virtual-list/src/hooks/use-grid-wheel2.js +4 -0
  394. package/lib/components/virtual-list/src/hooks/use-grid-wheel2.js.map +1 -1
  395. package/lib/index.js +5 -2
  396. package/lib/index.js.map +1 -1
  397. package/lib/version.d.ts +1 -1
  398. package/lib/version2.js +1 -1
  399. package/lib/version2.js.map +1 -1
  400. package/package.json +2 -2
  401. package/tags.json +1 -1
  402. package/theme-chalk/el-button.css +1 -1
  403. package/theme-chalk/el-date-picker.css +1 -1
  404. package/theme-chalk/el-table-v2.css +1 -1
  405. package/theme-chalk/el-time-picker.css +1 -1
  406. package/theme-chalk/el-time-select.css +1 -1
  407. package/theme-chalk/index.css +1 -1
  408. package/theme-chalk/src/button.scss +2 -0
  409. package/theme-chalk/src/date-picker/picker-panel.scss +1 -1
  410. package/theme-chalk/src/table-v2.scss +5 -0
  411. package/web-types.json +1 -1
  412. package/es/components/table-v2/src/column.d.ts +0 -19
  413. package/es/components/table-v2/src/column.mjs +0 -2
  414. package/es/components/table-v2/src/column.mjs.map +0 -1
  415. package/es/components/table-v2/src/column2.mjs +0 -41
  416. package/es/components/table-v2/src/column2.mjs.map +0 -1
  417. package/lib/components/table-v2/src/column.d.ts +0 -19
  418. package/lib/components/table-v2/src/column.js +0 -10
  419. package/lib/components/table-v2/src/column.js.map +0 -1
  420. package/lib/components/table-v2/src/column2.js +0 -45
  421. package/lib/components/table-v2/src/column2.js.map +0 -1
@@ -1,161 +1,39 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, Fragment, renderList, toDisplayString, createCommentVNode, createElementVNode, renderSlot } from 'vue';
2
- import dayjs from 'dayjs';
3
- import localeData from 'dayjs/plugin/localeData.js';
4
- import '../../../hooks/index2.mjs';
1
+ import '../../../utils/index2.mjs';
5
2
  import '../../time-picker/index2.mjs';
6
- import '../../../constants/index2.mjs';
7
- import { dateTableProps, dateTableEmits, getPrevMonthLastDays, getMonthDays, toNestedArr } from './date-table4.mjs';
8
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
9
- import { useLocale } from '../../../hooks/use-locale/index2.mjs';
10
- import { useNamespace } from '../../../hooks/use-namespace/index2.mjs';
11
3
  import { rangeArr } from '../../time-picker/src/common/date-utils2.mjs';
12
- import { WEEK_DAYS } from '../../../constants/date2.mjs';
4
+ import { buildProps, definePropType } from '../../../utils/vue/props2.mjs';
5
+ import { isObject } from '@vue/shared';
13
6
 
14
- const _hoisted_1 = { key: 0 };
15
- const _hoisted_2 = ["onClick"];
16
- const __default__ = {
17
- name: "DateTable"
7
+ const getPrevMonthLastDays = (date, count) => {
8
+ const lastDay = date.subtract(1, "month").endOf("month").date();
9
+ return rangeArr(count).map((_, index) => lastDay - (count - index - 1));
18
10
  };
19
- const _sfc_main = /* @__PURE__ */ defineComponent({
20
- ...__default__,
21
- props: dateTableProps,
22
- emits: dateTableEmits,
23
- setup(__props, { expose, emit }) {
24
- const props = __props;
25
- dayjs.extend(localeData);
26
- const { t, lang } = useLocale();
27
- const nsTable = useNamespace("calendar-table");
28
- const nsDay = useNamespace("calendar-day");
29
- const now = dayjs().locale(lang.value);
30
- const firstDayOfWeek = now.$locale().weekStart || 0;
31
- const isInRange = computed(() => !!props.range && !!props.range.length);
32
- const rows = computed(() => {
33
- let days = [];
34
- if (isInRange.value) {
35
- const [start, end] = props.range;
36
- const currentMonthRange = rangeArr(end.date() - start.date() + 1).map((index) => ({
37
- text: start.date() + index,
38
- type: "current"
39
- }));
40
- let remaining = currentMonthRange.length % 7;
41
- remaining = remaining === 0 ? 0 : 7 - remaining;
42
- const nextMonthRange = rangeArr(remaining).map((_, index) => ({
43
- text: index + 1,
44
- type: "next"
45
- }));
46
- days = currentMonthRange.concat(nextMonthRange);
47
- } else {
48
- const firstDay = props.date.startOf("month").day();
49
- const prevMonthDays = getPrevMonthLastDays(props.date, firstDay - firstDayOfWeek).map((day) => ({
50
- text: day,
51
- type: "prev"
52
- }));
53
- const currentMonthDays = getMonthDays(props.date).map((day) => ({
54
- text: day,
55
- type: "current"
56
- }));
57
- days = [...prevMonthDays, ...currentMonthDays];
58
- const remaining = 7 - (days.length % 7 || 7);
59
- const nextMonthDays = rangeArr(remaining).map((_, index) => ({
60
- text: index + 1,
61
- type: "next"
62
- }));
63
- days = days.concat(nextMonthDays);
64
- }
65
- return toNestedArr(days);
66
- });
67
- const weekDays = computed(() => {
68
- const start = firstDayOfWeek;
69
- if (start === 0) {
70
- return WEEK_DAYS.map((_) => t(`el.datepicker.weeks.${_}`));
71
- } else {
72
- return WEEK_DAYS.slice(start).concat(WEEK_DAYS.slice(0, start)).map((_) => t(`el.datepicker.weeks.${_}`));
73
- }
74
- });
75
- const getFormattedDate = (day, type) => {
76
- switch (type) {
77
- case "prev":
78
- return props.date.startOf("month").subtract(1, "month").date(day);
79
- case "next":
80
- return props.date.startOf("month").add(1, "month").date(day);
81
- case "current":
82
- return props.date.date(day);
83
- }
84
- };
85
- const getCellClass = ({ text, type }) => {
86
- const classes = [type];
87
- if (type === "current") {
88
- const date = getFormattedDate(text, type);
89
- if (date.isSame(props.selectedDay, "day")) {
90
- classes.push(nsDay.is("selected"));
91
- }
92
- if (date.isSame(now, "day")) {
93
- classes.push(nsDay.is("today"));
94
- }
95
- }
96
- return classes;
97
- };
98
- const handlePickDay = ({ text, type }) => {
99
- const date = getFormattedDate(text, type);
100
- emit("pick", date);
101
- };
102
- const getSlotData = ({ text, type }) => {
103
- const day = getFormattedDate(text, type);
104
- return {
105
- isSelected: day.isSame(props.selectedDay),
106
- type: `${type}-month`,
107
- day: day.format("YYYY-MM-DD"),
108
- date: day.toDate()
109
- };
110
- };
111
- expose({
112
- getFormattedDate
113
- });
114
- return (_ctx, _cache) => {
115
- return openBlock(), createElementBlock("table", {
116
- class: normalizeClass([unref(nsTable).b(), unref(nsTable).is("range", unref(isInRange))]),
117
- cellspacing: "0",
118
- cellpadding: "0"
119
- }, [
120
- !_ctx.hideHeader ? (openBlock(), createElementBlock("thead", _hoisted_1, [
121
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(weekDays), (day) => {
122
- return openBlock(), createElementBlock("th", { key: day }, toDisplayString(day), 1);
123
- }), 128))
124
- ])) : createCommentVNode("v-if", true),
125
- createElementVNode("tbody", null, [
126
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(rows), (row, index) => {
127
- return openBlock(), createElementBlock("tr", {
128
- key: index,
129
- class: normalizeClass({
130
- [unref(nsTable).e("row")]: true,
131
- [unref(nsTable).em("row", "hide-border")]: index === 0 && _ctx.hideHeader
132
- })
133
- }, [
134
- (openBlock(true), createElementBlock(Fragment, null, renderList(row, (cell, key) => {
135
- return openBlock(), createElementBlock("td", {
136
- key,
137
- class: normalizeClass(getCellClass(cell)),
138
- onClick: ($event) => handlePickDay(cell)
139
- }, [
140
- createElementVNode("div", {
141
- class: normalizeClass(unref(nsDay).b())
142
- }, [
143
- renderSlot(_ctx.$slots, "dateCell", {
144
- data: getSlotData(cell)
145
- }, () => [
146
- createElementVNode("span", null, toDisplayString(cell.text), 1)
147
- ])
148
- ], 2)
149
- ], 10, _hoisted_2);
150
- }), 128))
151
- ], 2);
152
- }), 128))
153
- ])
154
- ], 2);
155
- };
11
+ const getMonthDays = (date) => {
12
+ const days = date.daysInMonth();
13
+ return rangeArr(days).map((_, index) => index + 1);
14
+ };
15
+ const toNestedArr = (days) => rangeArr(days.length / 7).map((index) => {
16
+ const start = index * 7;
17
+ return days.slice(start, start + 7);
18
+ });
19
+ const dateTableProps = buildProps({
20
+ selectedDay: {
21
+ type: definePropType(Object)
22
+ },
23
+ range: {
24
+ type: definePropType(Array)
25
+ },
26
+ date: {
27
+ type: definePropType(Object),
28
+ required: true
29
+ },
30
+ hideHeader: {
31
+ type: Boolean
156
32
  }
157
33
  });
158
- var DateTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);
34
+ const dateTableEmits = {
35
+ pick: (value) => isObject(value)
36
+ };
159
37
 
160
- export { DateTable as default };
38
+ export { dateTableEmits, dateTableProps, getMonthDays, getPrevMonthLastDays, toNestedArr };
161
39
  //# sourceMappingURL=date-table3.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"date-table3.mjs","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=\"dateCell\" :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 { computed } from 'vue'\nimport dayjs from 'dayjs'\nimport localeData from 'dayjs/plugin/localeData.js'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { rangeArr } from '@element-plus/components/time-picker'\nimport { WEEK_DAYS } from '@element-plus/constants'\nimport {\n dateTableEmits,\n dateTableProps,\n getMonthDays,\n getPrevMonthLastDays,\n toNestedArr,\n} from './date-table'\nimport type { CalendarDateCell, CalendarDateCellType } from './date-table'\nimport type { Dayjs } from 'dayjs'\n\ndayjs.extend(localeData)\n\ndefineOptions({\n name: 'DateTable',\n})\n\nconst props = defineProps(dateTableProps)\nconst emit = defineEmits(dateTableEmits)\n\nconst { t, lang } = useLocale()\nconst nsTable = useNamespace('calendar-table')\nconst nsDay = useNamespace('calendar-day')\n\nconst now = dayjs().locale(lang.value)\n// todo better way to get Day.js locale object\nconst firstDayOfWeek: number = (now as any).$locale().weekStart || 0\n\nconst isInRange = computed(() => !!props.range && !!props.range.length)\n\nconst rows = computed(() => {\n let days: CalendarDateCell[] = []\n if (isInRange.value) {\n const [start, end] = props.range!\n const currentMonthRange: CalendarDateCell[] = rangeArr(\n end.date() - start.date() + 1\n ).map((index) => ({\n text: start.date() + index,\n type: 'current',\n }))\n\n let remaining = currentMonthRange.length % 7\n remaining = remaining === 0 ? 0 : 7 - remaining\n const nextMonthRange: CalendarDateCell[] = rangeArr(remaining).map(\n (_, index) => ({\n text: index + 1,\n type: 'next',\n })\n )\n days = currentMonthRange.concat(nextMonthRange)\n } else {\n const firstDay = props.date.startOf('month').day()\n const prevMonthDays: CalendarDateCell[] = getPrevMonthLastDays(\n props.date,\n firstDay - firstDayOfWeek\n ).map((day) => ({\n text: day,\n type: 'prev',\n }))\n const currentMonthDays: CalendarDateCell[] = getMonthDays(props.date).map(\n (day) => ({\n text: day,\n type: 'current',\n })\n )\n days = [...prevMonthDays, ...currentMonthDays]\n const remaining = 7 - (days.length % 7 || 7)\n const nextMonthDays: CalendarDateCell[] = rangeArr(remaining).map(\n (_, index) => ({\n text: index + 1,\n type: 'next',\n })\n )\n days = days.concat(nextMonthDays)\n }\n return toNestedArr(days)\n})\n\nconst weekDays = computed(() => {\n const start = firstDayOfWeek\n if (start === 0) {\n return WEEK_DAYS.map((_) => t(`el.datepicker.weeks.${_}`))\n } else {\n return WEEK_DAYS.slice(start)\n .concat(WEEK_DAYS.slice(0, start))\n .map((_) => t(`el.datepicker.weeks.${_}`))\n }\n})\n\nconst getFormattedDate = (day: number, type: CalendarDateCellType): Dayjs => {\n switch (type) {\n case 'prev':\n return props.date.startOf('month').subtract(1, 'month').date(day)\n case 'next':\n return props.date.startOf('month').add(1, 'month').date(day)\n case 'current':\n return props.date.date(day)\n }\n}\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\nconst handlePickDay = ({ text, type }: CalendarDateCell) => {\n const date = getFormattedDate(text, type)\n emit('pick', date)\n}\n\nconst getSlotData = ({ text, type }: CalendarDateCell) => {\n const day = getFormattedDate(text, type)\n return {\n isSelected: day.isSame(props.selectedDay),\n type: `${type}-month`,\n day: day.format('YYYY-MM-DD'),\n date: day.toDate(),\n }\n}\n\ndefineExpose({\n /** @description toggle date panel */\n getFormattedDate,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAqDA,IAAA,KAAA,CAAA,OAAA,UAAA,CAAA,CAAA;AASA,IAAA,MAAA,EAAA,CAAA,EAAA,IAAA,EAAA,GAAA,SAAA,EAAA,CAAA;AACA,IAAA,MAAA,OAAA,GAAA,aAAA,gBAAA,CAAA,CAAA;AACA,IAAA,MAAA,KAAA,GAAA,aAAA,cAAA,CAAA,CAAA;AAEA,IAAA,MAAA,GAAA,GAAA,KAAA,EAAA,CAAA,MAAA,CAAA,KAAA,KAAA,CAAA,CAAA;AAEA,IAAA,MAAA,cAAA,GAAA,GAAA,CAAA,OAAA,EAAA,CAAA,SAAA,IAAA,CAAA,CAAA;AAEA,IAAA,MAAA,SAAA,GAAA,QAAA,CAAA,MAAA,CAAA,CAAA,KAAA,CAAA,KAAA,IAAA,CAAA,CAAA,KAAA,CAAA,KAAA,CAAA,MAAA,CAAA,CAAA;AAEA,IAAA,MAAA,IAAA,GAAA,SAAA,MAAA;AACA,MAAA,IAAA,OAAA,EAAA,CAAA;AACA,MAAA,IAAA,UAAA,KAAA,EAAA;AACA,QAAA,MAAA,CAAA,KAAA,EAAA,GAAA,CAAA,GAAA,KAAA,CAAA,KAAA,CAAA;AACA,QAAA,MAAA,iBAAA,GAAA,QAAA,CACA,GAAA,CAAA,IAAA,EAAA,GAAA,KAAA,CAAA,IAAA,EAAA,GAAA,CACA,CAAA,CAAA,GAAA,CAAA,CAAA,KAAA,MAAA;AAAA,U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AAA;AAEA,IAAA,MAAA,CAAA;AAAA,MAEA,gBAAA;AAAA,KACA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"date-table3.mjs","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'\nimport type DateTable from './date-table.vue'\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\nexport type DateTableInstance = InstanceType<typeof DateTable>\n"],"names":[],"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,I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/index2.mjs';
1
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, Fragment, renderList, toDisplayString, createCommentVNode, createElementVNode, renderSlot } from 'vue';
2
+ import dayjs from 'dayjs';
3
+ import localeData from 'dayjs/plugin/localeData.js';
4
+ import '../../../hooks/index2.mjs';
2
5
  import '../../time-picker/index2.mjs';
6
+ import '../../../constants/index2.mjs';
7
+ import { dateTableProps, dateTableEmits, getPrevMonthLastDays, getMonthDays, toNestedArr } from './date-table3.mjs';
8
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
9
+ import { useLocale } from '../../../hooks/use-locale/index2.mjs';
10
+ import { useNamespace } from '../../../hooks/use-namespace/index2.mjs';
3
11
  import { rangeArr } from '../../time-picker/src/common/date-utils2.mjs';
4
- import { buildProps, definePropType } from '../../../utils/vue/props2.mjs';
5
- import { isObject } from '@vue/shared';
12
+ import { WEEK_DAYS } from '../../../constants/date2.mjs';
6
13
 
7
- const getPrevMonthLastDays = (date, count) => {
8
- const lastDay = date.subtract(1, "month").endOf("month").date();
9
- return rangeArr(count).map((_, index) => lastDay - (count - index - 1));
14
+ const _hoisted_1 = { key: 0 };
15
+ const _hoisted_2 = ["onClick"];
16
+ const __default__ = {
17
+ name: "DateTable"
10
18
  };
11
- const getMonthDays = (date) => {
12
- const days = date.daysInMonth();
13
- return rangeArr(days).map((_, index) => index + 1);
14
- };
15
- const toNestedArr = (days) => rangeArr(days.length / 7).map((index) => {
16
- const start = index * 7;
17
- return days.slice(start, start + 7);
18
- });
19
- const dateTableProps = buildProps({
20
- selectedDay: {
21
- type: definePropType(Object)
22
- },
23
- range: {
24
- type: definePropType(Array)
25
- },
26
- date: {
27
- type: definePropType(Object),
28
- required: true
29
- },
30
- hideHeader: {
31
- type: Boolean
19
+ const _sfc_main = /* @__PURE__ */ defineComponent({
20
+ ...__default__,
21
+ props: dateTableProps,
22
+ emits: dateTableEmits,
23
+ setup(__props, { expose, emit }) {
24
+ const props = __props;
25
+ dayjs.extend(localeData);
26
+ const { t, lang } = useLocale();
27
+ const nsTable = useNamespace("calendar-table");
28
+ const nsDay = useNamespace("calendar-day");
29
+ const now = dayjs().locale(lang.value);
30
+ const firstDayOfWeek = now.$locale().weekStart || 0;
31
+ const isInRange = computed(() => !!props.range && !!props.range.length);
32
+ const rows = computed(() => {
33
+ let days = [];
34
+ if (isInRange.value) {
35
+ const [start, end] = props.range;
36
+ const currentMonthRange = rangeArr(end.date() - start.date() + 1).map((index) => ({
37
+ text: start.date() + index,
38
+ type: "current"
39
+ }));
40
+ let remaining = currentMonthRange.length % 7;
41
+ remaining = remaining === 0 ? 0 : 7 - remaining;
42
+ const nextMonthRange = rangeArr(remaining).map((_, index) => ({
43
+ text: index + 1,
44
+ type: "next"
45
+ }));
46
+ days = currentMonthRange.concat(nextMonthRange);
47
+ } else {
48
+ const firstDay = props.date.startOf("month").day();
49
+ const prevMonthDays = getPrevMonthLastDays(props.date, firstDay - firstDayOfWeek).map((day) => ({
50
+ text: day,
51
+ type: "prev"
52
+ }));
53
+ const currentMonthDays = getMonthDays(props.date).map((day) => ({
54
+ text: day,
55
+ type: "current"
56
+ }));
57
+ days = [...prevMonthDays, ...currentMonthDays];
58
+ const remaining = 7 - (days.length % 7 || 7);
59
+ const nextMonthDays = rangeArr(remaining).map((_, index) => ({
60
+ text: index + 1,
61
+ type: "next"
62
+ }));
63
+ days = days.concat(nextMonthDays);
64
+ }
65
+ return toNestedArr(days);
66
+ });
67
+ const weekDays = computed(() => {
68
+ const start = firstDayOfWeek;
69
+ if (start === 0) {
70
+ return WEEK_DAYS.map((_) => t(`el.datepicker.weeks.${_}`));
71
+ } else {
72
+ return WEEK_DAYS.slice(start).concat(WEEK_DAYS.slice(0, start)).map((_) => t(`el.datepicker.weeks.${_}`));
73
+ }
74
+ });
75
+ const getFormattedDate = (day, type) => {
76
+ switch (type) {
77
+ case "prev":
78
+ return props.date.startOf("month").subtract(1, "month").date(day);
79
+ case "next":
80
+ return props.date.startOf("month").add(1, "month").date(day);
81
+ case "current":
82
+ return props.date.date(day);
83
+ }
84
+ };
85
+ const getCellClass = ({ text, type }) => {
86
+ const classes = [type];
87
+ if (type === "current") {
88
+ const date = getFormattedDate(text, type);
89
+ if (date.isSame(props.selectedDay, "day")) {
90
+ classes.push(nsDay.is("selected"));
91
+ }
92
+ if (date.isSame(now, "day")) {
93
+ classes.push(nsDay.is("today"));
94
+ }
95
+ }
96
+ return classes;
97
+ };
98
+ const handlePickDay = ({ text, type }) => {
99
+ const date = getFormattedDate(text, type);
100
+ emit("pick", date);
101
+ };
102
+ const getSlotData = ({ text, type }) => {
103
+ const day = getFormattedDate(text, type);
104
+ return {
105
+ isSelected: day.isSame(props.selectedDay),
106
+ type: `${type}-month`,
107
+ day: day.format("YYYY-MM-DD"),
108
+ date: day.toDate()
109
+ };
110
+ };
111
+ expose({
112
+ getFormattedDate
113
+ });
114
+ return (_ctx, _cache) => {
115
+ return openBlock(), createElementBlock("table", {
116
+ class: normalizeClass([unref(nsTable).b(), unref(nsTable).is("range", unref(isInRange))]),
117
+ cellspacing: "0",
118
+ cellpadding: "0"
119
+ }, [
120
+ !_ctx.hideHeader ? (openBlock(), createElementBlock("thead", _hoisted_1, [
121
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(weekDays), (day) => {
122
+ return openBlock(), createElementBlock("th", { key: day }, toDisplayString(day), 1);
123
+ }), 128))
124
+ ])) : createCommentVNode("v-if", true),
125
+ createElementVNode("tbody", null, [
126
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(rows), (row, index) => {
127
+ return openBlock(), createElementBlock("tr", {
128
+ key: index,
129
+ class: normalizeClass({
130
+ [unref(nsTable).e("row")]: true,
131
+ [unref(nsTable).em("row", "hide-border")]: index === 0 && _ctx.hideHeader
132
+ })
133
+ }, [
134
+ (openBlock(true), createElementBlock(Fragment, null, renderList(row, (cell, key) => {
135
+ return openBlock(), createElementBlock("td", {
136
+ key,
137
+ class: normalizeClass(getCellClass(cell)),
138
+ onClick: ($event) => handlePickDay(cell)
139
+ }, [
140
+ createElementVNode("div", {
141
+ class: normalizeClass(unref(nsDay).b())
142
+ }, [
143
+ renderSlot(_ctx.$slots, "dateCell", {
144
+ data: getSlotData(cell)
145
+ }, () => [
146
+ createElementVNode("span", null, toDisplayString(cell.text), 1)
147
+ ])
148
+ ], 2)
149
+ ], 10, _hoisted_2);
150
+ }), 128))
151
+ ], 2);
152
+ }), 128))
153
+ ])
154
+ ], 2);
155
+ };
32
156
  }
33
157
  });
34
- const dateTableEmits = {
35
- pick: (value) => isObject(value)
36
- };
158
+ var DateTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);
37
159
 
38
- export { dateTableEmits, dateTableProps, getMonthDays, getPrevMonthLastDays, toNestedArr };
160
+ export { DateTable as default };
39
161
  //# sourceMappingURL=date-table4.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"date-table4.mjs","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'\nimport type DateTable from './date-table.vue'\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\nexport type DateTableInstance = InstanceType<typeof DateTable>\n"],"names":[],"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,OAAO,QAAQ,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,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,KAAK,KAAK,GAAG,CAAC,CAAC,CAAC;AACrD,EAAE;AACU,MAAC,WAAW,GAAG,CAAC,IAAI,KAAK,QAAQ,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,GAAG,UAAU,CAAC;AACzC,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,cAAc,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,KAAK,QAAQ,CAAC,KAAK,CAAC;AAClC;;;;"}
1
+ {"version":3,"file":"date-table4.mjs","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=\"dateCell\" :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 { computed } from 'vue'\nimport dayjs from 'dayjs'\nimport localeData from 'dayjs/plugin/localeData.js'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { rangeArr } from '@element-plus/components/time-picker'\nimport { WEEK_DAYS } from '@element-plus/constants'\nimport {\n dateTableEmits,\n dateTableProps,\n getMonthDays,\n getPrevMonthLastDays,\n toNestedArr,\n} from './date-table'\nimport type { CalendarDateCell, CalendarDateCellType } from './date-table'\nimport type { Dayjs } from 'dayjs'\n\ndayjs.extend(localeData)\n\ndefineOptions({\n name: 'DateTable',\n})\n\nconst props = defineProps(dateTableProps)\nconst emit = defineEmits(dateTableEmits)\n\nconst { t, lang } = useLocale()\nconst nsTable = useNamespace('calendar-table')\nconst nsDay = useNamespace('calendar-day')\n\nconst now = dayjs().locale(lang.value)\n// todo better way to get Day.js locale object\nconst firstDayOfWeek: number = (now as any).$locale().weekStart || 0\n\nconst isInRange = computed(() => !!props.range && !!props.range.length)\n\nconst rows = computed(() => {\n let days: CalendarDateCell[] = []\n if (isInRange.value) {\n const [start, end] = props.range!\n const currentMonthRange: CalendarDateCell[] = rangeArr(\n end.date() - start.date() + 1\n ).map((index) => ({\n text: start.date() + index,\n type: 'current',\n }))\n\n let remaining = currentMonthRange.length % 7\n remaining = remaining === 0 ? 0 : 7 - remaining\n const nextMonthRange: CalendarDateCell[] = rangeArr(remaining).map(\n (_, index) => ({\n text: index + 1,\n type: 'next',\n })\n )\n days = currentMonthRange.concat(nextMonthRange)\n } else {\n const firstDay = props.date.startOf('month').day()\n const prevMonthDays: CalendarDateCell[] = getPrevMonthLastDays(\n props.date,\n firstDay - firstDayOfWeek\n ).map((day) => ({\n text: day,\n type: 'prev',\n }))\n const currentMonthDays: CalendarDateCell[] = getMonthDays(props.date).map(\n (day) => ({\n text: day,\n type: 'current',\n })\n )\n days = [...prevMonthDays, ...currentMonthDays]\n const remaining = 7 - (days.length % 7 || 7)\n const nextMonthDays: CalendarDateCell[] = rangeArr(remaining).map(\n (_, index) => ({\n text: index + 1,\n type: 'next',\n })\n )\n days = days.concat(nextMonthDays)\n }\n return toNestedArr(days)\n})\n\nconst weekDays = computed(() => {\n const start = firstDayOfWeek\n if (start === 0) {\n return WEEK_DAYS.map((_) => t(`el.datepicker.weeks.${_}`))\n } else {\n return WEEK_DAYS.slice(start)\n .concat(WEEK_DAYS.slice(0, start))\n .map((_) => t(`el.datepicker.weeks.${_}`))\n }\n})\n\nconst getFormattedDate = (day: number, type: CalendarDateCellType): Dayjs => {\n switch (type) {\n case 'prev':\n return props.date.startOf('month').subtract(1, 'month').date(day)\n case 'next':\n return props.date.startOf('month').add(1, 'month').date(day)\n case 'current':\n return props.date.date(day)\n }\n}\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\nconst handlePickDay = ({ text, type }: CalendarDateCell) => {\n const date = getFormattedDate(text, type)\n emit('pick', date)\n}\n\nconst getSlotData = ({ text, type }: CalendarDateCell) => {\n const day = getFormattedDate(text, type)\n return {\n isSelected: day.isSame(props.selectedDay),\n type: `${type}-month`,\n day: day.format('YYYY-MM-DD'),\n date: day.toDate(),\n }\n}\n\ndefineExpose({\n /** @description toggle date panel */\n getFormattedDate,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAqDA,IAAA,KAAA,CAAA,OAAA,UAAA,CAAA,CAAA;AASA,IAAA,MAAA,EAAA,CAAA,EAAA,IAAA,EAAA,GAAA,SAAA,EAAA,CAAA;AACA,IAAA,MAAA,OAAA,GAAA,aAAA,gBAAA,CAAA,CAAA;AACA,IAAA,MAAA,KAAA,GAAA,aAAA,cAAA,CAAA,CAAA;AAEA,IAAA,MAAA,GAAA,GAAA,KAAA,EAAA,CAAA,MAAA,CAAA,KAAA,KAAA,CAAA,CAAA;AAEA,IAAA,MAAA,cAAA,GAAA,GAAA,CAAA,OAAA,EAAA,CAAA,SAAA,IAAA,CAAA,CAAA;AAEA,IAAA,MAAA,SAAA,GAAA,QAAA,CAAA,MAAA,CAAA,CAAA,KAAA,CAAA,KAAA,IAAA,CAAA,CAAA,KAAA,CAAA,KAAA,CAA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AAA,IAAA,EAAA,KAAA;AACA,MAAA,MAAA,GAAA,GAAA,gBAAA,CAAA,IAAA,EAAA,IAAA,CAAA,CAAA;AACA,MAAA,OAAA;AAAA,QACA,UAAA,EAAA,GAAA,CAAA,MAAA,CAAA,KAAA,CAAA,WAAA,CAAA;AAAA,QACA,MAAA,CAAA,EAAA,IAAA,CAAA,MAAA,CAAA;AAAA,QACA,GAAA,EAAA,GAAA,CAAA,MAAA,CAAA,YAAA,CAAA;AAAA,QACA,IAAA,EAAA,IAAA,MAAA,EAAA;AAAA,OACA,CAAA;AAAA,KACA,CAAA;AAEA,IAAA,MAAA,CAAA;AAAA,MAEA,gBAAA;AAAA,KACA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,3 +1,3 @@
1
1
  export { ElImage, ElImage as default } from './index2.mjs';
2
- export { imageEmits, imageProps } from './src/image4.mjs';
2
+ export { imageEmits, imageProps } from './src/image3.mjs';
3
3
  //# sourceMappingURL=index.mjs.map
@@ -1,6 +1,6 @@
1
1
  import '../../utils/index2.mjs';
2
- import Image from './src/image3.mjs';
3
- export { imageEmits, imageProps } from './src/image4.mjs';
2
+ import Image from './src/image4.mjs';
3
+ export { imageEmits, imageProps } from './src/image3.mjs';
4
4
  import { withInstall } from '../../utils/vue/install2.mjs';
5
5
 
6
6
  const ElImage = withInstall(Image);
@@ -1,2 +1,2 @@
1
- export { imageEmits, imageProps } from './image4.mjs';
1
+ export { imageEmits, imageProps } from './image3.mjs';
2
2
  //# sourceMappingURL=image.mjs.map