@element-plus/nightly 0.0.20260610 → 0.0.20260612

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 (490) hide show
  1. package/dist/index.full.js +26 -27
  2. package/dist/index.full.min.js +4 -4
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +9 -9
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +25 -28
  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-eg.js +1 -1
  12. package/dist/locale/ar-eg.min.js +1 -1
  13. package/dist/locale/ar-eg.min.mjs +1 -1
  14. package/dist/locale/ar-eg.mjs +1 -1
  15. package/dist/locale/ar.js +1 -1
  16. package/dist/locale/ar.min.js +1 -1
  17. package/dist/locale/ar.min.mjs +1 -1
  18. package/dist/locale/ar.mjs +1 -1
  19. package/dist/locale/az.js +1 -1
  20. package/dist/locale/az.min.js +1 -1
  21. package/dist/locale/az.min.mjs +1 -1
  22. package/dist/locale/az.mjs +1 -1
  23. package/dist/locale/bg.js +1 -1
  24. package/dist/locale/bg.min.js +1 -1
  25. package/dist/locale/bg.min.mjs +1 -1
  26. package/dist/locale/bg.mjs +1 -1
  27. package/dist/locale/bn.js +1 -1
  28. package/dist/locale/bn.min.js +1 -1
  29. package/dist/locale/bn.min.mjs +1 -1
  30. package/dist/locale/bn.mjs +1 -1
  31. package/dist/locale/ca.js +1 -1
  32. package/dist/locale/ca.min.js +1 -1
  33. package/dist/locale/ca.min.mjs +1 -1
  34. package/dist/locale/ca.mjs +1 -1
  35. package/dist/locale/ckb.js +1 -1
  36. package/dist/locale/ckb.min.js +1 -1
  37. package/dist/locale/ckb.min.mjs +1 -1
  38. package/dist/locale/ckb.mjs +1 -1
  39. package/dist/locale/cs.js +1 -1
  40. package/dist/locale/cs.min.js +1 -1
  41. package/dist/locale/cs.min.mjs +1 -1
  42. package/dist/locale/cs.mjs +1 -1
  43. package/dist/locale/da.js +1 -1
  44. package/dist/locale/da.min.js +1 -1
  45. package/dist/locale/da.min.mjs +1 -1
  46. package/dist/locale/da.mjs +1 -1
  47. package/dist/locale/de.js +1 -1
  48. package/dist/locale/de.min.js +1 -1
  49. package/dist/locale/de.min.mjs +1 -1
  50. package/dist/locale/de.mjs +1 -1
  51. package/dist/locale/el.js +1 -1
  52. package/dist/locale/el.min.js +1 -1
  53. package/dist/locale/el.min.mjs +1 -1
  54. package/dist/locale/el.mjs +1 -1
  55. package/dist/locale/en.js +1 -1
  56. package/dist/locale/en.min.js +1 -1
  57. package/dist/locale/en.min.mjs +1 -1
  58. package/dist/locale/en.mjs +1 -1
  59. package/dist/locale/eo.js +1 -1
  60. package/dist/locale/eo.min.js +1 -1
  61. package/dist/locale/eo.min.mjs +1 -1
  62. package/dist/locale/eo.mjs +1 -1
  63. package/dist/locale/es.js +1 -1
  64. package/dist/locale/es.min.js +1 -1
  65. package/dist/locale/es.min.mjs +1 -1
  66. package/dist/locale/es.mjs +1 -1
  67. package/dist/locale/et.js +1 -1
  68. package/dist/locale/et.min.js +1 -1
  69. package/dist/locale/et.min.mjs +1 -1
  70. package/dist/locale/et.mjs +1 -1
  71. package/dist/locale/eu.js +1 -1
  72. package/dist/locale/eu.min.js +1 -1
  73. package/dist/locale/eu.min.mjs +1 -1
  74. package/dist/locale/eu.mjs +1 -1
  75. package/dist/locale/fa.js +1 -1
  76. package/dist/locale/fa.min.js +1 -1
  77. package/dist/locale/fa.min.mjs +1 -1
  78. package/dist/locale/fa.mjs +1 -1
  79. package/dist/locale/fi.js +1 -1
  80. package/dist/locale/fi.min.js +1 -1
  81. package/dist/locale/fi.min.mjs +1 -1
  82. package/dist/locale/fi.mjs +1 -1
  83. package/dist/locale/fr.js +1 -1
  84. package/dist/locale/fr.min.js +1 -1
  85. package/dist/locale/fr.min.mjs +1 -1
  86. package/dist/locale/fr.mjs +1 -1
  87. package/dist/locale/he.js +1 -1
  88. package/dist/locale/he.min.js +1 -1
  89. package/dist/locale/he.min.mjs +1 -1
  90. package/dist/locale/he.mjs +1 -1
  91. package/dist/locale/hi.js +1 -1
  92. package/dist/locale/hi.min.js +1 -1
  93. package/dist/locale/hi.min.mjs +1 -1
  94. package/dist/locale/hi.mjs +1 -1
  95. package/dist/locale/hr.js +1 -1
  96. package/dist/locale/hr.min.js +1 -1
  97. package/dist/locale/hr.min.mjs +1 -1
  98. package/dist/locale/hr.mjs +1 -1
  99. package/dist/locale/hu.js +1 -1
  100. package/dist/locale/hu.min.js +1 -1
  101. package/dist/locale/hu.min.mjs +1 -1
  102. package/dist/locale/hu.mjs +1 -1
  103. package/dist/locale/hy-am.js +1 -1
  104. package/dist/locale/hy-am.min.js +1 -1
  105. package/dist/locale/hy-am.min.mjs +1 -1
  106. package/dist/locale/hy-am.mjs +1 -1
  107. package/dist/locale/id.js +1 -1
  108. package/dist/locale/id.min.js +1 -1
  109. package/dist/locale/id.min.mjs +1 -1
  110. package/dist/locale/id.mjs +1 -1
  111. package/dist/locale/it.js +1 -1
  112. package/dist/locale/it.min.js +1 -1
  113. package/dist/locale/it.min.mjs +1 -1
  114. package/dist/locale/it.mjs +1 -1
  115. package/dist/locale/ja.js +1 -1
  116. package/dist/locale/ja.min.js +1 -1
  117. package/dist/locale/ja.min.mjs +1 -1
  118. package/dist/locale/ja.mjs +1 -1
  119. package/dist/locale/kk.js +1 -1
  120. package/dist/locale/kk.min.js +1 -1
  121. package/dist/locale/kk.min.mjs +1 -1
  122. package/dist/locale/kk.mjs +1 -1
  123. package/dist/locale/km.js +1 -1
  124. package/dist/locale/km.min.js +1 -1
  125. package/dist/locale/km.min.mjs +1 -1
  126. package/dist/locale/km.mjs +1 -1
  127. package/dist/locale/ko.js +1 -1
  128. package/dist/locale/ko.min.js +1 -1
  129. package/dist/locale/ko.min.mjs +1 -1
  130. package/dist/locale/ko.mjs +1 -1
  131. package/dist/locale/ku.js +1 -1
  132. package/dist/locale/ku.min.js +1 -1
  133. package/dist/locale/ku.min.mjs +1 -1
  134. package/dist/locale/ku.mjs +1 -1
  135. package/dist/locale/ky.js +1 -1
  136. package/dist/locale/ky.min.js +1 -1
  137. package/dist/locale/ky.min.mjs +1 -1
  138. package/dist/locale/ky.mjs +1 -1
  139. package/dist/locale/lo.js +1 -1
  140. package/dist/locale/lo.min.js +1 -1
  141. package/dist/locale/lo.min.mjs +1 -1
  142. package/dist/locale/lo.mjs +1 -1
  143. package/dist/locale/lt.js +1 -1
  144. package/dist/locale/lt.min.js +1 -1
  145. package/dist/locale/lt.min.mjs +1 -1
  146. package/dist/locale/lt.mjs +1 -1
  147. package/dist/locale/lv.js +1 -1
  148. package/dist/locale/lv.min.js +1 -1
  149. package/dist/locale/lv.min.mjs +1 -1
  150. package/dist/locale/lv.mjs +1 -1
  151. package/dist/locale/mg.js +1 -1
  152. package/dist/locale/mg.min.js +1 -1
  153. package/dist/locale/mg.min.mjs +1 -1
  154. package/dist/locale/mg.mjs +1 -1
  155. package/dist/locale/mn.js +1 -1
  156. package/dist/locale/mn.min.js +1 -1
  157. package/dist/locale/mn.min.mjs +1 -1
  158. package/dist/locale/mn.mjs +1 -1
  159. package/dist/locale/ms.js +1 -1
  160. package/dist/locale/ms.min.js +1 -1
  161. package/dist/locale/ms.min.mjs +1 -1
  162. package/dist/locale/ms.mjs +1 -1
  163. package/dist/locale/my.js +1 -1
  164. package/dist/locale/my.min.js +1 -1
  165. package/dist/locale/my.min.mjs +1 -1
  166. package/dist/locale/my.mjs +1 -1
  167. package/dist/locale/nb-no.js +1 -1
  168. package/dist/locale/nb-no.min.js +1 -1
  169. package/dist/locale/nb-no.min.mjs +1 -1
  170. package/dist/locale/nb-no.mjs +1 -1
  171. package/dist/locale/nl.js +1 -1
  172. package/dist/locale/nl.min.js +1 -1
  173. package/dist/locale/nl.min.mjs +1 -1
  174. package/dist/locale/nl.mjs +1 -1
  175. package/dist/locale/no.js +1 -1
  176. package/dist/locale/no.min.js +1 -1
  177. package/dist/locale/no.min.mjs +1 -1
  178. package/dist/locale/no.mjs +1 -1
  179. package/dist/locale/pa.js +1 -1
  180. package/dist/locale/pa.min.js +1 -1
  181. package/dist/locale/pa.min.mjs +1 -1
  182. package/dist/locale/pa.mjs +1 -1
  183. package/dist/locale/pl.js +1 -1
  184. package/dist/locale/pl.min.js +1 -1
  185. package/dist/locale/pl.min.mjs +1 -1
  186. package/dist/locale/pl.mjs +1 -1
  187. package/dist/locale/pt-br.js +1 -1
  188. package/dist/locale/pt-br.min.js +1 -1
  189. package/dist/locale/pt-br.min.mjs +1 -1
  190. package/dist/locale/pt-br.mjs +1 -1
  191. package/dist/locale/pt.js +1 -1
  192. package/dist/locale/pt.min.js +1 -1
  193. package/dist/locale/pt.min.mjs +1 -1
  194. package/dist/locale/pt.mjs +1 -1
  195. package/dist/locale/ro.js +1 -1
  196. package/dist/locale/ro.min.js +1 -1
  197. package/dist/locale/ro.min.mjs +1 -1
  198. package/dist/locale/ro.mjs +1 -1
  199. package/dist/locale/ru.js +1 -1
  200. package/dist/locale/ru.min.js +1 -1
  201. package/dist/locale/ru.min.mjs +1 -1
  202. package/dist/locale/ru.mjs +1 -1
  203. package/dist/locale/sk.js +1 -1
  204. package/dist/locale/sk.min.js +1 -1
  205. package/dist/locale/sk.min.mjs +1 -1
  206. package/dist/locale/sk.mjs +1 -1
  207. package/dist/locale/sl.js +1 -1
  208. package/dist/locale/sl.min.js +1 -1
  209. package/dist/locale/sl.min.mjs +1 -1
  210. package/dist/locale/sl.mjs +1 -1
  211. package/dist/locale/sr.js +1 -1
  212. package/dist/locale/sr.min.js +1 -1
  213. package/dist/locale/sr.min.mjs +1 -1
  214. package/dist/locale/sr.mjs +1 -1
  215. package/dist/locale/sv.js +1 -1
  216. package/dist/locale/sv.min.js +1 -1
  217. package/dist/locale/sv.min.mjs +1 -1
  218. package/dist/locale/sv.mjs +1 -1
  219. package/dist/locale/sw.js +1 -1
  220. package/dist/locale/sw.min.js +1 -1
  221. package/dist/locale/sw.min.mjs +1 -1
  222. package/dist/locale/sw.mjs +1 -1
  223. package/dist/locale/ta.js +1 -1
  224. package/dist/locale/ta.min.js +1 -1
  225. package/dist/locale/ta.min.mjs +1 -1
  226. package/dist/locale/ta.mjs +1 -1
  227. package/dist/locale/te.js +1 -1
  228. package/dist/locale/te.min.js +1 -1
  229. package/dist/locale/te.min.mjs +1 -1
  230. package/dist/locale/te.mjs +1 -1
  231. package/dist/locale/th.js +1 -1
  232. package/dist/locale/th.min.js +1 -1
  233. package/dist/locale/th.min.mjs +1 -1
  234. package/dist/locale/th.mjs +1 -1
  235. package/dist/locale/tk.js +1 -1
  236. package/dist/locale/tk.min.js +1 -1
  237. package/dist/locale/tk.min.mjs +1 -1
  238. package/dist/locale/tk.mjs +1 -1
  239. package/dist/locale/tr.js +1 -1
  240. package/dist/locale/tr.min.js +1 -1
  241. package/dist/locale/tr.min.mjs +1 -1
  242. package/dist/locale/tr.mjs +1 -1
  243. package/dist/locale/ug-cn.js +1 -1
  244. package/dist/locale/ug-cn.min.js +1 -1
  245. package/dist/locale/ug-cn.min.mjs +1 -1
  246. package/dist/locale/ug-cn.mjs +1 -1
  247. package/dist/locale/uk.js +1 -1
  248. package/dist/locale/uk.min.js +1 -1
  249. package/dist/locale/uk.min.mjs +1 -1
  250. package/dist/locale/uk.mjs +1 -1
  251. package/dist/locale/uz-uz.js +1 -1
  252. package/dist/locale/uz-uz.min.js +1 -1
  253. package/dist/locale/uz-uz.min.mjs +1 -1
  254. package/dist/locale/uz-uz.mjs +1 -1
  255. package/dist/locale/vi.js +1 -1
  256. package/dist/locale/vi.min.js +1 -1
  257. package/dist/locale/vi.min.mjs +1 -1
  258. package/dist/locale/vi.mjs +1 -1
  259. package/dist/locale/zh-cn.js +1 -1
  260. package/dist/locale/zh-cn.min.js +1 -1
  261. package/dist/locale/zh-cn.min.mjs +1 -1
  262. package/dist/locale/zh-cn.mjs +1 -1
  263. package/dist/locale/zh-hk.js +1 -1
  264. package/dist/locale/zh-hk.min.js +1 -1
  265. package/dist/locale/zh-hk.min.mjs +1 -1
  266. package/dist/locale/zh-hk.mjs +1 -1
  267. package/dist/locale/zh-mo.js +1 -1
  268. package/dist/locale/zh-mo.min.js +1 -1
  269. package/dist/locale/zh-mo.min.mjs +1 -1
  270. package/dist/locale/zh-mo.mjs +1 -1
  271. package/dist/locale/zh-tw.js +1 -1
  272. package/dist/locale/zh-tw.min.js +1 -1
  273. package/dist/locale/zh-tw.min.mjs +1 -1
  274. package/dist/locale/zh-tw.mjs +1 -1
  275. package/es/components/affix/src/affix.vue.d.ts +1 -1
  276. package/es/components/anchor/src/anchor.vue.d.ts +2 -2
  277. package/es/components/autocomplete/src/autocomplete.vue.d.ts +1 -1
  278. package/es/components/avatar/src/avatar.d.ts +1 -1
  279. package/es/components/button/src/button-group.d.ts +1 -1
  280. package/es/components/button/src/button-group.vue.d.ts +1 -1
  281. package/es/components/button/src/button.d.ts +1 -1
  282. package/es/components/button/src/button.vue.d.ts +4 -4
  283. package/es/components/button/src/use-button.d.ts +1 -1
  284. package/es/components/carousel/src/carousel-item.vue.d.ts +1 -1
  285. package/es/components/cascader/src/cascader.vue.d.ts +4 -4
  286. package/es/components/cascader-panel/src/index.vue.d.ts +1 -1
  287. package/es/components/checkbox/src/checkbox-button.vue.d.ts +3 -3
  288. package/es/components/checkbox/src/checkbox-group.vue.d.ts +2 -2
  289. package/es/components/checkbox/src/checkbox.vue.d.ts +3 -3
  290. package/es/components/color-picker/src/color-picker.vue.d.ts +2 -2
  291. package/es/components/date-picker/src/date-picker.d.ts +11 -11
  292. package/es/components/date-picker/src/props.d.ts +1 -1
  293. package/es/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +1 -1
  294. package/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +5 -5
  295. package/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +5 -5
  296. package/es/components/date-picker-panel/src/date-picker-com/panel-month-range.vue.d.ts +2 -2
  297. package/es/components/date-picker-panel/src/date-picker-com/panel-year-range.vue.d.ts +2 -2
  298. package/es/components/date-picker-panel/src/date-picker-panel.d.ts +7 -7
  299. package/es/components/date-picker-panel/src/panel-utils.d.ts +30 -30
  300. package/es/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -1
  301. package/es/components/date-picker-panel/src/props/panel-date-pick.d.ts +1 -1
  302. package/es/components/date-picker-panel/src/props/panel-date-range.d.ts +1 -1
  303. package/es/components/date-picker-panel/src/props/shared.d.ts +1 -1
  304. package/es/components/descriptions/src/description-item.d.ts +1 -1
  305. package/es/components/drawer/src/drawer.vue.d.ts +1 -1
  306. package/es/components/dropdown/src/dropdown.d.ts +1 -1
  307. package/es/components/dropdown/src/dropdown.vue.d.ts +29 -29
  308. package/es/components/image/src/image.d.ts +1 -1
  309. package/es/components/image/src/image.vue.d.ts +2 -2
  310. package/es/components/index.d.ts +2 -2
  311. package/es/components/index.mjs +2 -2
  312. package/es/components/input/src/input.vue.d.ts +1 -1
  313. package/es/components/input-number/src/input-number.vue.d.ts +2 -2
  314. package/es/components/input-otp/src/input-otp.vue.d.ts +3 -3
  315. package/es/components/input-tag/src/input-tag.vue.d.ts +2 -2
  316. package/es/components/message/src/message.vue.d.ts +4 -4
  317. package/es/components/message-box/src/index.vue.d.ts +18 -18
  318. package/es/components/notification/src/notification.vue.d.ts +3 -3
  319. package/es/components/pagination/src/pagination.d.ts +3 -3
  320. package/es/components/popconfirm/src/popconfirm.d.ts +2 -2
  321. package/es/components/popconfirm/src/popconfirm.vue.d.ts +1 -1
  322. package/es/components/popover/src/popover.vue.d.ts +3 -3
  323. package/es/components/popper/src/content.vue.d.ts +2 -2
  324. package/es/components/progress/src/progress.vue.d.ts +1 -1
  325. package/es/components/radio/src/radio-button.vue.d.ts +2 -2
  326. package/es/components/radio/src/radio-group.vue.d.ts +4 -4
  327. package/es/components/radio/src/radio.vue.d.ts +2 -2
  328. package/es/components/select/src/select.vue.d.ts +15 -15
  329. package/es/components/select-v2/src/select.vue.d.ts +16 -16
  330. package/es/components/skeleton/src/skeleton-item.d.ts +1 -1
  331. package/es/components/skeleton/src/skeleton.vue.d.ts +1 -1
  332. package/es/components/slider/src/slider.vue.d.ts +2 -2
  333. package/es/components/space/src/space.d.ts +2 -2
  334. package/es/components/statistic/src/statistic.vue.d.ts +2 -2
  335. package/es/components/switch/src/switch.vue.d.ts +2 -2
  336. package/es/components/table/src/filter-panel.vue.d.ts +24 -24
  337. package/es/components/table/src/store/helper.d.ts +1 -1
  338. package/es/components/table/src/store/index.d.ts +2 -2
  339. package/es/components/table/src/table-header/index.d.ts +9 -9
  340. package/es/components/table/src/table.vue.d.ts +2 -2
  341. package/es/components/tabs/src/tabs.d.ts +1 -1
  342. package/es/components/text/src/text.vue.d.ts +1 -1
  343. package/es/components/time-picker/src/common/picker.vue.d.ts +9 -9
  344. package/es/components/time-picker/src/time-picker.d.ts +9 -9
  345. package/es/components/time-select/index.d.ts +2 -2
  346. package/es/components/time-select/index.mjs +2 -2
  347. package/es/components/time-select/src/time-select.d.ts +3 -1
  348. package/es/components/time-select/src/time-select.mjs +5 -3
  349. package/es/components/time-select/src/time-select.mjs.map +1 -1
  350. package/es/components/time-select/src/time-select.vue.d.ts +3 -3
  351. package/es/components/time-select/src/time-select.vue_vue_type_script_setup_true_lang.mjs +18 -25
  352. package/es/components/time-select/src/time-select.vue_vue_type_script_setup_true_lang.mjs.map +1 -1
  353. package/es/components/time-select/src/time-select2.mjs.map +1 -1
  354. package/es/components/time-select/src/utils.d.ts +2 -1
  355. package/es/components/time-select/src/utils.mjs +3 -1
  356. package/es/components/time-select/src/utils.mjs.map +1 -1
  357. package/es/components/timeline/src/timeline-item.vue.d.ts +1 -1
  358. package/es/components/tooltip/src/content.vue.d.ts +3 -3
  359. package/es/components/tooltip/src/tooltip.vue.d.ts +3 -3
  360. package/es/components/tour/src/content.vue.d.ts +1 -1
  361. package/es/components/tour/src/tour.vue.d.ts +1 -1
  362. package/es/components/tree/src/tree-node.vue.d.ts +10 -10
  363. package/es/components/tree/src/tree.vue.d.ts +18 -18
  364. package/es/components/tree-select/src/tree-select.vue.d.ts +10 -10
  365. package/es/components/tree-v2/src/composables/useTree.d.ts +2 -2
  366. package/es/components/tree-v2/src/tree-node.vue.d.ts +3 -3
  367. package/es/components/tree-v2/src/tree.vue.d.ts +7 -7
  368. package/es/components/upload/src/upload-content.vue.d.ts +1 -1
  369. package/es/components/upload/src/upload.vue.d.ts +1 -1
  370. package/es/components/virtual-list/src/builders/build-grid.d.ts +1 -1
  371. package/es/components/virtual-list/src/builders/build-list.d.ts +1 -1
  372. package/es/components/virtual-list/src/components/dynamic-size-grid.d.ts +1 -1
  373. package/es/components/virtual-list/src/components/dynamic-size-list.d.ts +1 -1
  374. package/es/components/virtual-list/src/components/fixed-size-grid.d.ts +1 -1
  375. package/es/components/virtual-list/src/components/fixed-size-list.d.ts +1 -1
  376. package/es/index.d.ts +2 -2
  377. package/es/index.mjs +2 -2
  378. package/es/utils/vue/size.d.ts +1 -1
  379. package/es/version.d.ts +1 -1
  380. package/es/version.mjs +1 -1
  381. package/es/version.mjs.map +1 -1
  382. package/lib/components/affix/src/affix.vue.d.ts +1 -1
  383. package/lib/components/anchor/src/anchor.vue.d.ts +2 -2
  384. package/lib/components/autocomplete/src/autocomplete.vue.d.ts +1 -1
  385. package/lib/components/avatar/src/avatar.d.ts +1 -1
  386. package/lib/components/button/src/button-group.d.ts +1 -1
  387. package/lib/components/button/src/button-group.vue.d.ts +1 -1
  388. package/lib/components/button/src/button.d.ts +1 -1
  389. package/lib/components/button/src/button.vue.d.ts +4 -4
  390. package/lib/components/button/src/use-button.d.ts +1 -1
  391. package/lib/components/carousel/src/carousel-item.vue.d.ts +1 -1
  392. package/lib/components/cascader/src/cascader.vue.d.ts +4 -4
  393. package/lib/components/cascader-panel/src/index.vue.d.ts +1 -1
  394. package/lib/components/checkbox/src/checkbox-button.vue.d.ts +3 -3
  395. package/lib/components/checkbox/src/checkbox-group.vue.d.ts +2 -2
  396. package/lib/components/checkbox/src/checkbox.vue.d.ts +3 -3
  397. package/lib/components/color-picker/src/color-picker.vue.d.ts +2 -2
  398. package/lib/components/date-picker/src/date-picker.d.ts +11 -11
  399. package/lib/components/date-picker/src/props.d.ts +1 -1
  400. package/lib/components/date-picker-panel/src/composables/use-basic-date-table.d.ts +1 -1
  401. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue.d.ts +5 -5
  402. package/lib/components/date-picker-panel/src/date-picker-com/panel-date-range.vue.d.ts +5 -5
  403. package/lib/components/date-picker-panel/src/date-picker-com/panel-month-range.vue.d.ts +2 -2
  404. package/lib/components/date-picker-panel/src/date-picker-com/panel-year-range.vue.d.ts +2 -2
  405. package/lib/components/date-picker-panel/src/date-picker-panel.d.ts +7 -7
  406. package/lib/components/date-picker-panel/src/panel-utils.d.ts +30 -30
  407. package/lib/components/date-picker-panel/src/props/date-picker-panel.d.ts +1 -1
  408. package/lib/components/date-picker-panel/src/props/panel-date-pick.d.ts +1 -1
  409. package/lib/components/date-picker-panel/src/props/panel-date-range.d.ts +1 -1
  410. package/lib/components/date-picker-panel/src/props/shared.d.ts +1 -1
  411. package/lib/components/descriptions/src/description-item.d.ts +1 -1
  412. package/lib/components/drawer/src/drawer.vue.d.ts +1 -1
  413. package/lib/components/dropdown/src/dropdown.d.ts +1 -1
  414. package/lib/components/dropdown/src/dropdown.vue.d.ts +29 -29
  415. package/lib/components/image/src/image.d.ts +1 -1
  416. package/lib/components/image/src/image.vue.d.ts +2 -2
  417. package/lib/components/index.d.ts +2 -2
  418. package/lib/components/index.js +2 -0
  419. package/lib/components/input/src/input.vue.d.ts +1 -1
  420. package/lib/components/input-number/src/input-number.vue.d.ts +2 -2
  421. package/lib/components/input-otp/src/input-otp.vue.d.ts +3 -3
  422. package/lib/components/input-tag/src/input-tag.vue.d.ts +2 -2
  423. package/lib/components/message/src/message.vue.d.ts +4 -4
  424. package/lib/components/message-box/src/index.vue.d.ts +18 -18
  425. package/lib/components/notification/src/notification.vue.d.ts +3 -3
  426. package/lib/components/pagination/src/pagination.d.ts +3 -3
  427. package/lib/components/popconfirm/src/popconfirm.d.ts +2 -2
  428. package/lib/components/popconfirm/src/popconfirm.vue.d.ts +1 -1
  429. package/lib/components/popover/src/popover.vue.d.ts +3 -3
  430. package/lib/components/popper/src/content.vue.d.ts +2 -2
  431. package/lib/components/progress/src/progress.vue.d.ts +1 -1
  432. package/lib/components/radio/src/radio-button.vue.d.ts +2 -2
  433. package/lib/components/radio/src/radio-group.vue.d.ts +4 -4
  434. package/lib/components/radio/src/radio.vue.d.ts +2 -2
  435. package/lib/components/select/src/select.vue.d.ts +15 -15
  436. package/lib/components/select-v2/src/select.vue.d.ts +16 -16
  437. package/lib/components/skeleton/src/skeleton-item.d.ts +1 -1
  438. package/lib/components/skeleton/src/skeleton.vue.d.ts +1 -1
  439. package/lib/components/slider/src/slider.vue.d.ts +2 -2
  440. package/lib/components/space/src/space.d.ts +2 -2
  441. package/lib/components/statistic/src/statistic.vue.d.ts +2 -2
  442. package/lib/components/switch/src/switch.vue.d.ts +2 -2
  443. package/lib/components/table/src/filter-panel.vue.d.ts +24 -24
  444. package/lib/components/table/src/store/helper.d.ts +1 -1
  445. package/lib/components/table/src/store/index.d.ts +2 -2
  446. package/lib/components/table/src/table-header/index.d.ts +9 -9
  447. package/lib/components/table/src/table.vue.d.ts +2 -2
  448. package/lib/components/tabs/src/tabs.d.ts +1 -1
  449. package/lib/components/text/src/text.vue.d.ts +1 -1
  450. package/lib/components/time-picker/src/common/picker.vue.d.ts +9 -9
  451. package/lib/components/time-picker/src/time-picker.d.ts +9 -9
  452. package/lib/components/time-select/index.d.ts +2 -2
  453. package/lib/components/time-select/index.js +2 -0
  454. package/lib/components/time-select/src/time-select.d.ts +3 -1
  455. package/lib/components/time-select/src/time-select.js +6 -2
  456. package/lib/components/time-select/src/time-select.js.map +1 -1
  457. package/lib/components/time-select/src/time-select.vue.d.ts +3 -3
  458. package/lib/components/time-select/src/time-select.vue_vue_type_script_setup_true_lang.js +16 -23
  459. package/lib/components/time-select/src/time-select.vue_vue_type_script_setup_true_lang.js.map +1 -1
  460. package/lib/components/time-select/src/time-select2.js.map +1 -1
  461. package/lib/components/time-select/src/utils.d.ts +2 -1
  462. package/lib/components/time-select/src/utils.js +3 -0
  463. package/lib/components/time-select/src/utils.js.map +1 -1
  464. package/lib/components/timeline/src/timeline-item.vue.d.ts +1 -1
  465. package/lib/components/tooltip/src/content.vue.d.ts +3 -3
  466. package/lib/components/tooltip/src/tooltip.vue.d.ts +3 -3
  467. package/lib/components/tour/src/content.vue.d.ts +1 -1
  468. package/lib/components/tour/src/tour.vue.d.ts +1 -1
  469. package/lib/components/tree/src/tree-node.vue.d.ts +10 -10
  470. package/lib/components/tree/src/tree.vue.d.ts +18 -18
  471. package/lib/components/tree-select/src/tree-select.vue.d.ts +10 -10
  472. package/lib/components/tree-v2/src/composables/useTree.d.ts +2 -2
  473. package/lib/components/tree-v2/src/tree-node.vue.d.ts +3 -3
  474. package/lib/components/tree-v2/src/tree.vue.d.ts +7 -7
  475. package/lib/components/upload/src/upload-content.vue.d.ts +1 -1
  476. package/lib/components/upload/src/upload.vue.d.ts +1 -1
  477. package/lib/components/virtual-list/src/builders/build-grid.d.ts +1 -1
  478. package/lib/components/virtual-list/src/builders/build-list.d.ts +1 -1
  479. package/lib/components/virtual-list/src/components/dynamic-size-grid.d.ts +1 -1
  480. package/lib/components/virtual-list/src/components/dynamic-size-list.d.ts +1 -1
  481. package/lib/components/virtual-list/src/components/fixed-size-grid.d.ts +1 -1
  482. package/lib/components/virtual-list/src/components/fixed-size-list.d.ts +1 -1
  483. package/lib/index.d.ts +2 -2
  484. package/lib/index.js +2 -0
  485. package/lib/utils/vue/size.d.ts +1 -1
  486. package/lib/version.d.ts +1 -1
  487. package/lib/version.js +1 -1
  488. package/lib/version.js.map +1 -1
  489. package/package.json +2 -2
  490. package/web-types.json +1 -1
