@element-plus/nightly 0.0.20221018 → 0.0.20221020

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 (446) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.full.js +318 -295
  3. package/dist/index.full.min.js +13 -13
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +14 -14
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +318 -295
  8. package/dist/locale/af.js +1 -1
  9. package/dist/locale/af.min.js +1 -1
  10. package/dist/locale/af.min.mjs +1 -1
  11. package/dist/locale/af.mjs +1 -1
  12. package/dist/locale/ar.js +1 -1
  13. package/dist/locale/ar.min.js +1 -1
  14. package/dist/locale/ar.min.mjs +1 -1
  15. package/dist/locale/ar.mjs +1 -1
  16. package/dist/locale/az.js +1 -1
  17. package/dist/locale/az.min.js +1 -1
  18. package/dist/locale/az.min.mjs +1 -1
  19. package/dist/locale/az.mjs +1 -1
  20. package/dist/locale/bg.js +1 -1
  21. package/dist/locale/bg.min.js +1 -1
  22. package/dist/locale/bg.min.mjs +1 -1
  23. package/dist/locale/bg.mjs +1 -1
  24. package/dist/locale/bn.js +1 -1
  25. package/dist/locale/bn.min.js +1 -1
  26. package/dist/locale/bn.min.mjs +1 -1
  27. package/dist/locale/bn.mjs +1 -1
  28. package/dist/locale/ca.js +1 -1
  29. package/dist/locale/ca.min.js +1 -1
  30. package/dist/locale/ca.min.mjs +1 -1
  31. package/dist/locale/ca.mjs +1 -1
  32. package/dist/locale/cs.js +1 -1
  33. package/dist/locale/cs.min.js +1 -1
  34. package/dist/locale/cs.min.mjs +1 -1
  35. package/dist/locale/cs.mjs +1 -1
  36. package/dist/locale/da.js +1 -1
  37. package/dist/locale/da.min.js +1 -1
  38. package/dist/locale/da.min.mjs +1 -1
  39. package/dist/locale/da.mjs +1 -1
  40. package/dist/locale/de.js +1 -1
  41. package/dist/locale/de.min.js +1 -1
  42. package/dist/locale/de.min.mjs +1 -1
  43. package/dist/locale/de.mjs +1 -1
  44. package/dist/locale/el.js +1 -1
  45. package/dist/locale/el.min.js +1 -1
  46. package/dist/locale/el.min.mjs +1 -1
  47. package/dist/locale/el.mjs +1 -1
  48. package/dist/locale/en.js +1 -1
  49. package/dist/locale/en.min.js +1 -1
  50. package/dist/locale/en.min.mjs +1 -1
  51. package/dist/locale/en.mjs +1 -1
  52. package/dist/locale/eo.js +1 -1
  53. package/dist/locale/eo.min.js +1 -1
  54. package/dist/locale/eo.min.mjs +1 -1
  55. package/dist/locale/eo.mjs +1 -1
  56. package/dist/locale/es.js +1 -1
  57. package/dist/locale/es.min.js +1 -1
  58. package/dist/locale/es.min.mjs +1 -1
  59. package/dist/locale/es.mjs +1 -1
  60. package/dist/locale/et.js +1 -1
  61. package/dist/locale/et.min.js +1 -1
  62. package/dist/locale/et.min.mjs +1 -1
  63. package/dist/locale/et.mjs +1 -1
  64. package/dist/locale/eu.js +1 -1
  65. package/dist/locale/eu.min.js +1 -1
  66. package/dist/locale/eu.min.mjs +1 -1
  67. package/dist/locale/eu.mjs +1 -1
  68. package/dist/locale/fa.js +1 -1
  69. package/dist/locale/fa.min.js +1 -1
  70. package/dist/locale/fa.min.mjs +1 -1
  71. package/dist/locale/fa.mjs +1 -1
  72. package/dist/locale/fi.js +1 -1
  73. package/dist/locale/fi.min.js +1 -1
  74. package/dist/locale/fi.min.mjs +1 -1
  75. package/dist/locale/fi.mjs +1 -1
  76. package/dist/locale/fr.js +1 -1
  77. package/dist/locale/fr.min.js +1 -1
  78. package/dist/locale/fr.min.mjs +1 -1
  79. package/dist/locale/fr.mjs +1 -1
  80. package/dist/locale/he.js +1 -1
  81. package/dist/locale/he.min.js +1 -1
  82. package/dist/locale/he.min.mjs +1 -1
  83. package/dist/locale/he.mjs +1 -1
  84. package/dist/locale/hr.js +1 -1
  85. package/dist/locale/hr.min.js +1 -1
  86. package/dist/locale/hr.min.mjs +1 -1
  87. package/dist/locale/hr.mjs +1 -1
  88. package/dist/locale/hu.js +1 -1
  89. package/dist/locale/hu.min.js +1 -1
  90. package/dist/locale/hu.min.mjs +1 -1
  91. package/dist/locale/hu.mjs +1 -1
  92. package/dist/locale/hy-am.js +1 -1
  93. package/dist/locale/hy-am.min.js +1 -1
  94. package/dist/locale/hy-am.min.mjs +1 -1
  95. package/dist/locale/hy-am.mjs +1 -1
  96. package/dist/locale/id.js +1 -1
  97. package/dist/locale/id.min.js +1 -1
  98. package/dist/locale/id.min.mjs +1 -1
  99. package/dist/locale/id.mjs +1 -1
  100. package/dist/locale/it.js +1 -1
  101. package/dist/locale/it.min.js +1 -1
  102. package/dist/locale/it.min.mjs +1 -1
  103. package/dist/locale/it.mjs +1 -1
  104. package/dist/locale/ja.js +1 -1
  105. package/dist/locale/ja.min.js +1 -1
  106. package/dist/locale/ja.min.mjs +1 -1
  107. package/dist/locale/ja.mjs +1 -1
  108. package/dist/locale/kk.js +1 -1
  109. package/dist/locale/kk.min.js +1 -1
  110. package/dist/locale/kk.min.mjs +1 -1
  111. package/dist/locale/kk.mjs +1 -1
  112. package/dist/locale/km.js +1 -1
  113. package/dist/locale/km.min.js +1 -1
  114. package/dist/locale/km.min.mjs +1 -1
  115. package/dist/locale/km.mjs +1 -1
  116. package/dist/locale/ko.js +1 -1
  117. package/dist/locale/ko.min.js +1 -1
  118. package/dist/locale/ko.min.mjs +1 -1
  119. package/dist/locale/ko.mjs +1 -1
  120. package/dist/locale/ku.js +1 -1
  121. package/dist/locale/ku.min.js +1 -1
  122. package/dist/locale/ku.min.mjs +1 -1
  123. package/dist/locale/ku.mjs +1 -1
  124. package/dist/locale/ky.js +1 -1
  125. package/dist/locale/ky.min.js +1 -1
  126. package/dist/locale/ky.min.mjs +1 -1
  127. package/dist/locale/ky.mjs +1 -1
  128. package/dist/locale/lt.js +1 -1
  129. package/dist/locale/lt.min.js +1 -1
  130. package/dist/locale/lt.min.mjs +1 -1
  131. package/dist/locale/lt.mjs +1 -1
  132. package/dist/locale/lv.js +1 -1
  133. package/dist/locale/lv.min.js +1 -1
  134. package/dist/locale/lv.min.mjs +1 -1
  135. package/dist/locale/lv.mjs +1 -1
  136. package/dist/locale/mg.js +1 -1
  137. package/dist/locale/mg.min.js +1 -1
  138. package/dist/locale/mg.min.mjs +1 -1
  139. package/dist/locale/mg.mjs +1 -1
  140. package/dist/locale/mn.js +1 -1
  141. package/dist/locale/mn.min.js +1 -1
  142. package/dist/locale/mn.min.mjs +1 -1
  143. package/dist/locale/mn.mjs +1 -1
  144. package/dist/locale/nb-no.js +1 -1
  145. package/dist/locale/nb-no.min.js +1 -1
  146. package/dist/locale/nb-no.min.mjs +1 -1
  147. package/dist/locale/nb-no.mjs +1 -1
  148. package/dist/locale/nl.js +1 -1
  149. package/dist/locale/nl.min.js +1 -1
  150. package/dist/locale/nl.min.mjs +1 -1
  151. package/dist/locale/nl.mjs +1 -1
  152. package/dist/locale/pa.js +1 -1
  153. package/dist/locale/pa.min.js +1 -1
  154. package/dist/locale/pa.min.mjs +1 -1
  155. package/dist/locale/pa.mjs +1 -1
  156. package/dist/locale/pl.js +1 -1
  157. package/dist/locale/pl.min.js +1 -1
  158. package/dist/locale/pl.min.mjs +1 -1
  159. package/dist/locale/pl.mjs +1 -1
  160. package/dist/locale/pt-br.js +1 -1
  161. package/dist/locale/pt-br.min.js +1 -1
  162. package/dist/locale/pt-br.min.mjs +1 -1
  163. package/dist/locale/pt-br.mjs +1 -1
  164. package/dist/locale/pt.js +1 -1
  165. package/dist/locale/pt.min.js +1 -1
  166. package/dist/locale/pt.min.mjs +1 -1
  167. package/dist/locale/pt.mjs +1 -1
  168. package/dist/locale/ro.js +1 -1
  169. package/dist/locale/ro.min.js +1 -1
  170. package/dist/locale/ro.min.mjs +1 -1
  171. package/dist/locale/ro.mjs +1 -1
  172. package/dist/locale/ru.js +1 -1
  173. package/dist/locale/ru.min.js +1 -1
  174. package/dist/locale/ru.min.mjs +1 -1
  175. package/dist/locale/ru.mjs +1 -1
  176. package/dist/locale/sk.js +1 -1
  177. package/dist/locale/sk.min.js +1 -1
  178. package/dist/locale/sk.min.mjs +1 -1
  179. package/dist/locale/sk.mjs +1 -1
  180. package/dist/locale/sl.js +1 -1
  181. package/dist/locale/sl.min.js +1 -1
  182. package/dist/locale/sl.min.mjs +1 -1
  183. package/dist/locale/sl.mjs +1 -1
  184. package/dist/locale/sr.js +1 -1
  185. package/dist/locale/sr.min.js +1 -1
  186. package/dist/locale/sr.min.mjs +1 -1
  187. package/dist/locale/sr.mjs +1 -1
  188. package/dist/locale/sv.js +1 -1
  189. package/dist/locale/sv.min.js +1 -1
  190. package/dist/locale/sv.min.mjs +1 -1
  191. package/dist/locale/sv.mjs +1 -1
  192. package/dist/locale/ta.js +1 -1
  193. package/dist/locale/ta.min.js +1 -1
  194. package/dist/locale/ta.min.mjs +1 -1
  195. package/dist/locale/ta.mjs +1 -1
  196. package/dist/locale/th.js +1 -1
  197. package/dist/locale/th.min.js +1 -1
  198. package/dist/locale/th.min.mjs +1 -1
  199. package/dist/locale/th.mjs +1 -1
  200. package/dist/locale/tk.js +1 -1
  201. package/dist/locale/tk.min.js +1 -1
  202. package/dist/locale/tk.min.mjs +1 -1
  203. package/dist/locale/tk.mjs +1 -1
  204. package/dist/locale/tr.js +1 -1
  205. package/dist/locale/tr.min.js +1 -1
  206. package/dist/locale/tr.min.mjs +1 -1
  207. package/dist/locale/tr.mjs +1 -1
  208. package/dist/locale/ug-cn.js +1 -1
  209. package/dist/locale/ug-cn.min.js +1 -1
  210. package/dist/locale/ug-cn.min.mjs +1 -1
  211. package/dist/locale/ug-cn.mjs +1 -1
  212. package/dist/locale/uk.js +1 -1
  213. package/dist/locale/uk.min.js +1 -1
  214. package/dist/locale/uk.min.mjs +1 -1
  215. package/dist/locale/uk.mjs +1 -1
  216. package/dist/locale/uz-uz.js +1 -1
  217. package/dist/locale/uz-uz.min.js +1 -1
  218. package/dist/locale/uz-uz.min.mjs +1 -1
  219. package/dist/locale/uz-uz.mjs +1 -1
  220. package/dist/locale/vi.js +1 -1
  221. package/dist/locale/vi.min.js +1 -1
  222. package/dist/locale/vi.min.mjs +1 -1
  223. package/dist/locale/vi.mjs +1 -1
  224. package/dist/locale/zh-cn.js +1 -1
  225. package/dist/locale/zh-cn.min.js +1 -1
  226. package/dist/locale/zh-cn.min.mjs +1 -1
  227. package/dist/locale/zh-cn.mjs +1 -1
  228. package/dist/locale/zh-tw.js +1 -1
  229. package/dist/locale/zh-tw.min.js +1 -1
  230. package/dist/locale/zh-tw.min.mjs +1 -1
  231. package/dist/locale/zh-tw.mjs +1 -1
  232. package/es/components/backtop/index.d.ts +2 -6
  233. package/es/components/backtop/index.mjs.map +1 -1
  234. package/es/components/backtop/src/backtop.d.ts +0 -2
  235. package/es/components/backtop/src/backtop.mjs.map +1 -1
  236. package/es/components/backtop/src/backtop.vue.d.ts +5 -10
  237. package/es/components/backtop/src/backtop2.mjs +6 -52
  238. package/es/components/backtop/src/backtop2.mjs.map +1 -1
  239. package/es/components/backtop/src/instance.d.ts +2 -0
  240. package/es/components/backtop/src/instance.mjs +2 -0
  241. package/es/components/backtop/src/instance.mjs.map +1 -0
  242. package/es/components/backtop/src/use-backtop.d.ts +6 -0
  243. package/es/components/backtop/src/use-backtop.mjs +58 -0
  244. package/es/components/backtop/src/use-backtop.mjs.map +1 -0
  245. package/es/components/button/index.d.ts +4 -10
  246. package/es/components/button/index.mjs.map +1 -1
  247. package/es/components/button/src/button-group.d.ts +0 -2
  248. package/es/components/button/src/button-group.mjs.map +1 -1
  249. package/es/components/button/src/button.d.ts +0 -2
  250. package/es/components/button/src/button.mjs.map +1 -1
  251. package/es/components/button/src/button.vue.d.ts +3 -10
  252. package/es/components/button/src/button2.mjs +5 -46
  253. package/es/components/button/src/button2.mjs.map +1 -1
  254. package/es/components/button/src/instance.d.ts +4 -0
  255. package/es/components/button/src/instance.mjs +2 -0
  256. package/es/components/button/src/instance.mjs.map +1 -0
  257. package/es/components/button/src/use-button.d.ts +10 -0
  258. package/es/components/button/src/use-button.mjs +59 -0
  259. package/es/components/button/src/use-button.mjs.map +1 -0
  260. package/es/components/calendar/index.d.ts +16 -25
  261. package/es/components/calendar/index.mjs.map +1 -1
  262. package/es/components/calendar/src/calendar.vue.d.ts +15 -25
  263. package/es/components/calendar/src/date-table.d.ts +0 -2
  264. package/es/components/calendar/src/date-table.mjs.map +1 -1
  265. package/es/components/calendar/src/date-table.vue.d.ts +26 -31
  266. package/es/components/calendar/src/date-table2.mjs +14 -82
  267. package/es/components/calendar/src/date-table2.mjs.map +1 -1
  268. package/es/components/calendar/src/instance.d.ts +3 -0
  269. package/es/components/calendar/src/instance.mjs +2 -0
  270. package/es/components/calendar/src/instance.mjs.map +1 -0
  271. package/es/components/calendar/src/use-date-table.d.ts +18 -0
  272. package/es/components/calendar/src/use-date-table.mjs +96 -0
  273. package/es/components/calendar/src/use-date-table.mjs.map +1 -0
  274. package/es/components/cascader/src/index.mjs +2 -2
  275. package/es/components/cascader/src/index.mjs.map +1 -1
  276. package/es/components/cascader-panel/src/index.mjs +5 -3
  277. package/es/components/cascader-panel/src/index.mjs.map +1 -1
  278. package/es/components/color-picker/index.d.ts +3 -10
  279. package/es/components/color-picker/src/color-picker.vue.d.ts +3 -10
  280. package/es/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +3 -10
  281. package/es/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +3 -10
  282. package/es/components/date-picker/src/panel-utils.d.ts +6 -20
  283. package/es/components/index.mjs +7 -7
  284. package/es/components/menu/src/menu-item2.mjs +1 -1
  285. package/es/components/message/index.mjs +1 -1
  286. package/es/components/message/src/message.mjs +146 -86
  287. package/es/components/message/src/message.mjs.map +1 -1
  288. package/es/components/message/src/message2.mjs +86 -146
  289. package/es/components/message/src/message2.mjs.map +1 -1
  290. package/es/components/message/src/method.mjs +2 -2
  291. package/es/components/popconfirm/index.d.ts +3 -10
  292. package/es/components/popconfirm/src/popconfirm.vue.d.ts +3 -10
  293. package/es/components/popper/index.mjs +4 -4
  294. package/es/components/popper/src/arrow.mjs +37 -8
  295. package/es/components/popper/src/arrow.mjs.map +1 -1
  296. package/es/components/popper/src/arrow2.mjs +8 -37
  297. package/es/components/popper/src/arrow2.mjs.map +1 -1
  298. package/es/components/popper/src/popper.mjs +33 -25
  299. package/es/components/popper/src/popper.mjs.map +1 -1
  300. package/es/components/popper/src/popper2.mjs +25 -33
  301. package/es/components/popper/src/popper2.mjs.map +1 -1
  302. package/es/components/radio/index.mjs +4 -4
  303. package/es/components/radio/src/radio-button.mjs +1 -1
  304. package/es/components/radio/src/radio-group.mjs +36 -68
  305. package/es/components/radio/src/radio-group.mjs.map +1 -1
  306. package/es/components/radio/src/radio-group2.mjs +68 -36
  307. package/es/components/radio/src/radio-group2.mjs.map +1 -1
  308. package/es/components/radio/src/radio.mjs +30 -71
  309. package/es/components/radio/src/radio.mjs.map +1 -1
  310. package/es/components/radio/src/radio2.mjs +71 -30
  311. package/es/components/radio/src/radio2.mjs.map +1 -1
  312. package/es/components/rate/index.mjs +2 -2
  313. package/es/components/rate/src/rate.mjs +98 -256
  314. package/es/components/rate/src/rate.mjs.map +1 -1
  315. package/es/components/rate/src/rate2.mjs +256 -98
  316. package/es/components/rate/src/rate2.mjs.map +1 -1
  317. package/es/components/skeleton/index.d.ts +1 -1
  318. package/es/components/skeleton/src/skeleton.vue.d.ts +1 -1
  319. package/es/components/switch/src/switch2.mjs +15 -34
  320. package/es/components/switch/src/switch2.mjs.map +1 -1
  321. package/es/components/table/src/table-body/render-helper.mjs +1 -1
  322. package/es/components/table/src/table-body/render-helper.mjs.map +1 -1
  323. package/es/components/table/src/table-body/styles-helper.d.ts +1 -1
  324. package/es/components/table/src/table-body/styles-helper.mjs +2 -2
  325. package/es/components/table/src/table-body/styles-helper.mjs.map +1 -1
  326. package/es/components/table/src/util.d.ts +1 -1
  327. package/es/components/table/src/util.mjs +3 -3
  328. package/es/components/table/src/util.mjs.map +1 -1
  329. package/es/components/tooltip/src/tooltip.mjs +2 -2
  330. package/es/components/tooltip/src/tooltip2.mjs +1 -1
  331. package/es/components/transfer/index.d.ts +3 -10
  332. package/es/components/transfer/src/transfer.vue.d.ts +3 -10
  333. package/es/index.mjs +7 -7
  334. package/es/version.d.ts +1 -1
  335. package/es/version.mjs +1 -1
  336. package/es/version.mjs.map +1 -1
  337. package/lib/components/backtop/index.d.ts +2 -6
  338. package/lib/components/backtop/index.js.map +1 -1
  339. package/lib/components/backtop/src/backtop.d.ts +0 -2
  340. package/lib/components/backtop/src/backtop.js.map +1 -1
  341. package/lib/components/backtop/src/backtop.vue.d.ts +5 -10
  342. package/lib/components/backtop/src/backtop2.js +5 -51
  343. package/lib/components/backtop/src/backtop2.js.map +1 -1
  344. package/lib/components/backtop/src/instance.d.ts +2 -0
  345. package/lib/components/backtop/src/instance.js +3 -0
  346. package/lib/components/backtop/src/instance.js.map +1 -0
  347. package/lib/components/backtop/src/use-backtop.d.ts +6 -0
  348. package/lib/components/backtop/src/use-backtop.js +62 -0
  349. package/lib/components/backtop/src/use-backtop.js.map +1 -0
  350. package/lib/components/button/index.d.ts +4 -10
  351. package/lib/components/button/index.js.map +1 -1
  352. package/lib/components/button/src/button-group.d.ts +0 -2
  353. package/lib/components/button/src/button-group.js.map +1 -1
  354. package/lib/components/button/src/button.d.ts +0 -2
  355. package/lib/components/button/src/button.js.map +1 -1
  356. package/lib/components/button/src/button.vue.d.ts +3 -10
  357. package/lib/components/button/src/button2.js +8 -49
  358. package/lib/components/button/src/button2.js.map +1 -1
  359. package/lib/components/button/src/instance.d.ts +4 -0
  360. package/lib/components/button/src/instance.js +3 -0
  361. package/lib/components/button/src/instance.js.map +1 -0
  362. package/lib/components/button/src/use-button.d.ts +10 -0
  363. package/lib/components/button/src/use-button.js +63 -0
  364. package/lib/components/button/src/use-button.js.map +1 -0
  365. package/lib/components/calendar/index.d.ts +16 -25
  366. package/lib/components/calendar/index.js.map +1 -1
  367. package/lib/components/calendar/src/calendar.vue.d.ts +15 -25
  368. package/lib/components/calendar/src/date-table.d.ts +0 -2
  369. package/lib/components/calendar/src/date-table.js.map +1 -1
  370. package/lib/components/calendar/src/date-table.vue.d.ts +26 -31
  371. package/lib/components/calendar/src/date-table2.js +15 -88
  372. package/lib/components/calendar/src/date-table2.js.map +1 -1
  373. package/lib/components/calendar/src/instance.d.ts +3 -0
  374. package/lib/components/calendar/src/instance.js +3 -0
  375. package/lib/components/calendar/src/instance.js.map +1 -0
  376. package/lib/components/calendar/src/use-date-table.d.ts +18 -0
  377. package/lib/components/calendar/src/use-date-table.js +105 -0
  378. package/lib/components/calendar/src/use-date-table.js.map +1 -0
  379. package/lib/components/cascader/src/index.js +1 -1
  380. package/lib/components/cascader/src/index.js.map +1 -1
  381. package/lib/components/cascader-panel/src/index.js +4 -2
  382. package/lib/components/cascader-panel/src/index.js.map +1 -1
  383. package/lib/components/color-picker/index.d.ts +3 -10
  384. package/lib/components/color-picker/src/color-picker.vue.d.ts +3 -10
  385. package/lib/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +3 -10
  386. package/lib/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +3 -10
  387. package/lib/components/date-picker/src/panel-utils.d.ts +6 -20
  388. package/lib/components/index.js +7 -7
  389. package/lib/components/menu/src/menu-item2.js +1 -1
  390. package/lib/components/message/index.js +1 -1
  391. package/lib/components/message/src/message.js +144 -87
  392. package/lib/components/message/src/message.js.map +1 -1
  393. package/lib/components/message/src/message2.js +87 -144
  394. package/lib/components/message/src/message2.js.map +1 -1
  395. package/lib/components/message/src/method.js +2 -2
  396. package/lib/components/popconfirm/index.d.ts +3 -10
  397. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +3 -10
  398. package/lib/components/popper/index.js +4 -4
  399. package/lib/components/popper/src/arrow.js +37 -9
  400. package/lib/components/popper/src/arrow.js.map +1 -1
  401. package/lib/components/popper/src/arrow2.js +9 -37
  402. package/lib/components/popper/src/arrow2.js.map +1 -1
  403. package/lib/components/popper/src/popper.js +33 -28
  404. package/lib/components/popper/src/popper.js.map +1 -1
  405. package/lib/components/popper/src/popper2.js +28 -33
  406. package/lib/components/popper/src/popper2.js.map +1 -1
  407. package/lib/components/radio/index.js +4 -4
  408. package/lib/components/radio/src/radio-button.js +1 -1
  409. package/lib/components/radio/src/radio-group.js +37 -68
  410. package/lib/components/radio/src/radio-group.js.map +1 -1
  411. package/lib/components/radio/src/radio-group2.js +68 -37
  412. package/lib/components/radio/src/radio-group2.js.map +1 -1
  413. package/lib/components/radio/src/radio.js +32 -71
  414. package/lib/components/radio/src/radio.js.map +1 -1
  415. package/lib/components/radio/src/radio2.js +71 -32
  416. package/lib/components/radio/src/radio2.js.map +1 -1
  417. package/lib/components/rate/index.js +2 -2
  418. package/lib/components/rate/src/rate.js +98 -255
  419. package/lib/components/rate/src/rate.js.map +1 -1
  420. package/lib/components/rate/src/rate2.js +255 -98
  421. package/lib/components/rate/src/rate2.js.map +1 -1
  422. package/lib/components/skeleton/index.d.ts +1 -1
  423. package/lib/components/skeleton/src/skeleton.vue.d.ts +1 -1
  424. package/lib/components/switch/src/switch2.js +14 -33
  425. package/lib/components/switch/src/switch2.js.map +1 -1
  426. package/lib/components/table/src/table-body/render-helper.js +1 -1
  427. package/lib/components/table/src/table-body/render-helper.js.map +1 -1
  428. package/lib/components/table/src/table-body/styles-helper.d.ts +1 -1
  429. package/lib/components/table/src/table-body/styles-helper.js +2 -2
  430. package/lib/components/table/src/table-body/styles-helper.js.map +1 -1
  431. package/lib/components/table/src/util.d.ts +1 -1
  432. package/lib/components/table/src/util.js +3 -3
  433. package/lib/components/table/src/util.js.map +1 -1
  434. package/lib/components/tooltip/src/tooltip.js +2 -2
  435. package/lib/components/tooltip/src/tooltip2.js +1 -1
  436. package/lib/components/transfer/index.d.ts +3 -10
  437. package/lib/components/transfer/src/transfer.vue.d.ts +3 -10
  438. package/lib/index.js +7 -7
  439. package/lib/version.d.ts +1 -1
  440. package/lib/version.js +1 -1
  441. package/lib/version.js.map +1 -1
  442. package/package.json +2 -2
  443. package/theme-chalk/el-switch.css +1 -1
  444. package/theme-chalk/index.css +1 -1
  445. package/theme-chalk/src/switch.scss +37 -41
  446. package/web-types.json +1 -1
