@element-plus/nightly 0.0.20241111 → 0.0.20241112

Sign up to get free protection for your applications and to get access to all the features.
Files changed (308) hide show
  1. package/dist/index.full.js +17 -5
  2. package/dist/index.full.min.js +15 -15
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +15 -15
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +17 -5
  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/hr.js +1 -1
  92. package/dist/locale/hr.min.js +1 -1
  93. package/dist/locale/hr.min.mjs +1 -1
  94. package/dist/locale/hr.mjs +1 -1
  95. package/dist/locale/hu.js +1 -1
  96. package/dist/locale/hu.min.js +1 -1
  97. package/dist/locale/hu.min.mjs +1 -1
  98. package/dist/locale/hu.mjs +1 -1
  99. package/dist/locale/hy-am.js +1 -1
  100. package/dist/locale/hy-am.min.js +1 -1
  101. package/dist/locale/hy-am.min.mjs +1 -1
  102. package/dist/locale/hy-am.mjs +1 -1
  103. package/dist/locale/id.js +1 -1
  104. package/dist/locale/id.min.js +1 -1
  105. package/dist/locale/id.min.mjs +1 -1
  106. package/dist/locale/id.mjs +1 -1
  107. package/dist/locale/it.js +1 -1
  108. package/dist/locale/it.min.js +1 -1
  109. package/dist/locale/it.min.mjs +1 -1
  110. package/dist/locale/it.mjs +1 -1
  111. package/dist/locale/ja.js +1 -1
  112. package/dist/locale/ja.min.js +1 -1
  113. package/dist/locale/ja.min.mjs +1 -1
  114. package/dist/locale/ja.mjs +1 -1
  115. package/dist/locale/kk.js +1 -1
  116. package/dist/locale/kk.min.js +1 -1
  117. package/dist/locale/kk.min.mjs +1 -1
  118. package/dist/locale/kk.mjs +1 -1
  119. package/dist/locale/km.js +1 -1
  120. package/dist/locale/km.min.js +1 -1
  121. package/dist/locale/km.min.mjs +1 -1
  122. package/dist/locale/km.mjs +1 -1
  123. package/dist/locale/ko.js +1 -1
  124. package/dist/locale/ko.min.js +1 -1
  125. package/dist/locale/ko.min.mjs +1 -1
  126. package/dist/locale/ko.mjs +1 -1
  127. package/dist/locale/ku.js +1 -1
  128. package/dist/locale/ku.min.js +1 -1
  129. package/dist/locale/ku.min.mjs +1 -1
  130. package/dist/locale/ku.mjs +1 -1
  131. package/dist/locale/ky.js +1 -1
  132. package/dist/locale/ky.min.js +1 -1
  133. package/dist/locale/ky.min.mjs +1 -1
  134. package/dist/locale/ky.mjs +1 -1
  135. package/dist/locale/lt.js +1 -1
  136. package/dist/locale/lt.min.js +1 -1
  137. package/dist/locale/lt.min.mjs +1 -1
  138. package/dist/locale/lt.mjs +1 -1
  139. package/dist/locale/lv.js +1 -1
  140. package/dist/locale/lv.min.js +1 -1
  141. package/dist/locale/lv.min.mjs +1 -1
  142. package/dist/locale/lv.mjs +1 -1
  143. package/dist/locale/mg.js +1 -1
  144. package/dist/locale/mg.min.js +1 -1
  145. package/dist/locale/mg.min.mjs +1 -1
  146. package/dist/locale/mg.mjs +1 -1
  147. package/dist/locale/mn.js +1 -1
  148. package/dist/locale/mn.min.js +1 -1
  149. package/dist/locale/mn.min.mjs +1 -1
  150. package/dist/locale/mn.mjs +1 -1
  151. package/dist/locale/my.js +1 -1
  152. package/dist/locale/my.min.js +1 -1
  153. package/dist/locale/my.min.mjs +1 -1
  154. package/dist/locale/my.mjs +1 -1
  155. package/dist/locale/nb-no.js +1 -1
  156. package/dist/locale/nb-no.min.js +1 -1
  157. package/dist/locale/nb-no.min.mjs +1 -1
  158. package/dist/locale/nb-no.mjs +1 -1
  159. package/dist/locale/nl.js +1 -1
  160. package/dist/locale/nl.min.js +1 -1
  161. package/dist/locale/nl.min.mjs +1 -1
  162. package/dist/locale/nl.mjs +1 -1
  163. package/dist/locale/pa.js +1 -1
  164. package/dist/locale/pa.min.js +1 -1
  165. package/dist/locale/pa.min.mjs +1 -1
  166. package/dist/locale/pa.mjs +1 -1
  167. package/dist/locale/pl.js +1 -1
  168. package/dist/locale/pl.min.js +1 -1
  169. package/dist/locale/pl.min.mjs +1 -1
  170. package/dist/locale/pl.mjs +1 -1
  171. package/dist/locale/pt-br.js +1 -1
  172. package/dist/locale/pt-br.min.js +1 -1
  173. package/dist/locale/pt-br.min.mjs +1 -1
  174. package/dist/locale/pt-br.mjs +1 -1
  175. package/dist/locale/pt.js +1 -1
  176. package/dist/locale/pt.min.js +1 -1
  177. package/dist/locale/pt.min.mjs +1 -1
  178. package/dist/locale/pt.mjs +1 -1
  179. package/dist/locale/ro.js +1 -1
  180. package/dist/locale/ro.min.js +1 -1
  181. package/dist/locale/ro.min.mjs +1 -1
  182. package/dist/locale/ro.mjs +1 -1
  183. package/dist/locale/ru.js +1 -1
  184. package/dist/locale/ru.min.js +1 -1
  185. package/dist/locale/ru.min.mjs +1 -1
  186. package/dist/locale/ru.mjs +1 -1
  187. package/dist/locale/sk.js +1 -1
  188. package/dist/locale/sk.min.js +1 -1
  189. package/dist/locale/sk.min.mjs +1 -1
  190. package/dist/locale/sk.mjs +1 -1
  191. package/dist/locale/sl.js +1 -1
  192. package/dist/locale/sl.min.js +1 -1
  193. package/dist/locale/sl.min.mjs +1 -1
  194. package/dist/locale/sl.mjs +1 -1
  195. package/dist/locale/sr.js +1 -1
  196. package/dist/locale/sr.min.js +1 -1
  197. package/dist/locale/sr.min.mjs +1 -1
  198. package/dist/locale/sr.mjs +1 -1
  199. package/dist/locale/sv.js +1 -1
  200. package/dist/locale/sv.min.js +1 -1
  201. package/dist/locale/sv.min.mjs +1 -1
  202. package/dist/locale/sv.mjs +1 -1
  203. package/dist/locale/sw.js +1 -1
  204. package/dist/locale/sw.min.js +1 -1
  205. package/dist/locale/sw.min.mjs +1 -1
  206. package/dist/locale/sw.mjs +1 -1
  207. package/dist/locale/ta.js +1 -1
  208. package/dist/locale/ta.min.js +1 -1
  209. package/dist/locale/ta.min.mjs +1 -1
  210. package/dist/locale/ta.mjs +1 -1
  211. package/dist/locale/th.js +1 -1
  212. package/dist/locale/th.min.js +1 -1
  213. package/dist/locale/th.min.mjs +1 -1
  214. package/dist/locale/th.mjs +1 -1
  215. package/dist/locale/tk.js +1 -1
  216. package/dist/locale/tk.min.js +1 -1
  217. package/dist/locale/tk.min.mjs +1 -1
  218. package/dist/locale/tk.mjs +1 -1
  219. package/dist/locale/tr.js +1 -1
  220. package/dist/locale/tr.min.js +1 -1
  221. package/dist/locale/tr.min.mjs +1 -1
  222. package/dist/locale/tr.mjs +1 -1
  223. package/dist/locale/ug-cn.js +1 -1
  224. package/dist/locale/ug-cn.min.js +1 -1
  225. package/dist/locale/ug-cn.min.mjs +1 -1
  226. package/dist/locale/ug-cn.mjs +1 -1
  227. package/dist/locale/uk.js +1 -1
  228. package/dist/locale/uk.min.js +1 -1
  229. package/dist/locale/uk.min.mjs +1 -1
  230. package/dist/locale/uk.mjs +1 -1
  231. package/dist/locale/uz-uz.js +1 -1
  232. package/dist/locale/uz-uz.min.js +1 -1
  233. package/dist/locale/uz-uz.min.mjs +1 -1
  234. package/dist/locale/uz-uz.mjs +1 -1
  235. package/dist/locale/vi.js +1 -1
  236. package/dist/locale/vi.min.js +1 -1
  237. package/dist/locale/vi.min.mjs +1 -1
  238. package/dist/locale/vi.mjs +1 -1
  239. package/dist/locale/zh-cn.js +1 -1
  240. package/dist/locale/zh-cn.min.js +1 -1
  241. package/dist/locale/zh-cn.min.mjs +1 -1
  242. package/dist/locale/zh-cn.mjs +1 -1
  243. package/dist/locale/zh-tw.js +1 -1
  244. package/dist/locale/zh-tw.min.js +1 -1
  245. package/dist/locale/zh-tw.min.mjs +1 -1
  246. package/dist/locale/zh-tw.mjs +1 -1
  247. package/es/components/dropdown/src/dropdown-item-impl.mjs +1 -1
  248. package/es/components/dropdown/src/dropdown-menu.mjs +1 -1
  249. package/es/components/dropdown/src/dropdown2.mjs +1 -1
  250. package/es/components/roving-focus-group/index.mjs +3 -3
  251. package/es/components/roving-focus-group/src/roving-focus-group-impl.mjs +1 -1
  252. package/es/components/roving-focus-group/src/roving-focus-group.mjs +29 -27
  253. package/es/components/roving-focus-group/src/roving-focus-group.mjs.map +1 -1
  254. package/es/components/roving-focus-group/src/roving-focus-group2.mjs +27 -29
  255. package/es/components/roving-focus-group/src/roving-focus-group2.mjs.map +1 -1
  256. package/es/components/roving-focus-group/src/roving-focus-item.mjs +1 -1
  257. package/es/components/select/src/select.vue.d.ts +1 -0
  258. package/es/components/select/src/select2.mjs +1 -1
  259. package/es/components/select/src/select2.mjs.map +1 -1
  260. package/es/components/select/src/useSelect.d.ts +1 -0
  261. package/es/components/select/src/useSelect.mjs +8 -1
  262. package/es/components/select/src/useSelect.mjs.map +1 -1
  263. package/es/components/select-v2/src/select.mjs +1 -1
  264. package/es/components/select-v2/src/select.mjs.map +1 -1
  265. package/es/components/select-v2/src/select.vue.d.ts +1 -0
  266. package/es/components/select-v2/src/useSelect.d.ts +1 -0
  267. package/es/components/select-v2/src/useSelect.mjs +5 -0
  268. package/es/components/select-v2/src/useSelect.mjs.map +1 -1
  269. package/es/components/slider/src/button.mjs +91 -21
  270. package/es/components/slider/src/button.mjs.map +1 -1
  271. package/es/components/slider/src/button2.mjs +21 -91
  272. package/es/components/slider/src/button2.mjs.map +1 -1
  273. package/es/components/slider/src/slider2.mjs +1 -1
  274. package/es/version.d.ts +1 -1
  275. package/es/version.mjs +1 -1
  276. package/es/version.mjs.map +1 -1
  277. package/lib/components/dropdown/src/dropdown-item-impl.js +1 -1
  278. package/lib/components/dropdown/src/dropdown-menu.js +1 -1
  279. package/lib/components/dropdown/src/dropdown2.js +1 -1
  280. package/lib/components/roving-focus-group/index.js +2 -2
  281. package/lib/components/roving-focus-group/src/roving-focus-group-impl.js +1 -1
  282. package/lib/components/roving-focus-group/src/roving-focus-group.js +33 -27
  283. package/lib/components/roving-focus-group/src/roving-focus-group.js.map +1 -1
  284. package/lib/components/roving-focus-group/src/roving-focus-group2.js +27 -33
  285. package/lib/components/roving-focus-group/src/roving-focus-group2.js.map +1 -1
  286. package/lib/components/roving-focus-group/src/roving-focus-item.js +1 -1
  287. package/lib/components/select/src/select.vue.d.ts +1 -0
  288. package/lib/components/select/src/select2.js +1 -1
  289. package/lib/components/select/src/select2.js.map +1 -1
  290. package/lib/components/select/src/useSelect.d.ts +1 -0
  291. package/lib/components/select/src/useSelect.js +8 -1
  292. package/lib/components/select/src/useSelect.js.map +1 -1
  293. package/lib/components/select-v2/src/select.js +1 -1
  294. package/lib/components/select-v2/src/select.js.map +1 -1
  295. package/lib/components/select-v2/src/select.vue.d.ts +1 -0
  296. package/lib/components/select-v2/src/useSelect.d.ts +1 -0
  297. package/lib/components/select-v2/src/useSelect.js +5 -0
  298. package/lib/components/select-v2/src/useSelect.js.map +1 -1
  299. package/lib/components/slider/src/button.js +91 -22
  300. package/lib/components/slider/src/button.js.map +1 -1
  301. package/lib/components/slider/src/button2.js +22 -91
  302. package/lib/components/slider/src/button2.js.map +1 -1
  303. package/lib/components/slider/src/slider2.js +1 -1
  304. package/lib/version.d.ts +1 -1
  305. package/lib/version.js +1 -1
  306. package/lib/version.js.map +1 -1
  307. package/package.json +2 -2
  308. package/web-types.json +1 -1
