@element-plus/nightly 0.0.20260213 → 0.0.20260215

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/attributes.json +1 -1
  2. package/dist/index.full.js +431 -353
  3. package/dist/index.full.min.js +15 -15
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +15 -15
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +431 -354
  8. package/dist/locale/af.js +1 -1
  9. package/dist/locale/af.min.js +1 -1
  10. package/dist/locale/af.min.mjs +1 -1
  11. package/dist/locale/af.mjs +1 -1
  12. package/dist/locale/ar-eg.js +1 -1
  13. package/dist/locale/ar-eg.min.js +1 -1
  14. package/dist/locale/ar-eg.min.mjs +1 -1
  15. package/dist/locale/ar-eg.mjs +1 -1
  16. package/dist/locale/ar.js +1 -1
  17. package/dist/locale/ar.min.js +1 -1
  18. package/dist/locale/ar.min.mjs +1 -1
  19. package/dist/locale/ar.mjs +1 -1
  20. package/dist/locale/az.js +1 -1
  21. package/dist/locale/az.min.js +1 -1
  22. package/dist/locale/az.min.mjs +1 -1
  23. package/dist/locale/az.mjs +1 -1
  24. package/dist/locale/bg.js +1 -1
  25. package/dist/locale/bg.min.js +1 -1
  26. package/dist/locale/bg.min.mjs +1 -1
  27. package/dist/locale/bg.mjs +1 -1
  28. package/dist/locale/bn.js +1 -1
  29. package/dist/locale/bn.min.js +1 -1
  30. package/dist/locale/bn.min.mjs +1 -1
  31. package/dist/locale/bn.mjs +1 -1
  32. package/dist/locale/ca.js +1 -1
  33. package/dist/locale/ca.min.js +1 -1
  34. package/dist/locale/ca.min.mjs +1 -1
  35. package/dist/locale/ca.mjs +1 -1
  36. package/dist/locale/ckb.js +1 -1
  37. package/dist/locale/ckb.min.js +1 -1
  38. package/dist/locale/ckb.min.mjs +1 -1
  39. package/dist/locale/ckb.mjs +1 -1
  40. package/dist/locale/cs.js +1 -1
  41. package/dist/locale/cs.min.js +1 -1
  42. package/dist/locale/cs.min.mjs +1 -1
  43. package/dist/locale/cs.mjs +1 -1
  44. package/dist/locale/da.js +1 -1
  45. package/dist/locale/da.min.js +1 -1
  46. package/dist/locale/da.min.mjs +1 -1
  47. package/dist/locale/da.mjs +1 -1
  48. package/dist/locale/de.js +1 -1
  49. package/dist/locale/de.min.js +1 -1
  50. package/dist/locale/de.min.mjs +1 -1
  51. package/dist/locale/de.mjs +1 -1
  52. package/dist/locale/el.js +1 -1
  53. package/dist/locale/el.min.js +1 -1
  54. package/dist/locale/el.min.mjs +1 -1
  55. package/dist/locale/el.mjs +1 -1
  56. package/dist/locale/en.js +1 -1
  57. package/dist/locale/en.min.js +1 -1
  58. package/dist/locale/en.min.mjs +1 -1
  59. package/dist/locale/en.mjs +1 -1
  60. package/dist/locale/eo.js +1 -1
  61. package/dist/locale/eo.min.js +1 -1
  62. package/dist/locale/eo.min.mjs +1 -1
  63. package/dist/locale/eo.mjs +1 -1
  64. package/dist/locale/es.js +1 -1
  65. package/dist/locale/es.min.js +1 -1
  66. package/dist/locale/es.min.mjs +1 -1
  67. package/dist/locale/es.mjs +1 -1
  68. package/dist/locale/et.js +1 -1
  69. package/dist/locale/et.min.js +1 -1
  70. package/dist/locale/et.min.mjs +1 -1
  71. package/dist/locale/et.mjs +1 -1
  72. package/dist/locale/eu.js +1 -1
  73. package/dist/locale/eu.min.js +1 -1
  74. package/dist/locale/eu.min.mjs +1 -1
  75. package/dist/locale/eu.mjs +1 -1
  76. package/dist/locale/fa.js +1 -1
  77. package/dist/locale/fa.min.js +1 -1
  78. package/dist/locale/fa.min.mjs +1 -1
  79. package/dist/locale/fa.mjs +1 -1
  80. package/dist/locale/fi.js +1 -1
  81. package/dist/locale/fi.min.js +1 -1
  82. package/dist/locale/fi.min.mjs +1 -1
  83. package/dist/locale/fi.mjs +1 -1
  84. package/dist/locale/fr.js +1 -1
  85. package/dist/locale/fr.min.js +1 -1
  86. package/dist/locale/fr.min.mjs +1 -1
  87. package/dist/locale/fr.mjs +1 -1
  88. package/dist/locale/he.js +1 -1
  89. package/dist/locale/he.min.js +1 -1
  90. package/dist/locale/he.min.mjs +1 -1
  91. package/dist/locale/he.mjs +1 -1
  92. package/dist/locale/hi.js +1 -1
  93. package/dist/locale/hi.min.js +1 -1
  94. package/dist/locale/hi.min.mjs +1 -1
  95. package/dist/locale/hi.mjs +1 -1
  96. package/dist/locale/hr.js +1 -1
  97. package/dist/locale/hr.min.js +1 -1
  98. package/dist/locale/hr.min.mjs +1 -1
  99. package/dist/locale/hr.mjs +1 -1
  100. package/dist/locale/hu.js +1 -1
  101. package/dist/locale/hu.min.js +1 -1
  102. package/dist/locale/hu.min.mjs +1 -1
  103. package/dist/locale/hu.mjs +1 -1
  104. package/dist/locale/hy-am.js +1 -1
  105. package/dist/locale/hy-am.min.js +1 -1
  106. package/dist/locale/hy-am.min.mjs +1 -1
  107. package/dist/locale/hy-am.mjs +1 -1
  108. package/dist/locale/id.js +1 -1
  109. package/dist/locale/id.min.js +1 -1
  110. package/dist/locale/id.min.mjs +1 -1
  111. package/dist/locale/id.mjs +1 -1
  112. package/dist/locale/it.js +1 -1
  113. package/dist/locale/it.min.js +1 -1
  114. package/dist/locale/it.min.mjs +1 -1
  115. package/dist/locale/it.mjs +1 -1
  116. package/dist/locale/ja.js +1 -1
  117. package/dist/locale/ja.min.js +1 -1
  118. package/dist/locale/ja.min.mjs +1 -1
  119. package/dist/locale/ja.mjs +1 -1
  120. package/dist/locale/kk.js +1 -1
  121. package/dist/locale/kk.min.js +1 -1
  122. package/dist/locale/kk.min.mjs +1 -1
  123. package/dist/locale/kk.mjs +1 -1
  124. package/dist/locale/km.js +1 -1
  125. package/dist/locale/km.min.js +1 -1
  126. package/dist/locale/km.min.mjs +1 -1
  127. package/dist/locale/km.mjs +1 -1
  128. package/dist/locale/ko.js +1 -1
  129. package/dist/locale/ko.min.js +1 -1
  130. package/dist/locale/ko.min.mjs +1 -1
  131. package/dist/locale/ko.mjs +1 -1
  132. package/dist/locale/ku.js +1 -1
  133. package/dist/locale/ku.min.js +1 -1
  134. package/dist/locale/ku.min.mjs +1 -1
  135. package/dist/locale/ku.mjs +1 -1
  136. package/dist/locale/ky.js +1 -1
  137. package/dist/locale/ky.min.js +1 -1
  138. package/dist/locale/ky.min.mjs +1 -1
  139. package/dist/locale/ky.mjs +1 -1
  140. package/dist/locale/lo.js +1 -1
  141. package/dist/locale/lo.min.js +1 -1
  142. package/dist/locale/lo.min.mjs +1 -1
  143. package/dist/locale/lo.mjs +1 -1
  144. package/dist/locale/lt.js +1 -1
  145. package/dist/locale/lt.min.js +1 -1
  146. package/dist/locale/lt.min.mjs +1 -1
  147. package/dist/locale/lt.mjs +1 -1
  148. package/dist/locale/lv.js +1 -1
  149. package/dist/locale/lv.min.js +1 -1
  150. package/dist/locale/lv.min.mjs +1 -1
  151. package/dist/locale/lv.mjs +1 -1
  152. package/dist/locale/mg.js +1 -1
  153. package/dist/locale/mg.min.js +1 -1
  154. package/dist/locale/mg.min.mjs +1 -1
  155. package/dist/locale/mg.mjs +1 -1
  156. package/dist/locale/mn.js +1 -1
  157. package/dist/locale/mn.min.js +1 -1
  158. package/dist/locale/mn.min.mjs +1 -1
  159. package/dist/locale/mn.mjs +1 -1
  160. package/dist/locale/ms.js +1 -1
  161. package/dist/locale/ms.min.js +1 -1
  162. package/dist/locale/ms.min.mjs +1 -1
  163. package/dist/locale/ms.mjs +1 -1
  164. package/dist/locale/my.js +1 -1
  165. package/dist/locale/my.min.js +1 -1
  166. package/dist/locale/my.min.mjs +1 -1
  167. package/dist/locale/my.mjs +1 -1
  168. package/dist/locale/nb-no.js +1 -1
  169. package/dist/locale/nb-no.min.js +1 -1
  170. package/dist/locale/nb-no.min.mjs +1 -1
  171. package/dist/locale/nb-no.mjs +1 -1
  172. package/dist/locale/nl.js +1 -1
  173. package/dist/locale/nl.min.js +1 -1
  174. package/dist/locale/nl.min.mjs +1 -1
  175. package/dist/locale/nl.mjs +1 -1
  176. package/dist/locale/no.js +1 -1
  177. package/dist/locale/no.min.js +1 -1
  178. package/dist/locale/no.min.mjs +1 -1
  179. package/dist/locale/no.mjs +1 -1
  180. package/dist/locale/pa.js +1 -1
  181. package/dist/locale/pa.min.js +1 -1
  182. package/dist/locale/pa.min.mjs +1 -1
  183. package/dist/locale/pa.mjs +1 -1
  184. package/dist/locale/pl.js +1 -1
  185. package/dist/locale/pl.min.js +1 -1
  186. package/dist/locale/pl.min.mjs +1 -1
  187. package/dist/locale/pl.mjs +1 -1
  188. package/dist/locale/pt-br.js +1 -1
  189. package/dist/locale/pt-br.min.js +1 -1
  190. package/dist/locale/pt-br.min.mjs +1 -1
  191. package/dist/locale/pt-br.mjs +1 -1
  192. package/dist/locale/pt.js +1 -1
  193. package/dist/locale/pt.min.js +1 -1
  194. package/dist/locale/pt.min.mjs +1 -1
  195. package/dist/locale/pt.mjs +1 -1
  196. package/dist/locale/ro.js +1 -1
  197. package/dist/locale/ro.min.js +1 -1
  198. package/dist/locale/ro.min.mjs +1 -1
  199. package/dist/locale/ro.mjs +1 -1
  200. package/dist/locale/ru.js +1 -1
  201. package/dist/locale/ru.min.js +1 -1
  202. package/dist/locale/ru.min.mjs +1 -1
  203. package/dist/locale/ru.mjs +1 -1
  204. package/dist/locale/sk.js +1 -1
  205. package/dist/locale/sk.min.js +1 -1
  206. package/dist/locale/sk.min.mjs +1 -1
  207. package/dist/locale/sk.mjs +1 -1
  208. package/dist/locale/sl.js +1 -1
  209. package/dist/locale/sl.min.js +1 -1
  210. package/dist/locale/sl.min.mjs +1 -1
  211. package/dist/locale/sl.mjs +1 -1
  212. package/dist/locale/sr.js +1 -1
  213. package/dist/locale/sr.min.js +1 -1
  214. package/dist/locale/sr.min.mjs +1 -1
  215. package/dist/locale/sr.mjs +1 -1
  216. package/dist/locale/sv.js +1 -1
  217. package/dist/locale/sv.min.js +1 -1
  218. package/dist/locale/sv.min.mjs +1 -1
  219. package/dist/locale/sv.mjs +1 -1
  220. package/dist/locale/sw.js +1 -1
  221. package/dist/locale/sw.min.js +1 -1
  222. package/dist/locale/sw.min.mjs +1 -1
  223. package/dist/locale/sw.mjs +1 -1
  224. package/dist/locale/ta.js +1 -1
  225. package/dist/locale/ta.min.js +1 -1
  226. package/dist/locale/ta.min.mjs +1 -1
  227. package/dist/locale/ta.mjs +1 -1
  228. package/dist/locale/te.js +1 -1
  229. package/dist/locale/te.min.js +1 -1
  230. package/dist/locale/te.min.mjs +1 -1
  231. package/dist/locale/te.mjs +1 -1
  232. package/dist/locale/th.js +1 -1
  233. package/dist/locale/th.min.js +1 -1
  234. package/dist/locale/th.min.mjs +1 -1
  235. package/dist/locale/th.mjs +1 -1
  236. package/dist/locale/tk.js +1 -1
  237. package/dist/locale/tk.min.js +1 -1
  238. package/dist/locale/tk.min.mjs +1 -1
  239. package/dist/locale/tk.mjs +1 -1
  240. package/dist/locale/tr.js +1 -1
  241. package/dist/locale/tr.min.js +1 -1
  242. package/dist/locale/tr.min.mjs +1 -1
  243. package/dist/locale/tr.mjs +1 -1
  244. package/dist/locale/ug-cn.js +1 -1
  245. package/dist/locale/ug-cn.min.js +1 -1
  246. package/dist/locale/ug-cn.min.mjs +1 -1
  247. package/dist/locale/ug-cn.mjs +1 -1
  248. package/dist/locale/uk.js +1 -1
  249. package/dist/locale/uk.min.js +1 -1
  250. package/dist/locale/uk.min.mjs +1 -1
  251. package/dist/locale/uk.mjs +1 -1
  252. package/dist/locale/uz-uz.js +1 -1
  253. package/dist/locale/uz-uz.min.js +1 -1
  254. package/dist/locale/uz-uz.min.mjs +1 -1
  255. package/dist/locale/uz-uz.mjs +1 -1
  256. package/dist/locale/vi.js +1 -1
  257. package/dist/locale/vi.min.js +1 -1
  258. package/dist/locale/vi.min.mjs +1 -1
  259. package/dist/locale/vi.mjs +1 -1
  260. package/dist/locale/zh-cn.js +1 -1
  261. package/dist/locale/zh-cn.min.js +1 -1
  262. package/dist/locale/zh-cn.min.mjs +1 -1
  263. package/dist/locale/zh-cn.mjs +1 -1
  264. package/dist/locale/zh-hk.js +1 -1
  265. package/dist/locale/zh-hk.min.js +1 -1
  266. package/dist/locale/zh-hk.min.mjs +1 -1
  267. package/dist/locale/zh-hk.mjs +1 -1
  268. package/dist/locale/zh-mo.js +1 -1
  269. package/dist/locale/zh-mo.min.js +1 -1
  270. package/dist/locale/zh-mo.min.mjs +1 -1
  271. package/dist/locale/zh-mo.mjs +1 -1
  272. package/dist/locale/zh-tw.js +1 -1
  273. package/dist/locale/zh-tw.min.js +1 -1
  274. package/dist/locale/zh-tw.min.mjs +1 -1
  275. package/dist/locale/zh-tw.mjs +1 -1
  276. package/es/components/color-picker/src/color-picker.d.ts +8 -2
  277. package/es/components/color-picker/src/color-picker.mjs +3 -1
  278. package/es/components/color-picker/src/color-picker.mjs.map +1 -1
  279. package/es/components/color-picker-panel/src/color-picker-panel.d.ts +8 -2
  280. package/es/components/color-picker-panel/src/color-picker-panel.mjs +3 -1
  281. package/es/components/color-picker-panel/src/color-picker-panel.mjs.map +1 -1
  282. package/es/components/index.mjs +1 -1
  283. package/es/components/segmented/index.d.ts +67 -1
  284. package/es/components/select/src/select.d.ts +19 -0
  285. package/es/components/select/src/select.mjs +7 -0
  286. package/es/components/select/src/select.mjs.map +1 -1
  287. package/es/components/select/src/select.vue.d.ts +3 -0
  288. package/es/components/select/src/select.vue.mjs +186 -172
  289. package/es/components/select/src/select.vue.mjs.map +1 -1
  290. package/es/components/select/src/select.vue2.mjs.map +1 -1
  291. package/es/components/select-v2/src/defaults.d.ts +21 -2
  292. package/es/components/select-v2/src/defaults.mjs +7 -0
  293. package/es/components/select-v2/src/defaults.mjs.map +1 -1
  294. package/es/components/select-v2/src/select.vue.d.ts +3 -0
  295. package/es/components/select-v2/src/select.vue.mjs +186 -172
  296. package/es/components/select-v2/src/select.vue.mjs.map +1 -1
  297. package/es/components/select-v2/src/select.vue2.mjs.map +1 -1
  298. package/es/components/time-select/index.mjs +1 -1
  299. package/es/components/time-select/src/time-select.d.ts +1 -0
  300. package/es/components/time-select/src/time-select.mjs +3 -2
  301. package/es/components/time-select/src/time-select.mjs.map +1 -1
  302. package/es/components/time-select/src/time-select.vue2.mjs +13 -5
  303. package/es/components/time-select/src/time-select.vue2.mjs.map +1 -1
  304. package/es/components/tree-select/src/tree-select.vue.d.ts +3 -0
  305. package/es/index.mjs +1 -1
  306. package/es/utils/index.mjs +1 -1
  307. package/es/utils/vue/index.mjs +1 -1
  308. package/es/utils/vue/install.d.ts +1 -0
  309. package/es/utils/vue/install.mjs +32 -2
  310. package/es/utils/vue/install.mjs.map +1 -1
  311. package/es/utils/vue/typescript.d.ts +4 -1
  312. package/es/version.d.ts +1 -1
  313. package/es/version.mjs +1 -1
  314. package/es/version.mjs.map +1 -1
  315. package/lib/components/color-picker/src/color-picker.d.ts +8 -2
  316. package/lib/components/color-picker/src/color-picker.js +3 -1
  317. package/lib/components/color-picker/src/color-picker.js.map +1 -1
  318. package/lib/components/color-picker-panel/src/color-picker-panel.d.ts +8 -2
  319. package/lib/components/color-picker-panel/src/color-picker-panel.js +3 -1
  320. package/lib/components/color-picker-panel/src/color-picker-panel.js.map +1 -1
  321. package/lib/components/index.js +1 -0
  322. package/lib/components/index.js.map +1 -1
  323. package/lib/components/segmented/index.d.ts +67 -1
  324. package/lib/components/select/src/select.d.ts +19 -0
  325. package/lib/components/select/src/select.js +7 -0
  326. package/lib/components/select/src/select.js.map +1 -1
  327. package/lib/components/select/src/select.vue.d.ts +3 -0
  328. package/lib/components/select/src/select.vue.js +186 -172
  329. package/lib/components/select/src/select.vue.js.map +1 -1
  330. package/lib/components/select/src/select.vue2.js.map +1 -1
  331. package/lib/components/select-v2/src/defaults.d.ts +21 -2
  332. package/lib/components/select-v2/src/defaults.js +7 -0
  333. package/lib/components/select-v2/src/defaults.js.map +1 -1
  334. package/lib/components/select-v2/src/select.vue.d.ts +3 -0
  335. package/lib/components/select-v2/src/select.vue.js +186 -172
  336. package/lib/components/select-v2/src/select.vue.js.map +1 -1
  337. package/lib/components/select-v2/src/select.vue2.js.map +1 -1
  338. package/lib/components/time-select/index.js +1 -0
  339. package/lib/components/time-select/index.js.map +1 -1
  340. package/lib/components/time-select/src/time-select.d.ts +1 -0
  341. package/lib/components/time-select/src/time-select.js +3 -1
  342. package/lib/components/time-select/src/time-select.js.map +1 -1
  343. package/lib/components/time-select/src/time-select.vue2.js +12 -4
  344. package/lib/components/time-select/src/time-select.vue2.js.map +1 -1
  345. package/lib/components/tree-select/src/tree-select.vue.d.ts +3 -0
  346. package/lib/index.js +1 -0
  347. package/lib/index.js.map +1 -1
  348. package/lib/utils/index.js +1 -0
  349. package/lib/utils/index.js.map +1 -1
  350. package/lib/utils/vue/index.js +1 -0
  351. package/lib/utils/vue/index.js.map +1 -1
  352. package/lib/utils/vue/install.d.ts +1 -0
  353. package/lib/utils/vue/install.js +31 -0
  354. package/lib/utils/vue/install.js.map +1 -1
  355. package/lib/utils/vue/typescript.d.ts +4 -1
  356. package/lib/version.d.ts +1 -1
  357. package/lib/version.js +1 -1
  358. package/lib/version.js.map +1 -1
  359. package/package.json +2 -2
  360. package/tags.json +1 -1
  361. package/web-types.json +1 -1