@@ -1,4 +1,4 @@
1
- /*! Element Plus v0.0.20221018 */
1
+ /*! Element Plus v0.0.20221020 */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
@@ -11072,7 +11072,7 @@
11072
11072
  };
11073
11073
  };
11074
11074
 
11075
- const version$1 = "0.0.20221018";
11075
+ const version$1 = "0.0.20221020";
11076
11076
 
11077
11077
  const makeInstaller = (components = []) => {
11078
11078
  const install = (app, options) => {
@@ -11578,7 +11578,7 @@
11578
11578
  compositionend: (evt) => evt instanceof CompositionEvent
11579
11579
  };
11580
11580
 
11581
- const _hoisted_1$14 = ["role"];
11581
+ const _hoisted_1$13 = ["role"];
11582
11582
  const _hoisted_2$G = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form"];
11583
11583
  const _hoisted_3$l = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form"];
11584
11584
  const __default__$1r = vue.defineComponent({
@@ -11978,7 +11978,7 @@
11978
11978
  class: vue.normalizeClass(vue.unref(nsInput).e("count"))
11979
11979
  }, vue.toDisplayString(vue.unref(textLength)) + " / " + vue.toDisplayString(vue.unref(attrs).maxlength), 7)) : vue.createCommentVNode("v-if", true)