@@ -1,4 +1,4 @@
1
- /*! Element Plus v0.0.20241111 */
1
+ /*! Element Plus v0.0.20241112 */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
@@ -11568,7 +11568,7 @@
11568
11568
 
11569
11569
  const ElConfigProvider = withInstall(ConfigProvider);
11570
11570
 
11571
- const version$1 = "0.0.20241111";
11571
+ const version$1 = "0.0.20241112";
11572
11572
 
11573
11573
  const makeInstaller = (components = []) => {
11574
11574
  const install = (app, options) => {
@@ -35035,6 +35035,10 @@
35035
35035
  const hasModelValue = vue.computed(() => {
35036
35036
  return isArray$1(props.modelValue) ? props.modelValue.length > 0 : !isEmptyValue(props.modelValue);
35037
35037
  });
35038
+ const needStatusIcon = vue.computed(() => {
35039
+ var _a;
35040
+ return (_a = form == null ? void 0 : form.statusIcon) != null ? _a : false;
35041
+ });
35038
35042
  const showClose = vue.computed(() => {
35039
35043
  return props.clearable && !selectDisabled.value && states.inputHovering && hasModelValue.value;
35040
35044
  });
@@ -35355,7 +35359,9 @@
35355
35359
  });
35356
35360
  };
35357
35361
  const getValueIndex = (arr = [], option) => {
35358
- if (!isObject$1(option == null ? void 0 : option.value))
35362
+ if (isUndefined(option))
35363
+ return -1;
35364
+ if (!isObject$1(option.value))
35359
35365
  return arr.indexOf(option.value);
35360
35366
  return arr.findIndex((item) => {
35361
35367
  return isEqual$1(get(item, props.valueKey), getValueKey(option));
@@ -35544,6 +35550,7 @@
35544
35550
  shouldShowPlaceholder,
35545
35551
  currentPlaceholder,
35546
35552
  mouseEnterEventName,
35553
+ needStatusIcon,
35547
35554
  showClose,
35548
35555
  iconComponent,
35549
35556
  iconReverse,
@@ -36054,7 +36061,7 @@
36054
36061
  ]),
36055
36062
  _: 1
36056
36063
  }, 8, ["class", "onClick"])) : vue.createCommentVNode("v-if", true),