@@ -454,7 +454,7 @@ declare function useStore<T extends DefaultRow>(): {
454
454
  hoverRow: Ref<T | null, T | null>;
455
455
  }, row: T): void;
456
456
  };
457
- commit: (name: "sort" | "setData" | "insertColumn" | "updateColumnOrder" | "removeColumn" | "changeSortCondition" | "filterChange" | "toggleAllSelection" | "rowSelectedChanged" | "setHoverRow" | "setCurrentRow", ...args: any[]) => void;
457
+ commit: (name: "setData" | "sort" | "insertColumn" | "updateColumnOrder" | "removeColumn" | "changeSortCondition" | "filterChange" | "toggleAllSelection" | "rowSelectedChanged" | "setHoverRow" | "setCurrentRow", ...args: any[]) => void;
458
458
  updateTableScrollY: () => void;
459
459
  assertRowKey: () => void;
460
460
  updateColumns: () => void;
@@ -1002,7 +1002,7 @@ declare class HelperStore<T extends DefaultRow> {
1002
1002
  hoverRow: Ref<T | null, T | null>;
1003
1003
  }, row: T): void;
1004
1004
  };
1005
- commit: (name: "sort" | "setData" | "insertColumn" | "updateColumnOrder" | "removeColumn" | "changeSortCondition" | "filterChange" | "toggleAllSelection" | "rowSelectedChanged" | "setHoverRow" | "setCurrentRow", ...args: any[]) => void;
1005
+ commit: (name: "setData" | "sort" | "insertColumn" | "updateColumnOrder" | "removeColumn" | "changeSortCondition" | "filterChange" | "toggleAllSelection" | "rowSelectedChanged" | "setHoverRow" | "setCurrentRow", ...args: any[]) => void;
1006
1006
  updateTableScrollY: () => void;