11980
11980
  ], 64))
11981
- ], 16, _hoisted_1$14)), [
11981
+ ], 16, _hoisted_1$13)), [
11982
11982
  [vue.vShow, _ctx.type !== "hidden"]
11983
11983
  ]);
11984
11984
  };
@@ -13759,7 +13759,7 @@
13759
13759
  });
13760
13760
  var ElTooltipContent = /* @__PURE__ */ _export_sfc(_sfc_main$22, [["__file", "content.vue"]]);
13761
13761
 
13762
- const _hoisted_1$13 = ["innerHTML"];
13762
+ const _hoisted_1$12 = ["innerHTML"];
13763
13763
  const _hoisted_2$F = { key: 1 };
13764
13764
  const __default__$1j = vue.defineComponent({
13765
13765
  name: "ElTooltip"
@@ -13908,7 +13908,7 @@
13908
13908
  _ctx.rawContent ? (vue.openBlock(), vue.createElementBlock("span", {
13909
13909
  key: 0,
13910
13910
  innerHTML: _ctx.content
13911
- }, null, 8, _hoisted_1$13)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$F, vue.toDisplayString(_ctx.content), 1))
13911
+ }, null, 8, _hoisted_1$12)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_2$F, vue.toDisplayString(_ctx.content), 1))
13912
13912
  ]),
