@element-plus/nightly 0.0.20220530 → 0.0.20220531

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 (361) hide show
  1. package/dist/index.full.js +210 -222
  2. package/dist/index.full.min.js +18 -18
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +17 -17
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +211 -224
  7. package/dist/locale/af.js +1 -1
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.mjs +1 -1
  10. package/dist/locale/af.mjs +1 -1
  11. package/dist/locale/ar.js +1 -1
  12. package/dist/locale/ar.min.js +1 -1
  13. package/dist/locale/ar.min.mjs +1 -1
  14. package/dist/locale/ar.mjs +1 -1
  15. package/dist/locale/az.js +1 -1
  16. package/dist/locale/az.min.js +1 -1
  17. package/dist/locale/az.min.mjs +1 -1
  18. package/dist/locale/az.mjs +1 -1
  19. package/dist/locale/bg.js +1 -1
  20. package/dist/locale/bg.min.js +1 -1
  21. package/dist/locale/bg.min.mjs +1 -1
  22. package/dist/locale/bg.mjs +1 -1
  23. package/dist/locale/bn.js +1 -1
  24. package/dist/locale/bn.min.js +1 -1
  25. package/dist/locale/bn.min.mjs +1 -1
  26. package/dist/locale/bn.mjs +1 -1
  27. package/dist/locale/ca.js +1 -1
  28. package/dist/locale/ca.min.js +1 -1
  29. package/dist/locale/ca.min.mjs +1 -1
  30. package/dist/locale/ca.mjs +1 -1
  31. package/dist/locale/cs.js +1 -1
  32. package/dist/locale/cs.min.js +1 -1
  33. package/dist/locale/cs.min.mjs +1 -1
  34. package/dist/locale/cs.mjs +1 -1
  35. package/dist/locale/da.js +1 -1
  36. package/dist/locale/da.min.js +1 -1
  37. package/dist/locale/da.min.mjs +1 -1
  38. package/dist/locale/da.mjs +1 -1
  39. package/dist/locale/de.js +1 -1
  40. package/dist/locale/de.min.js +1 -1
  41. package/dist/locale/de.min.mjs +1 -1
  42. package/dist/locale/de.mjs +1 -1
  43. package/dist/locale/el.js +1 -1
  44. package/dist/locale/el.min.js +1 -1
  45. package/dist/locale/el.min.mjs +1 -1
  46. package/dist/locale/el.mjs +1 -1
  47. package/dist/locale/en.js +1 -1
  48. package/dist/locale/en.min.js +1 -1
  49. package/dist/locale/en.min.mjs +1 -1
  50. package/dist/locale/en.mjs +1 -1
  51. package/dist/locale/eo.js +1 -1
  52. package/dist/locale/eo.min.js +1 -1
  53. package/dist/locale/eo.min.mjs +1 -1
  54. package/dist/locale/eo.mjs +1 -1
  55. package/dist/locale/es.js +1 -1
  56. package/dist/locale/es.min.js +1 -1
  57. package/dist/locale/es.min.mjs +1 -1
  58. package/dist/locale/es.mjs +1 -1
  59. package/dist/locale/et.js +1 -1
  60. package/dist/locale/et.min.js +1 -1
  61. package/dist/locale/et.min.mjs +1 -1
  62. package/dist/locale/et.mjs +1 -1
  63. package/dist/locale/eu.js +1 -1
  64. package/dist/locale/eu.min.js +1 -1
  65. package/dist/locale/eu.min.mjs +1 -1
  66. package/dist/locale/eu.mjs +1 -1
  67. package/dist/locale/fa.js +1 -1
  68. package/dist/locale/fa.min.js +1 -1
  69. package/dist/locale/fa.min.mjs +1 -1
  70. package/dist/locale/fa.mjs +1 -1
  71. package/dist/locale/fi.js +1 -1
  72. package/dist/locale/fi.min.js +1 -1
  73. package/dist/locale/fi.min.mjs +1 -1
  74. package/dist/locale/fi.mjs +1 -1
  75. package/dist/locale/fr.js +1 -1
  76. package/dist/locale/fr.min.js +1 -1
  77. package/dist/locale/fr.min.mjs +1 -1
  78. package/dist/locale/fr.mjs +1 -1
  79. package/dist/locale/he.js +1 -1
  80. package/dist/locale/he.min.js +1 -1
  81. package/dist/locale/he.min.mjs +1 -1
  82. package/dist/locale/he.mjs +1 -1
  83. package/dist/locale/hr.js +1 -1
  84. package/dist/locale/hr.min.js +1 -1
  85. package/dist/locale/hr.min.mjs +1 -1
  86. package/dist/locale/hr.mjs +1 -1
  87. package/dist/locale/hu.js +1 -1
  88. package/dist/locale/hu.min.js +1 -1
  89. package/dist/locale/hu.min.mjs +1 -1
  90. package/dist/locale/hu.mjs +1 -1
  91. package/dist/locale/hy-am.js +1 -1
  92. package/dist/locale/hy-am.min.js +1 -1
  93. package/dist/locale/hy-am.min.mjs +1 -1
  94. package/dist/locale/hy-am.mjs +1 -1
  95. package/dist/locale/id.js +1 -1
  96. package/dist/locale/id.min.js +1 -1
  97. package/dist/locale/id.min.mjs +1 -1
  98. package/dist/locale/id.mjs +1 -1
  99. package/dist/locale/it.js +1 -1
  100. package/dist/locale/it.min.js +1 -1
  101. package/dist/locale/it.min.mjs +1 -1
  102. package/dist/locale/it.mjs +1 -1
  103. package/dist/locale/ja.js +1 -1
  104. package/dist/locale/ja.min.js +1 -1
  105. package/dist/locale/ja.min.mjs +1 -1
  106. package/dist/locale/ja.mjs +1 -1
  107. package/dist/locale/kk.js +1 -1
  108. package/dist/locale/kk.min.js +1 -1
  109. package/dist/locale/kk.min.mjs +1 -1
  110. package/dist/locale/kk.mjs +1 -1
  111. package/dist/locale/km.js +1 -1
  112. package/dist/locale/km.min.js +1 -1
  113. package/dist/locale/km.min.mjs +1 -1
  114. package/dist/locale/km.mjs +1 -1
  115. package/dist/locale/ko.js +1 -1
  116. package/dist/locale/ko.min.js +1 -1
  117. package/dist/locale/ko.min.mjs +1 -1
  118. package/dist/locale/ko.mjs +1 -1
  119. package/dist/locale/ku.js +1 -1
  120. package/dist/locale/ku.min.js +1 -1
  121. package/dist/locale/ku.min.mjs +1 -1
  122. package/dist/locale/ku.mjs +1 -1
  123. package/dist/locale/ky.js +1 -1
  124. package/dist/locale/ky.min.js +1 -1
  125. package/dist/locale/ky.min.mjs +1 -1
  126. package/dist/locale/ky.mjs +1 -1
  127. package/dist/locale/lt.js +1 -1
  128. package/dist/locale/lt.min.js +1 -1
  129. package/dist/locale/lt.min.mjs +1 -1
  130. package/dist/locale/lt.mjs +1 -1
  131. package/dist/locale/lv.js +1 -1
  132. package/dist/locale/lv.min.js +1 -1
  133. package/dist/locale/lv.min.mjs +1 -1
  134. package/dist/locale/lv.mjs +1 -1
  135. package/dist/locale/mg.js +1 -1
  136. package/dist/locale/mg.min.js +1 -1
  137. package/dist/locale/mg.min.mjs +1 -1
  138. package/dist/locale/mg.mjs +1 -1
  139. package/dist/locale/mn.js +1 -1
  140. package/dist/locale/mn.min.js +1 -1
  141. package/dist/locale/mn.min.mjs +1 -1
  142. package/dist/locale/mn.mjs +1 -1
  143. package/dist/locale/nb-no.js +1 -1
  144. package/dist/locale/nb-no.min.js +1 -1
  145. package/dist/locale/nb-no.min.mjs +1 -1
  146. package/dist/locale/nb-no.mjs +1 -1
  147. package/dist/locale/nl.js +1 -1
  148. package/dist/locale/nl.min.js +1 -1
  149. package/dist/locale/nl.min.mjs +1 -1
  150. package/dist/locale/nl.mjs +1 -1
  151. package/dist/locale/pa.js +1 -1
  152. package/dist/locale/pa.min.js +1 -1
  153. package/dist/locale/pa.min.mjs +1 -1
  154. package/dist/locale/pa.mjs +1 -1
  155. package/dist/locale/pl.js +1 -1
  156. package/dist/locale/pl.min.js +1 -1
  157. package/dist/locale/pl.min.mjs +1 -1
  158. package/dist/locale/pl.mjs +1 -1
  159. package/dist/locale/pt-br.js +1 -1
  160. package/dist/locale/pt-br.min.js +1 -1
  161. package/dist/locale/pt-br.min.mjs +1 -1
  162. package/dist/locale/pt-br.mjs +1 -1
  163. package/dist/locale/pt.js +1 -1
  164. package/dist/locale/pt.min.js +1 -1
  165. package/dist/locale/pt.min.mjs +1 -1
  166. package/dist/locale/pt.mjs +1 -1
  167. package/dist/locale/ro.js +1 -1
  168. package/dist/locale/ro.min.js +1 -1
  169. package/dist/locale/ro.min.mjs +1 -1
  170. package/dist/locale/ro.mjs +1 -1
  171. package/dist/locale/ru.js +1 -1
  172. package/dist/locale/ru.min.js +1 -1
  173. package/dist/locale/ru.min.mjs +1 -1
  174. package/dist/locale/ru.mjs +1 -1
  175. package/dist/locale/sk.js +1 -1
  176. package/dist/locale/sk.min.js +1 -1
  177. package/dist/locale/sk.min.mjs +1 -1
  178. package/dist/locale/sk.mjs +1 -1
  179. package/dist/locale/sl.js +1 -1
  180. package/dist/locale/sl.min.js +1 -1
  181. package/dist/locale/sl.min.mjs +1 -1
  182. package/dist/locale/sl.mjs +1 -1
  183. package/dist/locale/sr.js +1 -1
  184. package/dist/locale/sr.min.js +1 -1
  185. package/dist/locale/sr.min.mjs +1 -1
  186. package/dist/locale/sr.mjs +1 -1
  187. package/dist/locale/sv.js +1 -1
  188. package/dist/locale/sv.min.js +1 -1
  189. package/dist/locale/sv.min.mjs +1 -1
  190. package/dist/locale/sv.mjs +1 -1
  191. package/dist/locale/ta.js +1 -1
  192. package/dist/locale/ta.min.js +1 -1
  193. package/dist/locale/ta.min.mjs +1 -1
  194. package/dist/locale/ta.mjs +1 -1
  195. package/dist/locale/th.js +1 -1
  196. package/dist/locale/th.min.js +1 -1
  197. package/dist/locale/th.min.mjs +1 -1
  198. package/dist/locale/th.mjs +1 -1
  199. package/dist/locale/tk.js +1 -1
  200. package/dist/locale/tk.min.js +1 -1
  201. package/dist/locale/tk.min.mjs +1 -1
  202. package/dist/locale/tk.mjs +1 -1
  203. package/dist/locale/tr.js +1 -1
  204. package/dist/locale/tr.min.js +1 -1
  205. package/dist/locale/tr.min.mjs +1 -1
  206. package/dist/locale/tr.mjs +1 -1
  207. package/dist/locale/ug-cn.js +1 -1
  208. package/dist/locale/ug-cn.min.js +1 -1
  209. package/dist/locale/ug-cn.min.mjs +1 -1
  210. package/dist/locale/ug-cn.mjs +1 -1
  211. package/dist/locale/uk.js +1 -1
  212. package/dist/locale/uk.min.js +1 -1
  213. package/dist/locale/uk.min.mjs +1 -1
  214. package/dist/locale/uk.mjs +1 -1
  215. package/dist/locale/uz-uz.js +1 -1
  216. package/dist/locale/uz-uz.min.js +1 -1
  217. package/dist/locale/uz-uz.min.mjs +1 -1
  218. package/dist/locale/uz-uz.mjs +1 -1
  219. package/dist/locale/vi.js +1 -1
  220. package/dist/locale/vi.min.js +1 -1
  221. package/dist/locale/vi.min.mjs +1 -1
  222. package/dist/locale/vi.mjs +1 -1
  223. package/dist/locale/zh-cn.js +1 -1
  224. package/dist/locale/zh-cn.min.js +1 -1
  225. package/dist/locale/zh-cn.min.mjs +1 -1
  226. package/dist/locale/zh-cn.mjs +1 -1
  227. package/dist/locale/zh-tw.js +1 -1
  228. package/dist/locale/zh-tw.min.js +1 -1
  229. package/dist/locale/zh-tw.min.mjs +1 -1
  230. package/dist/locale/zh-tw.mjs +1 -1
  231. package/es/components/date-picker/src/composables/use-range-picker2.mjs +4 -22
  232. package/es/components/date-picker/src/composables/use-range-picker2.mjs.map +1 -1
  233. package/es/components/date-picker/src/composables/use-shortcut.mjs +2 -0
  234. package/es/components/date-picker/src/composables/use-shortcut.mjs.map +1 -0
  235. package/es/components/date-picker/src/composables/use-shortcut2.mjs +31 -0
  236. package/es/components/date-picker/src/composables/use-shortcut2.mjs.map +1 -0
  237. package/es/components/date-picker/src/date-picker-com/panel-date-pick2.mjs +47 -39
  238. package/es/components/date-picker/src/date-picker-com/panel-date-pick2.mjs.map +1 -1
  239. package/es/components/date-picker/src/props/basic-date-table2.mjs.map +1 -1
  240. package/es/components/date-picker/src/props/shared2.mjs.map +1 -1
  241. package/es/components/index.mjs +1 -1
  242. package/es/components/scrollbar/index.mjs +1 -1
  243. package/es/components/scrollbar/index2.mjs +1 -1
  244. package/es/components/scrollbar/src/bar3.mjs +2 -8
  245. package/es/components/scrollbar/src/bar3.mjs.map +1 -1
  246. package/es/components/scrollbar/src/bar4.mjs +25 -30
  247. package/es/components/scrollbar/src/bar4.mjs.map +1 -1
  248. package/es/components/scrollbar/src/scrollbar3.mjs +2 -8
  249. package/es/components/scrollbar/src/scrollbar3.mjs.map +1 -1
  250. package/es/components/scrollbar/src/scrollbar4.mjs +54 -64
  251. package/es/components/scrollbar/src/scrollbar4.mjs.map +1 -1
  252. package/es/components/scrollbar/src/thumb3.mjs.map +1 -1
  253. package/es/components/scrollbar/src/thumb4.mjs +30 -38
  254. package/es/components/scrollbar/src/thumb4.mjs.map +1 -1
  255. package/es/components/scrollbar/src/util.mjs +1 -1
  256. package/es/components/scrollbar/src/util2.mjs +7 -2
  257. package/es/components/scrollbar/src/util2.mjs.map +1 -1
  258. package/es/components/select/src/select2.mjs.map +1 -1
  259. package/es/components/select/src/useSelect2.mjs +2 -3
  260. package/es/components/select/src/useSelect2.mjs.map +1 -1
  261. package/es/components/time-picker/src/common/picker2.mjs +10 -4
  262. package/es/components/time-picker/src/common/picker2.mjs.map +1 -1
  263. package/es/index.mjs +1 -1
  264. package/es/packages/components/autocomplete/index.d.ts +410 -16
  265. package/es/packages/components/autocomplete/src/autocomplete.vue.d.ts +410 -16
  266. package/es/packages/components/cascader/index.d.ts +1732 -156
  267. package/es/packages/components/cascader/src/index.vue.d.ts +819 -31
  268. package/es/packages/components/date-picker/src/composables/use-range-picker.d.ts +30 -36
  269. package/es/packages/components/date-picker/src/composables/use-shortcut.d.ts +9 -0
  270. package/es/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +30 -19
  271. package/es/packages/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +4 -10
  272. package/es/packages/components/date-picker/src/date-picker-com/panel-month-range.vue.d.ts +1 -7
  273. package/es/packages/components/date-picker/src/props/basic-date-table.d.ts +18 -4
  274. package/es/packages/components/date-picker/src/props/panel-date-pick.d.ts +1 -1
  275. package/es/packages/components/date-picker/src/props/panel-date-range.d.ts +1 -1
  276. package/es/packages/components/date-picker/src/props/shared.d.ts +1 -1
  277. package/es/packages/components/date-picker/src/utils.d.ts +32 -35
  278. package/es/packages/components/scrollbar/index.d.ts +410 -16
  279. package/es/packages/components/scrollbar/src/bar.d.ts +4 -2
  280. package/es/packages/components/scrollbar/src/bar.vue.d.ts +99 -7
  281. package/es/packages/components/scrollbar/src/scrollbar.d.ts +4 -2
  282. package/es/packages/components/scrollbar/src/scrollbar.vue.d.ts +412 -17
  283. package/es/packages/components/scrollbar/src/thumb.d.ts +2 -0
  284. package/es/packages/components/scrollbar/src/thumb.vue.d.ts +27 -2
  285. package/es/packages/components/scrollbar/src/util.d.ts +4 -4
  286. package/es/packages/components/select/src/useSelect.d.ts +0 -1
  287. package/es/packages/components/time-picker/src/common/picker.vue.d.ts +2 -2
  288. package/es/packages/tokens/scrollbar.d.ts +2 -2
  289. package/es/packages/version.d.ts +1 -1
  290. package/es/tokens/scrollbar2.mjs.map +1 -1
  291. package/es/version2.mjs +1 -1
  292. package/es/version2.mjs.map +1 -1
  293. package/lib/components/date-picker/src/composables/use-range-picker2.js +2 -24
  294. package/lib/components/date-picker/src/composables/use-range-picker2.js.map +1 -1
  295. package/lib/components/date-picker/src/composables/use-shortcut.js +10 -0
  296. package/lib/components/date-picker/src/composables/use-shortcut.js.map +1 -0
  297. package/lib/components/date-picker/src/composables/use-shortcut2.js +39 -0
  298. package/lib/components/date-picker/src/composables/use-shortcut2.js.map +1 -0
  299. package/lib/components/date-picker/src/date-picker-com/panel-date-pick2.js +46 -38
  300. package/lib/components/date-picker/src/date-picker-com/panel-date-pick2.js.map +1 -1
  301. package/lib/components/date-picker/src/props/basic-date-table2.js.map +1 -1
  302. package/lib/components/date-picker/src/props/shared2.js.map +1 -1
  303. package/lib/components/index.js +1 -0
  304. package/lib/components/index.js.map +1 -1
  305. package/lib/components/scrollbar/index.js +1 -0
  306. package/lib/components/scrollbar/index.js.map +1 -1
  307. package/lib/components/scrollbar/index2.js +1 -0
  308. package/lib/components/scrollbar/index2.js.map +1 -1
  309. package/lib/components/scrollbar/src/bar3.js +2 -8
  310. package/lib/components/scrollbar/src/bar3.js.map +1 -1
  311. package/lib/components/scrollbar/src/bar4.js +26 -31
  312. package/lib/components/scrollbar/src/bar4.js.map +1 -1
  313. package/lib/components/scrollbar/src/scrollbar3.js +2 -8
  314. package/lib/components/scrollbar/src/scrollbar3.js.map +1 -1
  315. package/lib/components/scrollbar/src/scrollbar4.js +57 -67
  316. package/lib/components/scrollbar/src/scrollbar4.js.map +1 -1
  317. package/lib/components/scrollbar/src/thumb3.js.map +1 -1
  318. package/lib/components/scrollbar/src/thumb4.js +29 -37
  319. package/lib/components/scrollbar/src/thumb4.js.map +1 -1
  320. package/lib/components/scrollbar/src/util.js +1 -0
  321. package/lib/components/scrollbar/src/util.js.map +1 -1
  322. package/lib/components/scrollbar/src/util2.js +7 -1
  323. package/lib/components/scrollbar/src/util2.js.map +1 -1
  324. package/lib/components/select/src/select2.js.map +1 -1
  325. package/lib/components/select/src/useSelect2.js +2 -3
  326. package/lib/components/select/src/useSelect2.js.map +1 -1
  327. package/lib/components/time-picker/src/common/picker2.js +10 -4
  328. package/lib/components/time-picker/src/common/picker2.js.map +1 -1
  329. package/lib/index.js +1 -0
  330. package/lib/index.js.map +1 -1
  331. package/lib/packages/components/autocomplete/index.d.ts +410 -16
  332. package/lib/packages/components/autocomplete/src/autocomplete.vue.d.ts +410 -16
  333. package/lib/packages/components/cascader/index.d.ts +1732 -156
  334. package/lib/packages/components/cascader/src/index.vue.d.ts +819 -31
  335. package/lib/packages/components/date-picker/src/composables/use-range-picker.d.ts +30 -36
  336. package/lib/packages/components/date-picker/src/composables/use-shortcut.d.ts +9 -0
  337. package/lib/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue.d.ts +30 -19
  338. package/lib/packages/components/date-picker/src/date-picker-com/panel-date-range.vue.d.ts +4 -10
  339. package/lib/packages/components/date-picker/src/date-picker-com/panel-month-range.vue.d.ts +1 -7
  340. package/lib/packages/components/date-picker/src/props/basic-date-table.d.ts +18 -4
  341. package/lib/packages/components/date-picker/src/props/panel-date-pick.d.ts +1 -1
  342. package/lib/packages/components/date-picker/src/props/panel-date-range.d.ts +1 -1
  343. package/lib/packages/components/date-picker/src/props/shared.d.ts +1 -1
  344. package/lib/packages/components/date-picker/src/utils.d.ts +32 -35
  345. package/lib/packages/components/scrollbar/index.d.ts +410 -16
  346. package/lib/packages/components/scrollbar/src/bar.d.ts +4 -2
  347. package/lib/packages/components/scrollbar/src/bar.vue.d.ts +99 -7
  348. package/lib/packages/components/scrollbar/src/scrollbar.d.ts +4 -2
  349. package/lib/packages/components/scrollbar/src/scrollbar.vue.d.ts +412 -17
  350. package/lib/packages/components/scrollbar/src/thumb.d.ts +2 -0
  351. package/lib/packages/components/scrollbar/src/thumb.vue.d.ts +27 -2
  352. package/lib/packages/components/scrollbar/src/util.d.ts +4 -4
  353. package/lib/packages/components/select/src/useSelect.d.ts +0 -1
  354. package/lib/packages/components/time-picker/src/common/picker.vue.d.ts +2 -2
  355. package/lib/packages/tokens/scrollbar.d.ts +2 -2
  356. package/lib/packages/version.d.ts +1 -1
  357. package/lib/tokens/scrollbar2.js.map +1 -1
  358. package/lib/version2.js +1 -1
  359. package/lib/version2.js.map +1 -1
  360. package/package.json +2 -2
  361. package/web-types.json +1 -1