36057
- _ctx.validateState && _ctx.validateIcon ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
36064
+ _ctx.validateState && _ctx.validateIcon && _ctx.needStatusIcon ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
36058
36065
  key: 2,
36059
36066
  class: vue.normalizeClass([_ctx.nsInput.e("icon"), _ctx.nsInput.e("validateIcon")])
36060
36067
  }, {
@@ -40327,6 +40334,10 @@
40327
40334
  const filteredOptions = vue.ref([]);
40328
40335
  const expanded = vue.ref(false);
40329
40336
  const selectDisabled = vue.computed(() => props.disabled || (elForm == null ? void 0 : elForm.disabled));
40337
+ const needStatusIcon = vue.computed(() => {
40338
+ var _a;
40339
+ return (_a = elForm == null ? void 0 : elForm.statusIcon) != null ? _a : false;
40340
+ });
40330
40341
  const popupHeight = vue.computed(() => {
40331
40342
  const totalHeight = filteredOptions.value.length * props.itemHeight;
40332
40343
  return totalHeight > props.height ? props.height : totalHeight;
@@ -40899,6 +40910,7 @@
40899
40910
  shouldShowPlaceholder,
40900
40911
  selectDisabled,
40901
40912
  selectSize,
40913
+ needStatusIcon,
40902
40914
  showClearBtn,
40903
40915
  states,
40904
40916
  isFocused,
@@ -41260,7 +41272,7 @@
41260
41272
  ]),
41261
41273
  _: 1
41262
41274
  }, 8, ["class", "onClick"])) : vue.createCommentVNode("v-if", true),
41263
- _ctx.validateState && _ctx.validateIcon ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
41275
+ _ctx.validateState && _ctx.validateIcon && _ctx.needStatusIcon ? (vue.openBlock(), vue.createBlock(_component_el_icon, {
41264
41276
  key: 2,
41265
41277
  class: vue.normalizeClass([_ctx.nsInput.e("icon"), _ctx.nsInput.e("validateIcon")])
41266
41278
  }, {