13913
13913
  vue.unref(compatShowArrow) ? (vue.openBlock(), vue.createBlock(vue.unref(ElPopperArrow), {
13914
13914
  key: 0,
@@ -13995,7 +13995,7 @@
13995
13995
  select: (item) => isObject$1(item)
13996
13996
  };
13997
13997
 
13998
- const _hoisted_1$12 = ["aria-expanded", "aria-owns"];
13998
+ const _hoisted_1$11 = ["aria-expanded", "aria-owns"];
13999
13999
  const _hoisted_2$E = { key: 0 };
14000
14000
  const _hoisted_3$k = ["id", "aria-selected", "onClick"];
14001
14001
  const COMPONENT_NAME$i = "ElAutocomplete";
@@ -14322,7 +14322,7 @@
14322
14322
  ])
14323
14323
  } : void 0
14324
14324
  ]), 1040, ["model-value", "onKeydown"])
14325
- ], 14, _hoisted_1$12)
14325
+ ], 14, _hoisted_1$11)
14326
14326
  ]),
14327
14327
  _: 3
14328
14328
  }, 8, ["visible", "placement", "popper-class", "teleported", "transition"]);
@@ -14363,7 +14363,7 @@
14363
14363
  error: (evt) => evt instanceof Event
14364
14364
  };
14365
14365
 
14366
- const _hoisted_1$11 = ["src", "alt", "srcset"];
14366
+ const _hoisted_1$10 = ["src", "alt", "srcset"];
14367
14367
  const __default__$1h = vue.defineComponent({
14368
14368
  name: "ElAvatar"
14369
14369
  });
@@ -14412,7 +14412,7 @@
14412
14412
  srcset: _ctx.srcSet,
14413
14413
  style: vue.normalizeStyle(vue.unref(fitStyle)),
14414
14414
  onError: handleError
14415
- }, null, 44, _hoisted_1$11)) : _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(ElIcon), { key: 1 }, {
14415
+ }, null, 44, _hoisted_1$10)) : _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(ElIcon), { key: 1 }, {
14416
14416
  default: vue.withCtx(() => [
14417
14417
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon)))
14418
14418
  ]),
@@ -14448,7 +14448,56 @@
14448
14448
  click: (evt) => evt instanceof MouseEvent
14449
14449
  };
14450
14450
 
14451
- const _hoisted_1$10 = ["onClick"];
14451
+ const useBackTop = (props, emit, componentName) => {
14452
+ const el = vue.shallowRef();
14453
+ const container = vue.shallowRef();
14454
+ const visible = vue.ref(false);
14455
+ const scrollToTop = () => {
14456
+ if (!el.value)
14457
+ return;
14458
+ const beginTime = Date.now();
14459
+ const beginValue = el.value.scrollTop;
14460
+ const frameFunc = () => {
14461
+ if (!el.value)
14462
+ return;
14463
+ const progress = (Date.now() - beginTime) / 500;
14464
+ if (progress < 1) {
14465
+ el.value.scrollTop = beginValue * (1 - easeInOutCubic(progress));
14466
+ requestAnimationFrame(frameFunc);
14467
+ } else {
14468
+ el.value.scrollTop = 0;
14469
+ }
14470
+ };
14471
+ requestAnimationFrame(frameFunc);
14472
+ };
14473
+ const handleScroll = () => {
14474
+ if (el.value)
14475
+ visible.value = el.value.scrollTop >= props.visibilityHeight;
14476
+ };
14477
+ const handleClick = (event) => {
14478
+ scrollToTop();
14479
+ emit("click", event);
14480
+ };
14481
+ const handleScrollThrottled = useThrottleFn(handleScroll, 300, true);
14482
+ useEventListener(container, "scroll", handleScrollThrottled);
14483
+ vue.onMounted(() => {
14484
+ var _a;
14485
+ container.value = document;
14486
+ el.value = document.documentElement;
14487
+ if (props.target) {
14488
+ el.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
14489
+ if (!el.value) {
14490
+ throwError(componentName, `target does not exist: ${props.target}`);
14491
+ }
14492
+ container.value = el.value;
14493
+ }
14494
+ });
14495
+ return {
14496
+ visible,
14497
+ handleClick
14498
+ };
14499
+ };
14500
+
14452
14501
  const COMPONENT_NAME$h = "ElBacktop";