@@ -1,4 +1,4 @@
1
- /*! Element Plus v0.0.20220530 */
1
+ /*! Element Plus v0.0.20220531 */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
@@ -7677,10 +7677,10 @@
7677
7677
  _hoisted_3$p,
7678
7678
  _hoisted_4$f
7679
7679
  ];
7680
- function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
7680
+ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
7681
7681
  return vue.openBlock(), vue.createElementBlock("svg", _hoisted_1$13, _hoisted_5$9);
7682
7682
  }
7683
- var add_location_default = /* @__PURE__ */ export_helper_default(_sfc_main$2j, [["render", _sfc_render$$], ["__file", "/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/add-location.vue"]]);
7683
+ var add_location_default = /* @__PURE__ */ export_helper_default(_sfc_main$2j, [["render", _sfc_render$Y], ["__file", "/home/runner/work/element-plus-icons/element-plus-icons/packages/vue/src/components/add-location.vue"]]);
7684
7684
  var _sfc_main2 = vue.defineComponent({
7685
7685
  name: "Aim"
7686
7686
  });
@@ -15534,7 +15534,7 @@
15534
15534
  return [recordCursor, setCursor];
15535
15535
  }
15536
15536
 
15537
- const version$1 = "0.0.20220530";
15537
+ const version$1 = "0.0.20220531";
15538
15538
 