1007
1007
  assertRowKey: () => void;
1008
1008
  updateColumns: () => void;
@@ -125,11 +125,11 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
125
125
  change: (val: CheckboxValueType) => void;
126
126
  "update:modelValue": (val: CheckboxValueType) => void;
127
127
  }, _$vue.PublicProps, {
128
- name: string;
129
- disabled: boolean;
130
128
  label: string | boolean | number | object;
131
- value: string | boolean | number | object;
129
+ disabled: boolean;
132
130
  id: string;
131
+ name: string;
132
+ value: string | boolean | number | object;
133
133
  modelValue: number | string | boolean;
134
134
  validateEvent: boolean;
135
135
  trueValue: string | number;
@@ -147,11 +147,11 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
147
147
  onChange?: ((val: CheckboxValueType) => any) | undefined;
148
148
  "onUpdate:modelValue"?: ((val: CheckboxValueType) => any) | undefined;
149
149
  }>, {}, {}, {}, {}, {
150
- name: string;
151
- disabled: boolean;
152
150
  label: string | boolean | number | object;
153
- value: string | boolean | number | object;
151
+ disabled: boolean;
154
152
  id: string;
153
+ name: string;
154
+ value: string | boolean | number | object;
155
155
  modelValue: number | string | boolean;
156
156
  validateEvent: boolean;
157
157
  trueValue: string | number;
@@ -169,11 +169,11 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
169
169
  change: (val: CheckboxValueType) => void;
170
170
  "update:modelValue": (val: CheckboxValueType) => void;
171
171
  }, string, {
172
- name: string;
173
- disabled: boolean;
174
172
  label: string | boolean | number | object;
175
- value: string | boolean | number | object;
173
+ disabled: boolean;
176
174
  id: string;
175
+ name: string;
176
+ value: string | boolean | number | object;
177
177
  modelValue: number | string | boolean;
178
178
  validateEvent: boolean;
179
179
  trueValue: string | number;
@@ -11,6 +11,7 @@ import * as _$lodash_unified0 from "lodash-unified";
11
11
  //#region ../../packages/components/table/src/table.vue.d.ts
12
12
  declare const __VLS_export: <T extends DefaultRow = DefaultRow>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
13
13
  props: _$vue.PublicProps & __VLS_PrettifyLocal<TableProps<T> & {
14
+ "onCurrent-change"?: ((currentRow: T | null, oldCurrentRow: T | null) => any) | undefined;
14
15
  onScroll?: ((data: {
15
16
  scrollLeft: number;
16
17
  scrollTop: number;
@@ -18,7 +19,6 @@ declare const __VLS_export: <T extends DefaultRow = DefaultRow>(__VLS_props: Non
18
19
  "onSelect-all"?: ((selection: T[]) => any) | undefined;
19
20
  onSelect?: ((selection: T[], row: T) => any) | undefined;
20
21
  "onExpand-change"?: ((row: T, expanded: boolean) => any) | undefined;
21
- "onCurrent-change"?: ((currentRow: T | null, oldCurrentRow: T | null) => any) | undefined;
22
22
  "onSelection-change"?: ((newSelection: T[]) => any) | undefined;
23
23
  "onCell-mouse-enter"?: ((row: T, column: TableColumnCtx<T>, cell: HTMLTableCellElement, event: MouseEvent) => any) | undefined;
24
24
  "onCell-mouse-leave"?: ((row: T, column: TableColumnCtx<T>, cell: HTMLTableCellElement, event: MouseEvent) => any) | undefined;
@@ -504,7 +504,7 @@ declare const __VLS_export: <T extends DefaultRow = DefaultRow>(__VLS_props: Non
504
504
  hoverRow: _$vue.Ref<T | null, T | null>;
505
505
  }, row: T): void;
506
506
  };
507
- commit: (name: "sort" | "setData" | "insertColumn" | "updateColumnOrder" | "removeColumn" | "changeSortCondition" | "filterChange" | "toggleAllSelection" | "rowSelectedChanged" | "setHoverRow" | "setCurrentRow", ...args: any[]) => void;
507
+ commit: (name: "setData" | "sort" | "insertColumn" | "updateColumnOrder" | "removeColumn" | "changeSortCondition" | "filterChange" | "toggleAllSelection" | "rowSelectedChanged" | "setHoverRow" | "setCurrentRow", ...args: any[]) => void;
508
508
  updateTableScrollY: () => void;
509
509
  assertRowKey: () => void;
510
510
  updateColumns: () => void;
@@ -134,7 +134,7 @@ declare const Tabs: _$vue.DefineComponent<ExtractPropTypes<{
134
134
  isFocusInsidePane: () => boolean | undefined;
135
135
  }, ev: Event) => any) | undefined;
136
136
  onTabChange?: ((name: TabPaneName) => any) | undefined;
137
- onEdit?: ((paneName: TabPaneName | undefined, action: "add" | "remove") => any) | undefined;
137
+ onEdit?: ((paneName: TabPaneName | undefined, action: "remove" | "add") => any) | undefined;
138
138
  onTabRemove?: ((name: TabPaneName) => any) | undefined;
139
139
  onTabAdd?: (() => any) | undefined;
140
140
  }>, {
@@ -8,8 +8,8 @@ type __VLS_Slots = {} & {
8
8
  default?: (props: typeof __VLS_9) => any;
9
9
  };
10
10
  declare const __VLS_base: _$vue.DefineComponent<TextProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<TextProps> & Readonly<{}>, {
11
- type: "primary" | "success" | "info" | "warning" | "danger" | "";
12
11
  size: ComponentSize;
12
+ type: "primary" | "success" | "info" | "warning" | "danger" | "";
13
13
  tag: string;
14
14
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
15
15
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -474,10 +474,9 @@ declare const __VLS_base: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
474
474
  "onPanel-change"?: ((...args: any[]) => any) | undefined;
475
475
  "onVisible-change"?: ((...args: any[]) => any) | undefined;
476
476
  }>, {
477
- readonly type: string;
478
477
  readonly disabled: EpPropMergeType<BooleanConstructor, unknown, unknown>;
478
+ readonly type: string;
479
479
  readonly placeholder: string;
480
- readonly valueOnClear: EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown>;
481
480
  readonly modelValue: EpPropMergeType<(new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => ModelValueType | null) | (((new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => ModelValueType | null)) | null)[], unknown, unknown>;
482
481
  readonly readonly: boolean;
483
482
  readonly clearable: EpPropMergeType<BooleanConstructor, unknown, unknown>;
@@ -489,19 +488,20 @@ declare const __VLS_base: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
489
488
  readonly fallbackPlacements: Placement$1[];
490
489
  readonly placement: EpPropMergeType<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement$1) | (((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement$1)) | null)[], Placement$1, unknown>;
491
490
  readonly popperOptions: Partial<Options>;
492
- readonly automaticDropdown: EpPropMergeType<BooleanConstructor, unknown, unknown>;
493
- readonly editable: EpPropMergeType<BooleanConstructor, unknown, unknown>;
494
- readonly saveOnBlur: EpPropMergeType<BooleanConstructor, unknown, unknown>;
495
- readonly rangeSeparator: string;
491
+ readonly valueOnClear: EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown>;
496
492
  readonly shortcuts: unknown[];
497
493
  readonly showNow: EpPropMergeType<BooleanConstructor, unknown, unknown>;
494
+ readonly editable: EpPropMergeType<BooleanConstructor, unknown, unknown>;
495
+ readonly arrowControl: boolean;
496
+ readonly unlinkPanels: boolean;
498
497
  readonly showConfirm: EpPropMergeType<BooleanConstructor, unknown, unknown>;
499
498
  readonly showFooter: EpPropMergeType<BooleanConstructor, unknown, unknown>;
500
499
  readonly showWeekNumber: boolean;
501
- readonly arrowControl: boolean;
502
- readonly unlinkPanels: boolean;
503
- readonly singlePanel: boolean;
504
500
  readonly isRange: boolean;
501
+ readonly automaticDropdown: EpPropMergeType<BooleanConstructor, unknown, unknown>;
502
+ readonly saveOnBlur: EpPropMergeType<BooleanConstructor, unknown, unknown>;
503
+ readonly rangeSeparator: string;
504
+ readonly singlePanel: boolean;
505
505
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
506
506
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
507
507
  declare const _default: typeof __VLS_export;
@@ -412,10 +412,9 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
412
412
  }>> & Readonly<{
413
413
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
414
414
  }>, {
415
- type: string;
416
415
  disabled: EpPropMergeType<BooleanConstructor, unknown, unknown>;
416
+ type: string;
417
417
  placeholder: string;
418
- valueOnClear: EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown>;
419
418
  modelValue: EpPropMergeType<(new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => ModelValueType | null) | (((new (...args: any[]) => string | number | Date | string[] | number[] | Date[]) | (() => ModelValueType | null)) | null)[], unknown, unknown>;
420
419
  readonly: boolean;
421
420
  clearable: EpPropMergeType<BooleanConstructor, unknown, unknown>;
@@ -427,19 +426,20 @@ declare const _default: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
427
426
  fallbackPlacements: Placement[];
428
427
  placement: EpPropMergeType<(new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | (((new (...args: any[]) => "auto" | "left" | "right" | "bottom" | "top" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement)) | null)[], Placement, unknown>;
429
428
  popperOptions: Partial<Options>;
430
- automaticDropdown: EpPropMergeType<BooleanConstructor, unknown, unknown>;
431
- editable: EpPropMergeType<BooleanConstructor, unknown, unknown>;
432
- saveOnBlur: EpPropMergeType<BooleanConstructor, unknown, unknown>;
433
- rangeSeparator: string;
429
+ valueOnClear: EpPropMergeType<(new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null) | (((new (...args: any[]) => string | number | boolean | Function) | (() => string | number | boolean | Function | null)) | null)[], unknown, unknown>;
434
430
  shortcuts: unknown[];
435
431
  showNow: EpPropMergeType<BooleanConstructor, unknown, unknown>;
432
+ editable: EpPropMergeType<BooleanConstructor, unknown, unknown>;
433
+ arrowControl: boolean;
434
+ unlinkPanels: boolean;
436
435
  showConfirm: EpPropMergeType<BooleanConstructor, unknown, unknown>;
437
436
  showFooter: EpPropMergeType<BooleanConstructor, unknown, unknown>;
438
437
  showWeekNumber: boolean;
439
- arrowControl: boolean;
440
- unlinkPanels: boolean;
441
- singlePanel: boolean;
442
438
  isRange: boolean;
439
+ automaticDropdown: EpPropMergeType<BooleanConstructor, unknown, unknown>;
440
+ saveOnBlur: EpPropMergeType<BooleanConstructor, unknown, unknown>;
441
+ rangeSeparator: string;
442
+ singlePanel: boolean;
443
443
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
444
444
  //#endregion
445
445
  export { _default as default };
@@ -1,8 +1,8 @@
1
1
  import { SFCWithInstall } from "../../utils/vue/typescript.js";
2
- import { DEFAULT_STEP, TimeSelectInstance, TimeSelectProps, TimeSelectPropsPublic, timeSelectProps } from "./src/time-select.js";
2
+ import { DEFAULT_END, DEFAULT_START, DEFAULT_STEP, TimeSelectInstance, TimeSelectProps, TimeSelectPropsPublic, timeSelectProps } from "./src/time-select.js";
3
3
  import _default from "./src/time-select.vue.js";
4
4
 
5
5
  //#region ../../packages/components/time-select/index.d.ts
6
6
  declare const ElTimeSelect: SFCWithInstall<typeof _default>;
7
7
  //#endregion
8
- export { DEFAULT_STEP, ElTimeSelect, ElTimeSelect as default, TimeSelectInstance, TimeSelectProps, TimeSelectPropsPublic, timeSelectProps };
8
+ export { DEFAULT_END, DEFAULT_START, DEFAULT_STEP, ElTimeSelect, ElTimeSelect as default, TimeSelectInstance, TimeSelectProps, TimeSelectPropsPublic, timeSelectProps };
@@ -8,6 +8,8 @@ const require_time_select$1 = require("./src/time-select2.js");
8
8
  //#region ../../packages/components/time-select/index.ts
9
9
  const ElTimeSelect = require_install.withInstall(require_time_select$1.default);
10
10
  //#endregion
11
+ exports.DEFAULT_END = require_time_select.DEFAULT_END;
12
+ exports.DEFAULT_START = require_time_select.DEFAULT_START;
11
13
  exports.DEFAULT_STEP = require_time_select.DEFAULT_STEP;
12
14
  exports.ElTimeSelect = ElTimeSelect;
13
15
  exports.default = ElTimeSelect;
@@ -86,6 +86,8 @@ interface TimeSelectProps extends UseEmptyValuesProps {
86
86
  */
87
87
  popperStyle?: string | CSSProperties;
88
88
  }
89
+ declare const DEFAULT_START = "09:00";
90
+ declare const DEFAULT_END = "18:00";
89
91
  declare const DEFAULT_STEP = "00:30";
90
92
  /**
91
93
  * @deprecated Removed after 3.0.0, Use `TimeSelectProps` instead.
@@ -144,4 +146,4 @@ declare const timeSelectProps: {
144
146
  type TimeSelectPropsPublic = ExtractPublicPropTypes<typeof timeSelectProps>;
145
147
  type TimeSelectInstance = InstanceType<typeof _default> & unknown;
146
148
  //#endregion
147
- export { DEFAULT_STEP, TimeSelectInstance, TimeSelectProps, TimeSelectPropsPublic, timeSelectProps };
149
+ export { DEFAULT_END, DEFAULT_START, DEFAULT_STEP, TimeSelectInstance, TimeSelectProps, TimeSelectPropsPublic, timeSelectProps };
@@ -5,6 +5,8 @@ const require_index = require("../../../hooks/use-size/index.js");
5
5
  const require_index$1 = require("../../../hooks/use-empty-values/index.js");
6
6
  let _element_plus_icons_vue = require("@element-plus/icons-vue");
7
7
  //#region ../../packages/components/time-select/src/time-select.ts
8
+ const DEFAULT_START = "09:00";
9
+ const DEFAULT_END = "18:00";
8
10
  const DEFAULT_STEP = "00:30";
9
11
  /**
10
12
  * @deprecated Removed after 3.0.0, Use `TimeSelectProps` instead.
@@ -62,14 +64,14 @@ const timeSelectProps = require_runtime$1.buildProps({
62
64
  */
63
65
  start: {
64
66
  type: String,
65
- default: "09:00"
67
+ default: DEFAULT_START
66
68
  },
67
69
  /**
68
70
  * @description end time
69
71
  */
70
72
  end: {
71
73
  type: String,
72
- default: "18:00"
74
+ default: DEFAULT_END
73
75
  },
74
76
  /**
75
77
  * @description time step
@@ -122,6 +124,8 @@ const timeSelectProps = require_runtime$1.buildProps({
122
124
  ...require_index$1.useEmptyValuesProps
123
125
  });
124
126
  //#endregion
127
+ exports.DEFAULT_END = DEFAULT_END;
128
+ exports.DEFAULT_START = DEFAULT_START;
125
129
  exports.DEFAULT_STEP = DEFAULT_STEP;
126
130
  exports.timeSelectProps = timeSelectProps;
127
131
 
@@ -1 +1 @@
1
- {"version":3,"file":"time-select.js","names":["buildProps","definePropType","useSizeProp","Clock","CircleClose","useEmptyValuesProps"],"sources":["../../../../../../packages/components/time-select/src/time-select.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { CircleClose, Clock } from '@element-plus/icons-vue'\nimport { useEmptyValuesProps, useSizeProp } from '@element-plus/hooks'\n\nimport type { UseEmptyValuesProps } from '@element-plus/hooks'\nimport type { PopperEffect } from '@element-plus/components/popper'\nimport type TimeSelect from './time-select.vue'\nimport type { CSSProperties, Component, ExtractPublicPropTypes } from 'vue'\nimport type { ComponentSize } from '@element-plus/constants'\nimport type { IconPropType } from '@element-plus/utils'\n\nexport interface TimeSelectProps extends UseEmptyValuesProps {\n /**\n * @description set format of time\n */\n format?: string\n /**\n * @description binding value\n */\n modelValue?: string | null\n /**\n * @description whether TimeSelect is disabled\n */\n disabled?: boolean\n /**\n * @description whether the input is editable\n */\n editable?: boolean\n /**\n * @description Tooltip theme, built-in theme: `dark` / `light`\n */\n effect?: PopperEffect\n /**\n * @description whether to show clear button\n */\n clearable?: boolean\n /**\n * @description size of Input\n */\n size?: ComponentSize\n /**\n * @description placeholder in non-range mode\n */\n placeholder?: string\n /**\n * @description start time\n */\n start?: string\n /**\n * @description end time\n */\n end?: string\n /**\n * @description time step\n */\n step?: string\n /**\n * @description minimum time, any time before this time will be disabled\n */\n minTime?: string | null\n /**\n * @description maximum time, any time after this time will be disabled\n */\n maxTime?: string | null\n /**\n * @description whether `end` is included in options\n */\n includeEndTime?: boolean\n /**\n * @description same as `name` in native input\n */\n name?: string\n /**\n * @description custom prefix icon component\n */\n prefixIcon?: IconPropType\n /**\n * @description custom clear icon component\n */\n clearIcon?: IconPropType\n /**\n * @description custom class name for TimeSelect's dropdown\n */\n popperClass?: string\n /**\n * @description custom style for TimeSelect's dropdown\n */\n popperStyle?: string | CSSProperties\n}\n\nexport const DEFAULT_STEP = '00:30'\n\n/**\n * @deprecated Removed after 3.0.0, Use `TimeSelectProps` instead.\n */\nexport const timeSelectProps = buildProps({\n /**\n * @description set format of time\n */\n format: {\n type: String,\n default: 'HH:mm',\n },\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<string | null>(String),\n },\n /**\n * @description whether TimeSelect is disabled\n */\n disabled: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description whether the input is editable\n */\n editable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description Tooltip theme, built-in theme: `dark` / `light`\n */\n effect: {\n type: definePropType<PopperEffect>(String),\n default: 'light',\n },\n /**\n * @description whether to show clear button\n */\n clearable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description size of Input\n */\n size: useSizeProp,\n /**\n * @description placeholder in non-range mode\n */\n placeholder: String,\n /**\n * @description start time\n */\n start: {\n type: String,\n default: '09:00',\n },\n /**\n * @description end time\n */\n end: {\n type: String,\n default: '18:00',\n },\n /**\n * @description time step\n */\n step: {\n type: String,\n default: DEFAULT_STEP,\n },\n /**\n * @description minimum time, any time before this time will be disabled\n */\n minTime: {\n type: definePropType<string | null>(String),\n },\n /**\n * @description maximum time, any time after this time will be disabled\n */\n maxTime: {\n type: definePropType<string | null>(String),\n },\n /**\n * @description whether `end` is included in options\n */\n includeEndTime: Boolean,\n /**\n * @description same as `name` in native input\n */\n name: String,\n /**\n * @description custom prefix icon component\n */\n prefixIcon: {\n type: definePropType<string | Component>([String, Object]),\n default: () => Clock,\n },\n /**\n * @description custom clear icon component\n */\n clearIcon: {\n type: definePropType<string | Component>([String, Object]),\n default: () => CircleClose,\n },\n /**\n * @description custom class name for TimeSelect's dropdown\n */\n popperClass: {\n type: String,\n default: '',\n },\n /**\n * @description custom style for TimeSelect's dropdown\n */\n popperStyle: {\n type: definePropType<string | CSSProperties>([String, Object]),\n },\n ...useEmptyValuesProps,\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `TimeSelectProps` instead.\n */\nexport type TimeSelectPropsPublic = ExtractPublicPropTypes<\n typeof timeSelectProps\n>\n\nexport type TimeSelectInstance = InstanceType<typeof TimeSelect> & unknown\n"],"mappings":";;;;;;;AA0FA,MAAa,eAAe;;;;AAK5B,MAAa,kBAAkBA,kBAAAA,WAAW;;;;CAIxC,QAAQ;EACN,MAAM;EACN,SAAS;EACV;;;;CAID,YAAY,EACV,MAAMC,kBAAAA,eAA8B,OAAO,EAC5C;;;;CAID,UAAU;EACR,MAAM;EACN,SAAS,KAAA;EACV;;;;CAID,UAAU;EACR,MAAM;EACN,SAAS;EACV;;;;CAID,QAAQ;EACN,MAAMA,kBAAAA,eAA6B,OAAO;EAC1C,SAAS;EACV;;;;CAID,WAAW;EACT,MAAM;EACN,SAAS;EACV;;;;CAID,MAAMC,cAAAA;;;;CAIN,aAAa;;;;CAIb,OAAO;EACL,MAAM;EACN,SAAS;EACV;;;;CAID,KAAK;EACH,MAAM;EACN,SAAS;EACV;;;;CAID,MAAM;EACJ,MAAM;EACN,SAAS;EACV;;;;CAID,SAAS,EACP,MAAMD,kBAAAA,eAA8B,OAAO,EAC5C;;;;CAID,SAAS,EACP,MAAMA,kBAAAA,eAA8B,OAAO,EAC5C;;;;CAID,gBAAgB;;;;CAIhB,MAAM;;;;CAIN,YAAY;EACV,MAAMA,kBAAAA,eAAmC,CAAC,QAAQ,OAAO,CAAC;EAC1D,eAAeE,wBAAAA;EAChB;;;;CAID,WAAW;EACT,MAAMF,kBAAAA,eAAmC,CAAC,QAAQ,OAAO,CAAC;EAC1D,eAAeG,wBAAAA;EAChB;;;;CAID,aAAa;EACX,MAAM;EACN,SAAS;EACV;;;;CAID,aAAa,EACX,MAAMH,kBAAAA,eAAuC,CAAC,QAAQ,OAAO,CAAC,EAC/D;CACD,GAAGI,gBAAAA;CACJ,CAAU"}
1
+ {"version":3,"file":"time-select.js","names":["buildProps","definePropType","useSizeProp","Clock","CircleClose","useEmptyValuesProps"],"sources":["../../../../../../packages/components/time-select/src/time-select.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { CircleClose, Clock } from '@element-plus/icons-vue'\nimport { useEmptyValuesProps, useSizeProp } from '@element-plus/hooks'\n\nimport type { UseEmptyValuesProps } from '@element-plus/hooks'\nimport type { PopperEffect } from '@element-plus/components/popper'\nimport type TimeSelect from './time-select.vue'\nimport type { CSSProperties, Component, ExtractPublicPropTypes } from 'vue'\nimport type { ComponentSize } from '@element-plus/constants'\nimport type { IconPropType } from '@element-plus/utils'\n\nexport interface TimeSelectProps extends UseEmptyValuesProps {\n /**\n * @description set format of time\n */\n format?: string\n /**\n * @description binding value\n */\n modelValue?: string | null\n /**\n * @description whether TimeSelect is disabled\n */\n disabled?: boolean\n /**\n * @description whether the input is editable\n */\n editable?: boolean\n /**\n * @description Tooltip theme, built-in theme: `dark` / `light`\n */\n effect?: PopperEffect\n /**\n * @description whether to show clear button\n */\n clearable?: boolean\n /**\n * @description size of Input\n */\n size?: ComponentSize\n /**\n * @description placeholder in non-range mode\n */\n placeholder?: string\n /**\n * @description start time\n */\n start?: string\n /**\n * @description end time\n */\n end?: string\n /**\n * @description time step\n */\n step?: string\n /**\n * @description minimum time, any time before this time will be disabled\n */\n minTime?: string | null\n /**\n * @description maximum time, any time after this time will be disabled\n */\n maxTime?: string | null\n /**\n * @description whether `end` is included in options\n */\n includeEndTime?: boolean\n /**\n * @description same as `name` in native input\n */\n name?: string\n /**\n * @description custom prefix icon component\n */\n prefixIcon?: IconPropType\n /**\n * @description custom clear icon component\n */\n clearIcon?: IconPropType\n /**\n * @description custom class name for TimeSelect's dropdown\n */\n popperClass?: string\n /**\n * @description custom style for TimeSelect's dropdown\n */\n popperStyle?: string | CSSProperties\n}\n\nexport const DEFAULT_START = '09:00'\nexport const DEFAULT_END = '18:00'\nexport const DEFAULT_STEP = '00:30'\n\n/**\n * @deprecated Removed after 3.0.0, Use `TimeSelectProps` instead.\n */\nexport const timeSelectProps = buildProps({\n /**\n * @description set format of time\n */\n format: {\n type: String,\n default: 'HH:mm',\n },\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<string | null>(String),\n },\n /**\n * @description whether TimeSelect is disabled\n */\n disabled: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description whether the input is editable\n */\n editable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description Tooltip theme, built-in theme: `dark` / `light`\n */\n effect: {\n type: definePropType<PopperEffect>(String),\n default: 'light',\n },\n /**\n * @description whether to show clear button\n */\n clearable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description size of Input\n */\n size: useSizeProp,\n /**\n * @description placeholder in non-range mode\n */\n placeholder: String,\n /**\n * @description start time\n */\n start: {\n type: String,\n default: DEFAULT_START,\n },\n /**\n * @description end time\n */\n end: {\n type: String,\n default: DEFAULT_END,\n },\n /**\n * @description time step\n */\n step: {\n type: String,\n default: DEFAULT_STEP,\n },\n /**\n * @description minimum time, any time before this time will be disabled\n */\n minTime: {\n type: definePropType<string | null>(String),\n },\n /**\n * @description maximum time, any time after this time will be disabled\n */\n maxTime: {\n type: definePropType<string | null>(String),\n },\n /**\n * @description whether `end` is included in options\n */\n includeEndTime: Boolean,\n /**\n * @description same as `name` in native input\n */\n name: String,\n /**\n * @description custom prefix icon component\n */\n prefixIcon: {\n type: definePropType<string | Component>([String, Object]),\n default: () => Clock,\n },\n /**\n * @description custom clear icon component\n */\n clearIcon: {\n type: definePropType<string | Component>([String, Object]),\n default: () => CircleClose,\n },\n /**\n * @description custom class name for TimeSelect's dropdown\n */\n popperClass: {\n type: String,\n default: '',\n },\n /**\n * @description custom style for TimeSelect's dropdown\n */\n popperStyle: {\n type: definePropType<string | CSSProperties>([String, Object]),\n },\n ...useEmptyValuesProps,\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `TimeSelectProps` instead.\n */\nexport type TimeSelectPropsPublic = ExtractPublicPropTypes<\n typeof timeSelectProps\n>\n\nexport type TimeSelectInstance = InstanceType<typeof TimeSelect> & unknown\n"],"mappings":";;;;;;;AA0FA,MAAa,gBAAgB;AAC7B,MAAa,cAAc;AAC3B,MAAa,eAAe;;;;AAK5B,MAAa,kBAAkBA,kBAAAA,WAAW;;;;CAIxC,QAAQ;EACN,MAAM;EACN,SAAS;EACV;;;;CAID,YAAY,EACV,MAAMC,kBAAAA,eAA8B,OAAO,EAC5C;;;;CAID,UAAU;EACR,MAAM;EACN,SAAS,KAAA;EACV;;;;CAID,UAAU;EACR,MAAM;EACN,SAAS;EACV;;;;CAID,QAAQ;EACN,MAAMA,kBAAAA,eAA6B,OAAO;EAC1C,SAAS;EACV;;;;CAID,WAAW;EACT,MAAM;EACN,SAAS;EACV;;;;CAID,MAAMC,cAAAA;;;;CAIN,aAAa;;;;CAIb,OAAO;EACL,MAAM;EACN,SAAS;EACV;;;;CAID,KAAK;EACH,MAAM;EACN,SAAS;EACV;;;;CAID,MAAM;EACJ,MAAM;EACN,SAAS;EACV;;;;CAID,SAAS,EACP,MAAMD,kBAAAA,eAA8B,OAAO,EAC5C;;;;CAID,SAAS,EACP,MAAMA,kBAAAA,eAA8B,OAAO,EAC5C;;;;CAID,gBAAgB;;;;CAIhB,MAAM;;;;CAIN,YAAY;EACV,MAAMA,kBAAAA,eAAmC,CAAC,QAAQ,OAAO,CAAC;EAC1D,eAAeE,wBAAAA;EAChB;;;;CAID,WAAW;EACT,MAAMF,kBAAAA,eAAmC,CAAC,QAAQ,OAAO,CAAC;EAC1D,eAAeG,wBAAAA;EAChB;;;;CAID,aAAa;EACX,MAAM;EACN,SAAS;EACV;;;;CAID,aAAa,EACX,MAAMH,kBAAAA,eAAuC,CAAC,QAAQ,OAAO,CAAC,EAC/D;CACD,GAAGI,gBAAAA;CACJ,CAAU"}
@@ -26,18 +26,18 @@ declare const __VLS_export: _$vue.DefineComponent<TimeSelectProps, {
26
26
  onFocus?: ((...args: any[]) => any) | undefined;
27
27
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
28
28
  }>, {
29
+ disabled: boolean;
29
30
  end: string;
30
31
  start: string;
31
- disabled: boolean;
32
- valueOnClear: string | number | boolean | Function | null;
33
32
  effect: PopperEffect;
34
33
  clearable: boolean;
35
34
  clearIcon: IconPropType;
36
35
  prefixIcon: IconPropType;
37
36
  popperClass: string;
38
37
  popperStyle: string | _$vue.CSSProperties;
39
- editable: boolean;
38
+ valueOnClear: string | number | boolean | Function | null;
40
39
  format: string;
40
+ editable: boolean;
41
41
  step: string;
42
42
  }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
43
43
  declare const _default: typeof __VLS_export;
@@ -33,15 +33,17 @@ var time_select_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0
33
33
  const select = (0, vue.ref)();
34
34
  const _disabled = require_use_form_common_props.useFormDisabled();
35
35
  const { lang } = require_index.useLocale();
36
+ const getValidTimeOrDefault = (value, propName, defaultValue, allowZero = true) => {
37
+ const time = require_utils.parseTime(value);
38
+ if (!require_utils.isValidTime(time) || !allowZero && time.hours === 0 && time.minutes === 0) {
39
+ require_error.debugWarn("ElTimeSelect", `invalid ${propName}, fallback to default ${propName} (${defaultValue}).`);
40
+ return defaultValue;
41
+ }
42
+ return require_utils.formatTime(time);
43
+ };
36
44
  const value = (0, vue.computed)(() => props.modelValue);
37
- const start = (0, vue.computed)(() => {
38
- const time = require_utils.parseTime(props.start);
39
- return time ? require_utils.formatTime(time) : null;
40
- });
41
- const end = (0, vue.computed)(() => {
42
- const time = require_utils.parseTime(props.end);
43
- return time ? require_utils.formatTime(time) : null;
44
- });
45
+ const start = (0, vue.computed)(() => getValidTimeOrDefault(props.start, "start", require_time_select.DEFAULT_START));
46
+ const end = (0, vue.computed)(() => getValidTimeOrDefault(props.end, "end", require_time_select.DEFAULT_END));
45
47
  const minTime = (0, vue.computed)(() => {
46
48
  const time = require_utils.parseTime(props.minTime || "");
47
49
  return time ? require_utils.formatTime(time) : null;
@@ -50,12 +52,7 @@ var time_select_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0
50
52
  const time = require_utils.parseTime(props.maxTime || "");
51
53
  return time ? require_utils.formatTime(time) : null;
52
54
  });
53
- const step = (0, vue.computed)(() => {
54
- const time = require_utils.parseTime(props.step);
55
- const isInvalidStep = !time || time.hours < 0 || time.minutes < 0 || Number.isNaN(time.hours) || Number.isNaN(time.minutes) || time.hours === 0 && time.minutes === 0;
56
- if (isInvalidStep) require_error.debugWarn("ElTimeSelect", `invalid step, fallback to default step (${require_time_select.DEFAULT_STEP}).`);
57
- return !isInvalidStep ? require_utils.formatTime(time) : require_time_select.DEFAULT_STEP;
58
- });
55
+ const step = (0, vue.computed)(() => getValidTimeOrDefault(props.step, "step", require_time_select.DEFAULT_STEP, false));
59
56
  const items = (0, vue.computed)(() => {
60
57
  const result = [];
61
58
  const push = (formattedValue, rawValue) => {
@@ -65,16 +62,12 @@ var time_select_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ (0
65
62
  disabled: require_utils.compareTime(rawValue, minTime.value || "-1:-1") <= 0 || require_utils.compareTime(rawValue, maxTime.value || "100:100") >= 0
66
63
  });
67
64
  };
68
- if (props.start && props.end && props.step) {
69
- let current = start.value;
70
- let currentTime;
71
- while (current && end.value && require_utils.compareTime(current, end.value) <= 0) {
72
- currentTime = (0, dayjs.default)(current, "HH:mm").locale(lang.value).format(props.format);
73
- push(currentTime, current);
74
- current = require_utils.nextTime(current, step.value);
75
- }
76
- if (props.includeEndTime && end.value && result[result.length - 1]?.rawValue !== end.value) push((0, dayjs.default)(end.value, "HH:mm").locale(lang.value).format(props.format), end.value);
65
+ let current = start.value;
66
+ while (require_utils.compareTime(current, end.value) <= 0) {
67
+ push((0, dayjs.default)(current, "HH:mm").locale(lang.value).format(props.format), current);
68
+ current = require_utils.nextTime(current, step.value);
77
69
  }
70
+ if (props.includeEndTime && result[result.length - 1]?.rawValue !== end.value) push((0, dayjs.default)(end.value, "HH:mm").locale(lang.value).format(props.format), end.value);
78
71
  return result;
79
72
  });
80
73
  const blur = () => {
@@ -1 +1 @@
1
- {"version":3,"file":"time-select.vue_vue_type_script_setup_true_lang.js","names":["$emit"],"sources":["../../../../../../packages/components/time-select/src/time-select.vue"],"sourcesContent":["<template>\n <el-select\n ref=\"select\"\n :name=\"name\"\n :model-value=\"value\"\n :disabled=\"_disabled\"\n :clearable=\"clearable\"\n :clear-icon=\"clearIcon\"\n :size=\"size\"\n :effect=\"effect\"\n :placeholder=\"placeholder\"\n default-first-option\n :filterable=\"editable\"\n :empty-values=\"emptyValues\"\n :value-on-clear=\"valueOnClear\"\n :popper-class=\"popperClass\"\n :popper-style=\"popperStyle\"\n @update:model-value=\"(event) => $emit(UPDATE_MODEL_EVENT, event)\"\n @change=\"(event) => $emit(CHANGE_EVENT, event)\"\n @blur=\"(event) => $emit('blur', event)\"\n @focus=\"(event) => $emit('focus', event)\"\n @clear=\"() => $emit('clear')\"\n >\n <el-option\n v-for=\"item in items\"\n :key=\"item.value\"\n :label=\"item.value\"\n :value=\"item.value\"\n :disabled=\"item.disabled\"\n />\n <template #prefix>\n <el-icon v-if=\"prefixIcon\" :class=\"nsInput.e('prefix-icon')\">\n <component :is=\"prefixIcon\" />\n </el-icon>\n </template>\n </el-select>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref } from 'vue'\nimport dayjs from 'dayjs'\nimport customParseFormat from 'dayjs/plugin/customParseFormat.js'\nimport ElSelect from '@element-plus/components/select'\nimport { useFormDisabled } from '@element-plus/components/form'\nimport ElIcon from '@element-plus/components/icon'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { CircleClose, Clock } from '@element-plus/icons-vue'\nimport { compareTime, formatTime, nextTime, parseTime } from './utils'\nimport { debugWarn } from '@element-plus/utils'\nimport { DEFAULT_STEP } from './time-select'\n\nimport type { TimeSelectProps } from './time-select'\n\ndayjs.extend(customParseFormat)\n\nconst { Option: ElOption } = ElSelect\n\ndefineOptions({\n name: 'ElTimeSelect',\n})\n\ndefineEmits([CHANGE_EVENT, 'blur', 'focus', 'clear', UPDATE_MODEL_EVENT])\n\nconst props = withDefaults(defineProps<TimeSelectProps>(), {\n format: 'HH:mm',\n disabled: undefined,\n editable: true,\n effect: 'light',\n clearable: true,\n start: '09:00',\n end: '18:00',\n step: DEFAULT_STEP,\n prefixIcon: () => Clock,\n clearIcon: () => CircleClose,\n popperClass: '',\n valueOnClear: undefined,\n popperStyle: undefined,\n})\n\nconst nsInput = useNamespace('input')\nconst select = ref<typeof ElSelect>()\n\nconst _disabled = useFormDisabled()\nconst { lang } = useLocale()\n\nconst value = computed(() => props.modelValue)\nconst start = computed(() => {\n const time = parseTime(props.start)\n return time ? formatTime(time) : null\n})\n\nconst end = computed(() => {\n const time = parseTime(props.end)\n return time ? formatTime(time) : null\n})\n\nconst minTime = computed(() => {\n const time = parseTime(props.minTime || '')\n return time ? formatTime(time) : null\n})\n\nconst maxTime = computed(() => {\n const time = parseTime(props.maxTime || '')\n return time ? formatTime(time) : null\n})\n\nconst step = computed(() => {\n const time = parseTime(props.step)\n const isInvalidStep =\n !time ||\n time.hours < 0 ||\n time.minutes < 0 ||\n Number.isNaN(time.hours) ||\n Number.isNaN(time.minutes) ||\n (time.hours === 0 && time.minutes === 0)\n if (isInvalidStep) {\n debugWarn(\n 'ElTimeSelect',\n `invalid step, fallback to default step (${DEFAULT_STEP}).`\n )\n }\n return !isInvalidStep ? formatTime(time) : DEFAULT_STEP\n})\n\nconst items = computed(() => {\n const result: { value: string; rawValue: string; disabled: boolean }[] = []\n const push = (formattedValue: string, rawValue: string) => {\n result.push({\n value: formattedValue,\n rawValue,\n disabled:\n compareTime(rawValue, minTime.value || '-1:-1') <= 0 ||\n compareTime(rawValue, maxTime.value || '100:100') >= 0,\n })\n }\n\n if (props.start && props.end && props.step) {\n let current = start.value\n let currentTime: string\n while (current && end.value && compareTime(current, end.value) <= 0) {\n currentTime = dayjs(current, 'HH:mm')\n .locale(lang.value)\n .format(props.format)\n push(currentTime, current)\n current = nextTime(current, step.value!)\n }\n if (\n props.includeEndTime &&\n end.value &&\n result[result.length - 1]?.rawValue !== end.value\n ) {\n const formattedValue = dayjs(end.value, 'HH:mm')\n .locale(lang.value)\n .format(props.format)\n push(formattedValue, end.value)\n }\n }\n return result\n})\n\nconst blur = () => {\n select.value?.blur?.()\n}\n\nconst focus = () => {\n select.value?.focus?.()\n}\n\ndefineExpose({\n /**\n * @description blur the Input component\n */\n blur,\n /**\n * @description focus the Input component\n */\n focus,\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsDA,MAAA,QAAM,OAAO,kCAAA,QAAiB;EAE9B,MAAM,EAAE,QAAQ,aAAa,gBAAA;EAQ7B,MAAM,QAAQ;EAgBd,MAAM,UAAU,gBAAA,aAAa,QAAO;EACpC,MAAM,UAAA,GAAA,IAAA,MAA8B;EAEpC,MAAM,YAAY,8BAAA,iBAAgB;EAClC,MAAM,EAAE,SAAS,cAAA,WAAU;EAE3B,MAAM,SAAA,GAAA,IAAA,gBAAuB,MAAM,WAAU;EAC7C,MAAM,SAAA,GAAA,IAAA,gBAAuB;GAC3B,MAAM,OAAO,cAAA,UAAU,MAAM,MAAK;GAClC,OAAO,OAAO,cAAA,WAAW,KAAK,GAAG;IAClC;EAED,MAAM,OAAA,GAAA,IAAA,gBAAqB;GACzB,MAAM,OAAO,cAAA,UAAU,MAAM,IAAG;GAChC,OAAO,OAAO,cAAA,WAAW,KAAK,GAAG;IAClC;EAED,MAAM,WAAA,GAAA,IAAA,gBAAyB;GAC7B,MAAM,OAAO,cAAA,UAAU,MAAM,WAAW,GAAE;GAC1C,OAAO,OAAO,cAAA,WAAW,KAAK,G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A,WAAA,KAAA,GAAA,GAAA,IAAA,oBAKrB,IAAA,UAAA,OAAA,GAAA,IAAA,YALe,MAAA,QAAR,SAAI;sEAKX,SAAA,EAAA;MAJC,KAAK,KAAK;MACV,OAAO,KAAK;MACZ,OAAO,KAAK;MACZ,UAAU,KAAK"}
1
+ {"version":3,"file":"time-select.vue_vue_type_script_setup_true_lang.js","names":["$emit"],"sources":["../../../../../../packages/components/time-select/src/time-select.vue"],"sourcesContent":["<template>\n <el-select\n ref=\"select\"\n :name=\"name\"\n :model-value=\"value\"\n :disabled=\"_disabled\"\n :clearable=\"clearable\"\n :clear-icon=\"clearIcon\"\n :size=\"size\"\n :effect=\"effect\"\n :placeholder=\"placeholder\"\n default-first-option\n :filterable=\"editable\"\n :empty-values=\"emptyValues\"\n :value-on-clear=\"valueOnClear\"\n :popper-class=\"popperClass\"\n :popper-style=\"popperStyle\"\n @update:model-value=\"(event) => $emit(UPDATE_MODEL_EVENT, event)\"\n @change=\"(event) => $emit(CHANGE_EVENT, event)\"\n @blur=\"(event) => $emit('blur', event)\"\n @focus=\"(event) => $emit('focus', event)\"\n @clear=\"() => $emit('clear')\"\n >\n <el-option\n v-for=\"item in items\"\n :key=\"item.value\"\n :label=\"item.value\"\n :value=\"item.value\"\n :disabled=\"item.disabled\"\n />\n <template #prefix>\n <el-icon v-if=\"prefixIcon\" :class=\"nsInput.e('prefix-icon')\">\n <component :is=\"prefixIcon\" />\n </el-icon>\n </template>\n </el-select>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref } from 'vue'\nimport dayjs from 'dayjs'\nimport customParseFormat from 'dayjs/plugin/customParseFormat.js'\nimport ElSelect from '@element-plus/components/select'\nimport { useFormDisabled } from '@element-plus/components/form'\nimport ElIcon from '@element-plus/components/icon'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { CircleClose, Clock } from '@element-plus/icons-vue'\nimport {\n compareTime,\n formatTime,\n isValidTime,\n nextTime,\n parseTime,\n} from './utils'\nimport { debugWarn } from '@element-plus/utils'\nimport { DEFAULT_END, DEFAULT_START, DEFAULT_STEP } from './time-select'\n\nimport type { TimeSelectProps } from './time-select'\n\ndayjs.extend(customParseFormat)\n\nconst { Option: ElOption } = ElSelect\n\ndefineOptions({\n name: 'ElTimeSelect',\n})\n\ndefineEmits([CHANGE_EVENT, 'blur', 'focus', 'clear', UPDATE_MODEL_EVENT])\n\nconst props = withDefaults(defineProps<TimeSelectProps>(), {\n format: 'HH:mm',\n disabled: undefined,\n editable: true,\n effect: 'light',\n clearable: true,\n start: DEFAULT_START,\n end: DEFAULT_END,\n step: DEFAULT_STEP,\n prefixIcon: () => Clock,\n clearIcon: () => CircleClose,\n popperClass: '',\n valueOnClear: undefined,\n popperStyle: undefined,\n})\n\nconst nsInput = useNamespace('input')\nconst select = ref<typeof ElSelect>()\n\nconst _disabled = useFormDisabled()\nconst { lang } = useLocale()\n\nconst getValidTimeOrDefault = (\n value: string,\n propName: 'start' | 'end' | 'step',\n defaultValue: string,\n allowZero = true\n) => {\n const time = parseTime(value)\n if (\n !isValidTime(time) ||\n (!allowZero && time.hours === 0 && time.minutes === 0)\n ) {\n debugWarn(\n 'ElTimeSelect',\n `invalid ${propName}, fallback to default ${propName} (${defaultValue}).`\n )\n return defaultValue\n }\n return formatTime(time)\n}\n\nconst value = computed(() => props.modelValue)\nconst start = computed(() =>\n getValidTimeOrDefault(props.start, 'start', DEFAULT_START)\n)\n\nconst end = computed(() => getValidTimeOrDefault(props.end, 'end', DEFAULT_END))\n\nconst minTime = computed(() => {\n const time = parseTime(props.minTime || '')\n return time ? formatTime(time) : null\n})\n\nconst maxTime = computed(() => {\n const time = parseTime(props.maxTime || '')\n return time ? formatTime(time) : null\n})\n\nconst step = computed(() =>\n getValidTimeOrDefault(props.step, 'step', DEFAULT_STEP, false)\n)\n\nconst items = computed(() => {\n const result: { value: string; rawValue: string; disabled: boolean }[] = []\n const push = (formattedValue: string, rawValue: string) => {\n result.push({\n value: formattedValue,\n rawValue,\n disabled:\n compareTime(rawValue, minTime.value || '-1:-1') <= 0 ||\n compareTime(rawValue, maxTime.value || '100:100') >= 0,\n })\n }\n\n let current = start.value\n while (compareTime(current, end.value) <= 0) {\n const currentTime = dayjs(current, 'HH:mm')\n .locale(lang.value)\n .format(props.format)\n push(currentTime, current)\n current = nextTime(current, step.value)\n }\n if (\n props.includeEndTime &&\n result[result.length - 1]?.rawValue !== end.value\n ) {\n const formattedValue = dayjs(end.value, 'HH:mm')\n .locale(lang.value)\n .format(props.format)\n push(formattedValue, end.value)\n }\n return result\n})\n\nconst blur = () => {\n select.value?.blur?.()\n}\n\nconst focus = () => {\n select.value?.focus?.()\n}\n\ndefineExpose({\n /**\n * @description blur the Input component\n */\n blur,\n /**\n * @description focus the Input component\n */\n focus,\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4DA,MAAA,QAAM,OAAO,kCAAA,QAAiB;EAE9B,MAAM,EAAE,QAAQ,aAAa,gBAAA;EAQ7B,MAAM,QAAQ;EAgBd,MAAM,UAAU,gBAAA,aAAa,QAAO;EACpC,MAAM,UAAA,GAAA,IAAA,MAA8B;EAEpC,MAAM,YAAY,8BAAA,iBAAgB;EAClC,MAAM,EAAE,SAAS,cAAA,WAAU;EAE3B,MAAM,yBACJ,OACA,UACA,cACA,YAAY,SACT;GACH,MAAM,OAAO,cAAA,UAAU,MAAK;GAC5B,IACE,CAAC,cAAA,YAAY,KAAK,IACjB,CAAC,aAAa,KAAK,UAAU,KAAK,KAAK,YAAY,GACpD;IACA,cAAA,UACE,gBACA,WAAW,SAAS,wBAAwB,SAAS,IAAI,aAAa,IACxE;IACA,OAAO;;GAET,OAAO,cAAA,WAAW,KAAI;;EAGxB,MAAM,SAAA,GAAA,IAAA,gBAAuB,MAAM,WAAU;EAC7C,MAAM,SAAA,GAAA,IAAA,gBACJ,sBAAsB,MAAM,OAAO,SAAS,oBAAA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OAAO,KAAK;MACZ,UAAU,KAAK"}
@@ -1 +1 @@
1
- {"version":3,"file":"time-select2.js","names":[],"sources":["../../../../../../packages/components/time-select/src/time-select.vue"],"sourcesContent":["<template>\n <el-select\n ref=\"select\"\n :name=\"name\"\n :model-value=\"value\"\n :disabled=\"_disabled\"\n :clearable=\"clearable\"\n :clear-icon=\"clearIcon\"\n :size=\"size\"\n :effect=\"effect\"\n :placeholder=\"placeholder\"\n default-first-option\n :filterable=\"editable\"\n :empty-values=\"emptyValues\"\n :value-on-clear=\"valueOnClear\"\n :popper-class=\"popperClass\"\n :popper-style=\"popperStyle\"\n @update:model-value=\"(event) => $emit(UPDATE_MODEL_EVENT, event)\"\n @change=\"(event) => $emit(CHANGE_EVENT, event)\"\n @blur=\"(event) => $emit('blur', event)\"\n @focus=\"(event) => $emit('focus', event)\"\n @clear=\"() => $emit('clear')\"\n >\n <el-option\n v-for=\"item in items\"\n :key=\"item.value\"\n :label=\"item.value\"\n :value=\"item.value\"\n :disabled=\"item.disabled\"\n />\n <template #prefix>\n <el-icon v-if=\"prefixIcon\" :class=\"nsInput.e('prefix-icon')\">\n <component :is=\"prefixIcon\" />\n </el-icon>\n </template>\n </el-select>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref } from 'vue'\nimport dayjs from 'dayjs'\nimport customParseFormat from 'dayjs/plugin/customParseFormat.js'\nimport ElSelect from '@element-plus/components/select'\nimport { useFormDisabled } from '@element-plus/components/form'\nimport ElIcon from '@element-plus/components/icon'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { CircleClose, Clock } from '@element-plus/icons-vue'\nimport { compareTime, formatTime, nextTime, parseTime } from './utils'\nimport { debugWarn } from '@element-plus/utils'\nimport { DEFAULT_STEP } from './time-select'\n\nimport type { TimeSelectProps } from './time-select'\n\ndayjs.extend(customParseFormat)\n\nconst { Option: ElOption } = ElSelect\n\ndefineOptions({\n name: 'ElTimeSelect',\n})\n\ndefineEmits([CHANGE_EVENT, 'blur', 'focus', 'clear', UPDATE_MODEL_EVENT])\n\nconst props = withDefaults(defineProps<TimeSelectProps>(), {\n format: 'HH:mm',\n disabled: undefined,\n editable: true,\n effect: 'light',\n clearable: true,\n start: '09:00',\n end: '18:00',\n step: DEFAULT_STEP,\n prefixIcon: () => Clock,\n clearIcon: () => CircleClose,\n popperClass: '',\n valueOnClear: undefined,\n popperStyle: undefined,\n})\n\nconst nsInput = useNamespace('input')\nconst select = ref<typeof ElSelect>()\n\nconst _disabled = useFormDisabled()\nconst { lang } = useLocale()\n\nconst value = computed(() => props.modelValue)\nconst start = computed(() => {\n const time = parseTime(props.start)\n return time ? formatTime(time) : null\n})\n\nconst end = computed(() => {\n const time = parseTime(props.end)\n return time ? formatTime(time) : null\n})\n\nconst minTime = computed(() => {\n const time = parseTime(props.minTime || '')\n return time ? formatTime(time) : null\n})\n\nconst maxTime = computed(() => {\n const time = parseTime(props.maxTime || '')\n return time ? formatTime(time) : null\n})\n\nconst step = computed(() => {\n const time = parseTime(props.step)\n const isInvalidStep =\n !time ||\n time.hours < 0 ||\n time.minutes < 0 ||\n Number.isNaN(time.hours) ||\n Number.isNaN(time.minutes) ||\n (time.hours === 0 && time.minutes === 0)\n if (isInvalidStep) {\n debugWarn(\n 'ElTimeSelect',\n `invalid step, fallback to default step (${DEFAULT_STEP}).`\n )\n }\n return !isInvalidStep ? formatTime(time) : DEFAULT_STEP\n})\n\nconst items = computed(() => {\n const result: { value: string; rawValue: string; disabled: boolean }[] = []\n const push = (formattedValue: string, rawValue: string) => {\n result.push({\n value: formattedValue,\n rawValue,\n disabled:\n compareTime(rawValue, minTime.value || '-1:-1') <= 0 ||\n compareTime(rawValue, maxTime.value || '100:100') >= 0,\n })\n }\n\n if (props.start && props.end && props.step) {\n let current = start.value\n let currentTime: string\n while (current && end.value && compareTime(current, end.value) <= 0) {\n currentTime = dayjs(current, 'HH:mm')\n .locale(lang.value)\n .format(props.format)\n push(currentTime, current)\n current = nextTime(current, step.value!)\n }\n if (\n props.includeEndTime &&\n end.value &&\n result[result.length - 1]?.rawValue !== end.value\n ) {\n const formattedValue = dayjs(end.value, 'HH:mm')\n .locale(lang.value)\n .format(props.format)\n push(formattedValue, end.value)\n }\n }\n return result\n})\n\nconst blur = () => {\n select.value?.blur?.()\n}\n\nconst focus = () => {\n select.value?.focus?.()\n}\n\ndefineExpose({\n /**\n * @description blur the Input component\n */\n blur,\n /**\n * @description focus the Input component\n */\n focus,\n})\n</script>\n"],"mappings":""}
1
+ {"version":3,"file":"time-select2.js","names":[],"sources":["../../../../../../packages/components/time-select/src/time-select.vue"],"sourcesContent":["<template>\n <el-select\n ref=\"select\"\n :name=\"name\"\n :model-value=\"value\"\n :disabled=\"_disabled\"\n :clearable=\"clearable\"\n :clear-icon=\"clearIcon\"\n :size=\"size\"\n :effect=\"effect\"\n :placeholder=\"placeholder\"\n default-first-option\n :filterable=\"editable\"\n :empty-values=\"emptyValues\"\n :value-on-clear=\"valueOnClear\"\n :popper-class=\"popperClass\"\n :popper-style=\"popperStyle\"\n @update:model-value=\"(event) => $emit(UPDATE_MODEL_EVENT, event)\"\n @change=\"(event) => $emit(CHANGE_EVENT, event)\"\n @blur=\"(event) => $emit('blur', event)\"\n @focus=\"(event) => $emit('focus', event)\"\n @clear=\"() => $emit('clear')\"\n >\n <el-option\n v-for=\"item in items\"\n :key=\"item.value\"\n :label=\"item.value\"\n :value=\"item.value\"\n :disabled=\"item.disabled\"\n />\n <template #prefix>\n <el-icon v-if=\"prefixIcon\" :class=\"nsInput.e('prefix-icon')\">\n <component :is=\"prefixIcon\" />\n </el-icon>\n </template>\n </el-select>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref } from 'vue'\nimport dayjs from 'dayjs'\nimport customParseFormat from 'dayjs/plugin/customParseFormat.js'\nimport ElSelect from '@element-plus/components/select'\nimport { useFormDisabled } from '@element-plus/components/form'\nimport ElIcon from '@element-plus/components/icon'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { CircleClose, Clock } from '@element-plus/icons-vue'\nimport {\n compareTime,\n formatTime,\n isValidTime,\n nextTime,\n parseTime,\n} from './utils'\nimport { debugWarn } from '@element-plus/utils'\nimport { DEFAULT_END, DEFAULT_START, DEFAULT_STEP } from './time-select'\n\nimport type { TimeSelectProps } from './time-select'\n\ndayjs.extend(customParseFormat)\n\nconst { Option: ElOption } = ElSelect\n\ndefineOptions({\n name: 'ElTimeSelect',\n})\n\ndefineEmits([CHANGE_EVENT, 'blur', 'focus', 'clear', UPDATE_MODEL_EVENT])\n\nconst props = withDefaults(defineProps<TimeSelectProps>(), {\n format: 'HH:mm',\n disabled: undefined,\n editable: true,\n effect: 'light',\n clearable: true,\n start: DEFAULT_START,\n end: DEFAULT_END,\n step: DEFAULT_STEP,\n prefixIcon: () => Clock,\n clearIcon: () => CircleClose,\n popperClass: '',\n valueOnClear: undefined,\n popperStyle: undefined,\n})\n\nconst nsInput = useNamespace('input')\nconst select = ref<typeof ElSelect>()\n\nconst _disabled = useFormDisabled()\nconst { lang } = useLocale()\n\nconst getValidTimeOrDefault = (\n value: string,\n propName: 'start' | 'end' | 'step',\n defaultValue: string,\n allowZero = true\n) => {\n const time = parseTime(value)\n if (\n !isValidTime(time) ||\n (!allowZero && time.hours === 0 && time.minutes === 0)\n ) {\n debugWarn(\n 'ElTimeSelect',\n `invalid ${propName}, fallback to default ${propName} (${defaultValue}).`\n )\n return defaultValue\n }\n return formatTime(time)\n}\n\nconst value = computed(() => props.modelValue)\nconst start = computed(() =>\n getValidTimeOrDefault(props.start, 'start', DEFAULT_START)\n)\n\nconst end = computed(() => getValidTimeOrDefault(props.end, 'end', DEFAULT_END))\n\nconst minTime = computed(() => {\n const time = parseTime(props.minTime || '')\n return time ? formatTime(time) : null\n})\n\nconst maxTime = computed(() => {\n const time = parseTime(props.maxTime || '')\n return time ? formatTime(time) : null\n})\n\nconst step = computed(() =>\n getValidTimeOrDefault(props.step, 'step', DEFAULT_STEP, false)\n)\n\nconst items = computed(() => {\n const result: { value: string; rawValue: string; disabled: boolean }[] = []\n const push = (formattedValue: string, rawValue: string) => {\n result.push({\n value: formattedValue,\n rawValue,\n disabled:\n compareTime(rawValue, minTime.value || '-1:-1') <= 0 ||\n compareTime(rawValue, maxTime.value || '100:100') >= 0,\n })\n }\n\n let current = start.value\n while (compareTime(current, end.value) <= 0) {\n const currentTime = dayjs(current, 'HH:mm')\n .locale(lang.value)\n .format(props.format)\n push(currentTime, current)\n current = nextTime(current, step.value)\n }\n if (\n props.includeEndTime &&\n result[result.length - 1]?.rawValue !== end.value\n ) {\n const formattedValue = dayjs(end.value, 'HH:mm')\n .locale(lang.value)\n .format(props.format)\n push(formattedValue, end.value)\n }\n return result\n})\n\nconst blur = () => {\n select.value?.blur?.()\n}\n\nconst focus = () => {\n select.value?.focus?.()\n}\n\ndefineExpose({\n /**\n * @description blur the Input component\n */\n blur,\n /**\n * @description focus the Input component\n */\n focus,\n})\n</script>\n"],"mappings":""}
@@ -4,9 +4,10 @@ interface Time {
4
4
  minutes: number;
5
5
  }
6
6
  declare const parseTime: (time: string) => null | Time;
7
+ declare const isValidTime: (time: null | Time) => time is Time;
7
8
  declare const compareTime: (time1: string, time2: string) => number;
8
9
  declare const padTime: (time: number | string) => string;
9
10
  declare const formatTime: (time: Time) => string;
10
11
  declare const nextTime: (time: string, step: string) => string;
11
12
  //#endregion
12
- export { compareTime, formatTime, nextTime, padTime, parseTime };
13
+ export { compareTime, formatTime, isValidTime, nextTime, padTime, parseTime };
@@ -5,6 +5,7 @@ const parseTime = (time) => {
5
5
  if (values.length >= 2) {
6
6
  let hours = Number.parseInt(values[0], 10);
7
7
  const minutes = Number.parseInt(values[1], 10);
8
+ if (Number.isNaN(hours) || Number.isNaN(minutes)) return null;
8
9
  const timeUpper = time.toUpperCase();
9
10
  if (timeUpper.includes("AM") && hours === 12) hours = 0;
10
11
  else if (timeUpper.includes("PM") && hours !== 12) hours += 12;
@@ -15,6 +16,7 @@ const parseTime = (time) => {
15
16
  }
16
17
  return null;
17
18
  };
19
+ const isValidTime = (time) => !!time && time.hours >= 0 && time.minutes >= 0 && !Number.isNaN(time.hours) && !Number.isNaN(time.minutes);
18
20
  const compareTime = (time1, time2) => {
19
21
  const value1 = parseTime(time1);
20
22
  if (!value1) return -1;
@@ -49,6 +51,7 @@ const nextTime = (time, step) => {
49
51
  //#endregion
50
52
  exports.compareTime = compareTime;
51
53
  exports.formatTime = formatTime;
54
+ exports.isValidTime = isValidTime;
52
55
  exports.nextTime = nextTime;
53
56
  exports.padTime = padTime;
54
57
  exports.parseTime = parseTime;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","names":[],"sources":["../../../../../../packages/components/time-select/src/utils.ts"],"sourcesContent":["interface Time {\n hours: number\n minutes: number\n}\n\nexport const parseTime = (time: string): null | Time => {\n const values = (time || '').split(':')\n if (values.length >= 2) {\n let hours = Number.parseInt(values[0], 10)\n const minutes = Number.parseInt(values[1], 10)\n const timeUpper = time.toUpperCase()\n if (timeUpper.includes('AM') && hours === 12) {\n hours = 0\n } else if (timeUpper.includes('PM') && hours !== 12) {\n hours += 12\n }\n return {\n hours,\n minutes,\n }\n }\n\n return null\n}\n\nexport const compareTime = (time1: string, time2: string): number => {\n const value1 = parseTime(time1)\n if (!value1) return -1\n const value2 = parseTime(time2)\n if (!value2) return -1\n const minutes1 = value1.minutes + value1.hours * 60\n const minutes2 = value2.minutes + value2.hours * 60\n if (minutes1 === minutes2) {\n return 0\n }\n return minutes1 > minutes2 ? 1 : -1\n}\n\nexport const padTime = (time: number | string) => {\n return `${time}`.padStart(2, '0')\n}\nexport const formatTime = (time: Time): string => {\n return `${padTime(time.hours)}:${padTime(time.minutes)}`\n}\n\nexport const nextTime = (time: string, step: string): string => {\n const timeValue = parseTime(time)\n if (!timeValue) return ''\n\n const stepValue = parseTime(step)\n if (!stepValue) return ''\n\n const next = {\n hours: timeValue.hours,\n minutes: timeValue.minutes,\n }\n next.minutes += stepValue.minutes\n next.hours += stepValue.hours\n next.hours += Math.floor(next.minutes / 60)\n next.minutes = next.minutes % 60\n return formatTime(next)\n}\n"],"mappings":";;AAKA,MAAa,aAAa,SAA8B;CACtD,MAAM,UAAU,QAAQ,IAAI,MAAM,IAAI;CACtC,IAAI,OAAO,UAAU,GAAG;EACtB,IAAI,QAAQ,OAAO,SAAS,OAAO,IAAI,GAAG;EAC1C,MAAM,UAAU,OAAO,SAAS,OAAO,IAAI,GAAG;EAC9C,MAAM,YAAY,KAAK,aAAa;EACpC,IAAI,UAAU,SAAS,KAAK,IAAI,UAAU,IACxC,QAAQ;OACH,IAAI,UAAU,SAAS,KAAK,IAAI,UAAU,IAC/C,SAAS;EAEX,OAAO;GACL;GACA;GACD;;CAGH,OAAO;;AAGT,MAAa,eAAe,OAAe,UAA0B;CACnE,MAAM,SAAS,UAAU,MAAM;CAC/B,IAAI,CAAC,QAAQ,OAAO;CACpB,MAAM,SAAS,UAAU,MAAM;CAC/B,IAAI,CAAC,QAAQ,OAAO;CACpB,MAAM,WAAW,OAAO,UAAU,OAAO,QAAQ;CACjD,MAAM,WAAW,OAAO,UAAU,OAAO,QAAQ;CACjD,IAAI,aAAa,UACf,OAAO;CAET,OAAO,WAAW,WAAW,IAAI;;AAGnC,MAAa,WAAW,SAA0B;CAChD,OAAO,GAAG,OAAO,SAAS,GAAG,IAAI;;AAEnC,MAAa,cAAc,SAAuB;CAChD,OAAO,GAAG,QAAQ,KAAK,MAAM,CAAC,GAAG,QAAQ,KAAK,QAAQ;;AAGxD,MAAa,YAAY,MAAc,SAAyB;CAC9D,MAAM,YAAY,UAAU,KAAK;CACjC,IAAI,CAAC,WAAW,OAAO;CAEvB,MAAM,YAAY,UAAU,KAAK;CACjC,IAAI,CAAC,WAAW,OAAO;CAEvB,MAAM,OAAO;EACX,OAAO,UAAU;EACjB,SAAS,UAAU;EACpB;CACD,KAAK,WAAW,UAAU;CAC1B,KAAK,SAAS,UAAU;CACxB,KAAK,SAAS,KAAK,MAAM,KAAK,UAAU,GAAG;CAC3C,KAAK,UAAU,KAAK,UAAU;CAC9B,OAAO,WAAW,KAAK"}
1
+ {"version":3,"file":"utils.js","names":[],"sources":["../../../../../../packages/components/time-select/src/utils.ts"],"sourcesContent":["interface Time {\n hours: number\n minutes: number\n}\n\nexport const parseTime = (time: string): null | Time => {\n const values = (time || '').split(':')\n if (values.length >= 2) {\n let hours = Number.parseInt(values[0], 10)\n const minutes = Number.parseInt(values[1], 10)\n if (Number.isNaN(hours) || Number.isNaN(minutes)) return null\n\n const timeUpper = time.toUpperCase()\n if (timeUpper.includes('AM') && hours === 12) {\n hours = 0\n } else if (timeUpper.includes('PM') && hours !== 12) {\n hours += 12\n }\n return {\n hours,\n minutes,\n }\n }\n\n return null\n}\n\nexport const isValidTime = (time: null | Time): time is Time =>\n !!time &&\n time.hours >= 0 &&\n time.minutes >= 0 &&\n !Number.isNaN(time.hours) &&\n !Number.isNaN(time.minutes)\n\nexport const compareTime = (time1: string, time2: string): number => {\n const value1 = parseTime(time1)\n if (!value1) return -1\n const value2 = parseTime(time2)\n if (!value2) return -1\n const minutes1 = value1.minutes + value1.hours * 60\n const minutes2 = value2.minutes + value2.hours * 60\n if (minutes1 === minutes2) {\n return 0\n }\n return minutes1 > minutes2 ? 1 : -1\n}\n\nexport const padTime = (time: number | string) => {\n return `${time}`.padStart(2, '0')\n}\nexport const formatTime = (time: Time): string => {\n return `${padTime(time.hours)}:${padTime(time.minutes)}`\n}\n\nexport const nextTime = (time: string, step: string): string => {\n const timeValue = parseTime(time)\n if (!timeValue) return ''\n\n const stepValue = parseTime(step)\n if (!stepValue) return ''\n\n const next = {\n hours: timeValue.hours,\n minutes: timeValue.minutes,\n }\n next.minutes += stepValue.minutes\n next.hours += stepValue.hours\n next.hours += Math.floor(next.minutes / 60)\n next.minutes = next.minutes % 60\n return formatTime(next)\n}\n"],"mappings":";;AAKA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EACX,OAAO,UAAU;EACjB,SAAS,UAAU;EACpB;CACD,KAAK,WAAW,UAAU;CAC1B,KAAK,SAAS,UAAU;CACxB,KAAK,SAAS,KAAK,MAAM,KAAK,UAAU,GAAG;CAC3C,KAAK,UAAU,KAAK,UAAU;CAC9B,OAAO,WAAW,KAAK"}
@@ -9,8 +9,8 @@ type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_14) => any;
10
10
  };
11
11
  declare const __VLS_base: _$vue.DefineComponent<TimelineItemProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<TimelineItemProps> & Readonly<{}>, {
12
- type: "primary" | "success" | "warning" | "danger" | "info" | "";
13
12
  size: "normal" | "large";
13
+ type: "primary" | "success" | "warning" | "danger" | "info" | "";
14
14
  color: string;
15
15
  placement: "top" | "bottom";
16
16
  timestamp: string;
@@ -19,12 +19,11 @@ declare const __VLS_base: _$vue.DefineComponent<ElTooltipContentProps, {
19
19
  */
20
20
  isFocusInsideContent: (event?: FocusEvent) => boolean | undefined;
21
21
  }, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<ElTooltipContentProps> & Readonly<{}>, {
22
- style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
23
22
  visible: boolean | null;
23
+ style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
24
24
  content: string;
25
- offset: number;
26
- teleported: boolean;
27
25
  effect: PopperEffect;
26
+ offset: number;
28
27
  enterable: boolean;
29
28
  pure: boolean;
30
29
  focusOnShow: boolean;
@@ -39,6 +38,7 @@ declare const __VLS_base: _$vue.DefineComponent<ElTooltipContentProps, {
39
38
  popperOptions: Partial<Options>;
40
39
  strategy: "absolute" | "fixed";
41
40
  arrowOffset: number;
41
+ teleported: boolean;
42
42
  showAfter: number;
43
43
  hideAfter: number;
44
44
  autoClose: number;
@@ -59,13 +59,12 @@ declare const __VLS_base: _$vue.DefineComponent<UseTooltipProps, {
59
59
  "onBefore-show"?: ((...args: any[]) => any) | undefined;
60
60
  "onBefore-hide"?: ((...args: any[]) => any) | undefined;
61
61
  }>, {
62
- style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
63
62
  visible: boolean | null;
63
+ style: string | false | _$vue.CSSProperties | _$vue.StyleValue[] | null;
64
64
  content: string;
65
65
  role: typeof roleTypes[number];
66
- offset: number;
67
- teleported: boolean;
68
66
  effect: PopperEffect;
67
+ offset: number;
69
68
  enterable: boolean;
70
69
  pure: boolean;
71
70
  focusOnShow: boolean;
@@ -81,6 +80,7 @@ declare const __VLS_base: _$vue.DefineComponent<UseTooltipProps, {
81
80
  strategy: "absolute" | "fixed";
82
81
  arrowOffset: number;
83
82
  showArrow: boolean;
83
+ teleported: boolean;
84
84
  showAfter: number;
85
85
  hideAfter: number;
86
86
  autoClose: number;
@@ -12,8 +12,8 @@ declare const __VLS_base: _$vue.DefineComponent<TourContentProps, {}, {}, {}, {}
12
12
  }, string, _$vue.PublicProps, Readonly<TourContentProps> & Readonly<{
13
13
  onClose?: (() => any) | undefined;
14
14
  }>, {
15
- zIndex: number;
16
15
  offset: number;
16
+ zIndex: number;
17
17
  placement: _$_floating_ui_dom0.Placement;
18
18
  strategy: _$_floating_ui_dom0.Strategy;
19
19
  reference: HTMLElement | _$_floating_ui_dom0.VirtualElement | null;
@@ -26,9 +26,9 @@ declare const __VLS_base: _$vue.DefineComponent<TourProps, {}, {}, {}, {}, _$vue
26
26
  onFinish?: (() => any) | undefined;
27
27
  "onUpdate:current"?: ((current: number) => any) | undefined;
28
28
  }>, {
29
- appendTo: string | HTMLElement;
30
29
  placement: _$_floating_ui_dom0.Placement;
31
30
  showArrow: boolean;
31
+ appendTo: string | HTMLElement;
32
32
  gap: TourGap;
33
33
  mask: TourMask;
34
34
  closeOnPressEscape: boolean;