14453
14502
  const __default__$1g = vue.defineComponent({
14454
14503
  name: COMPONENT_NAME$h
@@ -14460,63 +14509,21 @@
14460
14509
  setup(__props, { emit }) {
14461
14510
  const props = __props;
14462
14511
  const ns = useNamespace("backtop");
14463
- const el = vue.shallowRef();
14464
- const container = vue.shallowRef();
14465
- const visible = vue.ref(false);
14512
+ const { handleClick, visible } = useBackTop(props, emit, COMPONENT_NAME$h);
14466
14513
  const backTopStyle = vue.computed(() => ({
14467
14514
  right: `${props.right}px`,
14468
14515
  bottom: `${props.bottom}px`
14469
14516
  }));
14470
- const scrollToTop = () => {
14471
- if (!el.value)
14472
- return;
14473
- const beginTime = Date.now();
14474
- const beginValue = el.value.scrollTop;
14475
- const frameFunc = () => {
14476
- if (!el.value)
14477
- return;
14478
- const progress = (Date.now() - beginTime) / 500;
14479
- if (progress < 1) {
14480
- el.value.scrollTop = beginValue * (1 - easeInOutCubic(progress));
14481
- requestAnimationFrame(frameFunc);
14482
- } else {
14483
- el.value.scrollTop = 0;
14484
- }
14485
- };
14486
- requestAnimationFrame(frameFunc);
14487
- };
14488
- const handleScroll = () => {
14489
- if (el.value)
14490
- visible.value = el.value.scrollTop >= props.visibilityHeight;
14491
- };
14492
- const handleClick = (event) => {
14493
- scrollToTop();
14494
- emit("click", event);
14495
- };
14496
- const handleScrollThrottled = useThrottleFn(handleScroll, 300, true);
14497
- useEventListener(container, "scroll", handleScrollThrottled);
14498
- vue.onMounted(() => {
14499
- var _a;
14500
- container.value = document;
14501
- el.value = document.documentElement;
14502
- if (props.target) {
14503
- el.value = (_a = document.querySelector(props.target)) != null ? _a : void 0;
14504
- if (!el.value) {
14505
- throwError(COMPONENT_NAME$h, `target is not existed: ${props.target}`);
14506
- }
14507
- container.value = el.value;
14508
- }
14509
- });
14510
14517
  return (_ctx, _cache) => {
14511
14518
  return vue.openBlock(), vue.createBlock(vue.Transition, {
14512
14519
  name: `${vue.unref(ns).namespace.value}-fade-in`
14513
14520
  }, {
14514
14521
  default: vue.withCtx(() => [
14515
- visible.value ? (vue.openBlock(), vue.createElementBlock("div", {
14522
+ vue.unref(visible) ? (vue.openBlock(), vue.createElementBlock("div", {
14516
14523
  key: 0,
14517
14524
  style: vue.normalizeStyle(vue.unref(backTopStyle)),
14518
14525
  class: vue.normalizeClass(vue.unref(ns).b()),
14519
- onClick: vue.withModifiers(handleClick, ["stop"])
14526
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => vue.unref(handleClick) && vue.unref(handleClick)(...args), ["stop"]))
14520
14527
  }, [
14521
14528
  vue.renderSlot(_ctx.$slots, "default", {}, () => [
14522
14529
  vue.createVNode(vue.unref(ElIcon), {
@@ -14528,7 +14535,7 @@
14528
14535
  _: 1
14529
14536
  }, 8, ["class"])
14530
14537
  ])
14531
- ], 14, _hoisted_1$10)) : vue.createCommentVNode("v-if", true)
14538
+ ], 6)) : vue.createCommentVNode("v-if", true)
14532
14539
  ]),
14533
14540
  _: 3
14534
14541
  }, 8, ["name"]);
@@ -14719,6 +14726,54 @@
14719
14726
  });
14720
14727
  const ElBreadcrumbItem = withNoopInstall(BreadcrumbItem);
14721
14728
 