@@ -82,6 +82,7 @@ export interface TimeSelectProps extends UseEmptyValuesProps {
82
82
  */
83
83
  popperStyle?: string | CSSProperties;
84
84
  }
85
+ export declare const DEFAULT_STEP = "00:30";
85
86
  /**
86
87
  * @deprecated Removed after 3.0.0, Use `TimeSelectProps` instead.
87
88
  */
@@ -3,6 +3,7 @@ import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs
3
3
  import { useEmptyValuesProps } from '../../../hooks/use-empty-values/index.mjs';
4
4
  import { useSizeProp } from '../../../hooks/use-size/index.mjs';
5
5
 
6
+ const DEFAULT_STEP = "00:30";
6
7
  const timeSelectProps = buildProps({
7
8
  /**
8
9
  * @description set format of time
@@ -72,7 +73,7 @@ const timeSelectProps = buildProps({
72
73
  */
73
74
  step: {
74
75
  type: String,
75
- default: "00:30"
76
+ default: DEFAULT_STEP
76
77
  },
77
78
  /**
78
79
  * @description minimum time, any time before this time will be disabled
@@ -124,5 +125,5 @@ const timeSelectProps = buildProps({
124
125
  ...useEmptyValuesProps
125
126
  });
126
127
 
127
- export { timeSelectProps };
128
+ export { DEFAULT_STEP, timeSelectProps };
128
129
  //# sourceMappingURL=time-select.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"time-select.mjs","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\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: '00:30',\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"],"names":[],"mappings":";;;;;AA6FO,MAAM,kBAAkB,UAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIxC,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,UAAA,EAAY;AAAA,IACV,IAAA,EAAM,eAA8B,MAAM;AAAA,GAC5C;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,eAA6B,MAAM,CAAA;AAAA,IACzC,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM,WAAA;AAAA;AAAA;AAAA;AAAA,EAIN,WAAA,EAAa,MAAA;AAAA;AAAA;AAAA;AAAA,EAIb,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,GAAA,EAAK;AAAA,IACH,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,eAA8B,MAAM;AAAA,GAC5C;AAAA;AAAA;AAAA;AAAA,EAIA,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,eAA8B,MAAM;AAAA,GAC5C;AAAA;AAAA;AAAA;AAAA,EAIA,cAAA,EAAgB,OAAA;AAAA;AAAA;AAAA;AAAA,EAIhB,IAAA,EAAM,MAAA;AAAA;AAAA;AAAA;AAAA,EAIN,UAAA,EAAY;AAAA,IACV,IAAA,EAAM,cAAA,CAAmC,CAAC,MAAA,EAAQ,MAAM,CAAC,CAAA;AAAA,IACzD,SAAS,MAAM;AAAA,GACjB;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,cAAA,CAAmC,CAAC,MAAA,EAAQ,MAAM,CAAC,CAAA;AAAA,IACzD,SAAS,MAAM;AAAA,GACjB;AAAA;AAAA;AAAA;AAAA,EAIA,WAAA,EAAa;AAAA,IACX,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,WAAA,EAAa;AAAA,IACX,IAAA,EAAM,cAAA,CAAuC,CAAC,MAAA,EAAQ,MAAM,CAAC;AAAA,GAC/D;AAAA,EACA,GAAG;AACL,CAAU;;;;"}
1
+ {"version":3,"file":"time-select.mjs","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"],"names":[],"mappings":";;;;;AA0FO,MAAM,YAAA,GAAe;AAKrB,MAAM,kBAAkB,UAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIxC,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,UAAA,EAAY;AAAA,IACV,IAAA,EAAM,eAA8B,MAAM;AAAA,GAC5C;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,OAAA;AAAA,IACN,O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EAAW;AAAA,IACT,IAAA,EAAM,cAAA,CAAmC,CAAC,MAAA,EAAQ,MAAM,CAAC,CAAA;AAAA,IACzD,SAAS,MAAM;AAAA,GACjB;AAAA;AAAA;AAAA;AAAA,EAIA,WAAA,EAAa;AAAA,IACX,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,WAAA,EAAa;AAAA,IACX,IAAA,EAAM,cAAA,CAAuC,CAAC,MAAA,EAAQ,MAAM,CAAC;AAAA,GAC/D;AAAA,EACA,GAAG;AACL,CAAU;;;;"}
@@ -1,4 +1,4 @@
1
- import { timeSelectProps } from './time-select.mjs';
1
+ import { timeSelectProps, DEFAULT_STEP } from './time-select.mjs';
2
2
  import { defineComponent, ref, computed, createBlock, openBlock, unref, withCtx, createElementBlock, Fragment, renderList, createCommentVNode, normalizeClass, resolveDynamicComponent } from 'vue';
3
3
  import dayjs from 'dayjs';
4
4
  import customParseFormat from 'dayjs/plugin/customParseFormat.js';
@@ -9,6 +9,7 @@ import { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
9
9
  import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
10
10
  import { useFormDisabled } from '../../form/src/hooks/use-form-common-props.mjs';
11
11
  import { useLocale } from '../../../hooks/use-locale/index.mjs';
12
+ import { debugWarn } from '../../../utils/error.mjs';
12
13
 
13
14
  var _sfc_main = /* @__PURE__ */ defineComponent({
14
15
  ...{
@@ -34,10 +35,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
34
35
  const time = parseTime(props.end);
35
36
  return time ? formatTime(time) : null;
36
37
  });
37
- const step = computed(() => {
38
- const time = parseTime(props.step);
39
- return time ? formatTime(time) : null;
40
- });
41
38
  const minTime = computed(() => {
42
39
  const time = parseTime(props.minTime || "");
43
40
  return time ? formatTime(time) : null;
@@ -46,6 +43,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
46
43
  const time = parseTime(props.maxTime || "");
47
44
  return time ? formatTime(time) : null;
48
45
  });
46
+ const step = computed(() => {
47
+ const time = parseTime(props.step);
48
+ const isInvalidStep = !time || time.hours < 0 || time.minutes < 0 || Number.isNaN(time.hours) || Number.isNaN(time.minutes) || time.hours === 0 && time.minutes === 0;
49
+ if (isInvalidStep) {
50
+ debugWarn(
51
+ "ElTimeSelect",
52
+ `invalid step, fallback to default step (${DEFAULT_STEP}).`
53
+ );
54
+ }
55
+ return !isInvalidStep ? formatTime(time) : DEFAULT_STEP;
56
+ });
49
57
  const items = computed(() => {
50
58
  var _a;
51
59
  const result = [];
@@ -1 +1 @@
1
- {"version":3,"file":"time-select.vue2.mjs","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'\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: '00:30',\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 step = computed(() => {\n const time = parseTime(props.step)\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 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"],"names":["_createBlock","_unref","$emit","_normalizeClass","_openBlock","_resolveDynamicComponent","_createElementBlock","_Fragment","_renderList"],"mappings":";;;;;;;;;;;;;;;;;;;;AAoDA,IAAA,KAAA,CAAM,OAAO,iBAAiB,CAAA;AAE9B,IAAA,MAAM,EAAE,MAAA,EAAQ,QAAA,EAAS,GAAI,QAAA;AAQ7B,IAAA,MAAM,KAAA,GAAQ,OAAA;AAgBd,IAAA,MAAM,OAAA,GAAU,aAAa,OAAO,CAAA;AACpC,IAAA,MAAM,SAAS,GAAA,EAAqB;AAEpC,IAAA,MAAM,YAAY,eAAA,EAAgB;AAClC,IAAA,MAAM,EAAE,IAAA,EAAK,GAAI,SAAA,EAAU;AAE3B,IAAA,MAAM,KAAA,GAAQ,QAAA,CAAS,MAAM,KAAA,CAAM,UAAU,CAAA;AAC7C,IAAA,MAAM,KAAA,GAAQ,SAAS,MAAM;AAC3B,MAAA,MAAM,IAAA,GAAO,SAAA,CAAU,KAAA,CAAM,KAAK,CAAA;AAClC,MAAA,OAAO,IAAA,GAAO,UAAA,CAAW,IAAI,CAAA,GAAI,IAAA;AAAA,IACnC,CAAC,CAAA;AAED,IAAA,MAAM,GAAA,GAAM,SAAS,MAAM;AACzB,MAAA,MAAM,IAAA,GAAO,SAAA,CAAU,KAAA,CAAM,GAAG,CAAA;AAChC,MAAA,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G,KAAA,KAAUA,IAAAA,CAAAA,KAAAA,UAAe,KAAK,CAAA,CAAA;AAAA,QACtC,OAAA,kCAAaA,IAAAA,CAAAA,KAAAA,CAAK,OAAA,CAAA;AAAA;QASR,MAAA,UACT,MAEU;AAAA,UAFK,QAAA,UAAA,iBAAfF,WAAA,CAEUC,KAAA,CAAA,MAAA,CAAA,EAAA;AAAA;YAFkB,OAAKE,cAAA,CAAEF,KAAA,CAAA,OAAA,CAAA,CAAQ,CAAA,CAAC,aAAA,CAAA;AAAA;6BAC1C,MAA8B;AAAA,eAA9BG,WAAA,EAAAJ,WAAA,CAA8BK,uBAAA,CAAd,OAAA,CAAA,UAAU,CAAA,CAAA;AAAA;;;;;yBAR5B,MAAqB;AAAA,4BADvBC,kBAAA;AAAA,YAMEC,QAAA;AAAA,YAAA,IAAA;AAAA,YAAAC,UAAA,CALe,KAAA,CAAA,KAAA,EAAK,CAAb,IAAA,KAAI;kCADbR,WAAA,CAMEC,KAAA,CAAA,QAAA,CAAA,EAAA;AAAA,gBAJC,KAAK,IAAA,CAAK,KAAA;AAAA,gBACV,OAAO,IAAA,CAAK,KAAA;AAAA,gBACZ,OAAO,IAAA,CAAK,KAAA;AAAA,gBACZ,UAAU,IAAA,CAAK;AAAA;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"time-select.vue2.mjs","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"],"names":["_createBlock","_unref","$emit","_normalizeClass","_openBlock","_resolveDynamicComponent","_createElementBlock","_Fragment","_renderList"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAsDA,IAAA,KAAA,CAAM,OAAO,i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ASR,MAAA,UACT,MAEU;AAAA,UAFK,QAAA,UAAA,iBAAfF,WAAA,CAEUC,KAAA,CAAA,MAAA,CAAA,EAAA;AAAA;YAFkB,OAAKE,cAAA,CAAEF,KAAA,CAAA,OAAA,CAAA,CAAQ,CAAA,CAAC,aAAA,CAAA;AAAA;6BAC1C,MAA8B;AAAA,eAA9BG,WAAA,EAAAJ,WAAA,CAA8BK,uBAAA,CAAd,OAAA,CAAA,UAAU,CAAA,CAAA;AAAA;;;;;yBAR5B,MAAqB;AAAA,4BADvBC,kBAAA;AAAA,YAMEC,QAAA;AAAA,YAAA,IAAA;AAAA,YAAAC,UAAA,CALe,KAAA,CAAA,KAAA,EAAK,CAAb,IAAA,KAAI;kCADbR,WAAA,CAMEC,KAAA,CAAA,QAAA,CAAA,EAAA;AAAA,gBAJC,KAAK,IAAA,CAAK,KAAA;AAAA,gBACV,OAAO,IAAA,CAAK,KAAA;AAAA,gBACZ,OAAO,IAAA,CAAK,KAAA;AAAA,gBACZ,UAAU,IAAA,CAAK;AAAA;;;;;;;;;;;;;;;"}
@@ -145,6 +145,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
145
145
  valueKey: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
146
146
  collapseTags: BooleanConstructor;
147
147
  collapseTagsTooltip: BooleanConstructor;
148
+ tagTooltip: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => import("@element-plus/nightly/es/components/select").TagTooltipProps) | (() => import("@element-plus/nightly/es/components/select").TagTooltipProps) | ((new (...args: any[]) => import("@element-plus/nightly/es/components/select").TagTooltipProps) | (() => import("@element-plus/nightly/es/components/select").TagTooltipProps))[], unknown, unknown, () => {}, boolean>;
148
149
  maxCollapseTags: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
149
150
  teleported: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
150
151
  persistent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
@@ -343,6 +344,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
343
344
  valueKey: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
344
345
  collapseTags: BooleanConstructor;
345
346
  collapseTagsTooltip: BooleanConstructor;
347
+ tagTooltip: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => import("@element-plus/nightly/es/components/select").TagTooltipProps) | (() => import("@element-plus/nightly/es/components/select").TagTooltipProps) | ((new (...args: any[]) => import("@element-plus/nightly/es/components/select").TagTooltipProps) | (() => import("@element-plus/nightly/es/components/select").TagTooltipProps))[], unknown, unknown, () => {}, boolean>;
346
348
  maxCollapseTags: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
347
349
  teleported: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
348
350
  persistent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
@@ -423,6 +425,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
423
425
  defaultExpandAll: boolean;
424
426
  indent: number;
425
427
  automaticDropdown: boolean;
428
+ tagTooltip: import("@element-plus/nightly/es/components/select").TagTooltipProps;
426
429
  maxCollapseTags: number;
427
430
  multipleLimit: number;
428
431
  reserveKeyword: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
package/es/index.mjs CHANGED
@@ -200,7 +200,7 @@ export { buildTimeList, dateEquals, dayOrDaysToDate, extractDateFormat, extractT
200
200
  export { DEFAULT_FORMATS_DATE, DEFAULT_FORMATS_DATEPICKER, DEFAULT_FORMATS_TIME, PICKER_BASE_INJECTION_KEY, PICKER_POPPER_OPTIONS_INJECTION_KEY, ROOT_COMMON_PICKER_INJECTION_KEY, timeUnits } from './components/time-picker/src/constants.mjs';
201
201
  export { timePickerDefaultProps, timePickerRangeTriggerProps, timePickerRngeTriggerProps } from './components/time-picker/src/common/props.mjs';
202
202
  export { ElTimePicker } from './components/time-picker/index.mjs';
203
- export { timeSelectProps } from './components/time-select/src/time-select.mjs';
203
+ export { DEFAULT_STEP, timeSelectProps } from './components/time-select/src/time-select.mjs';
204
204
  export { ElTimeSelect } from './components/time-select/index.mjs';
205
205
  export { timelineProps } from './components/timeline/src/timeline.mjs';
206
206
  export { timelineItemProps } from './components/timeline/src/timeline-item.mjs';
@@ -18,7 +18,7 @@ export { addClass, addUnit, classNameToArray, getStyle, hasClass, removeClass, r
18
18
  export { getElement } from './dom/element.mjs';
19
19
  export { changeGlobalNodesTarget, createGlobalNode, removeGlobalNode } from './vue/global-node.mjs';
20
20
  export { CloseComponents, TypeComponents, TypeComponentsMap, ValidateComponentsMap, iconPropType } from './vue/icon.mjs';
21
- export { withInstall, withInstallDirective, withInstallFunction, withNoopInstall } from './vue/install.mjs';
21
+ export { withInstall, withInstallDirective, withInstallFunction, withNoopInstall, withPropsDefaultsSetter } from './vue/install.mjs';
22
22
  export { buildProp, buildProps, definePropType, epPropKey, isEpProp } from './vue/props/runtime.mjs';
23
23
  export { composeRefs } from './vue/refs.mjs';
24
24
  export { getComponentSize } from './vue/size.mjs';
@@ -1,6 +1,6 @@
1
1
  export { changeGlobalNodesTarget, createGlobalNode, removeGlobalNode } from './global-node.mjs';
2
2
  export { CloseComponents, TypeComponents, TypeComponentsMap, ValidateComponentsMap, iconPropType } from './icon.mjs';
3
- export { withInstall, withInstallDirective, withInstallFunction, withNoopInstall } from './install.mjs';
3
+ export { withInstall, withInstallDirective, withInstallFunction, withNoopInstall, withPropsDefaultsSetter } from './install.mjs';
4
4
  export { composeRefs } from './refs.mjs';
5
5
  export { getComponentSize } from './size.mjs';
6
6
  export { isValidComponentSize, isValidDatePickType } from './validator.mjs';
@@ -1,5 +1,6 @@
1
1
  import type { Directive } from 'vue';
2
2
  import type { SFCInstallWithContext, SFCWithInstall } from './typescript';
3
+ export declare const withPropsDefaultsSetter: (target: any) => void;
3
4
  export declare const withInstall: <T, E extends Record<string, any>>(main: T, extra?: E) => SFCWithInstall<T> & E;
4
5
  export declare const withInstallFunction: <T>(fn: T, name: string) => SFCInstallWithContext<T>;
5
6
  export declare const withInstallDirective: <T extends Directive>(directive: T, name: string) => SFCWithInstall<T>;
@@ -1,5 +1,33 @@
1
- import { NOOP } from '@vue/shared';
1
+ import { isArray, hasOwn, NOOP } from '@vue/shared';
2
+ import { fromPairs, isPlainObject } from 'lodash-unified';
2
3
 
4
+ const withPropsDefaultsSetter = (target) => {
5
+ const _p = target.props;
6
+ const props = isArray(_p) ? fromPairs(_p.map((key) => [key, {}])) : _p;
7
+ target.setPropsDefaults = (defaults) => {
8
+ if (!props) {
9
+ return;
10
+ }
11
+ for (const [key, value] of Object.entries(defaults)) {
12
+ const prop = props[key];
13
+ if (!hasOwn(props, key)) {
14
+ continue;
15
+ }
16
+ if (isPlainObject(prop)) {
17
+ props[key] = {
18
+ ...prop,
19
+ default: value
20
+ };
21
+ continue;
22
+ }
23
+ props[key] = {
24
+ type: prop,
25
+ default: value
26
+ };
27
+ }
28
+ target.props = props;
29
+ };
30
+ };
3
31
  const withInstall = (main, extra) => {
4
32
  main.install = (app) => {
5
33
  for (const comp of [main, ...Object.values(extra != null ? extra : {})]) {
@@ -11,6 +39,7 @@ const withInstall = (main, extra) => {
11
39
  main[key] = comp;
12
40
  }
13
41
  }
42
+ withPropsDefaultsSetter(main);
14
43
  return main;
15
44
  };
16
45
  const withInstallFunction = (fn, name) => {
@@ -28,8 +57,9 @@ const withInstallDirective = (directive, name) => {
28
57
  };
29
58
  const withNoopInstall = (component) => {
30
59
  component.install = NOOP;
60
+ withPropsDefaultsSetter(component);
31
61
  return component;
32
62
  };
33
63
 
34
- export { withInstall, withInstallDirective, withInstallFunction, withNoopInstall };
64
+ export { withInstall, withInstallDirective, withInstallFunction, withNoopInstall, withPropsDefaultsSetter };
35
65
  //# sourceMappingURL=install.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"install.mjs","sources":["../../../../../packages/utils/vue/install.ts"],"sourcesContent":["import { NOOP } from '../functions'\n\nimport type { App, Directive } from 'vue'\nimport type { SFCInstallWithContext, SFCWithInstall } from './typescript'\n\nexport const withInstall = <T, E extends Record<string, any>>(\n main: T,\n extra?: E\n) => {\n ;(main as SFCWithInstall<T>).install = (app): void => {\n for (const comp of [main, ...Object.values(extra ?? {})]) {\n app.component(comp.name, comp)\n }\n }\n\n if (extra) {\n for (const [key, comp] of Object.entries(extra)) {\n ;(main as any)[key] = comp\n }\n }\n return main as SFCWithInstall<T> & E\n}\n\nexport const withInstallFunction = <T>(fn: T, name: string) => {\n ;(fn as SFCWithInstall<T>).install = (app: App) => {\n ;(fn as SFCInstallWithContext<T>)._context = app._context\n app.config.globalProperties[name] = fn\n }\n\n return fn as SFCInstallWithContext<T>\n}\n\nexport const withInstallDirective = <T extends Directive>(\n directive: T,\n name: string\n) => {\n ;(directive as SFCWithInstall<T>).install = (app: App): void => {\n app.directive(name, directive)\n }\n\n return directive as SFCWithInstall<T>\n}\n\nexport const withNoopInstall = <T>(component: T) => {\n ;(component as SFCWithInstall<T>).install = NOOP\n\n return component as SFCWithInstall<T>\n}\n"],"names":[],"mappings":";;AAKO,MAAM,WAAA,GAAc,CACzB,IAAA,EACA,KAAA,KACG;AACF,EAAC,IAAA,CAA2B,OAAA,GAAU,CAAC,GAAA,KAAc;AACpD,IAAA,KAAA,MAAW,IAAA,IAAQ,CAAC,IAAA,EAAM,GAAG,MAAA,CAAO,OAAO,KAAA,IAAA,IAAA,GAAA,KAAA,GAAS,EAAE,CAAC,CAAA,EAAG;AACxD,MAAA,GAAA,CAAI,SAAA,CAAU,IAAA,CAAK,IAAA,EAAM,IAAI,CAAA;AAAA,IAC/B;AAAA,EACF,CAAA;AAEA,EAAA,IAAI,KAAA,EAAO;AACT,IAAA,KAAA,MAAW,CAAC,GAAA,EAAK,IAAI,KAAK,MAAA,CAAO,OAAA,CAAQ,KAAK,CAAA,EAAG;AAC9C,MAAC,IAAA,CAAa,GAAG,CAAA,GAAI,IAAA;AAAA,IACxB;AAAA,EACF;AACA,EAAA,OAAO,IAAA;AACT;AAEO,MAAM,mBAAA,GAAsB,CAAI,EAAA,EAAO,IAAA,KAAiB;AAC5D,EAAC,EAAA,CAAyB,OAAA,GAAU,CAAC,GAAA,KAAa;AAChD,IAAC,EAAA,CAAgC,WAAW,GAAA,CAAI,QAAA;AACjD,IAAA,GAAA,CAAI,MAAA,CAAO,gBAAA,CAAiB,IAAI,CAAA,GAAI,EAAA;AAAA,EACtC,CAAA;AAEA,EAAA,OAAO,EAAA;AACT;AAEO,MAAM,oBAAA,GAAuB,CAClC,SAAA,EACA,IAAA,KACG;AACF,EAAC,SAAA,CAAgC,OAAA,GAAU,CAAC,GAAA,KAAmB;AAC9D,IAAA,GAAA,CAAI,SAAA,CAAU,MAAM,SAAS,CAAA;AAAA,EAC/B,CAAA;AAEA,EAAA,OAAO,SAAA;AACT;AAEO,MAAM,eAAA,GAAkB,CAAI,SAAA,KAAiB;AACjD,EAAC,UAAgC,OAAA,GAAU,IAAA;AAE5C,EAAA,OAAO,SAAA;AACT;;;;"}
1
+ {"version":3,"file":"install.mjs","sources":["../../../../../packages/utils/vue/install.ts"],"sourcesContent":["import { hasOwn, isArray } from '@vue/shared'\nimport { fromPairs, isPlainObject } from 'lodash-unified'\nimport { NOOP } from '../functions'\n\nimport type { App, Directive } from 'vue'\nimport type { SFCInstallWithContext, SFCWithInstall } from './typescript'\n\nexport const withPropsDefaultsSetter = (target: any) => {\n const _p = target.props\n const props = isArray(_p) ? fromPairs(_p.map((key) => [key, {}])) : _p\n\n target.setPropsDefaults = (defaults: Record<string, any>) => {\n if (!props) {\n return\n }\n\n for (const [key, value] of Object.entries(defaults)) {\n const prop = props[key]\n\n if (!hasOwn(props, key)) {\n continue\n }\n\n if (isPlainObject(prop)) {\n // e.g. { type: String }\n props[key] = {\n ...prop,\n default: value,\n }\n continue\n }\n\n props[key] = {\n type: prop,\n default: value,\n }\n }\n\n target.props = props\n }\n}\n\nexport const withInstall = <T, E extends Record<string, any>>(\n main: T,\n extra?: E\n) => {\n ;(main as SFCWithInstall<T>).install = (app): void => {\n for (const comp of [main, ...Object.values(extra ?? {})]) {\n app.component(comp.name, comp)\n }\n }\n\n if (extra) {\n for (const [key, comp] of Object.entries(extra)) {\n ;(main as any)[key] = comp\n }\n }\n withPropsDefaultsSetter(main)\n return main as SFCWithInstall<T> & E\n}\n\nexport const withInstallFunction = <T>(fn: T, name: string) => {\n ;(fn as SFCWithInstall<T>).install = (app: App) => {\n ;(fn as SFCInstallWithContext<T>)._context = app._context\n app.config.globalProperties[name] = fn\n }\n\n return fn as SFCInstallWithContext<T>\n}\n\nexport const withInstallDirective = <T extends Directive>(\n directive: T,\n name: string\n) => {\n ;(directive as SFCWithInstall<T>).install = (app: App): void => {\n app.directive(name, directive)\n }\n\n return directive as SFCWithInstall<T>\n}\n\nexport const withNoopInstall = <T>(component: T) => {\n ;(component as SFCWithInstall<T>).install = NOOP\n withPropsDefaultsSetter(component)\n return component as SFCWithInstall<T>\n}\n"],"names":[],"mappings":";;;AAOO,MAAM,uBAAA,GAA0B,CAAC,MAAA,KAAgB;AACtD,EAAA,MAAM,KAAK,MAAA,CAAO,KAAA;AAClB,EAAA,MAAM,KAAA,GAAQ,OAAA,CAAQ,EAAE,CAAA,GAAI,UAAU,EAAA,CAAG,GAAA,CAAI,CAAC,GAAA,KAAQ,CAAC,GAAA,EAAK,EAAE,CAAC,CAAC,CAAA,GAAI,EAAA;AAEpE,EAAA,MAAA,CAAO,gBAAA,GAAmB,CAAC,QAAA,KAAkC;AAC3D,IAAA,IAAI,CAAC,KAAA,EAAO;AACV,MAAA;AAAA,IACF;AAEA,IAAA,KAAA,MAAW,CAAC,GAAA,EAAK,KAAK,KAAK,MAAA,CAAO,OAAA,CAAQ,QAAQ,CAAA,EAAG;AACnD,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AgC,WAAW,GAAA,CAAI,QAAA;AACjD,IAAA,GAAA,CAAI,MAAA,CAAO,gBAAA,CAAiB,IAAI,CAAA,GAAI,EAAA;AAAA,EACtC,CAAA;AAEA,EAAA,OAAO,EAAA;AACT;AAEO,MAAM,oBAAA,GAAuB,CAClC,SAAA,EACA,IAAA,KACG;AACF,EAAC,SAAA,CAAgC,OAAA,GAAU,CAAC,GAAA,KAAmB;AAC9D,IAAA,GAAA,CAAI,SAAA,CAAU,MAAM,SAAS,CAAA;AAAA,EAC/B,CAAA;AAEA,EAAA,OAAO,SAAA;AACT;AAEO,MAAM,eAAA,GAAkB,CAAI,SAAA,KAAiB;AACjD,EAAC,UAAgC,OAAA,GAAU,IAAA;AAC5C,EAAA,uBAAA,CAAwB,SAAS,CAAA;AACjC,EAAA,OAAO,SAAA;AACT;;;;"}
@@ -1,6 +1,9 @@
1
1
  import type { AppContext, EmitsOptions, ObjectPlugin, SetupContext } from 'vue';
2
- export type SFCWithInstall<T> = T & ObjectPlugin;
2
+ export type SFCWithInstall<T> = T & ObjectPlugin & SFCWithPropsDefaultsSetter<T>;
3
3
  export type SFCInstallWithContext<T> = SFCWithInstall<T> & {
4
4
  _context: AppContext | null;
5
5
  };
6
+ export type SFCWithPropsDefaultsSetter<T> = T extends new (...args: any) => any ? {
7
+ setPropsDefaults: (defaults: Partial<InstanceType<T>['$props']>) => void;
8
+ } : unknown;
6
9
  export type EmitFn<E extends EmitsOptions> = SetupContext<E>['emit'];
package/es/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "0.0.20260213";
1
+ export declare const version = "0.0.20260215";
package/es/version.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const version = "0.0.20260213";
1
+ const version = "0.0.20260215";
2
2
 
3
3
  export { version };
4
4
  //# sourceMappingURL=version.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.20260213'\n"],"names":[],"mappings":"AAAO,MAAM,OAAA,GAAU;;;;"}
1
+ {"version":3,"file":"version.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.20260215'\n"],"names":[],"mappings":"AAAO,MAAM,OAAA,GAAU;;;;"}
@@ -1,4 +1,5 @@
1
1
  import type { ExtractPublicPropTypes } from 'vue';
2
+ import type { ColorFormats } from '@ctrl/tinycolor';
2
3
  import type ColorPicker from './color-picker.vue';
3
4
  import type { AriaProps, UseEmptyValuesProps } from '@element-plus/nightly/es/hooks';
4
5
  import type { ComponentSize } from '@element-plus/nightly/es/constants';
@@ -23,7 +24,7 @@ export interface ColorPickerProps extends UseEmptyValuesProps, Pick<AriaProps, '
23
24
  /**
24
25
  * @description color format of v-model
25
26
  */
26
- colorFormat?: string;
27
+ colorFormat?: ColorFormats;
27
28
  /**
28
29
  * @description whether to disable the ColorPicker
29
30
  */
@@ -76,7 +77,12 @@ export declare const colorPickerProps: {
76
77
  readonly modelValue: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string | null) | ((new (...args: any[]) => string) | (() => string | null))[], unknown, unknown, undefined, boolean>;
77
78
  readonly id: StringConstructor;
78
79
  readonly showAlpha: BooleanConstructor;
79
- readonly colorFormat: StringConstructor;
80
+ readonly colorFormat: {
81
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => "name" | "hex" | "rgb" | "prgb" | "hex3" | "hex4" | "hex6" | "hex8" | "hsl" | "hsv") | (() => ColorFormats) | ((new (...args: any[]) => "name" | "hex" | "rgb" | "prgb" | "hex3" | "hex4" | "hex6" | "hex8" | "hsl" | "hsv") | (() => ColorFormats))[], unknown, unknown>>;
82
+ readonly required: false;
83
+ readonly validator: ((val: unknown) => boolean) | undefined;
84
+ __epPropKey: true;
85
+ };
80
86
  readonly disabled: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
81
87
  readonly clearable: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
82
88
  readonly size: {
@@ -35,7 +35,9 @@ const colorPickerProps = runtime.buildProps({
35
35
  /**
36
36
  * @description color format of v-model
37
37
  */
38
- colorFormat: String,
38
+ colorFormat: {
39
+ type: runtime.definePropType(String)
40
+ },
39
41
  /**
40
42
  * @description whether to disable the ColorPicker
41
43
  */
@@ -1 +1 @@
1
- {"version":3,"file":"color-picker.js","sources":["../../../../../../packages/components/color-picker/src/color-picker.ts"],"sourcesContent":["import { isNil } from 'lodash-unified'\nimport { buildProps, definePropType, isString } from '@element-plus/utils'\nimport {\n useAriaProps,\n useEmptyValuesProps,\n useSizeProp,\n} from '@element-plus/hooks'\nimport { useTooltipContentProps } from '@element-plus/components/tooltip'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type ColorPicker from './color-picker.vue'\nimport type { AriaProps, UseEmptyValuesProps } from '@element-plus/hooks'\nimport type { ComponentSize } from '@element-plus/constants'\nimport type { ElTooltipContentProps } from '@element-plus/components/tooltip'\n\nexport interface ColorPickerProps\n extends UseEmptyValuesProps, Pick<AriaProps, 'ariaLabel'> {\n /**\n * @description when color-picker inactive and persistent is false, the color panel will be destroyed\n */\n persistent?: boolean\n /**\n * @description binding value\n */\n modelValue?: string | null\n /**\n * @description ColorPicker id\n */\n id?: string\n /**\n * @description whether to display the alpha slider\n */\n showAlpha?: boolean\n /**\n * @description color format of v-model\n */\n colorFormat?: string\n /**\n * @description whether to disable the ColorPicker\n */\n disabled?: boolean\n /**\n * @description whether to show clear button\n */\n clearable?: boolean\n /**\n * @description size of ColorPicker\n */\n size?: ComponentSize\n /**\n * @description custom class name for ColorPicker's dropdown\n */\n popperClass?: ElTooltipContentProps['popperClass']\n /**\n * @description custom style for ColorPicker's dropdown\n */\n popperStyle?: ElTooltipContentProps['popperStyle']\n /**\n * @description ColorPicker tabindex\n */\n tabindex?: string | number\n /**\n * @description whether color-picker popper is teleported to the body\n */\n teleported?: ElTooltipContentProps['teleported']\n /**\n * @description which color-picker panel appends to\n */\n appendTo?: ElTooltipContentProps['appendTo']\n /**\n * @description predefined color options\n */\n predefine?: string[]\n /**\n * @description whether to trigger form validation\n */\n validateEvent?: boolean\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `ColorPickerProps` instead.\n */\nexport const colorPickerProps = buildProps({\n /**\n * @description when color-picker inactive and persistent is false, the color panel will be destroyed\n */\n persistent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<string | null>(String),\n default: undefined,\n },\n /**\n * @description ColorPicker id\n */\n id: String,\n /**\n * @description whether to display the alpha slider\n */\n showAlpha: Boolean,\n /**\n * @description color format of v-model\n */\n colorFormat: String,\n /**\n * @description whether to disable the ColorPicker\n */\n disabled: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description whether to show clear button\n */\n clearable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description size of ColorPicker\n */\n size: useSizeProp,\n /**\n * @description custom class name for ColorPicker's dropdown\n */\n popperClass: useTooltipContentProps.popperClass,\n /**\n * @description custom style for ColorPicker's dropdown\n */\n popperStyle: useTooltipContentProps.popperStyle,\n /**\n * @description ColorPicker tabindex\n */\n tabindex: {\n type: [String, Number],\n default: 0,\n },\n /**\n * @description whether color-picker popper is teleported to the body\n */\n teleported: useTooltipContentProps.teleported,\n /**\n * @description which color-picker panel appends to\n */\n appendTo: useTooltipContentProps.appendTo,\n /**\n * @description predefined color options\n */\n predefine: {\n type: definePropType<string[]>(Array),\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n ...useEmptyValuesProps,\n ...useAriaProps(['ariaLabel']),\n} as const)\nexport const colorPickerEmits = {\n [UPDATE_MODEL_EVENT]: (val: string | null) => isString(val) || isNil(val),\n [CHANGE_EVENT]: (val: string | null) => isString(val) || isNil(val),\n activeChange: (val: string | null) => isString(val) || isNil(val),\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n clear: () => true,\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `ColorPickerProps` instead.\n */\nexport type ColorPickerPropsPublic = ExtractPublicPropTypes<\n typeof colorPickerProps\n>\nexport type ColorPickerEmits = typeof colorPickerEmits\nexport type ColorPickerInstance = InstanceType<typeof ColorPicker> & unknown\n\n/**\n * @description default values for ColorPickerProps, used in components that extend ColorPickerProps\n */\nexport const colorPickerPropsDefaults = {\n persistent: true,\n modelValue: undefined,\n disabled: undefined,\n clearable: true,\n popperStyle: undefined,\n tabindex: 0,\n teleported: true,\n validateEvent: true,\n valueOnClear: undefined,\n} as const\n"],"names":["buildProps","definePropType","useSizeProp","useTooltipContentProps","useEmptyValuesProps","useAriaProps","UPDATE_MODEL_EVENT","isString","isNil","CHANGE_EVENT"],"mappings":";;;;;;;;;;;AAmFO,MAAM,mBAAmBA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIzC,UAAA,EAAY;AAAA,IACV,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,UAAA,EAAY;AAAA,IACV,IAAA,EAAMC,uBAA8B,MAAM,CAAA;AAAA,IAC1C,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,EAAA,EAAI,MAAA;AAAA;AAAA;AAAA;AAAA,EAIJ,SAAA,EAAW,OAAA;AAAA;AAAA;AAAA;AAAA,EAIX,WAAA,EAAa,MAAA;AAAA;AAAA;AAAA;AAAA,EAIb,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;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A,EAAY,MAAA;AAAA,EACZ,QAAA,EAAU,MAAA;AAAA,EACV,SAAA,EAAW,IAAA;AAAA,EACX,WAAA,EAAa,MAAA;AAAA,EACb,QAAA,EAAU,CAAA;AAAA,EACV,UAAA,EAAY,IAAA;AAAA,EACZ,aAAA,EAAe,IAAA;AAAA,EACf,YAAA,EAAc;AAChB;;;;;;"}
1
+ {"version":3,"file":"color-picker.js","sources":["../../../../../../packages/components/color-picker/src/color-picker.ts"],"sourcesContent":["import { isNil } from 'lodash-unified'\nimport { buildProps, definePropType, isString } from '@element-plus/utils'\nimport {\n useAriaProps,\n useEmptyValuesProps,\n useSizeProp,\n} from '@element-plus/hooks'\nimport { useTooltipContentProps } from '@element-plus/components/tooltip'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type { ColorFormats } from '@ctrl/tinycolor'\nimport type ColorPicker from './color-picker.vue'\nimport type { AriaProps, UseEmptyValuesProps } from '@element-plus/hooks'\nimport type { ComponentSize } from '@element-plus/constants'\nimport type { ElTooltipContentProps } from '@element-plus/components/tooltip'\n\nexport interface ColorPickerProps\n extends UseEmptyValuesProps, Pick<AriaProps, 'ariaLabel'> {\n /**\n * @description when color-picker inactive and persistent is false, the color panel will be destroyed\n */\n persistent?: boolean\n /**\n * @description binding value\n */\n modelValue?: string | null\n /**\n * @description ColorPicker id\n */\n id?: string\n /**\n * @description whether to display the alpha slider\n */\n showAlpha?: boolean\n /**\n * @description color format of v-model\n */\n colorFormat?: ColorFormats\n /**\n * @description whether to disable the ColorPicker\n */\n disabled?: boolean\n /**\n * @description whether to show clear button\n */\n clearable?: boolean\n /**\n * @description size of ColorPicker\n */\n size?: ComponentSize\n /**\n * @description custom class name for ColorPicker's dropdown\n */\n popperClass?: ElTooltipContentProps['popperClass']\n /**\n * @description custom style for ColorPicker's dropdown\n */\n popperStyle?: ElTooltipContentProps['popperStyle']\n /**\n * @description ColorPicker tabindex\n */\n tabindex?: string | number\n /**\n * @description whether color-picker popper is teleported to the body\n */\n teleported?: ElTooltipContentProps['teleported']\n /**\n * @description which color-picker panel appends to\n */\n appendTo?: ElTooltipContentProps['appendTo']\n /**\n * @description predefined color options\n */\n predefine?: string[]\n /**\n * @description whether to trigger form validation\n */\n validateEvent?: boolean\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `ColorPickerProps` instead.\n */\nexport const colorPickerProps = buildProps({\n /**\n * @description when color-picker inactive and persistent is false, the color panel will be destroyed\n */\n persistent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<string | null>(String),\n default: undefined,\n },\n /**\n * @description ColorPicker id\n */\n id: String,\n /**\n * @description whether to display the alpha slider\n */\n showAlpha: Boolean,\n /**\n * @description color format of v-model\n */\n colorFormat: {\n type: definePropType<ColorFormats>(String),\n },\n /**\n * @description whether to disable the ColorPicker\n */\n disabled: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description whether to show clear button\n */\n clearable: {\n type: Boolean,\n default: true,\n },\n /**\n * @description size of ColorPicker\n */\n size: useSizeProp,\n /**\n * @description custom class name for ColorPicker's dropdown\n */\n popperClass: useTooltipContentProps.popperClass,\n /**\n * @description custom style for ColorPicker's dropdown\n */\n popperStyle: useTooltipContentProps.popperStyle,\n /**\n * @description ColorPicker tabindex\n */\n tabindex: {\n type: [String, Number],\n default: 0,\n },\n /**\n * @description whether color-picker popper is teleported to the body\n */\n teleported: useTooltipContentProps.teleported,\n /**\n * @description which color-picker panel appends to\n */\n appendTo: useTooltipContentProps.appendTo,\n /**\n * @description predefined color options\n */\n predefine: {\n type: definePropType<string[]>(Array),\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n ...useEmptyValuesProps,\n ...useAriaProps(['ariaLabel']),\n} as const)\nexport const colorPickerEmits = {\n [UPDATE_MODEL_EVENT]: (val: string | null) => isString(val) || isNil(val),\n [CHANGE_EVENT]: (val: string | null) => isString(val) || isNil(val),\n activeChange: (val: string | null) => isString(val) || isNil(val),\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n clear: () => true,\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `ColorPickerProps` instead.\n */\nexport type ColorPickerPropsPublic = ExtractPublicPropTypes<\n typeof colorPickerProps\n>\nexport type ColorPickerEmits = typeof colorPickerEmits\nexport type ColorPickerInstance = InstanceType<typeof ColorPicker> & unknown\n\n/**\n * @description default values for ColorPickerProps, used in components that extend ColorPickerProps\n */\nexport const colorPickerPropsDefaults = {\n persistent: true,\n modelValue: undefined,\n disabled: undefined,\n clearable: true,\n popperStyle: undefined,\n tabindex: 0,\n teleported: true,\n validateEvent: true,\n valueOnClear: undefined,\n} as const\n"],"names":["buildProps","definePropType","useSizeProp","useTooltipContentProps","useEmptyValuesProps","useAriaProps","UPDATE_MODEL_EVENT","isString","isNil","CHANGE_EVENT"],"mappings":";;;;;;;;;;;AAoFO,MAAM,mBAAmBA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIzC,UAAA,EAAY;AAAA,IACV,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,UAAA,EAAY;AAAA,IACV,IAAA,EAAMC,uBAA8B,MAAM,CAAA;AAAA,IAC1C,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,EAAA,EAAI,MAAA;AAAA;AAAA;AAAA;AAAA,EAIJ,SAAA,EAAW,OAAA;AAAA;AAAA;AAAA;AAAA,EAIX,WAAA,EAAa;AAAA,IACX,IAAA,EAAMA,uBAA6B,MAAM;AAAA,GAC3C;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,E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M;AACf;AAcO,MAAM,wBAAA,GAA2B;AAAA,EACtC,UAAA,EAAY,IAAA;AAAA,EACZ,UAAA,EAAY,MAAA;AAAA,EACZ,QAAA,EAAU,MAAA;AAAA,EACV,SAAA,EAAW,IAAA;AAAA,EACX,WAAA,EAAa,MAAA;AAAA,EACb,QAAA,EAAU,CAAA;AAAA,EACV,UAAA,EAAY,IAAA;AAAA,EACZ,aAAA,EAAe,IAAA;AAAA,EACf,YAAA,EAAc;AAChB;;;;;;"}
@@ -1,4 +1,5 @@
1
1
  import type { ComputedRef, ExtractPublicPropTypes, InjectionKey } from 'vue';
2
+ import type { ColorFormats } from '@ctrl/tinycolor';
2
3
  import type ColorPickerPanel from './color-picker-panel.vue';
3
4
  import type Color from './utils/color';
4
5
  export interface ColorPickerPanelProps {
@@ -17,7 +18,7 @@ export interface ColorPickerPanelProps {
17
18
  /**
18
19
  * @description color format of v-model
19
20
  */
20
- colorFormat?: string;
21
+ colorFormat?: ColorFormats;
21
22
  /**
22
23
  * @description whether to disable the color picker
23
24
  */
@@ -38,7 +39,12 @@ export declare const colorPickerPanelProps: {
38
39
  readonly modelValue: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => string | null) | ((new (...args: any[]) => string) | (() => string | null))[], unknown, unknown, undefined, boolean>;
39
40
  readonly border: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
40
41
  readonly showAlpha: BooleanConstructor;
41
- readonly colorFormat: StringConstructor;
42
+ readonly colorFormat: {
43
+ readonly type: import("vue").PropType<import("@element-plus/nightly/es/utils").EpPropMergeType<(new (...args: any[]) => "name" | "hex" | "rgb" | "prgb" | "hex3" | "hex4" | "hex6" | "hex8" | "hsl" | "hsv") | (() => ColorFormats) | ((new (...args: any[]) => "name" | "hex" | "rgb" | "prgb" | "hex3" | "hex4" | "hex6" | "hex8" | "hsl" | "hsv") | (() => ColorFormats))[], unknown, unknown>>;
44
+ readonly required: false;
45
+ readonly validator: ((val: unknown) => boolean) | undefined;
46
+ __epPropKey: true;
47
+ };
42
48
  readonly disabled: BooleanConstructor;
43
49
  readonly predefine: {
44
50
  readonly type: import("vue").PropType<string[]>;
@@ -27,7 +27,9 @@ const colorPickerPanelProps = runtime.buildProps({
27
27
  /**
28
28
  * @description color format of v-model
29
29
  */
30
- colorFormat: String,
30
+ colorFormat: {
31
+ type: runtime.definePropType(String)
32
+ },
31
33
  /**
32
34
  * @description whether to disable the color picker
33
35
  */
@@ -1 +1 @@
1
- {"version":3,"file":"color-picker-panel.js","sources":["../../../../../../packages/components/color-picker-panel/src/color-picker-panel.ts"],"sourcesContent":["import { isNil } from 'lodash-unified'\nimport { buildProps, definePropType, isString } from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\n\nimport type { ComputedRef, ExtractPublicPropTypes, InjectionKey } from 'vue'\nimport type ColorPickerPanel from './color-picker-panel.vue'\nimport type Color from './utils/color'\n\nexport interface ColorPickerPanelProps {\n /**\n * @description binding value\n */\n modelValue?: string | null\n /**\n * @description whether the color picker is bordered\n */\n border?: boolean\n /**\n * @description whether to display the alpha slider\n */\n showAlpha?: boolean\n /**\n * @description color format of v-model\n */\n colorFormat?: string\n /**\n * @description whether to disable the color picker\n */\n disabled?: boolean\n /**\n * @description predefined color options\n */\n predefine?: string[]\n /**\n * @description whether to trigger form validation\n */\n validateEvent?: boolean\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `ColorPickerPanelProps` instead.\n */\nexport const colorPickerPanelProps = buildProps({\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<string | null>(String),\n default: undefined,\n },\n /**\n * @description whether the color picker is bordered\n */\n border: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether to display the alpha slider\n */\n showAlpha: Boolean,\n /**\n * @description color format of v-model\n */\n colorFormat: String,\n /**\n * @description whether to disable the color picker\n */\n disabled: Boolean,\n /**\n * @description predefined color options\n */\n predefine: {\n type: definePropType<string[]>(Array),\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n} as const)\nexport const colorPickerPanelEmits = {\n [UPDATE_MODEL_EVENT]: (val: string | null) => isString(val) || isNil(val),\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `ColorPickerPanelProps` instead.\n */\nexport type ColorPickerPanelPropsPublic = ExtractPublicPropTypes<\n typeof colorPickerPanelProps\n>\nexport type ColorPickerPanelEmits = typeof colorPickerPanelEmits\nexport type ColorPickerPanelInstance = InstanceType<typeof ColorPickerPanel> &\n unknown\n\nexport interface ColorPickerPanelContext {\n currentColor: ComputedRef<string>\n}\n\nexport interface CommonColorContext {\n color: Color\n}\n\nexport const ROOT_COMMON_COLOR_INJECTION_KEY: InjectionKey<CommonColorContext> =\n Symbol('colorCommonPickerKey')\nexport const colorPickerPanelContextKey: InjectionKey<ColorPickerPanelContext> =\n Symbol('colorPickerPanelContextKey')\n"],"names":["buildProps","definePropType","UPDATE_MODEL_EVENT","isString","isNil"],"mappings":";;;;;;;AA0CO,MAAM,wBAAwBA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAI9C,UAAA,EAAY;AAAA,IACV,IAAA,EAAMC,uBAA8B,MAAM,CAAA;AAAA,IAC1C,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW,OAAA;AAAA;AAAA;AAAA;AAAA,EAIX,WAAA,EAAa,MAAA;AAAA;AAAA;AAAA;AAAA,EAIb,QAAA,EAAU,OAAA;AAAA;AAAA;AAAA;AAAA,EAIV,SAAA,EAAW;AAAA,IACT,IAAA,EAAMA,uBAAyB,KAAK;AAAA,GACtC;AAAA;AAAA;AAAA;AAAA,EAIA,aAAA,EAAe;AAAA,IACb,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA;AAEb,CAAU;AACH,MAAM,qBAAA,GAAwB;AAAA,EACnC,CAACC,wBAAkB,GAAG,CAAC,QAAuBC,eAAA,CAAS,GAAG,CAAA,IAAKC,mBAAA,CAAM,GAAG;AAC1E;AAoBO,MAAM,+BAAA,0BACJ,sBAAsB;AACxB,MAAM,0BAAA,0BACJ,4BAA4B;;;;;;;"}
1
+ {"version":3,"file":"color-picker-panel.js","sources":["../../../../../../packages/components/color-picker-panel/src/color-picker-panel.ts"],"sourcesContent":["import { isNil } from 'lodash-unified'\nimport { buildProps, definePropType, isString } from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\n\nimport type { ComputedRef, ExtractPublicPropTypes, InjectionKey } from 'vue'\nimport type { ColorFormats } from '@ctrl/tinycolor'\nimport type ColorPickerPanel from './color-picker-panel.vue'\nimport type Color from './utils/color'\n\nexport interface ColorPickerPanelProps {\n /**\n * @description binding value\n */\n modelValue?: string | null\n /**\n * @description whether the color picker is bordered\n */\n border?: boolean\n /**\n * @description whether to display the alpha slider\n */\n showAlpha?: boolean\n /**\n * @description color format of v-model\n */\n colorFormat?: ColorFormats\n /**\n * @description whether to disable the color picker\n */\n disabled?: boolean\n /**\n * @description predefined color options\n */\n predefine?: string[]\n /**\n * @description whether to trigger form validation\n */\n validateEvent?: boolean\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `ColorPickerPanelProps` instead.\n */\nexport const colorPickerPanelProps = buildProps({\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<string | null>(String),\n default: undefined,\n },\n /**\n * @description whether the color picker is bordered\n */\n border: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether to display the alpha slider\n */\n showAlpha: Boolean,\n /**\n * @description color format of v-model\n */\n colorFormat: {\n type: definePropType<ColorFormats>(String),\n },\n /**\n * @description whether to disable the color picker\n */\n disabled: Boolean,\n /**\n * @description predefined color options\n */\n predefine: {\n type: definePropType<string[]>(Array),\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n} as const)\nexport const colorPickerPanelEmits = {\n [UPDATE_MODEL_EVENT]: (val: string | null) => isString(val) || isNil(val),\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `ColorPickerPanelProps` instead.\n */\nexport type ColorPickerPanelPropsPublic = ExtractPublicPropTypes<\n typeof colorPickerPanelProps\n>\nexport type ColorPickerPanelEmits = typeof colorPickerPanelEmits\nexport type ColorPickerPanelInstance = InstanceType<typeof ColorPickerPanel> &\n unknown\n\nexport interface ColorPickerPanelContext {\n currentColor: ComputedRef<string>\n}\n\nexport interface CommonColorContext {\n color: Color\n}\n\nexport const ROOT_COMMON_COLOR_INJECTION_KEY: InjectionKey<CommonColorContext> =\n Symbol('colorCommonPickerKey')\nexport const colorPickerPanelContextKey: InjectionKey<ColorPickerPanelContext> =\n Symbol('colorPickerPanelContextKey')\n"],"names":["buildProps","definePropType","UPDATE_MODEL_EVENT","isString","isNil"],"mappings":";;;;;;;AA2CO,MAAM,wBAAwBA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAI9C,UAAA,EAAY;AAAA,IACV,IAAA,EAAMC,uBAA8B,MAAM,CAAA;AAAA,IAC1C,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW,OAAA;AAAA;AAAA;AAAA;AAAA,EAIX,WAAA,EAAa;AAAA,IACX,IAAA,EAAMA,uBAA6B,MAAM;AAAA,GAC3C;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU,OAAA;AAAA;AAAA;AAAA;AAAA,EAIV,SAAA,EAAW;AAAA,IACT,IAAA,EAAMA,uBAAyB,KAAK;AAAA,GACtC;AAAA;AAAA;AAAA;AAAA,EAIA,aAAA,EAAe;AAAA,IACb,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA;AAEb,CAAU;AACH,MAAM,qBAAA,GAAwB;AAAA,EACnC,CAACC,wBAAkB,GAAG,CAAC,QAAuBC,eAAA,CAAS,GAAG,CAAA,IAAKC,mBAAA,CAAM,GAAG;AAC1E;AAoBO,MAAM,+BAAA,0BACJ,sBAAsB;AACxB,MAAM,0BAAA,0BACJ,4BAA4B;;;;;;;"}
@@ -620,6 +620,7 @@ exports.timeUnits = constants$i.timeUnits;
620
620
  exports.timePickerDefaultProps = props$1.timePickerDefaultProps;
621
621
  exports.timePickerRangeTriggerProps = props$1.timePickerRangeTriggerProps;
622
622
  exports.timePickerRngeTriggerProps = props$1.timePickerRngeTriggerProps;
623
+ exports.DEFAULT_STEP = timeSelect.DEFAULT_STEP;
623
624
  exports.timeSelectProps = timeSelect.timeSelectProps;
624
625
  exports.timelineProps = timeline.timelineProps;
625
626
  exports.timelineItemProps = timelineItem.timelineItemProps;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -215,6 +215,72 @@ export declare const ElSegmented: {
215
215
  item: any;
216
216
  }) => any;
217
217
  };
218
- }) & import("vue").ObjectPlugin & Record<string, any>;
218
+ }) & import("vue").ObjectPlugin & {
219
+ setPropsDefaults: (defaults: Partial<Partial<{
220
+ disabled: boolean;
221
+ direction: "vertical" | "horizontal";
222
+ props: import("./src/segmented").Props;
223
+ modelValue: string | number | boolean;
224
+ options: import("./src/types.js").Option[];
225
+ validateEvent: boolean;
226
+ }> & Omit<{
227
+ readonly direction: "vertical" | "horizontal";
228
+ readonly props: import("./src/segmented").Props;
229
+ readonly options: import("./src/types.js").Option[];
230
+ readonly validateEvent: boolean;
231
+ readonly disabled?: boolean | undefined;
232
+ readonly block?: boolean | undefined;
233
+ readonly size?: import("element-plus").ComponentSize | undefined;
234
+ readonly id?: string | undefined;
235
+ readonly name?: string | undefined;
236
+ readonly modelValue?: (string | number | boolean) | undefined;
237
+ readonly ariaLabel?: string | undefined;
238
+ "onUpdate:modelValue"?: ((val: any) => any) | undefined;
239
+ onChange?: ((val: any) => any) | undefined;
240
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
241
+ disabled: {
242
+ type: import("vue").PropType<boolean>;
243
+ default: undefined;
244
+ };
245
+ direction: {
246
+ type: import("vue").PropType<"horizontal" | "vertical">;
247
+ default: string;
248
+ };
249
+ block: {
250
+ type: import("vue").PropType<boolean>;
251
+ };
252
+ size: {
253
+ type: import("vue").PropType<"" | "small" | "default" | "large">;
254
+ };
255
+ id: {
256
+ type: import("vue").PropType<string>;
257
+ };
258
+ props: {
259
+ type: import("vue").PropType<import("./src/segmented").Props>;
260
+ default: () => Required<import("./src/segmented").Props>;
261
+ };
262
+ name: {
263
+ type: import("vue").PropType<string>;
264
+ };
265
+ modelValue: {
266
+ type: import("vue").PropType<string | number | boolean>;
267
+ default: undefined;
268
+ };
269
+ options: {
270
+ type: import("vue").PropType<import("./src/types.js").Option[]>;
271
+ default: () => never[];
272
+ };
273
+ ariaLabel: {
274
+ type: import("vue").PropType<string>;
275
+ };
276
+ validateEvent: {
277
+ type: import("vue").PropType<boolean>;
278
+ default: boolean;
279
+ };
280
+ }>> & {
281
+ "onUpdate:modelValue"?: ((val: any) => any) | undefined;
282
+ onChange?: ((val: any) => any) | undefined;
283
+ }, "disabled" | "direction" | "props" | "modelValue" | "options" | "validateEvent">>) => void;
284
+ } & Record<string, any>;
219
285
  export default ElSegmented;
220
286
  export * from './src/segmented';
@@ -3,6 +3,24 @@ import type { CSSProperties, ExtractPropTypes, ExtractPublicPropTypes } from 'vu
3
3
  import type Select from './select.vue';
4
4
  import type { Options, Placement, PopperEffect } from '@element-plus/nightly/es/components/popper';
5
5
  import type { Props } from '@element-plus/nightly/es/components/select-v2/src/useProps';
6
+ /**
7
+ * @description Tag tooltip configuration interface
8
+ */
9
+ export interface TagTooltipProps {
10
+ appendTo?: string | HTMLElement;
11
+ placement?: Placement;
12
+ fallbackPlacements?: Placement[];
13
+ effect?: PopperEffect;
14
+ popperClass?: string;
15
+ popperStyle?: string | CSSProperties;
16
+ transition?: string;
17
+ teleported?: boolean;
18
+ popperOptions?: Partial<Options>;
19
+ showAfter?: number;
20
+ hideAfter?: number;
21
+ autoClose?: number;
22
+ offset?: number;
23
+ }
6
24
  export declare const selectProps: {
7
25
  ariaLabel: StringConstructor;
8
26
  emptyValues: ArrayConstructor;
@@ -62,6 +80,7 @@ export declare const selectProps: {
62
80
  valueKey: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
63
81
  collapseTags: BooleanConstructor;
64
82
  collapseTagsTooltip: BooleanConstructor;
83
+ tagTooltip: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => TagTooltipProps) | (() => TagTooltipProps) | ((new (...args: any[]) => TagTooltipProps) | (() => TagTooltipProps))[], unknown, unknown, () => {}, boolean>;
65
84
  maxCollapseTags: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
66
85
  teleported: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
67
86
  persistent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;