15539
15539
  const INSTALLED_KEY = Symbol("INSTALLED_KEY");
15540
15540
  const makeInstaller = (components = []) => {
@@ -15584,11 +15584,11 @@
15584
15584
  return target;
15585
15585
  };
15586
15586
 
15587
- const __default__$1d = {
15587
+ const __default__$1e = {
15588
15588
  name: "ElAffix"
15589
15589
  };
15590
15590
  const _sfc_main$2i = /* @__PURE__ */ vue.defineComponent({
15591
- ...__default__$1d,
15591
+ ...__default__$1e,
15592
15592
  props: affixProps,
15593
15593
  emits: affixEmits,
15594
15594
  setup(__props, { expose, emit }) {
@@ -15703,12 +15703,12 @@
15703
15703
  }
15704
15704
  });
15705
15705
 
15706
- const __default__$1c = {
15706
+ const __default__$1d = {
15707
15707
  name: "ElIcon",
15708
15708
  inheritAttrs: false
15709
15709
  };
15710
15710
  const _sfc_main$2h = /* @__PURE__ */ vue.defineComponent({
15711
- ...__default__$1c,
15711
+ ...__default__$1d,
15712
15712
  props: iconProps,
15713
15713
  setup(__props) {
15714
15714
  const props = __props;
@@ -15770,11 +15770,11 @@
15770
15770
  close: (evt) => evt instanceof MouseEvent
15771
15771
  };
15772
15772
 
15773
- const __default__$1b = {
15773
+ const __default__$1c = {
15774
15774
  name: "ElAlert"
15775
15775
  };
15776
15776
  const _sfc_main$2g = /* @__PURE__ */ vue.defineComponent({
15777
- ...__default__$1b,
15777
+ ...__default__$1c,
15778
15778
  props: alertProps,
15779
15779
  emits: alertEmits,
15780
15780
  setup(__props, { emit }) {
@@ -16041,12 +16041,12 @@
16041
16041
  const _hoisted_1$12 = ["role"];
16042
16042
  const _hoisted_2$H = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder"];
16043
16043
  const _hoisted_3$o = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder"];
16044
- const __default__$1a = {
16044
+ const __default__$1b = {
16045
16045
  name: "ElInput",
16046
16046
  inheritAttrs: false
16047
16047
  };
16048
16048
  const _sfc_main$2f = /* @__PURE__ */ vue.defineComponent({
16049
- ...__default__$1a,
16049
+ ...__default__$1b,
16050
16050
  props: inputProps,
16051
16051
  emits: inputEmits,
16052
16052
  setup(__props, { expose, emit }) {
@@ -16476,6 +16476,7 @@
16476
16476
 
16477
16477
  const ElInput = withInstall(Input);
16478
16478
 
16479
+ const GAP = 4;
16479
16480
  const BAR_MAP = {
16480
16481
  vertical: {
16481
16482
  offset: "offsetHeight",
@@ -16498,7 +16499,11 @@
16498
16499
  direction: "left"
16499
16500
  }
16500
16501
  };
16501
- const renderThumbStyle$1 = ({ move, size, bar }) => ({
16502
+ const renderThumbStyle$1 = ({
16503
+ move,
16504
+ size,
16505
+ bar
16506
+ }) => ({
16502
16507
  [bar.size]: size,
16503
16508
  transform: `translate${bar.axis}(${move}%)`
16504
16509
  });
@@ -16514,15 +16519,15 @@
16514
16519
  always: Boolean
16515
16520
  });
16516
16521
 
16517
- const COMPONENT_NAME$d = "Thumb";
16518
- const _sfc_main$2e = vue.defineComponent({
16519
- name: COMPONENT_NAME$d,
16522
+ const _sfc_main$2e = /* @__PURE__ */ vue.defineComponent({
16520
16523
  props: thumbProps,
16521
- setup(props) {
16524
+ setup(__props) {
16525
+ const props = __props;
16526
+ const COMPONENT_NAME = "Thumb";
16522
16527
  const scrollbar = vue.inject(scrollbarContextKey);
16523
16528
  const ns = useNamespace("scrollbar");
16524
16529
  if (!scrollbar)
16525
- throwError(COMPONENT_NAME$d, "can not inject scrollbar context");
16530
+ throwError(COMPONENT_NAME, "can not inject scrollbar context");
16526
16531
  const instance = vue.ref();
16527
16532
  const thumb = vue.ref();
16528
16533
  const thumbState = vue.ref({});
@@ -16605,56 +16610,42 @@
16605
16610
  };
16606
16611
  useEventListener(vue.toRef(scrollbar, "scrollbarElement"), "mousemove", mouseMoveScrollbarHandler);
16607
16612
  useEventListener(vue.toRef(scrollbar, "scrollbarElement"), "mouseleave", mouseLeaveScrollbarHandler);
16608
- return {
16609
- ns,
16610
- instance,
16611
- thumb,
16612
- bar,
16613
- thumbStyle,
16614
- visible,
16615
- clickTrackHandler,
16616
- clickThumbHandler
16613
+ return (_ctx, _cache) => {
16614
+ return vue.openBlock(), vue.createBlock(vue.Transition, {
16615
+ name: vue.unref(ns).b("fade")
16616
+ }, {
16617
+ default: vue.withCtx(() => [
16618
+ vue.withDirectives(vue.createElementVNode("div", {
16619
+ ref_key: "instance",
16620
+ ref: instance,
16621
+ class: vue.normalizeClass([vue.unref(ns).e("bar"), vue.unref(ns).is(vue.unref(bar).key)]),
16622
+ onMousedown: clickTrackHandler
16623
+ }, [
16624
+ vue.createElementVNode("div", {
16625
+ ref_key: "thumb",
16626
+ ref: thumb,
16627
+ class: vue.normalizeClass(vue.unref(ns).e("thumb")),
16628
+ style: vue.normalizeStyle(vue.unref(thumbStyle)),
16629
+ onMousedown: clickThumbHandler
16630
+ }, null, 38)
16631
+ ], 34), [
16632
+ [vue.vShow, _ctx.always || visible.value]
16633
+ ])
16634
+ ]),
16635
+ _: 1
16636
+ }, 8, ["name"]);
16617
16637
  };
16618
16638
  }
16619
16639
  });
16620
- function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
16621
- return vue.openBlock(), vue.createBlock(vue.Transition, {
16622
- name: _ctx.ns.b("fade")
16623
- }, {
16624
- default: vue.withCtx(() => [
16625
- vue.withDirectives(vue.createElementVNode("div", {
16626
- ref: "instance",
16627
- class: vue.normalizeClass([_ctx.ns.e("bar"), _ctx.ns.is(_ctx.bar.key)]),
16628
- onMousedown: _cache[1] || (_cache[1] = (...args) => _ctx.clickTrackHandler && _ctx.clickTrackHandler(...args))
16629
- }, [
16630
- vue.createElementVNode("div", {
16631
- ref: "thumb",
16632
- class: vue.normalizeClass(_ctx.ns.e("thumb")),
16633
- style: vue.normalizeStyle(_ctx.thumbStyle),
16634
- onMousedown: _cache[0] || (_cache[0] = (...args) => _ctx.clickThumbHandler && _ctx.clickThumbHandler(...args))
16635
- }, null, 38)
16636
- ], 34), [
16637
- [vue.vShow, _ctx.always || _ctx.visible]
16638
- ])
16639
- ]),
16640
- _: 1
16641
- }, 8, ["name"]);
16642
- }
16643
- var Thumb = /* @__PURE__ */ _export_sfc(_sfc_main$2e, [["render", _sfc_render$_], ["__file", "thumb.vue"]]);
16640
+ var Thumb = /* @__PURE__ */ _export_sfc(_sfc_main$2e, [["__file", "thumb.vue"]]);
16644
16641
 
16645
16642
  const barProps = buildProps({
16646
16643
  always: {
16647
16644
  type: Boolean,
16648
16645
  default: true
16649
16646
  },
16650
- width: {
16651
- type: String,
16652
- default: ""
16653
- },
16654
- height: {
16655
- type: String,
16656
- default: ""
16657
- },
16647
+ width: String,
16648
+ height: String,
16658
16649
  ratioX: {
16659
16650
  type: Number,
16660
16651
  default: 1
@@ -16665,15 +16656,12 @@
16665
16656
  }
16666
16657
  });
16667
16658
 
16668
- const _sfc_main$2d = vue.defineComponent({
16669
- components: {
16670
- Thumb
16671
- },
16659
+ const _sfc_main$2d = /* @__PURE__ */ vue.defineComponent({
16672
16660
  props: barProps,
16673
- setup(props) {
16661
+ setup(__props, { expose }) {
16662
+ const props = __props;
16674
16663
  const moveX = vue.ref(0);
16675
16664
  const moveY = vue.ref(0);
16676
- const GAP = 4;
16677
16665
  const handleScroll = (wrap) => {
16678
16666
  if (wrap) {
16679
16667
  const offsetHeight = wrap.offsetHeight - GAP;
@@ -16682,32 +16670,29 @@
16682
16670
  moveX.value = wrap.scrollLeft * 100 / offsetWidth * props.ratioX;
16683
16671
  }
16684
16672
  };
16685
- return {
16686
- handleScroll,
16687
- moveX,
16688
- moveY
16673
+ expose({
16674
+ handleScroll
16675
+ });
16676
+ return (_ctx, _cache) => {
16677
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
16678
+ vue.createVNode(Thumb, {
16679
+ move: moveX.value,
16680
+ ratio: _ctx.ratioX,
16681
+ size: _ctx.width,
16682
+ always: _ctx.always
16683
+ }, null, 8, ["move", "ratio", "size", "always"]),
16684
+ vue.createVNode(Thumb, {
16685
+ move: moveY.value,
16686
+ ratio: _ctx.ratioY,
16687
+ size: _ctx.height,
16688
+ vertical: "",
16689
+ always: _ctx.always
16690
+ }, null, 8, ["move", "ratio", "size", "always"])
16691
+ ], 64);
16689
16692
  };
16690
16693
  }
16691
16694
  });
16692
- function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
16693
- const _component_thumb = vue.resolveComponent("thumb");
16694
- return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
16695
- vue.createVNode(_component_thumb, {
16696
- move: _ctx.moveX,
16697
- ratio: _ctx.ratioX,
16698
- size: _ctx.width,
16699
- always: _ctx.always
16700
- }, null, 8, ["move", "ratio", "size", "always"]),
16701
- vue.createVNode(_component_thumb, {
16702
- move: _ctx.moveY,
16703
- ratio: _ctx.ratioY,
16704
- size: _ctx.height,
16705
- vertical: "",
16706
- always: _ctx.always
16707
- }, null, 8, ["move", "ratio", "size", "always"])
16708
- ], 64);
16709
- }
16710
- var Bar = /* @__PURE__ */ _export_sfc(_sfc_main$2d, [["render", _sfc_render$Z], ["__file", "bar.vue"]]);
16695
+ var Bar = /* @__PURE__ */ _export_sfc(_sfc_main$2d, [["__file", "bar.vue"]]);
16711
16696
 
16712
16697
  const scrollbarProps = buildProps({
16713
16698
  height: {
@@ -16718,10 +16703,7 @@
16718
16703
  type: [String, Number],
16719
16704
  default: ""
16720
16705
  },
16721
- native: {
16722
- type: Boolean,
16723
- default: false
16724
- },
16706
+ native: Boolean,
16725
16707
  wrapStyle: {
16726
16708
  type: definePropType([String, Object, Array]),
16727
16709
  default: ""
@@ -16743,10 +16725,7 @@
16743
16725
  type: String,
16744
16726
  default: "div"
16745
16727
  },
16746
- always: {
16747
- type: Boolean,
16748
- default: false
16749
- },
16728
+ always: Boolean,
16750
16729
  minSize: {
16751
16730
  type: Number,
16752
16731
  default: 20
@@ -16759,14 +16738,15 @@
16759
16738
  }) => isNumber(scrollTop) && isNumber(scrollLeft)
16760
16739
  };
16761
16740
 
16762
- const _sfc_main$2c = vue.defineComponent({
16763
- name: "ElScrollbar",
16764
- components: {
16765
- Bar
16766
- },
16741
+ const __default__$1a = {
16742
+ name: "ElScrollbar"
16743
+ };
16744
+ const _sfc_main$2c = /* @__PURE__ */ vue.defineComponent({
16745
+ ...__default__$1a,
16767
16746
  props: scrollbarProps,
16768
16747
  emits: scrollbarEmits,
16769
- setup(props, { emit }) {
16748
+ setup(__props, { expose, emit }) {
16749
+ const props = __props;
16770
16750
  const ns = useNamespace("scrollbar");
16771
16751
  let stopResizeObserver = void 0;
16772
16752
  let stopResizeListener = void 0;
@@ -16776,11 +16756,8 @@
16776
16756
  const sizeWidth = vue.ref("0");
16777
16757
  const sizeHeight = vue.ref("0");
16778
16758
  const barRef = vue.ref();
16779
- const moveX = vue.ref(0);
16780
- const moveY = vue.ref(0);
16781
16759
  const ratioY = vue.ref(1);
16782
16760
  const ratioX = vue.ref(1);
16783
- const GAP = 4;
16784
16761
  const style = vue.computed(() => {
16785
16762
  const style2 = {};
16786
16763
  if (props.height)
@@ -16860,66 +16837,57 @@
16860
16837
  vue.nextTick(() => update());
16861
16838
  });
16862
16839
  vue.onUpdated(() => update());
16863
- return {
16864
- ns,
16865
- scrollbar$,
16866
- wrap$,
16867
- resize$,
16868
- barRef,
16869
- moveX,
16870
- moveY,
16871
- ratioX,
16872
- ratioY,
16873
- sizeWidth,
16874
- sizeHeight,
16875
- style,
16840
+ expose({
16876
16841
  update,
16877
- handleScroll,
16878
16842
  scrollTo,
16879
16843
  setScrollTop,
16880
- setScrollLeft
16844
+ setScrollLeft,
16845
+ handleScroll
16846
+ });
16847
+ return (_ctx, _cache) => {
16848
+ return vue.openBlock(), vue.createElementBlock("div", {
16849
+ ref_key: "scrollbar$",
16850
+ ref: scrollbar$,
16851
+ class: vue.normalizeClass(vue.unref(ns).b())
16852
+ }, [
16853
+ vue.createElementVNode("div", {
16854
+ ref_key: "wrap$",
16855
+ ref: wrap$,
16856
+ class: vue.normalizeClass([
16857
+ _ctx.wrapClass,
16858
+ vue.unref(ns).e("wrap"),
16859
+ { [vue.unref(ns).em("wrap", "hidden-default")]: !_ctx.native }
16860
+ ]),
16861
+ style: vue.normalizeStyle(vue.unref(style)),
16862
+ onScroll: handleScroll
16863
+ }, [
16864
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.tag), {
16865
+ ref_key: "resize$",
16866
+ ref: resize$,
16867
+ class: vue.normalizeClass([vue.unref(ns).e("view"), _ctx.viewClass]),
16868
+ style: vue.normalizeStyle(_ctx.viewStyle)
16869
+ }, {
16870
+ default: vue.withCtx(() => [
16871
+ vue.renderSlot(_ctx.$slots, "default")
16872
+ ]),
16873
+ _: 3
16874
+ }, 8, ["class", "style"]))
16875
+ ], 38),
16876
+ !_ctx.native ? (vue.openBlock(), vue.createBlock(Bar, {
16877
+ key: 0,
16878
+ ref_key: "barRef",
16879
+ ref: barRef,
16880
+ height: sizeHeight.value,
16881
+ width: sizeWidth.value,
16882
+ always: _ctx.always,
16883
+ "ratio-x": ratioX.value,
16884
+ "ratio-y": ratioY.value
16885
+ }, null, 8, ["height", "width", "always", "ratio-x", "ratio-y"])) : vue.createCommentVNode("v-if", true)
16886
+ ], 2);
16881
16887
  };
16882
16888
  }
16883
16889
  });
16884
- function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
16885
- const _component_bar = vue.resolveComponent("bar");
16886
- return vue.openBlock(), vue.createElementBlock("div", {
16887
- ref: "scrollbar$",
16888
- class: vue.normalizeClass(_ctx.ns.b())
16889
- }, [
16890
- vue.createElementVNode("div", {
16891
- ref: "wrap$",
16892
- class: vue.normalizeClass([
16893
- _ctx.wrapClass,
16894
- _ctx.ns.e("wrap"),
16895
- { [_ctx.ns.em("wrap", "hidden-default")]: !_ctx.native }
16896
- ]),
16897
- style: vue.normalizeStyle(_ctx.style),
16898
- onScroll: _cache[0] || (_cache[0] = (...args) => _ctx.handleScroll && _ctx.handleScroll(...args))
16899
- }, [
16900
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.tag), {
16901
- ref: "resize$",
16902
- class: vue.normalizeClass([_ctx.ns.e("view"), _ctx.viewClass]),
16903
- style: vue.normalizeStyle(_ctx.viewStyle)
16904
- }, {
16905
- default: vue.withCtx(() => [
16906
- vue.renderSlot(_ctx.$slots, "default")
16907
- ]),
16908
- _: 3
16909
- }, 8, ["class", "style"]))
16910
- ], 38),
16911
- !_ctx.native ? (vue.openBlock(), vue.createBlock(_component_bar, {
16912
- key: 0,
16913
- ref: "barRef",
16914
- height: _ctx.sizeHeight,
16915
- width: _ctx.sizeWidth,
16916
- always: _ctx.always,
16917
- "ratio-x": _ctx.ratioX,
16918
- "ratio-y": _ctx.ratioY
16919
- }, null, 8, ["height", "width", "always", "ratio-x", "ratio-y"])) : vue.createCommentVNode("v-if", true)
16920
- ], 2);
16921
- }
16922
- var Scrollbar = /* @__PURE__ */ _export_sfc(_sfc_main$2c, [["render", _sfc_render$Y], ["__file", "scrollbar.vue"]]);
16890
+ var Scrollbar = /* @__PURE__ */ _export_sfc(_sfc_main$2c, [["__file", "scrollbar.vue"]]);
16923
16891
 
16924
16892
  const ElScrollbar = withInstall(Scrollbar);
16925
16893
 
@@ -21040,8 +21008,11 @@
21040
21008
  const valueIsEmpty = vue.computed(() => {
21041
21009
  return !props.modelValue || Array.isArray(props.modelValue) && !props.modelValue.length;
21042
21010
  });
21043
- const onMouseDownInput = () => {
21044
- pickerVisible.value = true;
21011
+ const onMouseDownInput = async (event) => {
21012
+ var _a;
21013
+ if (((_a = event.target) == null ? void 0 : _a.tagName) !== "INPUT") {
21014
+ pickerVisible.value = true;
21015
+ }
21045
21016
  };
21046
21017
  const onMouseEnter = () => {
21047
21018
  if (props.readonly || pickerDisabled.value)
@@ -21053,8 +21024,11 @@
21053
21024
  const onMouseLeave = () => {
21054
21025
  showClose.value = false;
21055
21026
  };
21056
- const onTouchStartInput = () => {
21057
- pickerVisible.value = true;
21027
+ const onTouchStartInput = (event) => {
21028
+ var _a;
21029
+ if (((_a = event.touches[0].target) == null ? void 0 : _a.tagName) !== "INPUT") {
21030
+ pickerVisible.value = true;
21031
+ }
21058
21032
  };
21059
21033
  const isRangeInput = vue.computed(() => {
21060
21034
  return props.type.includes("range");
@@ -28672,11 +28646,13 @@
28672
28646
  const _sfc_main$1l = /* @__PURE__ */ vue.defineComponent({
28673
28647
  props: panelDatePickProps,
28674
28648
  emits: ["pick", "set-picker-option", "panel-change"],
28675
- setup(__props, { emit: _emit }) {
28649
+ setup(__props, { emit: contextEmit }) {
28676
28650
  const props = __props;
28677
28651
  const timeWithinRange = (_, __, ___) => true;
28678
28652
  const ppNs = useNamespace("picker-panel");
28679
28653
  const dpNs = useNamespace("date-picker");
28654
+ const attrs = vue.useAttrs();
28655
+ const slots = vue.useSlots();
28680
28656
  const { t, lang } = useLocale();
28681
28657
  const pickerBase = vue.inject("EP_PICKER_BASE");
28682
28658
  const popper = vue.inject(TOOLTIP_INJECTION_KEY);
@@ -28709,18 +28685,19 @@
28709
28685
  };
28710
28686
  const emit = (value, ...args) => {
28711
28687
  if (!value) {
28712
- _emit("pick", value, ...args);
28713
- } else if (Array.isArray(value)) {
28688
+ contextEmit("pick", value, ...args);
28689
+ } else if (isArray(value)) {
28714
28690
  const dates = value.map(formatEmit);
28715
- _emit("pick", dates, ...args);
28691
+ contextEmit("pick", dates, ...args);
28716
28692
  } else {
28717
- _emit("pick", formatEmit(value), ...args);
28693
+ contextEmit("pick", formatEmit(value), ...args);
28718
28694
  }
28719
28695
  userInputDate.value = null;
28720
28696
  userInputTime.value = null;
28721
28697
  };
28722
- const handleDatePick = (value, keepOpen = void 0) => {
28698
+ const handleDatePick = (value, keepOpen) => {
28723
28699
  if (selectionMode.value === "date") {
28700
+ value = value;
28724
28701
  let newDate = props.parsedValue ? props.parsedValue.year(value.year()).month(value.month()).date(value.date()) : value;
28725
28702
  if (!checkDateWithinRange(newDate)) {
28726
28703
  newDate = selectableRange.value[0][0].year(value.year()).month(value.month()).date(value.date());
@@ -28770,19 +28747,23 @@
28770
28747
  return `${year.value} ${yearTranslation}`;
28771
28748
  });
28772
28749
  const handleShortcutClick = (shortcut) => {
28773
- const shortcutValue = typeof shortcut.value === "function" ? shortcut.value() : shortcut.value;
28750
+ const shortcutValue = isFunction(shortcut.value) ? shortcut.value() : shortcut.value;
28774
28751
  if (shortcutValue) {
28775
28752
  emit(dayjs(shortcutValue).locale(lang.value));
28776
28753
  return;
28777
28754
  }
28778
28755
  if (shortcut.onClick) {
28779
- shortcut.onClick(ctx);
28756
+ shortcut.onClick({
28757
+ attrs,
28758
+ slots,
28759
+ emit: contextEmit
28760
+ });
28780
28761
  }
28781
28762
  };
28782
28763
  const selectionMode = vue.computed(() => {
28783
- if (["week", "month", "year", "dates"].includes(props.type)) {
28784
- return props.type;
28785
- }
28764
+ const { type } = props;
28765
+ if (["week", "month", "year", "dates"].includes(type))
28766
+ return type;
28786
28767
  return "date";
28787
28768
  });
28788
28769
  const keyboardMode = vue.computed(() => {
@@ -28972,37 +28953,38 @@
28972
28953
  };
28973
28954
  const handleKeyControl = (code) => {
28974
28955
  var _a;
28956
+ const { up, down, left, right, home, end, pageUp, pageDown } = EVENT_CODE;
28975
28957
  const mapping = {
28976
28958
  year: {
28977
- [EVENT_CODE.up]: -4,
28978
- [EVENT_CODE.down]: 4,
28979
- [EVENT_CODE.left]: -1,
28980
- [EVENT_CODE.right]: 1,
28959
+ [up]: -4,
28960
+ [down]: 4,
28961
+ [left]: -1,
28962
+ [right]: 1,
28981
28963
  offset: (date, step) => date.setFullYear(date.getFullYear() + step)
28982
28964
  },
28983
28965
  month: {
28984
- [EVENT_CODE.up]: -4,
28985
- [EVENT_CODE.down]: 4,
28986
- [EVENT_CODE.left]: -1,
28987
- [EVENT_CODE.right]: 1,
28966
+ [up]: -4,
28967
+ [down]: 4,
28968
+ [left]: -1,
28969
+ [right]: 1,
28988
28970
  offset: (date, step) => date.setMonth(date.getMonth() + step)
28989
28971
  },
28990
28972
  week: {
28991
- [EVENT_CODE.up]: -1,
28992
- [EVENT_CODE.down]: 1,
28993
- [EVENT_CODE.left]: -1,
28994
- [EVENT_CODE.right]: 1,
28973
+ [up]: -1,
28974
+ [down]: 1,
28975
+ [left]: -1,
28976
+ [right]: 1,
28995
28977
  offset: (date, step) => date.setDate(date.getDate() + step * 7)
28996
28978
  },
28997
28979
  date: {
28998
- [EVENT_CODE.up]: -7,
28999
- [EVENT_CODE.down]: 7,
29000
- [EVENT_CODE.left]: -1,
29001
- [EVENT_CODE.right]: 1,
29002
- [EVENT_CODE.home]: (date) => -date.getDay(),
29003
- [EVENT_CODE.end]: (date) => -date.getDay() + 6,
29004
- [EVENT_CODE.pageUp]: (date) => -new Date(date.getFullYear(), date.getMonth(), 0).getDate(),
29005
- [EVENT_CODE.pageDown]: (date) => new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate(),
28980
+ [up]: -7,
28981
+ [down]: 7,
28982
+ [left]: -1,
28983
+ [right]: 1,
28984
+ [home]: (date) => -date.getDay(),
28985
+ [end]: (date) => -date.getDay() + 6,
28986
+ [pageUp]: (date) => -new Date(date.getFullYear(), date.getMonth(), 0).getDate(),
28987
+ [pageDown]: (date) => new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate(),
29006
28988
  offset: (date, step) => date.setDate(date.getDate() + step)
29007
28989
  }
29008
28990
  };
@@ -29017,17 +28999,17 @@
29017
28999
  }
29018
29000
  const result = dayjs(newDate).locale(lang.value);
29019
29001
  innerDate.value = result;
29020
- _emit("pick", result, true);
29002
+ contextEmit("pick", result, true);
29021
29003
  break;
29022
29004
  }
29023
29005
  };
29024
29006
  const handlePanelChange = (mode) => {
29025
- _emit("panel-change", innerDate.value.toDate(), mode, currentView.value);
29007
+ contextEmit("panel-change", innerDate.value.toDate(), mode, currentView.value);
29026
29008
  };
29027
- _emit("set-picker-option", ["isValidValue", isValidValue]);
29028
- _emit("set-picker-option", ["formatToString", formatToString]);
29029
- _emit("set-picker-option", ["parseUserInput", parseUserInput]);
29030
- _emit("set-picker-option", ["handleFocusPicker", handleFocusPicker]);
29009
+ contextEmit("set-picker-option", ["isValidValue", isValidValue]);
29010
+ contextEmit("set-picker-option", ["formatToString", formatToString]);
29011
+ contextEmit("set-picker-option", ["parseUserInput", parseUserInput]);
29012
+ contextEmit("set-picker-option", ["handleFocusPicker", handleFocusPicker]);
29031
29013
  vue.watch(() => defaultValue.value, (val) => {
29032
29014
  if (val) {
29033
29015
  innerDate.value = getDefaultValue();
@@ -29285,6 +29267,30 @@
29285
29267
  ...panelRangeSharedProps
29286
29268
  });
29287
29269
 
29270
+ const useShortcut = (lang) => {
29271
+ const { emit } = vue.getCurrentInstance();
29272
+ const attrs = vue.useAttrs();
29273
+ const slots = vue.useSlots();
29274
+ const handleShortcutClick = (shortcut) => {
29275
+ const shortcutValues = isFunction(shortcut.value) ? shortcut.value() : shortcut.value;
29276
+ if (shortcutValues) {
29277
+ emit("pick", [
29278
+ dayjs(shortcutValues[0]).locale(lang.value),
29279
+ dayjs(shortcutValues[1]).locale(lang.value)
29280
+ ]);
29281
+ return;
29282
+ }
29283
+ if (shortcut.onClick) {
29284
+ shortcut.onClick({
29285
+ attrs,
29286
+ slots,
29287
+ emit
29288
+ });
29289
+ }
29290
+ };
29291
+ return handleShortcutClick;
29292
+ };
29293
+
29288
29294
  const useRangePicker = (props, {
29289
29295
  defaultValue,
29290
29296
  leftDate,
@@ -29293,11 +29299,10 @@
29293
29299
  onParsedValueChanged
29294
29300
  }) => {
29295
29301
  const { emit } = vue.getCurrentInstance();
29296
- const attrs = vue.useAttrs();
29297
- const slots = vue.useSlots();
29298
29302
  const { pickerNs } = vue.inject(ROOT_PICKER_INJECTION_KEY);
29299
29303
  const drpNs = useNamespace("date-range-picker");
29300
29304
  const { t, lang } = useLocale();
29305
+ const handleShortcutClick = useShortcut(lang);
29301
29306
  const minDate = vue.ref();
29302
29307
  const maxDate = vue.ref();
29303
29308
  const rangeState = vue.ref({
@@ -29320,23 +29325,6 @@
29320
29325
  rangeState.value.endDate = null;
29321
29326
  }
29322
29327
  };
29323
- const handleShortcutClick = (shortcut) => {
29324
- const shortcutValues = isFunction(shortcut.value) ? shortcut.value() : shortcut.value;
29325
- if (shortcutValues) {
29326
- emit("pick", [
29327
- dayjs(shortcutValues[0]).locale(lang.value),
29328
- dayjs(shortcutValues[1]).locale(lang.value)
29329
- ]);
29330
- return;
29331
- }
29332
- if (shortcut.onClick) {
29333
- shortcut.onClick({
29334
- attrs,
29335
- slots,
29336
- emit
29337
- });
29338
- }
29339
- };
29340
29328
  const restoreDefault = () => {
29341
29329
  const [start, end] = getDefaultValue(vue.unref(defaultValue), {
29342
29330
  lang: vue.unref(lang),
@@ -36757,7 +36745,6 @@
36757
36745
  selected: props.multiple ? [] : {},
36758
36746
  inputLength: 20,
36759
36747
  inputWidth: 0,
36760
- initialInputHeight: 0,
36761
36748
  optionsCount: 0,
36762
36749
  filteredOptionsCount: 0,
36763
36750
  visible: false,
@@ -36955,8 +36942,8 @@
36955
36942
  return;
36956
36943
  const input2 = reference.value.$el.querySelector("input");
36957
36944
  const _tags = tags.value;
36958
- const sizeInMap = states.initialInputHeight || getComponentSize(selectSize.value || elForm.size);
36959
- input2.style.height = states.selected.length === 0 ? `${sizeInMap}px` : `${Math.max(_tags ? _tags.clientHeight + (_tags.clientHeight > sizeInMap ? 6 : 0) : 0, sizeInMap)}px`;
36945
+ const sizeInMap = getComponentSize(selectSize.value || elForm.size);
36946
+ input2.style.height = `${states.selected.length === 0 ? sizeInMap : Math.max(_tags ? _tags.clientHeight + (_tags.clientHeight > sizeInMap ? 6 : 0) : 0, sizeInMap) - 2}px`;
36960
36947
  states.tagInMultiLine = Number.parseFloat(input2.style.height) >= sizeInMap;
36961
36948
  if (states.visible && emptyText.value !== false) {
36962
36949
  (_b = (_a = tooltipRef.value) == null ? void 0 : _a.updatePopper) == null ? void 0 : _b.call(_a);
@@ -58928,6 +58915,7 @@
58928
58915
  exports.FORWARD_REF_INJECTION_KEY = FORWARD_REF_INJECTION_KEY;
58929
58916
  exports.FixedSizeGrid = FixedSizeGrid;
58930
58917
  exports.FixedSizeList = FixedSizeList;
58918
+ exports.GAP = GAP;
58931
58919
  exports.ID_INJECTION_KEY = ID_INJECTION_KEY;
58932
58920
  exports.INPUT_EVENT = INPUT_EVENT;
58933
58921
  exports.IconComponentMap = IconComponentMap;