14729
+ const useButton = (props, emit) => {
14730
+ useDeprecated({
14731
+ from: "type.text",
14732
+ replacement: "link",
14733
+ version: "3.0.0",
14734
+ scope: "props",
14735
+ ref: "https://element-plus.org/en-US/component/button.html#button-attributes"
14736
+ }, vue.computed(() => props.type === "text"));
14737
+ const buttonGroupContext = vue.inject(buttonGroupContextKey, void 0);
14738
+ const globalConfig = useGlobalConfig("button");
14739
+ const { form } = useFormItem();
14740
+ const _size = useSize(vue.computed(() => buttonGroupContext == null ? void 0 : buttonGroupContext.size));
14741
+ const _disabled = useDisabled();
14742
+ const _ref = vue.ref();
14743
+ const slots = vue.useSlots();
14744
+ const _type = vue.computed(() => props.type || (buttonGroupContext == null ? void 0 : buttonGroupContext.type) || "");
14745
+ const autoInsertSpace = vue.computed(() => {
14746
+ var _a, _b, _c;
14747
+ return (_c = (_b = props.autoInsertSpace) != null ? _b : (_a = globalConfig.value) == null ? void 0 : _a.autoInsertSpace) != null ? _c : false;
14748
+ });
14749
+ const shouldAddSpace = vue.computed(() => {
14750
+ var _a;
14751
+ const defaultSlot = (_a = slots.default) == null ? void 0 : _a.call(slots);
14752
+ if (autoInsertSpace.value && (defaultSlot == null ? void 0 : defaultSlot.length) === 1) {
14753
+ const slot = defaultSlot[0];
14754
+ if ((slot == null ? void 0 : slot.type) === vue.Text) {
14755
+ const text = slot.children;
14756
+ return /^\p{Unified_Ideograph}{2}$/u.test(text.trim());
14757
+ }
14758
+ }
14759
+ return false;
14760
+ });
14761
+ const handleClick = (evt) => {
14762
+ if (props.nativeType === "reset") {
14763
+ form == null ? void 0 : form.resetFields();
14764
+ }
14765
+ emit("click", evt);
14766
+ };
14767
+ return {
14768
+ _disabled,
14769
+ _size,
14770
+ _type,
14771
+ _ref,
14772
+ shouldAddSpace,
14773
+ handleClick
14774
+ };
14775
+ };
14776
+
14722
14777
  const buttonTypes = [
14723
14778
  "default",
14724
14779
  "primary",
@@ -15706,45 +15761,9 @@
15706
15761
  emits: buttonEmits,
15707
15762
  setup(__props, { expose, emit }) {
15708
15763
  const props = __props;
15709
- const slots = vue.useSlots();
15710
- useDeprecated({
15711
- from: "type.text",
15712
- replacement: "link",
15713
- version: "3.0.0",
15714
- scope: "props",
15715
- ref: "https://element-plus.org/en-US/component/button.html#button-attributes"
15716
- }, vue.computed(() => props.type === "text"));
15717
- const buttonGroupContext = vue.inject(buttonGroupContextKey, void 0);
15718
- const globalConfig = useGlobalConfig("button");
15719
- const ns = useNamespace("button");
15720
- const { form } = useFormItem();
15721
- const _size = useSize(vue.computed(() => buttonGroupContext == null ? void 0 : buttonGroupContext.size));
15722
- const _disabled = useDisabled();
15723
- const _ref = vue.ref();
15724
- const _type = vue.computed(() => props.type || (buttonGroupContext == null ? void 0 : buttonGroupContext.type) || "");
15725
- const autoInsertSpace = vue.computed(() => {
15726
- var _a, _b, _c;
15727
- return (_c = (_b = props.autoInsertSpace) != null ? _b : (_a = globalConfig.value) == null ? void 0 : _a.autoInsertSpace) != null ? _c : false;
15728
- });
15729
- const shouldAddSpace = vue.computed(() => {
15730
- var _a;
15731
- const defaultSlot = (_a = slots.default) == null ? void 0 : _a.call(slots);
15732
- if (autoInsertSpace.value && (defaultSlot == null ? void 0 : defaultSlot.length) === 1) {
15733
- const slot = defaultSlot[0];
15734
- if ((slot == null ? void 0 : slot.type) === vue.Text) {
15735
- const text = slot.children;
15736
- return /^\p{Unified_Ideograph}{2}$/u.test(text.trim());
15737
- }
15738
- }
15739
- return false;
15740
- });
15741
15764
  const buttonStyle = useButtonCustomStyle(props);
15742
- const handleClick = (evt) => {
15743
- if (props.nativeType === "reset") {
15744
- form == null ? void 0 : form.resetFields();
15745
- }
15746
- emit("click", evt);
15747
- };
15765
+ const ns = useNamespace("button");
15766
+ const { _ref, _size, _type, _disabled, shouldAddSpace, handleClick } = useButton(props, emit);
15748
15767
  expose({
15749
15768
  ref: _ref,
15750
15769
  size: _size,
@@ -15774,7 +15793,7 @@
15774
15793
  autofocus: _ctx.autofocus,
15775
15794
  type: _ctx.nativeType,
15776
15795
  style: vue.normalizeStyle(vue.unref(buttonStyle)),
15777
- onClick: handleClick
15796
+ onClick: _cache[0] || (_cache[0] = (...args) => vue.unref(handleClick) && vue.unref(handleClick)(...args))
15778
15797
  }, [
15779
15798
  _ctx.loading ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
15780
15799
  _ctx.$slots.loading ? vue.renderSlot(_ctx.$slots, "loading", { key: 0 }) : (vue.openBlock(), vue.createBlock(vue.unref(ElIcon), {
@@ -16048,86 +16067,6 @@
16048
16067
  })(dayjs_min);
16049
16068
  var dayjs = dayjs_min.exports;
16050
16069
 
16051
- var localeData$1 = {exports: {}};
16052
-
16053
- (function(module, exports) {
16054
- !function(n, e) {
16055
- module.exports = e() ;
16056
- }(commonjsGlobal, function() {
16057
- return function(n, e, t) {
16058
- var r = e.prototype, o = function(n2) {
16059
- return n2 && (n2.indexOf ? n2 : n2.s);
16060
- }, u = function(n2, e2, t2, r2, u2) {
16061
- var i2 = n2.name ? n2 : n2.$locale(), a2 = o(i2[e2]), s2 = o(i2[t2]), f = a2 || s2.map(function(n3) {
16062
- return n3.slice(0, r2);
16063
- });
16064
- if (!u2)
16065
- return f;
16066
- var d = i2.weekStart;
16067
- return f.map(function(n3, e3) {
16068
- return f[(e3 + (d || 0)) % 7];
16069
- });
16070
- }, i = function() {
16071
- return t.Ls[t.locale()];
16072
- }, a = function(n2, e2) {
16073
- return n2.formats[e2] || function(n3) {
16074
- return n3.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(n4, e3, t2) {
16075
- return e3 || t2.slice(1);
16076
- });
16077
- }(n2.formats[e2.toUpperCase()]);
16078
- }, s = function() {
16079
- var n2 = this;
16080
- return { months: function(e2) {
16081
- return e2 ? e2.format("MMMM") : u(n2, "months");
16082
- }, monthsShort: function(e2) {
16083
- return e2 ? e2.format("MMM") : u(n2, "monthsShort", "months", 3);
16084
- }, firstDayOfWeek: function() {
16085
- return n2.$locale().weekStart || 0;
16086
- }, weekdays: function(e2) {
16087
- return e2 ? e2.format("dddd") : u(n2, "weekdays");
16088
- }, weekdaysMin: function(e2) {
16089
- return e2 ? e2.format("dd") : u(n2, "weekdaysMin", "weekdays", 2);
16090
- }, weekdaysShort: function(e2) {
16091
- return e2 ? e2.format("ddd") : u(n2, "weekdaysShort", "weekdays", 3);
16092
- }, longDateFormat: function(e2) {
16093
- return a(n2.$locale(), e2);
16094
- }, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal };
16095
- };
16096
- r.localeData = function() {
16097
- return s.bind(this)();
16098
- }, t.localeData = function() {
16099
- var n2 = i();
16100
- return { firstDayOfWeek: function() {
16101
- return n2.weekStart || 0;
16102
- }, weekdays: function() {
16103
- return t.weekdays();
16104
- }, weekdaysShort: function() {
16105
- return t.weekdaysShort();
16106
- }, weekdaysMin: function() {
16107
- return t.weekdaysMin();
16108
- }, months: function() {
16109
- return t.months();
16110
- }, monthsShort: function() {
16111
- return t.monthsShort();
16112
- }, longDateFormat: function(e2) {
16113
- return a(n2, e2);
16114
- }, meridiem: n2.meridiem, ordinal: n2.ordinal };
16115
- }, t.months = function() {
16116
- return u(i(), "months");
16117
- }, t.monthsShort = function() {
16118
- return u(i(), "monthsShort", "months", 3);
16119
- }, t.weekdays = function(n2) {
16120
- return u(i(), "weekdays", null, null, n2);
16121
- }, t.weekdaysShort = function(n2) {
16122
- return u(i(), "weekdaysShort", "weekdays", 3, n2);
16123
- }, t.weekdaysMin = function(n2) {
16124
- return u(i(), "weekdaysMin", "weekdays", 2, n2);
16125
- };
16126
- };
16127
- });
16128
- })(localeData$1);
16129
- var localeData = localeData$1.exports;
16130
-
16131
16070
  var customParseFormat$1 = {exports: {}};
16132
16071
 
16133
16072
  (function(module, exports) {
@@ -18204,6 +18143,169 @@
18204
18143
  pick: (value) => isObject$1(value)
18205
18144
  };
18206
18145
 
18146
+ var localeData$1 = {exports: {}};
18147
+
18148
+ (function(module, exports) {
18149
+ !function(n, e) {
18150
+ module.exports = e() ;
18151
+ }(commonjsGlobal, function() {
18152
+ return function(n, e, t) {
18153
+ var r = e.prototype, o = function(n2) {
18154
+ return n2 && (n2.indexOf ? n2 : n2.s);
18155
+ }, u = function(n2, e2, t2, r2, u2) {
18156
+ var i2 = n2.name ? n2 : n2.$locale(), a2 = o(i2[e2]), s2 = o(i2[t2]), f = a2 || s2.map(function(n3) {
18157
+ return n3.slice(0, r2);
18158
+ });
18159
+ if (!u2)
18160
+ return f;
18161
+ var d = i2.weekStart;
18162
+ return f.map(function(n3, e3) {
18163
+ return f[(e3 + (d || 0)) % 7];
18164
+ });
18165
+ }, i = function() {
18166
+ return t.Ls[t.locale()];
18167
+ }, a = function(n2, e2) {
18168
+ return n2.formats[e2] || function(n3) {
18169
+ return n3.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(n4, e3, t2) {
18170
+ return e3 || t2.slice(1);
18171
+ });
18172
+ }(n2.formats[e2.toUpperCase()]);
18173
+ }, s = function() {
18174
+ var n2 = this;
18175
+ return { months: function(e2) {
18176
+ return e2 ? e2.format("MMMM") : u(n2, "months");
18177
+ }, monthsShort: function(e2) {
18178
+ return e2 ? e2.format("MMM") : u(n2, "monthsShort", "months", 3);
18179
+ }, firstDayOfWeek: function() {
18180
+ return n2.$locale().weekStart || 0;
18181
+ }, weekdays: function(e2) {
18182
+ return e2 ? e2.format("dddd") : u(n2, "weekdays");
18183
+ }, weekdaysMin: function(e2) {
18184
+ return e2 ? e2.format("dd") : u(n2, "weekdaysMin", "weekdays", 2);
18185
+ }, weekdaysShort: function(e2) {
18186
+ return e2 ? e2.format("ddd") : u(n2, "weekdaysShort", "weekdays", 3);
18187
+ }, longDateFormat: function(e2) {
18188
+ return a(n2.$locale(), e2);
18189
+ }, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal };
18190
+ };
18191
+ r.localeData = function() {
18192
+ return s.bind(this)();
18193
+ }, t.localeData = function() {
18194
+ var n2 = i();
18195
+ return { firstDayOfWeek: function() {
18196
+ return n2.weekStart || 0;
18197
+ }, weekdays: function() {
18198
+ return t.weekdays();
18199
+ }, weekdaysShort: function() {
18200
+ return t.weekdaysShort();
18201
+ }, weekdaysMin: function() {
18202
+ return t.weekdaysMin();
18203
+ }, months: function() {
18204
+ return t.months();
18205
+ }, monthsShort: function() {
18206
+ return t.monthsShort();
18207
+ }, longDateFormat: function(e2) {
18208
+ return a(n2, e2);
18209
+ }, meridiem: n2.meridiem, ordinal: n2.ordinal };
18210
+ }, t.months = function() {
18211
+ return u(i(), "months");
18212
+ }, t.monthsShort = function() {
18213
+ return u(i(), "monthsShort", "months", 3);
18214
+ }, t.weekdays = function(n2) {
18215
+ return u(i(), "weekdays", null, null, n2);
18216
+ }, t.weekdaysShort = function(n2) {
18217
+ return u(i(), "weekdaysShort", "weekdays", 3, n2);
18218
+ }, t.weekdaysMin = function(n2) {
18219
+ return u(i(), "weekdaysMin", "weekdays", 2, n2);
18220
+ };
18221
+ };
18222
+ });
18223
+ })(localeData$1);
18224
+ var localeData = localeData$1.exports;
18225
+
18226
+ const useDateTable = (props, emit) => {
18227
+ dayjs.extend(localeData);
18228
+ const firstDayOfWeek = dayjs.localeData().firstDayOfWeek();
18229
+ const { t, lang } = useLocale();
18230
+ const now = dayjs().locale(lang.value);
18231
+ const isInRange = vue.computed(() => !!props.range && !!props.range.length);
18232
+ const rows = vue.computed(() => {
18233
+ let days = [];
18234
+ if (isInRange.value) {
18235
+ const [start, end] = props.range;
18236
+ const currentMonthRange = rangeArr(end.date() - start.date() + 1).map((index) => ({
18237
+ text: start.date() + index,
18238
+ type: "current"
18239
+ }));
18240
+ let remaining = currentMonthRange.length % 7;
18241
+ remaining = remaining === 0 ? 0 : 7 - remaining;
18242
+ const nextMonthRange = rangeArr(remaining).map((_, index) => ({
18243
+ text: index + 1,
18244
+ type: "next"
18245
+ }));
18246
+ days = currentMonthRange.concat(nextMonthRange);
18247
+ } else {
18248
+ const firstDay = props.date.startOf("month").day();
18249
+ const prevMonthDays = getPrevMonthLastDays(props.date, (firstDay - firstDayOfWeek + 7) % 7).map((day) => ({
18250
+ text: day,
18251
+ type: "prev"
18252
+ }));
18253
+ const currentMonthDays = getMonthDays(props.date).map((day) => ({
18254
+ text: day,
18255
+ type: "current"
18256
+ }));
18257
+ days = [...prevMonthDays, ...currentMonthDays];
18258
+ const remaining = 7 - (days.length % 7 || 7);
18259
+ const nextMonthDays = rangeArr(remaining).map((_, index) => ({
18260
+ text: index + 1,
18261
+ type: "next"
18262
+ }));
18263
+ days = days.concat(nextMonthDays);
18264
+ }
18265
+ return toNestedArr(days);
18266
+ });
18267
+ const weekDays = vue.computed(() => {
18268
+ const start = firstDayOfWeek;
18269
+ if (start === 0) {
18270
+ return WEEK_DAYS.map((_) => t(`el.datepicker.weeks.${_}`));
18271
+ } else {
18272
+ return WEEK_DAYS.slice(start).concat(WEEK_DAYS.slice(0, start)).map((_) => t(`el.datepicker.weeks.${_}`));
18273
+ }
18274
+ });
18275
+ const getFormattedDate = (day, type) => {
18276
+ switch (type) {
18277
+ case "prev":
18278
+ return props.date.startOf("month").subtract(1, "month").date(day);
18279
+ case "next":
18280
+ return props.date.startOf("month").add(1, "month").date(day);
18281
+ case "current":
18282
+ return props.date.date(day);
18283
+ }
18284
+ };
18285
+ const handlePickDay = ({ text, type }) => {
18286
+ const date = getFormattedDate(text, type);
18287
+ emit("pick", date);
18288
+ };
18289
+ const getSlotData = ({ text, type }) => {
18290
+ const day = getFormattedDate(text, type);
18291
+ return {
18292
+ isSelected: day.isSame(props.selectedDay),
18293
+ type: `${type}-month`,
18294
+ day: day.format("YYYY-MM-DD"),
18295
+ date: day.toDate()
18296
+ };
18297
+ };
18298
+ return {
18299
+ now,
18300
+ isInRange,
18301
+ rows,
18302
+ weekDays,
18303
+ getFormattedDate,
18304
+ handlePickDay,
18305
+ getSlotData
18306
+ };
18307
+ };
18308
+
18207
18309
  const _hoisted_1$W = { key: 0 };
18208
18310
  const _hoisted_2$B = ["onClick"];
18209
18311
  const __default__$19 = vue.defineComponent({
@@ -18215,66 +18317,17 @@
18215
18317
  emits: dateTableEmits,
18216
18318
  setup(__props, { expose, emit }) {
18217
18319
  const props = __props;
18218
- dayjs.extend(localeData);
18219
- const { t, lang } = useLocale();
18320
+ const {
18321
+ isInRange,
18322
+ now,
18323
+ rows,
18324
+ weekDays,
18325
+ getFormattedDate,
18326
+ handlePickDay,
18327
+ getSlotData
18328
+ } = useDateTable(props, emit);
18220
18329
  const nsTable = useNamespace("calendar-table");
18221
18330
  const nsDay = useNamespace("calendar-day");
18222
- const now = dayjs().locale(lang.value);
18223
- const firstDayOfWeek = dayjs.localeData().firstDayOfWeek();
18224
- const isInRange = vue.computed(() => !!props.range && !!props.range.length);
18225
- const rows = vue.computed(() => {
18226
- let days = [];
18227
- if (isInRange.value) {
18228
- const [start, end] = props.range;
18229
- const currentMonthRange = rangeArr(end.date() - start.date() + 1).map((index) => ({
18230
- text: start.date() + index,
18231
- type: "current"
18232
- }));
18233
- let remaining = currentMonthRange.length % 7;
18234
- remaining = remaining === 0 ? 0 : 7 - remaining;
18235
- const nextMonthRange = rangeArr(remaining).map((_, index) => ({
18236
- text: index + 1,
18237
- type: "next"
18238
- }));
18239
- days = currentMonthRange.concat(nextMonthRange);
18240
- } else {
18241
- const firstDay = props.date.startOf("month").day();
18242
- const prevMonthDays = getPrevMonthLastDays(props.date, (firstDay - firstDayOfWeek + 7) % 7).map((day) => ({
18243
- text: day,
18244
- type: "prev"
18245
- }));
18246
- const currentMonthDays = getMonthDays(props.date).map((day) => ({
18247
- text: day,
18248
- type: "current"
18249
- }));
18250
- days = [...prevMonthDays, ...currentMonthDays];
18251
- const remaining = 7 - (days.length % 7 || 7);
18252
- const nextMonthDays = rangeArr(remaining).map((_, index) => ({
18253
- text: index + 1,
18254
- type: "next"
18255
- }));
18256
- days = days.concat(nextMonthDays);
18257
- }
18258
- return toNestedArr(days);
18259
- });
18260
- const weekDays = vue.computed(() => {
18261
- const start = firstDayOfWeek;
18262
- if (start === 0) {
18263
- return WEEK_DAYS.map((_) => t(`el.datepicker.weeks.${_}`));
18264
- } else {
18265
- return WEEK_DAYS.slice(start).concat(WEEK_DAYS.slice(0, start)).map((_) => t(`el.datepicker.weeks.${_}`));
18266
- }
18267
- });
18268
- const getFormattedDate = (day, type) => {
18269
- switch (type) {
18270
- case "prev":
18271
- return props.date.startOf("month").subtract(1, "month").date(day);
18272
- case "next":
18273
- return props.date.startOf("month").add(1, "month").date(day);
18274
- case "current":
18275
- return props.date.date(day);
18276
- }
18277
- };
18278
18331
  const getCellClass = ({ text, type }) => {
18279
18332
  const classes = [type];
18280
18333
  if (type === "current") {
@@ -18288,19 +18341,6 @@
18288
18341
  }
18289
18342
  return classes;
18290
18343
  };
18291
- const handlePickDay = ({ text, type }) => {
18292
- const date = getFormattedDate(text, type);
18293
- emit("pick", date);
18294
- };
18295
- const getSlotData = ({ text, type }) => {
18296
- const day = getFormattedDate(text, type);
18297
- return {
18298
- isSelected: day.isSame(props.selectedDay),
18299
- type: `${type}-month`,
18300
- day: day.format("YYYY-MM-DD"),
18301
- date: day.toDate()
18302
- };
18303
- };
18304
18344
  expose({
18305
18345
  getFormattedDate
18306
18346
  });
@@ -18328,13 +18368,13 @@
18328
18368
  return vue.openBlock(), vue.createElementBlock("td", {
18329
18369
  key,
18330
18370
  class: vue.normalizeClass(getCellClass(cell)),
18331
- onClick: ($event) => handlePickDay(cell)
18371
+ onClick: ($event) => vue.unref(handlePickDay)(cell)
18332
18372
  }, [
18333
18373
  vue.createElementVNode("div", {
18334
18374
  class: vue.normalizeClass(vue.unref(nsDay).b())
18335
18375
  }, [
18336
18376
  vue.renderSlot(_ctx.$slots, "date-cell", {
18337
- data: getSlotData(cell)
18377
+ data: vue.unref(getSlotData)(cell)
18338
18378
  }, () => [
18339
18379
  vue.createElementVNode("span", null, vue.toDisplayString(cell.text), 1)
18340
18380
  ])
@@ -20693,7 +20733,7 @@
20693
20733
  const values = multiple ? castArray(modelValue) : [modelValue];
20694
20734
  const nodes = unique(values.map((val) => store == null ? void 0 : store.getNodeByValue(val, leafOnly)));
20695
20735
  syncMenuState(nodes, forced);
20696
- checkedValue.value = modelValue;
20736
+ checkedValue.value = cloneDeep(modelValue);
20697
20737
  }
20698
20738
  };
20699
20739
  const syncMenuState = (newCheckedNodes, reserveExpandingState = true) => {
@@ -20772,8 +20812,10 @@
20772
20812
  vue.watch(() => props.modelValue, () => {
20773
20813
  manualChecked = false;
20774
20814
  syncCheckedValue();
20815
+ }, {
20816
+ deep: true
20775
20817
  });
20776
- vue.watch(checkedValue, (val) => {
20818
+ vue.watch(() => checkedValue.value, (val) => {
20777
20819
  if (!isEqual$1(val, props.modelValue)) {
20778
20820
  emit(UPDATE_MODEL_EVENT, val);
20779
20821
  emit(CHANGE_EVENT, val);
@@ -21079,7 +21121,7 @@
21079
21121
  });
21080
21122
  const checkedValue = vue.computed({
21081
21123
  get() {
21082
- return props.modelValue;
21124
+ return cloneDeep(props.modelValue);
21083
21125
  },
21084
21126
  set(val) {
21085
21127
  emit(UPDATE_MODEL_EVENT, val);
@@ -28163,7 +28205,7 @@
28163
28205
  const _hoisted_3$8 = ["stop-color"];
28164
28206
  const _hoisted_4$6 = ["stop-color"];
28165
28207
  const _hoisted_5$5 = ["id"];
28166
- const _hoisted_6$2 = ["stop-color"];
28208
+ const _hoisted_6$1 = ["stop-color"];
28167
28209
  const _hoisted_7 = ["stop-color"];
28168
28210
  const _hoisted_8 = ["id"];
28169
28211
  const _hoisted_9 = {
@@ -28228,7 +28270,7 @@
28228
28270
  vue.createElementVNode("stop", {
28229
28271
  "stop-color": `var(${_ctx.ns.cssVarBlockName("fill-color-1")})`,
28230
28272
  offset: "0%"
28231
- }, null, 8, _hoisted_6$2),
28273
+ }, null, 8, _hoisted_6$1),
28232
28274
  vue.createElementVNode("stop", {
28233
28275
  "stop-color": `var(${_ctx.ns.cssVarBlockName("fill-color-6")})`,
28234
28276
  offset: "100%"
@@ -34147,7 +34189,7 @@
34147
34189
  const _hoisted_3$7 = ["tabindex"];
34148
34190
  const _hoisted_4$5 = ["aria-current", "tabindex"];
34149
34191
  const _hoisted_5$4 = ["tabindex"];
34150
- const _hoisted_6$1 = ["aria-current", "tabindex"];
34192
+ const _hoisted_6 = ["aria-current", "tabindex"];
34151
34193
  const __default__$v = vue.defineComponent({
34152
34194
  name: "ElPaginationPager"
34153
34195
  });
@@ -34337,7 +34379,7 @@
34337
34379
  ], "number"]),
34338
34380
  "aria-current": _ctx.currentPage === _ctx.pageCount,
34339
34381
  tabindex: vue.unref(tabindex)
34340
- }, vue.toDisplayString(_ctx.pageCount), 11, _hoisted_6$1)) : vue.createCommentVNode("v-if", true)
34382
+ }, vue.toDisplayString(_ctx.pageCount), 11, _hoisted_6)) : vue.createCommentVNode("v-if", true)
34341
34383
  ], 42, _hoisted_1$k);
34342
34384
  };
34343
34385
  }
@@ -40653,7 +40695,6 @@
40653
40695
  const _hoisted_3$4 = ["aria-hidden"];
40654
40696
  const _hoisted_4$2 = ["aria-hidden"];
40655
40697
  const _hoisted_5$1 = ["aria-hidden"];
40656
- const _hoisted_6 = ["aria-hidden"];
40657
40698
  const COMPONENT_NAME$8 = "ElSwitch";
40658
40699
  const __default__$i = vue.defineComponent({
40659
40700
  name: COMPONENT_NAME$8
@@ -40823,37 +40864,19 @@
40823
40864
  key: 0,
40824
40865
  class: vue.normalizeClass(vue.unref(ns).e("inner"))
40825
40866
  }, [
40826
- _ctx.activeIcon || _ctx.inactiveIcon ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
40827
- _ctx.activeIcon ? (vue.openBlock(), vue.createBlock(vue.unref(ElIcon), {
40828
- key: 0,
40829
- class: vue.normalizeClass([vue.unref(ns).is("icon"), vue.unref(checked) ? vue.unref(ns).is("show") : vue.unref(ns).is("hide")])
40830
- }, {
40831
- default: vue.withCtx(() => [
40832
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.activeIcon)))
40833
- ]),
40834
- _: 1
40835
- }, 8, ["class"])) : vue.createCommentVNode("v-if", true),
40836
- _ctx.inactiveIcon ? (vue.openBlock(), vue.createBlock(vue.unref(ElIcon), {
40837
- key: 1,
40838
- class: vue.normalizeClass([vue.unref(ns).is("icon"), !vue.unref(checked) ? vue.unref(ns).is("show") : vue.unref(ns).is("hide")])
40839
- }, {
40840
- default: vue.withCtx(() => [
40841
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.inactiveIcon)))
40842
- ]),
40843
- _: 1
40844
- }, 8, ["class"])) : vue.createCommentVNode("v-if", true)
40845
- ], 64)) : _ctx.activeText || _ctx.inactiveIcon ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
40846
- _ctx.activeText ? (vue.openBlock(), vue.createElementBlock("span", {
40847
- key: 0,
40848
- class: vue.normalizeClass([vue.unref(ns).is("text"), vue.unref(checked) ? vue.unref(ns).is("show") : vue.unref(ns).is("hide")]),
40849
- "aria-hidden": !vue.unref(checked)
40850
- }, vue.toDisplayString(_ctx.activeText.substring(0, 3)), 11, _hoisted_4$2)) : vue.createCommentVNode("v-if", true),
40851
- _ctx.inactiveText ? (vue.openBlock(), vue.createElementBlock("span", {
40852
- key: 1,
40853
- class: vue.normalizeClass([vue.unref(ns).is("text"), !vue.unref(checked) ? vue.unref(ns).is("show") : vue.unref(ns).is("hide")]),
40854
- "aria-hidden": vue.unref(checked)
40855
- }, vue.toDisplayString(_ctx.inactiveText.substring(0, 3)), 11, _hoisted_5$1)) : vue.createCommentVNode("v-if", true)
40856
- ], 64)) : vue.createCommentVNode("v-if", true)
40867
+ _ctx.activeIcon || _ctx.inactiveIcon ? (vue.openBlock(), vue.createBlock(vue.unref(ElIcon), {
40868
+ key: 0,
40869
+ class: vue.normalizeClass(vue.unref(ns).is("icon"))
40870
+ }, {
40871
+ default: vue.withCtx(() => [
40872
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(checked) ? _ctx.activeIcon : _ctx.inactiveIcon)))
40873
+ ]),
40874
+ _: 1
40875
+ }, 8, ["class"])) : _ctx.activeText || _ctx.inactiveText ? (vue.openBlock(), vue.createElementBlock("span", {
40876
+ key: 1,
40877
+ class: vue.normalizeClass(vue.unref(ns).is("text")),
40878
+ "aria-hidden": !vue.unref(checked)
40879
+ }, vue.toDisplayString(vue.unref(checked) ? _ctx.activeText : _ctx.inactiveText), 11, _hoisted_4$2)) : vue.createCommentVNode("v-if", true)
40857
40880
  ], 2)) : vue.createCommentVNode("v-if", true),
40858
40881
  vue.createElementVNode("div", {
40859
40882
  class: vue.normalizeClass(vue.unref(ns).e("action"))
@@ -40886,7 +40909,7 @@
40886
40909
  !_ctx.activeIcon && _ctx.activeText ? (vue.openBlock(), vue.createElementBlock("span", {
40887
40910
  key: 1,
40888
40911
  "aria-hidden": !vue.unref(checked)
40889
- }, vue.toDisplayString(_ctx.activeText), 9, _hoisted_6)) : vue.createCommentVNode("v-if", true)
40912
+ }, vue.toDisplayString(_ctx.activeText), 9, _hoisted_5$1)) : vue.createCommentVNode("v-if", true)
40890
40913
  ], 2)) : vue.createCommentVNode("v-if", true)
40891
40914
  ], 14, _hoisted_1$d);
40892
40915
  };
@@ -41276,15 +41299,15 @@
41276
41299
  after
41277
41300
  } : {};
41278
41301
  };
41279
- const getFixedColumnsClass = (namespace, index, fixed, store, realColumns) => {
41302
+ const getFixedColumnsClass = (namespace, index, fixed, store, realColumns, offset = 0) => {
41280
41303
  const classes = [];
41281
41304
  const { direction, start } = isFixedColumn(index, fixed, store, realColumns);
41282
41305
  if (direction) {
41283
41306
  const isLeft = direction === "left";
41284
41307
  classes.push(`${namespace}-fixed-column--${direction}`);
41285
- if (isLeft && start === store.states.fixedLeafColumnsLength.value - 1) {
41308
+ if (isLeft && start + offset === store.states.fixedLeafColumnsLength.value - 1) {
41286
41309
  classes.push("is-last-column");
41287
- } else if (!isLeft && start === store.states.columns.value.length - store.states.rightFixedLeafColumnsLength.value) {
41310
+ } else if (!isLeft && start - offset === store.states.columns.value.length - store.states.rightFixedLeafColumnsLength.value) {
41288
41311
  classes.push("is-first-column");
41289
41312
  }
41290
41313
  }
@@ -43399,8 +43422,8 @@
43399
43422
  ensurePosition(fixedStyle, "right");
43400
43423
  return Object.assign({}, cellStyles, fixedStyle);
43401
43424
  };
43402
- const getCellClass = (rowIndex, columnIndex, row, column) => {
43403
- const fixedClasses = column.isSubColumn ? [] : getFixedColumnsClass(ns.b(), columnIndex, props == null ? void 0 : props.fixed, props.store);
43425
+ const getCellClass = (rowIndex, columnIndex, row, column, offset) => {
43426
+ const fixedClasses = column.isSubColumn ? [] : getFixedColumnsClass(ns.b(), columnIndex, props == null ? void 0 : props.fixed, props.store, void 0, offset);
43404
43427
  const classes = [column.id, column.align, column.className, ...fixedClasses];
43405
43428
  const cellClassName = parent == null ? void 0 : parent.props.cellClassName;
43406
43429
  if (typeof cellClassName === "string") {
@@ -43543,7 +43566,7 @@
43543
43566
  const tdChildren = cellChildren(cellIndex, column, data);
43544
43567
  return vue.h("td", {
43545
43568
  style: getCellStyle($index, cellIndex, row, column),
43546
- class: getCellClass($index, cellIndex, row, column),
43569
+ class: getCellClass($index, cellIndex, row, column, colspan - 1),
43547
43570
  key: `${patchKey}${baseKey}`,
43548
43571
  rowspan,
43549
43572
  colspan,