element-sim 1.1.36 → 1.1.37

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 (452) hide show
  1. package/CHANGELOG.en-US.md +2085 -0
  2. package/CHANGELOG.es.md +2093 -0
  3. package/CHANGELOG.fr-FR.md +2085 -0
  4. package/CHANGELOG.zh-CN.md +135 -0
  5. package/lib/alert.js +420 -0
  6. package/lib/aside.js +277 -0
  7. package/lib/autocomplete.js +952 -0
  8. package/lib/avatar.js +363 -0
  9. package/lib/backtop.js +404 -0
  10. package/lib/badge.js +334 -0
  11. package/lib/breadcrumb-item.js +322 -0
  12. package/lib/breadcrumb.js +293 -0
  13. package/lib/button-group.js +262 -0
  14. package/lib/button.js +357 -0
  15. package/lib/calendar.js +933 -0
  16. package/lib/card.js +297 -0
  17. package/lib/carousel-item.js +434 -0
  18. package/lib/carousel.js +707 -0
  19. package/lib/cascader-panel.js +1558 -0
  20. package/lib/cascader.js +1439 -0
  21. package/lib/checkbox-button.js +583 -0
  22. package/lib/checkbox-group.js +313 -0
  23. package/lib/checkbox.js +627 -0
  24. package/lib/col.js +177 -0
  25. package/lib/collapse-item.js +497 -0
  26. package/lib/collapse.js +329 -0
  27. package/lib/color-picker.js +1943 -0
  28. package/lib/container.js +288 -0
  29. package/lib/date-picker.js +6335 -0
  30. package/lib/descriptions-item.js +140 -0
  31. package/lib/descriptions.js +457 -0
  32. package/lib/dialog.js +598 -0
  33. package/lib/directives/mousewheel.js +26 -0
  34. package/lib/directives/repeat-click.js +33 -0
  35. package/lib/divider.js +313 -0
  36. package/lib/drawer.js +603 -0
  37. package/lib/dropdown-item.js +316 -0
  38. package/lib/dropdown-menu.js +351 -0
  39. package/lib/dropdown.js +643 -0
  40. package/lib/element-sim.common.js +43542 -0
  41. package/lib/empty.js +730 -0
  42. package/lib/footer.js +277 -0
  43. package/lib/form-item.js +826 -0
  44. package/lib/form.js +466 -0
  45. package/lib/header.js +277 -0
  46. package/lib/icon.js +265 -0
  47. package/lib/image.js +1138 -0
  48. package/lib/index.js +1 -1
  49. package/lib/infinite-scroll.js +301 -0
  50. package/lib/input-number.js +752 -0
  51. package/lib/input.js +1009 -0
  52. package/lib/link.js +332 -0
  53. package/lib/loading.js +631 -0
  54. package/lib/locale/format.js +56 -0
  55. package/lib/locale/index.js +63 -0
  56. package/lib/locale/lang/af-ZA.js +126 -0
  57. package/lib/locale/lang/ar.js +125 -0
  58. package/lib/locale/lang/az.js +126 -0
  59. package/lib/locale/lang/bg.js +126 -0
  60. package/lib/locale/lang/bn.js +126 -0
  61. package/lib/locale/lang/ca.js +125 -0
  62. package/lib/locale/lang/cs-CZ.js +128 -0
  63. package/lib/locale/lang/da.js +125 -0
  64. package/lib/locale/lang/de.js +127 -0
  65. package/lib/locale/lang/ee.js +126 -0
  66. package/lib/locale/lang/el.js +126 -0
  67. package/lib/locale/lang/en.js +126 -0
  68. package/lib/locale/lang/eo.js +126 -0
  69. package/lib/locale/lang/es.js +125 -0
  70. package/lib/locale/lang/eu.js +126 -0
  71. package/lib/locale/lang/fa.js +126 -0
  72. package/lib/locale/lang/fi.js +126 -0
  73. package/lib/locale/lang/fr.js +125 -0
  74. package/lib/locale/lang/he.js +126 -0
  75. package/lib/locale/lang/hr.js +126 -0
  76. package/lib/locale/lang/hu.js +125 -0
  77. package/lib/locale/lang/hy-AM.js +126 -0
  78. package/lib/locale/lang/id.js +126 -0
  79. package/lib/locale/lang/is.js +126 -0
  80. package/lib/locale/lang/it.js +125 -0
  81. package/lib/locale/lang/ja.js +126 -0
  82. package/lib/locale/lang/kg.js +126 -0
  83. package/lib/locale/lang/km.js +126 -0
  84. package/lib/locale/lang/ko.js +126 -0
  85. package/lib/locale/lang/ku.js +126 -0
  86. package/lib/locale/lang/kz.js +126 -0
  87. package/lib/locale/lang/lo-LA.js +126 -0
  88. package/lib/locale/lang/lt.js +126 -0
  89. package/lib/locale/lang/lv.js +126 -0
  90. package/lib/locale/lang/mn.js +126 -0
  91. package/lib/locale/lang/ms.js +125 -0
  92. package/lib/locale/lang/nb-NO.js +125 -0
  93. package/lib/locale/lang/nl.js +126 -0
  94. package/lib/locale/lang/pl.js +126 -0
  95. package/lib/locale/lang/pt-br.js +126 -0
  96. package/lib/locale/lang/pt.js +126 -0
  97. package/lib/locale/lang/ro.js +126 -0
  98. package/lib/locale/lang/ru-RU.js +126 -0
  99. package/lib/locale/lang/si.js +126 -0
  100. package/lib/locale/lang/sk.js +128 -0
  101. package/lib/locale/lang/sl.js +126 -0
  102. package/lib/locale/lang/sr-Latn.js +126 -0
  103. package/lib/locale/lang/sr.js +126 -0
  104. package/lib/locale/lang/sv-SE.js +126 -0
  105. package/lib/locale/lang/sw.js +126 -0
  106. package/lib/locale/lang/ta.js +125 -0
  107. package/lib/locale/lang/th.js +126 -0
  108. package/lib/locale/lang/tk.js +126 -0
  109. package/lib/locale/lang/tr-TR.js +126 -0
  110. package/lib/locale/lang/ua.js +126 -0
  111. package/lib/locale/lang/ug-CN.js +126 -0
  112. package/lib/locale/lang/uz-UZ.js +126 -0
  113. package/lib/locale/lang/vi.js +126 -0
  114. package/lib/locale/lang/zh-CN.js +126 -0
  115. package/lib/locale/lang/zh-TW.js +126 -0
  116. package/lib/main.js +264 -0
  117. package/lib/menu-item-group.js +308 -0
  118. package/lib/menu-item.js +491 -0
  119. package/lib/menu.js +865 -0
  120. package/lib/message-box.js +1192 -0
  121. package/lib/message.js +548 -0
  122. package/lib/mixins/emitter.js +36 -0
  123. package/lib/mixins/focus.js +15 -0
  124. package/lib/mixins/locale.js +17 -0
  125. package/lib/mixins/migrating.js +69 -0
  126. package/lib/notification.js +615 -0
  127. package/lib/option-group.js +344 -0
  128. package/lib/option.js +474 -0
  129. package/lib/page-header.js +319 -0
  130. package/lib/pagination.js +950 -0
  131. package/lib/popconfirm.js +457 -0
  132. package/lib/popover.js +617 -0
  133. package/lib/progress.js +595 -0
  134. package/lib/radio-button.js +463 -0
  135. package/lib/radio-group.js +391 -0
  136. package/lib/radio.js +495 -0
  137. package/lib/rate.js +670 -0
  138. package/lib/result.js +578 -0
  139. package/lib/row.js +149 -0
  140. package/lib/scrollbar.js +426 -0
  141. package/lib/select.js +2108 -0
  142. package/lib/skeleton-item.js +342 -0
  143. package/lib/skeleton.js +372 -0
  144. package/lib/slider.js +1199 -0
  145. package/lib/spinner.js +301 -0
  146. package/lib/statistic.js +533 -0
  147. package/lib/step.js +522 -0
  148. package/lib/steps.js +342 -0
  149. package/lib/submenu.js +701 -0
  150. package/lib/switch.js +554 -0
  151. package/lib/tab-pane.js +332 -0
  152. package/lib/table-column.js +952 -0
  153. package/lib/table.js +5021 -0
  154. package/lib/tabs.js +920 -0
  155. package/lib/tag.js +304 -0
  156. package/lib/theme-chalk/alert.css +1 -0
  157. package/lib/theme-chalk/aside.css +1 -0
  158. package/lib/theme-chalk/autocomplete.css +1 -0
  159. package/lib/theme-chalk/avatar.css +1 -0
  160. package/lib/theme-chalk/backtop.css +1 -0
  161. package/lib/theme-chalk/badge.css +1 -0
  162. package/lib/theme-chalk/base.css +1 -0
  163. package/lib/theme-chalk/breadcrumb-item.css +0 -0
  164. package/lib/theme-chalk/breadcrumb.css +1 -0
  165. package/lib/theme-chalk/button-group.css +0 -0
  166. package/lib/theme-chalk/button.css +1 -0
  167. package/lib/theme-chalk/calendar.css +1 -0
  168. package/lib/theme-chalk/card.css +1 -0
  169. package/lib/theme-chalk/carousel-item.css +1 -0
  170. package/lib/theme-chalk/carousel.css +1 -0
  171. package/lib/theme-chalk/cascader-panel.css +1 -0
  172. package/lib/theme-chalk/cascader.css +1 -0
  173. package/lib/theme-chalk/checkbox-button.css +0 -0
  174. package/lib/theme-chalk/checkbox-group.css +0 -0
  175. package/lib/theme-chalk/checkbox.css +1 -0
  176. package/lib/theme-chalk/col.css +1 -0
  177. package/lib/theme-chalk/collapse-item.css +0 -0
  178. package/lib/theme-chalk/collapse.css +1 -0
  179. package/lib/theme-chalk/color-picker.css +1 -0
  180. package/lib/theme-chalk/container.css +1 -0
  181. package/lib/theme-chalk/date-picker.css +1 -0
  182. package/lib/theme-chalk/descriptions-item.css +1 -0
  183. package/lib/theme-chalk/descriptions.css +1 -0
  184. package/lib/theme-chalk/dialog.css +1 -0
  185. package/lib/theme-chalk/display.css +1 -0
  186. package/lib/theme-chalk/divider.css +1 -0
  187. package/lib/theme-chalk/drawer.css +1 -0
  188. package/lib/theme-chalk/dropdown-item.css +0 -0
  189. package/lib/theme-chalk/dropdown-menu.css +0 -0
  190. package/lib/theme-chalk/dropdown.css +1 -0
  191. package/lib/theme-chalk/empty.css +1 -0
  192. package/lib/theme-chalk/fonts/element-icons.ttf +0 -0
  193. package/lib/theme-chalk/fonts/element-icons.woff +0 -0
  194. package/lib/theme-chalk/fonts/icon-sim.ttf +0 -0
  195. package/lib/theme-chalk/fonts/icon-sim.woff +0 -0
  196. package/lib/theme-chalk/fonts/icon-sim.woff2 +0 -0
  197. package/lib/theme-chalk/footer.css +1 -0
  198. package/lib/theme-chalk/form-item.css +0 -0
  199. package/lib/theme-chalk/form.css +1 -0
  200. package/lib/theme-chalk/header.css +1 -0
  201. package/lib/theme-chalk/icon.css +1 -0
  202. package/lib/theme-chalk/image.css +1 -0
  203. package/lib/theme-chalk/index.css +1 -0
  204. package/lib/theme-chalk/infinite-scroll.css +0 -0
  205. package/lib/theme-chalk/infiniteScroll.css +0 -0
  206. package/lib/theme-chalk/input-number.css +1 -0
  207. package/lib/theme-chalk/input.css +1 -0
  208. package/lib/theme-chalk/link.css +1 -0
  209. package/lib/theme-chalk/loading.css +1 -0
  210. package/lib/theme-chalk/main.css +1 -0
  211. package/lib/theme-chalk/menu-item-group.css +0 -0
  212. package/lib/theme-chalk/menu-item.css +0 -0
  213. package/lib/theme-chalk/menu.css +1 -0
  214. package/lib/theme-chalk/message-box.css +1 -0
  215. package/lib/theme-chalk/message.css +1 -0
  216. package/lib/theme-chalk/notification.css +1 -0
  217. package/lib/theme-chalk/option-group.css +1 -0
  218. package/lib/theme-chalk/option.css +1 -0
  219. package/lib/theme-chalk/page-header.css +1 -0
  220. package/lib/theme-chalk/pagination.css +1 -0
  221. package/lib/theme-chalk/popconfirm.css +1 -0
  222. package/lib/theme-chalk/popover.css +1 -0
  223. package/lib/theme-chalk/popper.css +1 -0
  224. package/lib/theme-chalk/progress.css +1 -0
  225. package/lib/theme-chalk/radio-button.css +1 -0
  226. package/lib/theme-chalk/radio-group.css +1 -0
  227. package/lib/theme-chalk/radio.css +1 -0
  228. package/lib/theme-chalk/rate.css +1 -0
  229. package/lib/theme-chalk/reset.css +1 -0
  230. package/lib/theme-chalk/result.css +1 -0
  231. package/lib/theme-chalk/row.css +1 -0
  232. package/lib/theme-chalk/scrollbar.css +1 -0
  233. package/lib/theme-chalk/select-dropdown.css +1 -0
  234. package/lib/theme-chalk/select.css +1 -0
  235. package/lib/theme-chalk/skeleton-item.css +1 -0
  236. package/lib/theme-chalk/skeleton.css +1 -0
  237. package/lib/theme-chalk/slider.css +1 -0
  238. package/lib/theme-chalk/spinner.css +1 -0
  239. package/lib/theme-chalk/statistic.css +1 -0
  240. package/lib/theme-chalk/step.css +1 -0
  241. package/lib/theme-chalk/steps.css +1 -0
  242. package/lib/theme-chalk/submenu.css +0 -0
  243. package/lib/theme-chalk/switch.css +1 -0
  244. package/lib/theme-chalk/tab-pane.css +0 -0
  245. package/lib/theme-chalk/table-column.css +1 -0
  246. package/lib/theme-chalk/table.css +1 -0
  247. package/lib/theme-chalk/tabs.css +1 -0
  248. package/lib/theme-chalk/tag.css +1 -0
  249. package/lib/theme-chalk/time-picker.css +1 -0
  250. package/lib/theme-chalk/time-select.css +1 -0
  251. package/lib/theme-chalk/timeline-item.css +1 -0
  252. package/lib/theme-chalk/timeline.css +1 -0
  253. package/lib/theme-chalk/tooltip.css +1 -0
  254. package/lib/theme-chalk/transfer.css +1 -0
  255. package/lib/theme-chalk/tree.css +1 -0
  256. package/lib/theme-chalk/upload.css +1 -0
  257. package/lib/time-picker.js +2967 -0
  258. package/lib/time-select.js +1765 -0
  259. package/lib/timeline-item.js +371 -0
  260. package/lib/timeline.js +275 -0
  261. package/lib/tooltip.js +425 -0
  262. package/lib/transfer.js +1102 -0
  263. package/lib/transitions/collapse-transition.js +91 -0
  264. package/lib/tree.js +2263 -0
  265. package/lib/umd/locale/af-ZA.js +142 -0
  266. package/lib/umd/locale/ar.js +141 -0
  267. package/lib/umd/locale/az.js +141 -0
  268. package/lib/umd/locale/bg.js +142 -0
  269. package/lib/umd/locale/bn.js +141 -0
  270. package/lib/umd/locale/ca.js +141 -0
  271. package/lib/umd/locale/cs-CZ.js +144 -0
  272. package/lib/umd/locale/da.js +141 -0
  273. package/lib/umd/locale/de.js +143 -0
  274. package/lib/umd/locale/ee.js +142 -0
  275. package/lib/umd/locale/el.js +142 -0
  276. package/lib/umd/locale/en.js +142 -0
  277. package/lib/umd/locale/eo.js +142 -0
  278. package/lib/umd/locale/es.js +141 -0
  279. package/lib/umd/locale/eu.js +142 -0
  280. package/lib/umd/locale/fa.js +142 -0
  281. package/lib/umd/locale/fi.js +142 -0
  282. package/lib/umd/locale/fr.js +141 -0
  283. package/lib/umd/locale/he.js +142 -0
  284. package/lib/umd/locale/hr.js +142 -0
  285. package/lib/umd/locale/hu.js +141 -0
  286. package/lib/umd/locale/hy-AM.js +142 -0
  287. package/lib/umd/locale/id.js +142 -0
  288. package/lib/umd/locale/is.js +142 -0
  289. package/lib/umd/locale/it.js +141 -0
  290. package/lib/umd/locale/ja.js +142 -0
  291. package/lib/umd/locale/kg.js +142 -0
  292. package/lib/umd/locale/km.js +142 -0
  293. package/lib/umd/locale/ko.js +142 -0
  294. package/lib/umd/locale/ku.js +142 -0
  295. package/lib/umd/locale/kz.js +142 -0
  296. package/lib/umd/locale/lo-LA.js +141 -0
  297. package/lib/umd/locale/lt.js +142 -0
  298. package/lib/umd/locale/lv.js +142 -0
  299. package/lib/umd/locale/mn.js +142 -0
  300. package/lib/umd/locale/ms.js +141 -0
  301. package/lib/umd/locale/nb-NO.js +141 -0
  302. package/lib/umd/locale/nl.js +142 -0
  303. package/lib/umd/locale/pl.js +142 -0
  304. package/lib/umd/locale/pt-br.js +142 -0
  305. package/lib/umd/locale/pt.js +142 -0
  306. package/lib/umd/locale/ro.js +142 -0
  307. package/lib/umd/locale/ru-RU.js +142 -0
  308. package/lib/umd/locale/si.js +142 -0
  309. package/lib/umd/locale/sk.js +144 -0
  310. package/lib/umd/locale/sl.js +142 -0
  311. package/lib/umd/locale/sr-Latn.js +142 -0
  312. package/lib/umd/locale/sr.js +142 -0
  313. package/lib/umd/locale/sv-SE.js +142 -0
  314. package/lib/umd/locale/sw.js +142 -0
  315. package/lib/umd/locale/ta.js +141 -0
  316. package/lib/umd/locale/th.js +142 -0
  317. package/lib/umd/locale/tk.js +142 -0
  318. package/lib/umd/locale/tr-TR.js +142 -0
  319. package/lib/umd/locale/ua.js +142 -0
  320. package/lib/umd/locale/ug-CN.js +142 -0
  321. package/lib/umd/locale/uz-UZ.js +142 -0
  322. package/lib/umd/locale/vi.js +142 -0
  323. package/lib/umd/locale/zh-CN.js +142 -0
  324. package/lib/umd/locale/zh-TW.js +142 -0
  325. package/lib/upload.js +1390 -0
  326. package/lib/utils/after-leave.js +35 -0
  327. package/lib/utils/aria-dialog.js +104 -0
  328. package/lib/utils/aria-utils.js +126 -0
  329. package/lib/utils/clickoutside.js +79 -0
  330. package/lib/utils/date-util.js +310 -0
  331. package/lib/utils/date.js +369 -0
  332. package/lib/utils/dom.js +234 -0
  333. package/lib/utils/lodash.js +9477 -0
  334. package/lib/utils/menu/aria-menubar.js +24 -0
  335. package/lib/utils/menu/aria-menuitem.js +62 -0
  336. package/lib/utils/menu/aria-submenu.js +69 -0
  337. package/lib/utils/merge.js +21 -0
  338. package/lib/utils/popper.js +1261 -0
  339. package/lib/utils/popup/index.js +233 -0
  340. package/lib/utils/popup/popup-manager.js +205 -0
  341. package/lib/utils/resize-event.js +59 -0
  342. package/lib/utils/scroll-into-view.js +38 -0
  343. package/lib/utils/scrollbar-width.js +39 -0
  344. package/lib/utils/shared.js +12 -0
  345. package/lib/utils/types.js +52 -0
  346. package/lib/utils/util.js +272 -0
  347. package/lib/utils/vdom.js +13 -0
  348. package/lib/utils/vue-popper.js +202 -0
  349. package/package.json +1 -1
  350. package/packages/theme-chalk/lib/alert.css +1 -0
  351. package/packages/theme-chalk/lib/aside.css +1 -0
  352. package/packages/theme-chalk/lib/autocomplete.css +1 -0
  353. package/packages/theme-chalk/lib/avatar.css +1 -0
  354. package/packages/theme-chalk/lib/backtop.css +1 -0
  355. package/packages/theme-chalk/lib/badge.css +1 -0
  356. package/packages/theme-chalk/lib/base.css +1 -0
  357. package/packages/theme-chalk/lib/breadcrumb-item.css +0 -0
  358. package/packages/theme-chalk/lib/breadcrumb.css +1 -0
  359. package/packages/theme-chalk/lib/button-group.css +0 -0
  360. package/packages/theme-chalk/lib/button.css +1 -0
  361. package/packages/theme-chalk/lib/calendar.css +1 -0
  362. package/packages/theme-chalk/lib/card.css +1 -0
  363. package/packages/theme-chalk/lib/carousel-item.css +1 -0
  364. package/packages/theme-chalk/lib/carousel.css +1 -0
  365. package/packages/theme-chalk/lib/cascader-panel.css +1 -0
  366. package/packages/theme-chalk/lib/cascader.css +1 -0
  367. package/packages/theme-chalk/lib/checkbox-button.css +0 -0
  368. package/packages/theme-chalk/lib/checkbox-group.css +0 -0
  369. package/packages/theme-chalk/lib/checkbox.css +1 -0
  370. package/packages/theme-chalk/lib/col.css +1 -0
  371. package/packages/theme-chalk/lib/collapse-item.css +0 -0
  372. package/packages/theme-chalk/lib/collapse.css +1 -0
  373. package/packages/theme-chalk/lib/color-picker.css +1 -0
  374. package/packages/theme-chalk/lib/container.css +1 -0
  375. package/packages/theme-chalk/lib/date-picker.css +1 -0
  376. package/packages/theme-chalk/lib/descriptions-item.css +1 -0
  377. package/packages/theme-chalk/lib/descriptions.css +1 -0
  378. package/packages/theme-chalk/lib/dialog.css +1 -0
  379. package/packages/theme-chalk/lib/display.css +1 -0
  380. package/packages/theme-chalk/lib/divider.css +1 -0
  381. package/packages/theme-chalk/lib/drawer.css +1 -0
  382. package/packages/theme-chalk/lib/dropdown-item.css +0 -0
  383. package/packages/theme-chalk/lib/dropdown-menu.css +0 -0
  384. package/packages/theme-chalk/lib/dropdown.css +1 -0
  385. package/packages/theme-chalk/lib/empty.css +1 -0
  386. package/packages/theme-chalk/lib/fonts/element-icons.ttf +0 -0
  387. package/packages/theme-chalk/lib/fonts/element-icons.woff +0 -0
  388. package/packages/theme-chalk/lib/fonts/icon-sim.ttf +0 -0
  389. package/packages/theme-chalk/lib/fonts/icon-sim.woff +0 -0
  390. package/packages/theme-chalk/lib/fonts/icon-sim.woff2 +0 -0
  391. package/packages/theme-chalk/lib/footer.css +1 -0
  392. package/packages/theme-chalk/lib/form-item.css +0 -0
  393. package/packages/theme-chalk/lib/form.css +1 -0
  394. package/packages/theme-chalk/lib/header.css +1 -0
  395. package/packages/theme-chalk/lib/icon.css +1 -0
  396. package/packages/theme-chalk/lib/image.css +1 -0
  397. package/packages/theme-chalk/lib/index.css +1 -0
  398. package/packages/theme-chalk/lib/infinite-scroll.css +0 -0
  399. package/packages/theme-chalk/lib/infiniteScroll.css +0 -0
  400. package/packages/theme-chalk/lib/input-number.css +1 -0
  401. package/packages/theme-chalk/lib/input.css +1 -0
  402. package/packages/theme-chalk/lib/link.css +1 -0
  403. package/packages/theme-chalk/lib/loading.css +1 -0
  404. package/packages/theme-chalk/lib/main.css +1 -0
  405. package/packages/theme-chalk/lib/menu-item-group.css +0 -0
  406. package/packages/theme-chalk/lib/menu-item.css +0 -0
  407. package/packages/theme-chalk/lib/menu.css +1 -0
  408. package/packages/theme-chalk/lib/message-box.css +1 -0
  409. package/packages/theme-chalk/lib/message.css +1 -0
  410. package/packages/theme-chalk/lib/notification.css +1 -0
  411. package/packages/theme-chalk/lib/option-group.css +1 -0
  412. package/packages/theme-chalk/lib/option.css +1 -0
  413. package/packages/theme-chalk/lib/page-header.css +1 -0
  414. package/packages/theme-chalk/lib/pagination.css +1 -0
  415. package/packages/theme-chalk/lib/popconfirm.css +1 -0
  416. package/packages/theme-chalk/lib/popover.css +1 -0
  417. package/packages/theme-chalk/lib/popper.css +1 -0
  418. package/packages/theme-chalk/lib/progress.css +1 -0
  419. package/packages/theme-chalk/lib/radio-button.css +1 -0
  420. package/packages/theme-chalk/lib/radio-group.css +1 -0
  421. package/packages/theme-chalk/lib/radio.css +1 -0
  422. package/packages/theme-chalk/lib/rate.css +1 -0
  423. package/packages/theme-chalk/lib/reset.css +1 -0
  424. package/packages/theme-chalk/lib/result.css +1 -0
  425. package/packages/theme-chalk/lib/row.css +1 -0
  426. package/packages/theme-chalk/lib/scrollbar.css +1 -0
  427. package/packages/theme-chalk/lib/select-dropdown.css +1 -0
  428. package/packages/theme-chalk/lib/select.css +1 -0
  429. package/packages/theme-chalk/lib/skeleton-item.css +1 -0
  430. package/packages/theme-chalk/lib/skeleton.css +1 -0
  431. package/packages/theme-chalk/lib/slider.css +1 -0
  432. package/packages/theme-chalk/lib/spinner.css +1 -0
  433. package/packages/theme-chalk/lib/statistic.css +1 -0
  434. package/packages/theme-chalk/lib/step.css +1 -0
  435. package/packages/theme-chalk/lib/steps.css +1 -0
  436. package/packages/theme-chalk/lib/submenu.css +0 -0
  437. package/packages/theme-chalk/lib/switch.css +1 -0
  438. package/packages/theme-chalk/lib/tab-pane.css +0 -0
  439. package/packages/theme-chalk/lib/table-column.css +1 -0
  440. package/packages/theme-chalk/lib/table.css +1 -0
  441. package/packages/theme-chalk/lib/tabs.css +1 -0
  442. package/packages/theme-chalk/lib/tag.css +1 -0
  443. package/packages/theme-chalk/lib/time-picker.css +1 -0
  444. package/packages/theme-chalk/lib/time-select.css +1 -0
  445. package/packages/theme-chalk/lib/timeline-item.css +1 -0
  446. package/packages/theme-chalk/lib/timeline.css +1 -0
  447. package/packages/theme-chalk/lib/tooltip.css +1 -0
  448. package/packages/theme-chalk/lib/transfer.css +1 -0
  449. package/packages/theme-chalk/lib/tree.css +1 -0
  450. package/packages/theme-chalk/lib/upload.css +1 -0
  451. package/src/index.js +1 -1
  452. package/packages/theme-chalk/gulpfile.js +0 -25
package/lib/select.js ADDED
@@ -0,0 +1,2108 @@
1
+ module.exports =
2
+ /******/ (function(modules) { // webpackBootstrap
3
+ /******/ // The module cache
4
+ /******/ var installedModules = {};
5
+ /******/
6
+ /******/ // The require function
7
+ /******/ function __webpack_require__(moduleId) {
8
+ /******/
9
+ /******/ // Check if module is in cache
10
+ /******/ if(installedModules[moduleId]) {
11
+ /******/ return installedModules[moduleId].exports;
12
+ /******/ }
13
+ /******/ // Create a new module (and put it into the cache)
14
+ /******/ var module = installedModules[moduleId] = {
15
+ /******/ i: moduleId,
16
+ /******/ l: false,
17
+ /******/ exports: {}
18
+ /******/ };
19
+ /******/
20
+ /******/ // Execute the module function
21
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
+ /******/
23
+ /******/ // Flag the module as loaded
24
+ /******/ module.l = true;
25
+ /******/
26
+ /******/ // Return the exports of the module
27
+ /******/ return module.exports;
28
+ /******/ }
29
+ /******/
30
+ /******/
31
+ /******/ // expose the modules object (__webpack_modules__)
32
+ /******/ __webpack_require__.m = modules;
33
+ /******/
34
+ /******/ // expose the module cache
35
+ /******/ __webpack_require__.c = installedModules;
36
+ /******/
37
+ /******/ // define getter function for harmony exports
38
+ /******/ __webpack_require__.d = function(exports, name, getter) {
39
+ /******/ if(!__webpack_require__.o(exports, name)) {
40
+ /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
+ /******/ }
42
+ /******/ };
43
+ /******/
44
+ /******/ // define __esModule on exports
45
+ /******/ __webpack_require__.r = function(exports) {
46
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
+ /******/ }
49
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
+ /******/ };
51
+ /******/
52
+ /******/ // create a fake namespace object
53
+ /******/ // mode & 1: value is a module id, require it
54
+ /******/ // mode & 2: merge all properties of value into the ns
55
+ /******/ // mode & 4: return value when already ns object
56
+ /******/ // mode & 8|1: behave like require
57
+ /******/ __webpack_require__.t = function(value, mode) {
58
+ /******/ if(mode & 1) value = __webpack_require__(value);
59
+ /******/ if(mode & 8) return value;
60
+ /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
+ /******/ var ns = Object.create(null);
62
+ /******/ __webpack_require__.r(ns);
63
+ /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
+ /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
+ /******/ return ns;
66
+ /******/ };
67
+ /******/
68
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
69
+ /******/ __webpack_require__.n = function(module) {
70
+ /******/ var getter = module && module.__esModule ?
71
+ /******/ function getDefault() { return module['default']; } :
72
+ /******/ function getModuleExports() { return module; };
73
+ /******/ __webpack_require__.d(getter, 'a', getter);
74
+ /******/ return getter;
75
+ /******/ };
76
+ /******/
77
+ /******/ // Object.prototype.hasOwnProperty.call
78
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
+ /******/
80
+ /******/ // __webpack_public_path__
81
+ /******/ __webpack_require__.p = "/dist/";
82
+ /******/
83
+ /******/
84
+ /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 62);
86
+ /******/ })
87
+ /************************************************************************/
88
+ /******/ ({
89
+
90
+ /***/ 0:
91
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
+
93
+ "use strict";
94
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
+ /* globals __VUE_SSR_CONTEXT__ */
96
+
97
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
98
+ // This module is a runtime utility for cleaner component module output and will
99
+ // be included in the final webpack user bundle.
100
+
101
+ function normalizeComponent(
102
+ scriptExports,
103
+ render,
104
+ staticRenderFns,
105
+ functionalTemplate,
106
+ injectStyles,
107
+ scopeId,
108
+ moduleIdentifier /* server only */,
109
+ shadowMode /* vue-cli only */
110
+ ) {
111
+ // Vue.extend constructor export interop
112
+ var options =
113
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
114
+
115
+ // render functions
116
+ if (render) {
117
+ options.render = render
118
+ options.staticRenderFns = staticRenderFns
119
+ options._compiled = true
120
+ }
121
+
122
+ // functional template
123
+ if (functionalTemplate) {
124
+ options.functional = true
125
+ }
126
+
127
+ // scopedId
128
+ if (scopeId) {
129
+ options._scopeId = 'data-v-' + scopeId
130
+ }
131
+
132
+ var hook
133
+ if (moduleIdentifier) {
134
+ // server build
135
+ hook = function (context) {
136
+ // 2.3 injection
137
+ context =
138
+ context || // cached call
139
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
140
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
141
+ // 2.2 with runInNewContext: true
142
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
143
+ context = __VUE_SSR_CONTEXT__
144
+ }
145
+ // inject component styles
146
+ if (injectStyles) {
147
+ injectStyles.call(this, context)
148
+ }
149
+ // register component module identifier for async chunk inferrence
150
+ if (context && context._registeredComponents) {
151
+ context._registeredComponents.add(moduleIdentifier)
152
+ }
153
+ }
154
+ // used by ssr in case component is cached and beforeCreate
155
+ // never gets called
156
+ options._ssrRegister = hook
157
+ } else if (injectStyles) {
158
+ hook = shadowMode
159
+ ? function () {
160
+ injectStyles.call(
161
+ this,
162
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
163
+ )
164
+ }
165
+ : injectStyles
166
+ }
167
+
168
+ if (hook) {
169
+ if (options.functional) {
170
+ // for template-only hot-reload because in that case the render fn doesn't
171
+ // go through the normalizer
172
+ options._injectStyles = hook
173
+ // register for functional component in vue file
174
+ var originalRender = options.render
175
+ options.render = function renderWithStyleInjection(h, context) {
176
+ hook.call(context)
177
+ return originalRender(h, context)
178
+ }
179
+ } else {
180
+ // inject component registration as beforeCreate hook
181
+ var existing = options.beforeCreate
182
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
183
+ }
184
+ }
185
+
186
+ return {
187
+ exports: scriptExports,
188
+ options: options
189
+ }
190
+ }
191
+
192
+
193
+ /***/ }),
194
+
195
+ /***/ 10:
196
+ /***/ (function(module, exports) {
197
+
198
+ module.exports = require("element-sim/lib/input");
199
+
200
+ /***/ }),
201
+
202
+ /***/ 12:
203
+ /***/ (function(module, exports) {
204
+
205
+ module.exports = require("element-sim/lib/utils/clickoutside");
206
+
207
+ /***/ }),
208
+
209
+ /***/ 13:
210
+ /***/ (function(module, exports) {
211
+
212
+ module.exports = require("element-sim/lib/button");
213
+
214
+ /***/ }),
215
+
216
+ /***/ 15:
217
+ /***/ (function(module, exports) {
218
+
219
+ module.exports = require("element-sim/lib/scrollbar");
220
+
221
+ /***/ }),
222
+
223
+ /***/ 16:
224
+ /***/ (function(module, exports) {
225
+
226
+ module.exports = require("element-sim/lib/utils/resize-event");
227
+
228
+ /***/ }),
229
+
230
+ /***/ 19:
231
+ /***/ (function(module, exports) {
232
+
233
+ module.exports = require("throttle-debounce/debounce");
234
+
235
+ /***/ }),
236
+
237
+ /***/ 21:
238
+ /***/ (function(module, exports) {
239
+
240
+ module.exports = require("element-sim/lib/utils/shared");
241
+
242
+ /***/ }),
243
+
244
+ /***/ 22:
245
+ /***/ (function(module, exports) {
246
+
247
+ module.exports = require("element-sim/lib/mixins/focus");
248
+
249
+ /***/ }),
250
+
251
+ /***/ 3:
252
+ /***/ (function(module, exports) {
253
+
254
+ module.exports = require("element-sim/lib/utils/util");
255
+
256
+ /***/ }),
257
+
258
+ /***/ 31:
259
+ /***/ (function(module, exports) {
260
+
261
+ module.exports = require("element-sim/lib/utils/scroll-into-view");
262
+
263
+ /***/ }),
264
+
265
+ /***/ 33:
266
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
267
+
268
+ "use strict";
269
+
270
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/option.vue?vue&type=template&id=4bb09cc2
271
+ var render = function () {
272
+ var _vm = this
273
+ var _h = _vm.$createElement
274
+ var _c = _vm._self._c || _h
275
+ return _c(
276
+ "li",
277
+ {
278
+ directives: [
279
+ {
280
+ name: "show",
281
+ rawName: "v-show",
282
+ value: _vm.visible,
283
+ expression: "visible",
284
+ },
285
+ ],
286
+ staticClass: "el-select-dropdown__item",
287
+ class: {
288
+ selected: _vm.itemSelected,
289
+ "is-disabled": _vm.disabled || _vm.groupDisabled || _vm.limitReached,
290
+ hover: _vm.hover,
291
+ },
292
+ on: {
293
+ mouseenter: _vm.hoverItem,
294
+ click: function ($event) {
295
+ $event.stopPropagation()
296
+ return _vm.selectOptionClick($event)
297
+ },
298
+ },
299
+ },
300
+ [_vm._t("default", [_c("span", [_vm._v(_vm._s(_vm.currentLabel))])])],
301
+ 2
302
+ )
303
+ }
304
+ var staticRenderFns = []
305
+ render._withStripped = true
306
+
307
+
308
+ // CONCATENATED MODULE: ./packages/select/src/option.vue?vue&type=template&id=4bb09cc2
309
+
310
+ // EXTERNAL MODULE: external "element-sim/lib/mixins/emitter"
311
+ var emitter_ = __webpack_require__(4);
312
+ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
313
+
314
+ // EXTERNAL MODULE: external "element-sim/lib/utils/util"
315
+ var util_ = __webpack_require__(3);
316
+
317
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/option.vue?vue&type=script&lang=js
318
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
319
+
320
+ //
321
+ //
322
+ //
323
+ //
324
+ //
325
+ //
326
+ //
327
+ //
328
+ //
329
+ //
330
+ //
331
+ //
332
+ //
333
+ //
334
+ //
335
+ //
336
+ //
337
+
338
+
339
+
340
+
341
+ /* harmony default export */ var optionvue_type_script_lang_js = ({
342
+ mixins: [emitter_default.a],
343
+
344
+ name: 'ElOption',
345
+
346
+ componentName: 'ElOption',
347
+
348
+ inject: ['select'],
349
+
350
+ props: {
351
+ value: {
352
+ required: true
353
+ },
354
+ label: [String, Number],
355
+ created: Boolean,
356
+ disabled: {
357
+ type: Boolean,
358
+ default: false
359
+ }
360
+ },
361
+
362
+ data: function data() {
363
+ return {
364
+ index: -1,
365
+ groupDisabled: false,
366
+ visible: true,
367
+ hitState: false,
368
+ hover: false
369
+ };
370
+ },
371
+
372
+
373
+ computed: {
374
+ isObject: function isObject() {
375
+ return Object.prototype.toString.call(this.value).toLowerCase() === '[object object]';
376
+ },
377
+ currentLabel: function currentLabel() {
378
+ return this.label || (this.isObject ? '' : this.value);
379
+ },
380
+ currentValue: function currentValue() {
381
+ return this.value || this.label || '';
382
+ },
383
+ itemSelected: function itemSelected() {
384
+ if (!this.select.multiple) {
385
+ return this.isEqual(this.value, this.select.value);
386
+ } else {
387
+ return this.contains(this.select.value, this.value);
388
+ }
389
+ },
390
+ limitReached: function limitReached() {
391
+ if (this.select.multiple) {
392
+ return !this.itemSelected && (this.select.value || []).length >= this.select.multipleLimit && this.select.multipleLimit > 0;
393
+ } else {
394
+ return false;
395
+ }
396
+ }
397
+ },
398
+
399
+ watch: {
400
+ currentLabel: function currentLabel() {
401
+ if (!this.created && !this.select.remote) this.dispatch('ElSelect', 'setSelected');
402
+ },
403
+ value: function value(val, oldVal) {
404
+ var _select = this.select,
405
+ remote = _select.remote,
406
+ valueKey = _select.valueKey;
407
+
408
+ if (!this.created && !remote) {
409
+ if (valueKey && (typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object' && (typeof oldVal === 'undefined' ? 'undefined' : _typeof(oldVal)) === 'object' && val[valueKey] === oldVal[valueKey]) {
410
+ return;
411
+ }
412
+ this.dispatch('ElSelect', 'setSelected');
413
+ }
414
+ }
415
+ },
416
+
417
+ methods: {
418
+ isEqual: function isEqual(a, b) {
419
+ if (!this.isObject) {
420
+ return a === b;
421
+ } else {
422
+ var valueKey = this.select.valueKey;
423
+ return Object(util_["getValueByPath"])(a, valueKey) === Object(util_["getValueByPath"])(b, valueKey);
424
+ }
425
+ },
426
+ contains: function contains() {
427
+ var arr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
428
+ var target = arguments[1];
429
+
430
+ if (!this.isObject) {
431
+ return arr && arr.indexOf(target) > -1;
432
+ } else {
433
+ var valueKey = this.select.valueKey;
434
+ return arr && arr.some(function (item) {
435
+ return Object(util_["getValueByPath"])(item, valueKey) === Object(util_["getValueByPath"])(target, valueKey);
436
+ });
437
+ }
438
+ },
439
+ handleGroupDisabled: function handleGroupDisabled(val) {
440
+ this.groupDisabled = val;
441
+ },
442
+ hoverItem: function hoverItem() {
443
+ if (!this.disabled && !this.groupDisabled) {
444
+ this.select.hoverIndex = this.select.options.indexOf(this);
445
+ }
446
+ },
447
+ selectOptionClick: function selectOptionClick() {
448
+ if (this.disabled !== true && this.groupDisabled !== true) {
449
+ this.dispatch('ElSelect', 'handleOptionClick', [this, true]);
450
+ }
451
+ },
452
+ queryChange: function queryChange(query) {
453
+ this.visible = new RegExp(Object(util_["escapeRegexpString"])(query), 'i').test(this.currentLabel) || this.created;
454
+ if (!this.visible) {
455
+ this.select.filteredOptionsCount--;
456
+ }
457
+ }
458
+ },
459
+
460
+ created: function created() {
461
+ this.select.options.push(this);
462
+ this.select.cachedOptions.push(this);
463
+ this.select.optionsCount++;
464
+ this.select.filteredOptionsCount++;
465
+
466
+ this.$on('queryChange', this.queryChange);
467
+ this.$on('handleGroupDisabled', this.handleGroupDisabled);
468
+ },
469
+ beforeDestroy: function beforeDestroy() {
470
+ var _select2 = this.select,
471
+ selected = _select2.selected,
472
+ multiple = _select2.multiple;
473
+
474
+ var selectedOptions = multiple ? selected : [selected];
475
+ var index = this.select.cachedOptions.indexOf(this);
476
+ var selectedIndex = selectedOptions.indexOf(this);
477
+
478
+ // if option is not selected, remove it from cache
479
+ if (index > -1 && selectedIndex < 0) {
480
+ this.select.cachedOptions.splice(index, 1);
481
+ }
482
+ this.select.onOptionDestroy(this.select.options.indexOf(this));
483
+ }
484
+ });
485
+ // CONCATENATED MODULE: ./packages/select/src/option.vue?vue&type=script&lang=js
486
+ /* harmony default export */ var src_optionvue_type_script_lang_js = (optionvue_type_script_lang_js);
487
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
488
+ var componentNormalizer = __webpack_require__(0);
489
+
490
+ // CONCATENATED MODULE: ./packages/select/src/option.vue
491
+
492
+
493
+
494
+
495
+
496
+ /* normalize component */
497
+
498
+ var component = Object(componentNormalizer["a" /* default */])(
499
+ src_optionvue_type_script_lang_js,
500
+ render,
501
+ staticRenderFns,
502
+ false,
503
+ null,
504
+ null,
505
+ null
506
+
507
+ )
508
+
509
+ /* harmony default export */ var src_option = __webpack_exports__["a"] = (component.exports);
510
+
511
+ /***/ }),
512
+
513
+ /***/ 38:
514
+ /***/ (function(module, exports) {
515
+
516
+ module.exports = require("element-sim/lib/tag");
517
+
518
+ /***/ }),
519
+
520
+ /***/ 4:
521
+ /***/ (function(module, exports) {
522
+
523
+ module.exports = require("element-sim/lib/mixins/emitter");
524
+
525
+ /***/ }),
526
+
527
+ /***/ 5:
528
+ /***/ (function(module, exports) {
529
+
530
+ module.exports = require("element-sim/lib/utils/vue-popper");
531
+
532
+ /***/ }),
533
+
534
+ /***/ 6:
535
+ /***/ (function(module, exports) {
536
+
537
+ module.exports = require("element-sim/lib/mixins/locale");
538
+
539
+ /***/ }),
540
+
541
+ /***/ 62:
542
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
543
+
544
+ "use strict";
545
+ // ESM COMPAT FLAG
546
+ __webpack_require__.r(__webpack_exports__);
547
+
548
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/select.vue?vue&type=template&id=2c50fb28
549
+ var render = function () {
550
+ var _vm = this
551
+ var _h = _vm.$createElement
552
+ var _c = _vm._self._c || _h
553
+ return _c(
554
+ "div",
555
+ {
556
+ directives: [
557
+ {
558
+ name: "clickoutside",
559
+ rawName: "v-clickoutside",
560
+ value: _vm.handleClose,
561
+ expression: "handleClose",
562
+ },
563
+ ],
564
+ staticClass: "el-select",
565
+ class: [_vm.selectSize ? "el-select--" + _vm.selectSize : ""],
566
+ on: {
567
+ click: function ($event) {
568
+ $event.stopPropagation()
569
+ return _vm.toggleMenu($event)
570
+ },
571
+ },
572
+ },
573
+ [
574
+ _vm.multiple
575
+ ? _c(
576
+ "div",
577
+ {
578
+ ref: "tags",
579
+ staticClass: "el-select__tags",
580
+ style: { "max-width": _vm.inputWidth - 32 + "px", width: "100%" },
581
+ },
582
+ [
583
+ _vm.collapseTags && _vm.selected.length
584
+ ? _c(
585
+ "span",
586
+ [
587
+ _c(
588
+ "el-tag",
589
+ {
590
+ attrs: {
591
+ closable: !_vm.selectDisabled,
592
+ size: _vm.collapseTagSize,
593
+ hit: _vm.selected[0].hitState,
594
+ type: "info",
595
+ "disable-transitions": "",
596
+ },
597
+ on: {
598
+ close: function ($event) {
599
+ _vm.deleteTag($event, _vm.selected[0])
600
+ },
601
+ },
602
+ },
603
+ [
604
+ _c("span", { staticClass: "el-select__tags-text" }, [
605
+ _vm._v(_vm._s(_vm.selected[0].currentLabel)),
606
+ ]),
607
+ ]
608
+ ),
609
+ _vm.selected.length > 1
610
+ ? _c(
611
+ "el-tag",
612
+ {
613
+ attrs: {
614
+ closable: false,
615
+ size: _vm.collapseTagSize,
616
+ type: "info",
617
+ "disable-transitions": "",
618
+ },
619
+ },
620
+ [
621
+ _c(
622
+ "span",
623
+ { staticClass: "el-select__tags-text" },
624
+ [_vm._v("+ " + _vm._s(_vm.selected.length - 1))]
625
+ ),
626
+ ]
627
+ )
628
+ : _vm._e(),
629
+ ],
630
+ 1
631
+ )
632
+ : _vm._e(),
633
+ !_vm.collapseTags
634
+ ? _c(
635
+ "transition-group",
636
+ { on: { "after-leave": _vm.resetInputHeight } },
637
+ _vm._l(_vm.selected, function (item) {
638
+ return _c(
639
+ "el-tag",
640
+ {
641
+ key: _vm.getValueKey(item),
642
+ attrs: {
643
+ closable: !_vm.selectDisabled,
644
+ size: _vm.collapseTagSize,
645
+ hit: item.hitState,
646
+ type: "info",
647
+ "disable-transitions": "",
648
+ },
649
+ on: {
650
+ close: function ($event) {
651
+ _vm.deleteTag($event, item)
652
+ },
653
+ },
654
+ },
655
+ [
656
+ _c("span", { staticClass: "el-select__tags-text" }, [
657
+ _vm._v(_vm._s(item.currentLabel)),
658
+ ]),
659
+ ]
660
+ )
661
+ }),
662
+ 1
663
+ )
664
+ : _vm._e(),
665
+ ],
666
+ 1
667
+ )
668
+ : _vm._e(),
669
+ _c(
670
+ "el-input",
671
+ {
672
+ ref: "reference",
673
+ class: { "is-focus": _vm.visible },
674
+ attrs: {
675
+ type: "text",
676
+ placeholder: _vm.currentPlaceholder,
677
+ name: _vm.name,
678
+ id: _vm.id,
679
+ autocomplete: _vm.autoComplete || _vm.autocomplete,
680
+ size: _vm.selectSize,
681
+ disabled: _vm.selectDisabled,
682
+ readonly: _vm.readonly,
683
+ "validate-event": false,
684
+ tabindex: _vm.multiple && _vm.filterable ? "-1" : null,
685
+ },
686
+ on: {
687
+ focus: _vm.handleFocus,
688
+ blur: _vm.handleBlur,
689
+ input: _vm.debouncedOnInputChange,
690
+ compositionstart: _vm.handleComposition,
691
+ compositionupdate: _vm.handleComposition,
692
+ compositionend: _vm.handleComposition,
693
+ },
694
+ nativeOn: {
695
+ keydown: [
696
+ function ($event) {
697
+ if (
698
+ !("button" in $event) &&
699
+ _vm._k($event.keyCode, "down", 40, $event.key, [
700
+ "Down",
701
+ "ArrowDown",
702
+ ])
703
+ ) {
704
+ return null
705
+ }
706
+ $event.stopPropagation()
707
+ $event.preventDefault()
708
+ _vm.handleNavigate("next")
709
+ },
710
+ function ($event) {
711
+ if (
712
+ !("button" in $event) &&
713
+ _vm._k($event.keyCode, "up", 38, $event.key, [
714
+ "Up",
715
+ "ArrowUp",
716
+ ])
717
+ ) {
718
+ return null
719
+ }
720
+ $event.stopPropagation()
721
+ $event.preventDefault()
722
+ _vm.handleNavigate("prev")
723
+ },
724
+ function ($event) {
725
+ if (
726
+ !("button" in $event) &&
727
+ _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")
728
+ ) {
729
+ return null
730
+ }
731
+ $event.preventDefault()
732
+ return _vm.selectOption($event)
733
+ },
734
+ function ($event) {
735
+ if (
736
+ !("button" in $event) &&
737
+ _vm._k($event.keyCode, "esc", 27, $event.key, [
738
+ "Esc",
739
+ "Escape",
740
+ ])
741
+ ) {
742
+ return null
743
+ }
744
+ $event.stopPropagation()
745
+ $event.preventDefault()
746
+ _vm.visible = false
747
+ },
748
+ function ($event) {
749
+ if (
750
+ !("button" in $event) &&
751
+ _vm._k($event.keyCode, "tab", 9, $event.key, "Tab")
752
+ ) {
753
+ return null
754
+ }
755
+ _vm.visible = false
756
+ },
757
+ ],
758
+ mouseenter: function ($event) {
759
+ _vm.inputHovering = true
760
+ },
761
+ mouseleave: function ($event) {
762
+ _vm.inputHovering = false
763
+ },
764
+ },
765
+ model: {
766
+ value: _vm.selectedLabel,
767
+ callback: function ($$v) {
768
+ _vm.selectedLabel = $$v
769
+ },
770
+ expression: "selectedLabel",
771
+ },
772
+ },
773
+ [
774
+ _vm.$slots.prefix
775
+ ? _c("template", { slot: "prefix" }, [_vm._t("prefix")], 2)
776
+ : _vm._e(),
777
+ _c("template", { slot: "suffix" }, [
778
+ _c("i", {
779
+ directives: [
780
+ {
781
+ name: "show",
782
+ rawName: "v-show",
783
+ value: !_vm.showClose,
784
+ expression: "!showClose",
785
+ },
786
+ ],
787
+ class: [
788
+ "el-select__caret",
789
+ "el-input__icon",
790
+ "el-icon-" + _vm.iconClass,
791
+ ],
792
+ }),
793
+ _vm.showClose
794
+ ? _c("i", {
795
+ staticClass:
796
+ "el-select__caret el-input__icon el-icon-circle-close",
797
+ on: { click: _vm.handleClearClick },
798
+ })
799
+ : _vm._e(),
800
+ ]),
801
+ ],
802
+ 2
803
+ ),
804
+ _c(
805
+ "transition",
806
+ {
807
+ attrs: { name: "el-zoom-in-top" },
808
+ on: {
809
+ "before-enter": _vm.handleMenuEnter,
810
+ "after-leave": _vm.doDestroy,
811
+ },
812
+ },
813
+ [
814
+ _c(
815
+ "el-select-menu",
816
+ {
817
+ directives: [
818
+ {
819
+ name: "show",
820
+ rawName: "v-show",
821
+ value: _vm.visible && _vm.emptyText !== false,
822
+ expression: "visible && emptyText !== false",
823
+ },
824
+ ],
825
+ ref: "popper",
826
+ attrs: { "append-to-body": _vm.popperAppendToBody },
827
+ },
828
+ [
829
+ _c(
830
+ "el-scrollbar",
831
+ {
832
+ directives: [
833
+ {
834
+ name: "show",
835
+ rawName: "v-show",
836
+ value: _vm.options.length > 0 && !_vm.loading,
837
+ expression: "options.length > 0 && !loading",
838
+ },
839
+ ],
840
+ ref: "scrollbar",
841
+ class: {
842
+ "is-empty":
843
+ !_vm.allowCreate &&
844
+ _vm.query &&
845
+ _vm.filteredOptionsCount === 0,
846
+ },
847
+ attrs: {
848
+ tag: "ul",
849
+ "wrap-class": "el-select-dropdown__wrap",
850
+ "view-class": "el-select-dropdown__list",
851
+ },
852
+ },
853
+ [
854
+ _vm.showNewOption
855
+ ? _c("el-option", {
856
+ attrs: { value: _vm.query, created: "" },
857
+ })
858
+ : _vm._e(),
859
+ _vm._t("default"),
860
+ ],
861
+ 2
862
+ ),
863
+ _vm.emptyText &&
864
+ (!_vm.allowCreate ||
865
+ _vm.loading ||
866
+ (_vm.allowCreate && _vm.options.length === 0))
867
+ ? [
868
+ _vm.$slots.empty
869
+ ? _vm._t("empty")
870
+ : _c(
871
+ "div",
872
+ {
873
+ staticStyle: {
874
+ display: "flex",
875
+ "flex-direction": "column",
876
+ "align-items": "center",
877
+ padding: "10px 0px",
878
+ },
879
+ },
880
+ [
881
+ _c("img", {
882
+ attrs: {
883
+ width: "80px",
884
+ height: "80px",
885
+ src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAYAAACLz2ctAAAAAXNSR0IArs4c6QAAF2JJREFUeF7tnXl8VNXZx3/n3lky2UNIiCGEhH0RQVkqVQTFgIBiUREEZQ2LG1t9VSKtqX2Bl1IFX60LJoDiVsSFRZTFSgFRKaC2gAgJCYshBMieyWz3nvZMCgQEcmfmLjPhnM+HP2DOeZ7n/M6Xe+/ZCXjiChioADHQN3fNFQAHkENgqAIcQEPl5845gJwBQxXgABoqP3fOAeQMGKoAB9BQ+blzDiBnwFAFOICGys+dcwA5A4YqwAE0VH7unAPIGTBUAQ6gofJz5xxAzoChCnAADZWfO+cAcgYMVYADaKj83DkHkDNgqAIcQEPl5845gJwBQxXgABoqP3fOAeQMGKoAB9BQ+blzDiBnwFAFOICGys+dcwA5A4YqwAE0VH7unAPIGTBUAQ6gofJz5xxAzoChCnAADZWfO+cAcgYMVYADaKj83DkHkDNgqAIcQEPl5845gEHKQLvJtKlLlvoTitsBOAoqxRn4gEhBGq7fYXEA/ZZO3YJtHqdW2e65GUAGiJBBKb0eOH+EsihI1+a9Yd2nrlfjrXEADWsDStInuK8DETMAmgGCPqCwXSacypYtxPgt2cRjWLgaOeYAaiTspcymjKHNTSaJwZbhfbUSJCp0/2FBruk+hXlDKhsHUMPm6vQIjXS4pX5U8j7hMgDS0U93kwpyTTl+lg3qYhxANZtnOBXTYtw9CcQMUJoB4EYA5kBdiERskZdDjgdqJxjLcwADbJXWE2kbSmTvdxyluBVAbIAmLypO9hbkil3UtRk81jiAPrZF2jgaS0SJPd3O/knz0YRv2QldWJBjftK3QqGTmwPoQ1uxToTZLO0HEO1DsYCyCo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ZyLA6hMMg6gMp18zmUkgB+s2eg91PvOAbegS8e2PseuZwG2WJSdRX3PkP5o3yZNF9d8IFpjmff880ds+HKH10t0VITek0CKa8fuNmHHarBT96eOHY6IcH3u/uYAKm4i/zKyA3u+2PYtGIhGrDLxJeqoyAgMvv1mtGqZ4kuxgPJyAAOST3lhBh9bjg6N19gpj+jCnGztol5PvfqeOYD+thgvp4oCHEBVZORG/FWAA+ivcrycKgpwAFWRkRvxVwEOoL/K8XKqKMABVEVGbsRfBTiA/irHy6miAAdQFRm5EX8V4AD6qxwvp4oCHEBVZORG/FWAA+ivcrycKgpwAFWRkRvxVwEOoL/K8XKqKMABVEVGbsRfBTiA/irHy6miAAdQFRm5EX8V4AD6qxwvp4oCHEBVZORG/FWAA+ivcrycKgpwAFWRkRvxVwEOoL/K8XKqKMABVEVGbsRfBa4KAOcvzllPgUEZ/XqjR70LnP0VjZdTRwF2RcP6zdvBLjIkhGTPnj7xD+pYbtiKrmdEz12UM4EQGH5FaMOyXLU5PIJAejw9baJuR/TrCiBr1vmLc56iwKMAWly1zRx8FWe31BwQCM16evokdn+fbunf7iF+KFYx6qoAAAAASUVORK5CYII=",
886
+ alt: "",
887
+ },
888
+ }),
889
+ _c(
890
+ "p",
891
+ { staticClass: "el-select-dropdown__empty" },
892
+ [
893
+ _vm._v(
894
+ "\n " +
895
+ _vm._s(_vm.emptyText) +
896
+ "\n "
897
+ ),
898
+ ]
899
+ ),
900
+ ]
901
+ ),
902
+ ]
903
+ : _vm._e(),
904
+ _vm.addBtn
905
+ ? _c(
906
+ "div",
907
+ { staticStyle: { padding: "0px 12px 4px 12px" } },
908
+ [
909
+ _c(
910
+ "el-button",
911
+ {
912
+ staticStyle: { width: "100%", border: "none" },
913
+ attrs: {
914
+ type: "primary",
915
+ plain: "",
916
+ icon: "el-icon-plus",
917
+ },
918
+ on: { click: _vm.toClickBtn },
919
+ },
920
+ [_vm._v(_vm._s(_vm.addText || "添加数据"))]
921
+ ),
922
+ ],
923
+ 1
924
+ )
925
+ : _vm._e(),
926
+ ],
927
+ 2
928
+ ),
929
+ ],
930
+ 1
931
+ ),
932
+ ],
933
+ 1
934
+ )
935
+ }
936
+ var staticRenderFns = []
937
+ render._withStripped = true
938
+
939
+
940
+ // CONCATENATED MODULE: ./packages/select/src/select.vue?vue&type=template&id=2c50fb28
941
+
942
+ // EXTERNAL MODULE: external "element-sim/lib/mixins/emitter"
943
+ var emitter_ = __webpack_require__(4);
944
+ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
945
+
946
+ // EXTERNAL MODULE: external "element-sim/lib/mixins/focus"
947
+ var focus_ = __webpack_require__(22);
948
+ var focus_default = /*#__PURE__*/__webpack_require__.n(focus_);
949
+
950
+ // EXTERNAL MODULE: external "element-sim/lib/mixins/locale"
951
+ var locale_ = __webpack_require__(6);
952
+ var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
953
+
954
+ // EXTERNAL MODULE: external "element-sim/lib/input"
955
+ var input_ = __webpack_require__(10);
956
+ var input_default = /*#__PURE__*/__webpack_require__.n(input_);
957
+
958
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/select-dropdown.vue?vue&type=template&id=61b27b06
959
+ var select_dropdownvue_type_template_id_61b27b06_render = function () {
960
+ var _vm = this
961
+ var _h = _vm.$createElement
962
+ var _c = _vm._self._c || _h
963
+ return _c(
964
+ "div",
965
+ {
966
+ staticClass: "el-select-dropdown el-popper",
967
+ class: [{ "is-multiple": _vm.$parent.multiple }, _vm.popperClass],
968
+ style: { minWidth: _vm.minWidth },
969
+ },
970
+ [_vm._t("default")],
971
+ 2
972
+ )
973
+ }
974
+ var select_dropdownvue_type_template_id_61b27b06_staticRenderFns = []
975
+ select_dropdownvue_type_template_id_61b27b06_render._withStripped = true
976
+
977
+
978
+ // CONCATENATED MODULE: ./packages/select/src/select-dropdown.vue?vue&type=template&id=61b27b06
979
+
980
+ // EXTERNAL MODULE: external "element-sim/lib/utils/vue-popper"
981
+ var vue_popper_ = __webpack_require__(5);
982
+ var vue_popper_default = /*#__PURE__*/__webpack_require__.n(vue_popper_);
983
+
984
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/select-dropdown.vue?vue&type=script&lang=js
985
+ //
986
+ //
987
+ //
988
+ //
989
+ //
990
+ //
991
+ //
992
+ //
993
+ //
994
+
995
+
996
+
997
+ /* harmony default export */ var select_dropdownvue_type_script_lang_js = ({
998
+ name: 'ElSelectDropdown',
999
+
1000
+ componentName: 'ElSelectDropdown',
1001
+
1002
+ mixins: [vue_popper_default.a],
1003
+
1004
+ props: {
1005
+ placement: {
1006
+ default: 'bottom-start'
1007
+ },
1008
+
1009
+ boundariesPadding: {
1010
+ default: 0
1011
+ },
1012
+
1013
+ popperOptions: {
1014
+ default: function _default() {
1015
+ return {
1016
+ gpuAcceleration: false
1017
+ };
1018
+ }
1019
+ },
1020
+
1021
+ visibleArrow: {
1022
+ default: true
1023
+ },
1024
+
1025
+ appendToBody: {
1026
+ type: Boolean,
1027
+ default: true
1028
+ }
1029
+ },
1030
+
1031
+ data: function data() {
1032
+ return {
1033
+ minWidth: ''
1034
+ };
1035
+ },
1036
+
1037
+
1038
+ computed: {
1039
+ popperClass: function popperClass() {
1040
+ return this.$parent.popperClass;
1041
+ }
1042
+ },
1043
+
1044
+ watch: {
1045
+ '$parent.inputWidth': function $parentInputWidth() {
1046
+ this.minWidth = this.$parent.$el.getBoundingClientRect().width + 'px';
1047
+ }
1048
+ },
1049
+
1050
+ mounted: function mounted() {
1051
+ var _this = this;
1052
+
1053
+ this.referenceElm = this.$parent.$refs.reference.$el;
1054
+ this.$parent.popperElm = this.popperElm = this.$el;
1055
+ this.$on('updatePopper', function () {
1056
+ if (_this.$parent.visible) _this.updatePopper();
1057
+ });
1058
+ this.$on('destroyPopper', this.destroyPopper);
1059
+ }
1060
+ });
1061
+ // CONCATENATED MODULE: ./packages/select/src/select-dropdown.vue?vue&type=script&lang=js
1062
+ /* harmony default export */ var src_select_dropdownvue_type_script_lang_js = (select_dropdownvue_type_script_lang_js);
1063
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
1064
+ var componentNormalizer = __webpack_require__(0);
1065
+
1066
+ // CONCATENATED MODULE: ./packages/select/src/select-dropdown.vue
1067
+
1068
+
1069
+
1070
+
1071
+
1072
+ /* normalize component */
1073
+
1074
+ var component = Object(componentNormalizer["a" /* default */])(
1075
+ src_select_dropdownvue_type_script_lang_js,
1076
+ select_dropdownvue_type_template_id_61b27b06_render,
1077
+ select_dropdownvue_type_template_id_61b27b06_staticRenderFns,
1078
+ false,
1079
+ null,
1080
+ null,
1081
+ null
1082
+
1083
+ )
1084
+
1085
+ /* harmony default export */ var select_dropdown = (component.exports);
1086
+ // EXTERNAL MODULE: ./packages/select/src/option.vue + 4 modules
1087
+ var src_option = __webpack_require__(33);
1088
+
1089
+ // EXTERNAL MODULE: external "element-sim/lib/tag"
1090
+ var tag_ = __webpack_require__(38);
1091
+ var tag_default = /*#__PURE__*/__webpack_require__.n(tag_);
1092
+
1093
+ // EXTERNAL MODULE: external "element-sim/lib/button"
1094
+ var button_ = __webpack_require__(13);
1095
+ var button_default = /*#__PURE__*/__webpack_require__.n(button_);
1096
+
1097
+ // EXTERNAL MODULE: external "element-sim/lib/scrollbar"
1098
+ var scrollbar_ = __webpack_require__(15);
1099
+ var scrollbar_default = /*#__PURE__*/__webpack_require__.n(scrollbar_);
1100
+
1101
+ // EXTERNAL MODULE: external "throttle-debounce/debounce"
1102
+ var debounce_ = __webpack_require__(19);
1103
+ var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce_);
1104
+
1105
+ // EXTERNAL MODULE: external "element-sim/lib/utils/clickoutside"
1106
+ var clickoutside_ = __webpack_require__(12);
1107
+ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
1108
+
1109
+ // EXTERNAL MODULE: external "element-sim/lib/utils/resize-event"
1110
+ var resize_event_ = __webpack_require__(16);
1111
+
1112
+ // EXTERNAL MODULE: external "element-sim/lib/utils/scroll-into-view"
1113
+ var scroll_into_view_ = __webpack_require__(31);
1114
+ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_view_);
1115
+
1116
+ // EXTERNAL MODULE: external "element-sim/lib/utils/util"
1117
+ var util_ = __webpack_require__(3);
1118
+
1119
+ // CONCATENATED MODULE: ./packages/select/src/navigation-mixin.js
1120
+ /* harmony default export */ var navigation_mixin = ({
1121
+ data: function data() {
1122
+ return {
1123
+ hoverOption: -1
1124
+ };
1125
+ },
1126
+
1127
+
1128
+ computed: {
1129
+ optionsAllDisabled: function optionsAllDisabled() {
1130
+ return this.options.filter(function (option) {
1131
+ return option.visible;
1132
+ }).every(function (option) {
1133
+ return option.disabled;
1134
+ });
1135
+ }
1136
+ },
1137
+
1138
+ watch: {
1139
+ hoverIndex: function hoverIndex(val) {
1140
+ var _this = this;
1141
+
1142
+ if (typeof val === 'number' && val > -1) {
1143
+ this.hoverOption = this.options[val] || {};
1144
+ }
1145
+ this.options.forEach(function (option) {
1146
+ option.hover = _this.hoverOption === option;
1147
+ });
1148
+ }
1149
+ },
1150
+
1151
+ methods: {
1152
+ navigateOptions: function navigateOptions(direction) {
1153
+ var _this2 = this;
1154
+
1155
+ if (!this.visible) {
1156
+ this.visible = true;
1157
+ return;
1158
+ }
1159
+ if (this.options.length === 0 || this.filteredOptionsCount === 0) return;
1160
+ if (!this.optionsAllDisabled) {
1161
+ if (direction === 'next') {
1162
+ this.hoverIndex++;
1163
+ if (this.hoverIndex === this.options.length) {
1164
+ this.hoverIndex = 0;
1165
+ }
1166
+ } else if (direction === 'prev') {
1167
+ this.hoverIndex--;
1168
+ if (this.hoverIndex < 0) {
1169
+ this.hoverIndex = this.options.length - 1;
1170
+ }
1171
+ }
1172
+ var option = this.options[this.hoverIndex];
1173
+ if (option.disabled === true || option.groupDisabled === true || !option.visible) {
1174
+ this.navigateOptions(direction);
1175
+ }
1176
+ this.$nextTick(function () {
1177
+ return _this2.scrollToOption(_this2.hoverOption);
1178
+ });
1179
+ }
1180
+ }
1181
+ }
1182
+ });
1183
+ // EXTERNAL MODULE: external "element-sim/lib/utils/shared"
1184
+ var shared_ = __webpack_require__(21);
1185
+
1186
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/select.vue?vue&type=script&lang=js
1187
+ //
1188
+ //
1189
+ //
1190
+ //
1191
+ //
1192
+ //
1193
+ //
1194
+ //
1195
+ //
1196
+ //
1197
+ //
1198
+ //
1199
+ //
1200
+ //
1201
+ //
1202
+ //
1203
+ //
1204
+ //
1205
+ //
1206
+ //
1207
+ //
1208
+ //
1209
+ //
1210
+ //
1211
+ //
1212
+ //
1213
+ //
1214
+ //
1215
+ //
1216
+ //
1217
+ //
1218
+ //
1219
+ //
1220
+ //
1221
+ //
1222
+ //
1223
+ //
1224
+ //
1225
+ //
1226
+ //
1227
+ //
1228
+ //
1229
+ //
1230
+ //
1231
+ //
1232
+ //
1233
+ //
1234
+ //
1235
+ //
1236
+ //
1237
+ //
1238
+ //
1239
+ //
1240
+ //
1241
+ //
1242
+ //
1243
+ //
1244
+ //
1245
+ //
1246
+ //
1247
+ //
1248
+ //
1249
+ //
1250
+ //
1251
+ //
1252
+ //
1253
+ //
1254
+ //
1255
+ //
1256
+ //
1257
+ //
1258
+ //
1259
+ //
1260
+ //
1261
+ //
1262
+ //
1263
+ //
1264
+ //
1265
+ //
1266
+ //
1267
+ //
1268
+ //
1269
+ //
1270
+ //
1271
+ //
1272
+ //
1273
+ //
1274
+ //
1275
+ //
1276
+ //
1277
+ //
1278
+ //
1279
+ //
1280
+ //
1281
+ //
1282
+ //
1283
+ //
1284
+ //
1285
+ //
1286
+ //
1287
+ //
1288
+ //
1289
+ //
1290
+ //
1291
+ //
1292
+ //
1293
+ //
1294
+ //
1295
+ //
1296
+ //
1297
+ //
1298
+ //
1299
+ //
1300
+ //
1301
+ //
1302
+ //
1303
+ //
1304
+ //
1305
+ //
1306
+ //
1307
+ //
1308
+ //
1309
+ //
1310
+ //
1311
+ //
1312
+ //
1313
+ //
1314
+ //
1315
+ //
1316
+ //
1317
+ //
1318
+ //
1319
+ //
1320
+ //
1321
+ //
1322
+ //
1323
+ //
1324
+ //
1325
+ //
1326
+ //
1327
+ //
1328
+ //
1329
+
1330
+
1331
+
1332
+
1333
+
1334
+
1335
+
1336
+
1337
+
1338
+
1339
+
1340
+
1341
+
1342
+
1343
+
1344
+
1345
+
1346
+
1347
+ /* harmony default export */ var selectvue_type_script_lang_js = ({
1348
+ mixins: [emitter_default.a, locale_default.a, focus_default()('reference'), navigation_mixin],
1349
+
1350
+ name: 'ElSelect',
1351
+
1352
+ componentName: 'ElSelect',
1353
+
1354
+ inject: {
1355
+ elForm: {
1356
+ default: ''
1357
+ },
1358
+
1359
+ elFormItem: {
1360
+ default: ''
1361
+ }
1362
+ },
1363
+
1364
+ provide: function provide() {
1365
+ return {
1366
+ 'select': this
1367
+ };
1368
+ },
1369
+
1370
+
1371
+ computed: {
1372
+ _elFormItemSize: function _elFormItemSize() {
1373
+ return (this.elFormItem || {}).elFormItemSize;
1374
+ },
1375
+ readonly: function readonly() {
1376
+ return !this.filterable || this.multiple || !Object(util_["isIE"])() && !Object(util_["isEdge"])() && !this.visible;
1377
+ },
1378
+ showClose: function showClose() {
1379
+ var hasValue = this.multiple ? Array.isArray(this.value) && this.value.length > 0 : this.value !== undefined && this.value !== null && this.value !== '';
1380
+ var criteria = this.clearable && !this.selectDisabled && this.inputHovering && hasValue;
1381
+ return criteria;
1382
+ },
1383
+ iconClass: function iconClass() {
1384
+ return this.remote && this.filterable ? '' : this.visible ? 'caret-top is-reverse' : 'caret-top';
1385
+ },
1386
+ debounce: function debounce() {
1387
+ return this.remote ? 300 : 0;
1388
+ },
1389
+ emptyText: function emptyText() {
1390
+ if (this.loading) {
1391
+ return this.loadingText || this.t('el.select.loading');
1392
+ } else {
1393
+ if (this.remote && this.query === '' && this.options.length === 0) return false;
1394
+ if (this.filterable && this.query && this.options.length > 0 && this.filteredOptionsCount === 0) {
1395
+ return this.noMatchText || this.t('el.select.noMatch');
1396
+ }
1397
+ if (this.options.length === 0) {
1398
+ return this.noDataText || this.t('el.select.noData');
1399
+ }
1400
+ }
1401
+ return null;
1402
+ },
1403
+ showNewOption: function showNewOption() {
1404
+ var _this = this;
1405
+
1406
+ var hasExistingOption = this.options.filter(function (option) {
1407
+ return !option.created;
1408
+ }).some(function (option) {
1409
+ return option.currentLabel === _this.query;
1410
+ });
1411
+ return this.filterable && this.allowCreate && this.query !== '' && !hasExistingOption;
1412
+ },
1413
+ selectSize: function selectSize() {
1414
+ return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
1415
+ },
1416
+ selectDisabled: function selectDisabled() {
1417
+ return this.disabled || (this.elForm || {}).disabled;
1418
+ },
1419
+ collapseTagSize: function collapseTagSize() {
1420
+ return ['small', 'mini'].indexOf(this.selectSize) > -1 ? 'mini' : 'small';
1421
+ },
1422
+ propPlaceholder: function propPlaceholder() {
1423
+ return typeof this.placeholder !== 'undefined' ? this.placeholder : this.t('el.select.placeholder');
1424
+ }
1425
+ },
1426
+
1427
+ components: {
1428
+ ElInput: input_default.a,
1429
+ ElSelectMenu: select_dropdown,
1430
+ ElOption: src_option["a" /* default */],
1431
+ ElTag: tag_default.a,
1432
+ ElButton: button_default.a,
1433
+ ElScrollbar: scrollbar_default.a
1434
+ },
1435
+
1436
+ directives: { Clickoutside: clickoutside_default.a },
1437
+
1438
+ props: {
1439
+ name: String,
1440
+ id: String,
1441
+ value: {
1442
+ required: true
1443
+ },
1444
+ autocomplete: {
1445
+ type: String,
1446
+ default: 'off'
1447
+ },
1448
+ /** @Deprecated in next major version */
1449
+ autoComplete: {
1450
+ type: String,
1451
+ validator: function validator(val) {
1452
+ false && false;
1453
+ return true;
1454
+ }
1455
+ },
1456
+ automaticDropdown: Boolean,
1457
+ size: String,
1458
+ disabled: Boolean,
1459
+ clearable: Boolean,
1460
+ filterable: Boolean,
1461
+ allowCreate: Boolean,
1462
+ loading: Boolean,
1463
+ popperClass: String,
1464
+ remote: Boolean,
1465
+ loadingText: String,
1466
+ noMatchText: String,
1467
+ noDataText: String,
1468
+ remoteMethod: Function,
1469
+ filterMethod: Function,
1470
+ multiple: Boolean,
1471
+ multipleLimit: {
1472
+ type: Number,
1473
+ default: 0
1474
+ },
1475
+ placeholder: {
1476
+ type: String,
1477
+ required: false
1478
+ },
1479
+ defaultFirstOption: Boolean,
1480
+ reserveKeyword: Boolean,
1481
+ valueKey: {
1482
+ type: String,
1483
+ default: 'value'
1484
+ },
1485
+ collapseTags: Boolean,
1486
+ popperAppendToBody: {
1487
+ type: Boolean,
1488
+ default: true
1489
+ },
1490
+ addText: String,
1491
+ addBtn: Boolean
1492
+ },
1493
+ data: function data() {
1494
+ return {
1495
+ options: [],
1496
+ cachedOptions: [],
1497
+ createdLabel: null,
1498
+ createdSelected: false,
1499
+ selected: this.multiple ? [] : {},
1500
+ inputLength: 20,
1501
+ inputWidth: 0,
1502
+ initialInputHeight: 0,
1503
+ cachedPlaceHolder: '',
1504
+ optionsCount: 0,
1505
+ filteredOptionsCount: 0,
1506
+ visible: false,
1507
+ softFocus: false,
1508
+ selectedLabel: '',
1509
+ hoverIndex: -1,
1510
+ query: '',
1511
+ previousQuery: null,
1512
+ inputHovering: false,
1513
+ currentPlaceholder: '',
1514
+ menuVisibleOnFocus: false,
1515
+ isOnComposition: false,
1516
+ isSilentBlur: false
1517
+ };
1518
+ },
1519
+
1520
+
1521
+ watch: {
1522
+ selectDisabled: function selectDisabled() {
1523
+ var _this2 = this;
1524
+
1525
+ this.$nextTick(function () {
1526
+ _this2.resetInputHeight();
1527
+ });
1528
+ },
1529
+ propPlaceholder: function propPlaceholder(val) {
1530
+ this.cachedPlaceHolder = this.currentPlaceholder = val;
1531
+ },
1532
+ value: function value(val, oldVal) {
1533
+ if (this.multiple) {
1534
+ this.resetInputHeight();
1535
+ if (val && val.length > 0 || this.$refs.input && this.query !== '') {
1536
+ this.currentPlaceholder = '';
1537
+ } else {
1538
+ this.currentPlaceholder = this.cachedPlaceHolder;
1539
+ }
1540
+ if (this.filterable && !this.reserveKeyword) {
1541
+ this.query = '';
1542
+ this.handleQueryChange(this.query);
1543
+ }
1544
+ }
1545
+ this.setSelected();
1546
+ if (this.filterable && !this.multiple) {
1547
+ this.inputLength = 20;
1548
+ }
1549
+ if (!Object(util_["valueEquals"])(val, oldVal)) {
1550
+ this.dispatch('ElFormItem', 'el.form.change', val);
1551
+ }
1552
+ },
1553
+ visible: function visible(val) {
1554
+ var _this3 = this;
1555
+
1556
+ if (!val) {
1557
+ this.broadcast('ElSelectDropdown', 'destroyPopper');
1558
+ if (this.$refs.input) {
1559
+ this.$refs.input.blur();
1560
+ }
1561
+ this.query = '';
1562
+ this.previousQuery = null;
1563
+ this.selectedLabel = '';
1564
+ this.inputLength = 20;
1565
+ this.menuVisibleOnFocus = false;
1566
+ this.resetHoverIndex();
1567
+ this.$nextTick(function () {
1568
+ if (_this3.$refs.input && _this3.$refs.input.value === '' && _this3.selected.length === 0) {
1569
+ _this3.currentPlaceholder = _this3.cachedPlaceHolder;
1570
+ }
1571
+ });
1572
+ if (!this.multiple) {
1573
+ if (this.selected) {
1574
+ if (this.filterable && this.allowCreate && this.createdSelected && this.createdLabel) {
1575
+ this.selectedLabel = this.createdLabel;
1576
+ } else {
1577
+ this.selectedLabel = this.selected.currentLabel;
1578
+ }
1579
+ if (this.filterable) this.query = this.selectedLabel;
1580
+ }
1581
+
1582
+ if (this.filterable) {
1583
+ this.currentPlaceholder = this.cachedPlaceHolder;
1584
+ }
1585
+ }
1586
+ } else {
1587
+ this.broadcast('ElSelectDropdown', 'updatePopper');
1588
+ if (this.filterable) {
1589
+ this.query = this.remote ? '' : this.selectedLabel;
1590
+ this.handleQueryChange(this.query);
1591
+ if (this.multiple) {
1592
+ this.$refs.input.focus();
1593
+ } else {
1594
+ if (!this.remote) {
1595
+ this.broadcast('ElOption', 'queryChange', '');
1596
+ this.broadcast('ElOptionGroup', 'queryChange');
1597
+ }
1598
+
1599
+ if (this.selectedLabel) {
1600
+ this.currentPlaceholder = this.selectedLabel;
1601
+ this.selectedLabel = '';
1602
+ }
1603
+ }
1604
+ }
1605
+ }
1606
+ this.$emit('visible-change', val);
1607
+ },
1608
+ options: function options() {
1609
+ var _this4 = this;
1610
+
1611
+ if (this.$isServer) return;
1612
+ this.$nextTick(function () {
1613
+ _this4.broadcast('ElSelectDropdown', 'updatePopper');
1614
+ });
1615
+ if (this.multiple) {
1616
+ this.resetInputHeight();
1617
+ }
1618
+ var inputs = this.$el.querySelectorAll('input');
1619
+ if ([].indexOf.call(inputs, document.activeElement) === -1) {
1620
+ this.setSelected();
1621
+ }
1622
+ if (this.defaultFirstOption && (this.filterable || this.remote) && this.filteredOptionsCount) {
1623
+ this.checkDefaultFirstOption();
1624
+ }
1625
+ }
1626
+ },
1627
+
1628
+ methods: {
1629
+ toClickBtn: function toClickBtn(event) {
1630
+ this.$emit('click-btn', event);
1631
+ },
1632
+ handleNavigate: function handleNavigate(direction) {
1633
+ if (this.isOnComposition) return;
1634
+
1635
+ this.navigateOptions(direction);
1636
+ },
1637
+ handleComposition: function handleComposition(event) {
1638
+ var _this5 = this;
1639
+
1640
+ var text = event.target.value;
1641
+ if (event.type === 'compositionend') {
1642
+ this.isOnComposition = false;
1643
+ this.$nextTick(function (_) {
1644
+ return _this5.handleQueryChange(text);
1645
+ });
1646
+ } else {
1647
+ var lastCharacter = text[text.length - 1] || '';
1648
+ this.isOnComposition = !Object(shared_["isKorean"])(lastCharacter);
1649
+ }
1650
+ },
1651
+ handleQueryChange: function handleQueryChange(val) {
1652
+ var _this6 = this;
1653
+
1654
+ if (this.previousQuery === val || this.isOnComposition) return;
1655
+ if (this.previousQuery === null && (typeof this.filterMethod === 'function' || typeof this.remoteMethod === 'function')) {
1656
+ this.previousQuery = val;
1657
+ return;
1658
+ }
1659
+ this.previousQuery = val;
1660
+ this.$nextTick(function () {
1661
+ if (_this6.visible) _this6.broadcast('ElSelectDropdown', 'updatePopper');
1662
+ });
1663
+ this.hoverIndex = -1;
1664
+ if (this.multiple && this.filterable) {
1665
+ this.$nextTick(function () {
1666
+ var length = _this6.$refs.input.value.length * 15 + 20;
1667
+ _this6.inputLength = _this6.collapseTags ? Math.min(50, length) : length;
1668
+ _this6.managePlaceholder();
1669
+ _this6.resetInputHeight();
1670
+ });
1671
+ }
1672
+ if (this.remote && typeof this.remoteMethod === 'function') {
1673
+ this.hoverIndex = -1;
1674
+ this.remoteMethod(val);
1675
+ } else if (typeof this.filterMethod === 'function') {
1676
+ this.filterMethod(val);
1677
+ this.broadcast('ElOptionGroup', 'queryChange');
1678
+ } else {
1679
+ this.filteredOptionsCount = this.optionsCount;
1680
+ this.broadcast('ElOption', 'queryChange', val);
1681
+ this.broadcast('ElOptionGroup', 'queryChange');
1682
+ }
1683
+ if (this.defaultFirstOption && (this.filterable || this.remote) && this.filteredOptionsCount) {
1684
+ this.checkDefaultFirstOption();
1685
+ }
1686
+ },
1687
+ scrollToOption: function scrollToOption(option) {
1688
+ var target = Array.isArray(option) && option[0] ? option[0].$el : option.$el;
1689
+ if (this.$refs.popper && target) {
1690
+ var menu = this.$refs.popper.$el.querySelector('.el-select-dropdown__wrap');
1691
+ scroll_into_view_default()(menu, target);
1692
+ }
1693
+ this.$refs.scrollbar && this.$refs.scrollbar.handleScroll();
1694
+ },
1695
+ handleMenuEnter: function handleMenuEnter() {
1696
+ var _this7 = this;
1697
+
1698
+ this.$nextTick(function () {
1699
+ return _this7.scrollToOption(_this7.selected);
1700
+ });
1701
+ },
1702
+ emitChange: function emitChange(val) {
1703
+ if (!Object(util_["valueEquals"])(this.value, val)) {
1704
+ this.$emit('change', val);
1705
+ }
1706
+ },
1707
+ getOption: function getOption(value) {
1708
+ var option = void 0;
1709
+ var isObject = Object.prototype.toString.call(value).toLowerCase() === '[object object]';
1710
+ var isNull = Object.prototype.toString.call(value).toLowerCase() === '[object null]';
1711
+ var isUndefined = Object.prototype.toString.call(value).toLowerCase() === '[object undefined]';
1712
+
1713
+ for (var i = this.cachedOptions.length - 1; i >= 0; i--) {
1714
+ var cachedOption = this.cachedOptions[i];
1715
+ var isEqual = isObject ? Object(util_["getValueByPath"])(cachedOption.value, this.valueKey) === Object(util_["getValueByPath"])(value, this.valueKey) : cachedOption.value === value;
1716
+ if (isEqual) {
1717
+ option = cachedOption;
1718
+ break;
1719
+ }
1720
+ }
1721
+ if (option) return option;
1722
+ var label = !isObject && !isNull && !isUndefined ? String(value) : '';
1723
+ var newOption = {
1724
+ value: value,
1725
+ currentLabel: label
1726
+ };
1727
+ if (this.multiple) {
1728
+ newOption.hitState = false;
1729
+ }
1730
+ return newOption;
1731
+ },
1732
+ setSelected: function setSelected() {
1733
+ var _this8 = this;
1734
+
1735
+ if (!this.multiple) {
1736
+ var option = this.getOption(this.value);
1737
+ if (option.created) {
1738
+ this.createdLabel = option.currentLabel;
1739
+ this.createdSelected = true;
1740
+ } else {
1741
+ this.createdSelected = false;
1742
+ }
1743
+ this.selectedLabel = option.currentLabel;
1744
+ this.selected = option;
1745
+ if (this.filterable) this.query = this.selectedLabel;
1746
+ return;
1747
+ }
1748
+ var result = [];
1749
+ if (Array.isArray(this.value)) {
1750
+ this.value.forEach(function (value) {
1751
+ result.push(_this8.getOption(value));
1752
+ });
1753
+ }
1754
+ this.selected = result;
1755
+ this.$nextTick(function () {
1756
+ _this8.resetInputHeight();
1757
+ });
1758
+ },
1759
+ handleFocus: function handleFocus(event) {
1760
+ if (!this.softFocus) {
1761
+ if (this.automaticDropdown || this.filterable) {
1762
+ if (this.filterable && !this.visible) {
1763
+ this.menuVisibleOnFocus = true;
1764
+ }
1765
+ this.visible = true;
1766
+ }
1767
+ this.$emit('focus', event);
1768
+ } else {
1769
+ this.softFocus = false;
1770
+ }
1771
+ },
1772
+ blur: function blur() {
1773
+ this.visible = false;
1774
+ this.$refs.reference.blur();
1775
+ },
1776
+ handleBlur: function handleBlur(event) {
1777
+ var _this9 = this;
1778
+
1779
+ setTimeout(function () {
1780
+ if (_this9.isSilentBlur) {
1781
+ _this9.isSilentBlur = false;
1782
+ } else {
1783
+ _this9.$emit('blur', event);
1784
+ }
1785
+ }, 50);
1786
+ this.softFocus = false;
1787
+ },
1788
+ handleClearClick: function handleClearClick(event) {
1789
+ this.deleteSelected(event);
1790
+ },
1791
+ doDestroy: function doDestroy() {
1792
+ this.$refs.popper && this.$refs.popper.doDestroy();
1793
+ },
1794
+ handleClose: function handleClose() {
1795
+ this.visible = false;
1796
+ },
1797
+ toggleLastOptionHitState: function toggleLastOptionHitState(hit) {
1798
+ if (!Array.isArray(this.selected)) return;
1799
+ var option = this.selected[this.selected.length - 1];
1800
+ if (!option) return;
1801
+
1802
+ if (hit === true || hit === false) {
1803
+ option.hitState = hit;
1804
+ return hit;
1805
+ }
1806
+
1807
+ option.hitState = !option.hitState;
1808
+ return option.hitState;
1809
+ },
1810
+ deletePrevTag: function deletePrevTag(e) {
1811
+ if (e.target.value.length <= 0 && !this.toggleLastOptionHitState()) {
1812
+ var value = this.value.slice();
1813
+ value.pop();
1814
+ this.$emit('input', value);
1815
+ this.emitChange(value);
1816
+ }
1817
+ },
1818
+ managePlaceholder: function managePlaceholder() {
1819
+ if (this.currentPlaceholder !== '') {
1820
+ this.currentPlaceholder = this.$refs.input.value ? '' : this.cachedPlaceHolder;
1821
+ }
1822
+ },
1823
+ resetInputState: function resetInputState(e) {
1824
+ if (e.keyCode !== 8) this.toggleLastOptionHitState(false);
1825
+ this.inputLength = this.$refs.input.value.length * 15 + 20;
1826
+ this.resetInputHeight();
1827
+ },
1828
+ resetInputHeight: function resetInputHeight() {
1829
+ var _this10 = this;
1830
+
1831
+ if (this.collapseTags && !this.filterable) return;
1832
+ this.$nextTick(function () {
1833
+ if (!_this10.$refs.reference) return;
1834
+ var inputChildNodes = _this10.$refs.reference.$el.childNodes;
1835
+ var input = [].filter.call(inputChildNodes, function (item) {
1836
+ return item.tagName === 'INPUT';
1837
+ })[0];
1838
+ var tags = _this10.$refs.tags;
1839
+ var tagsHeight = tags ? Math.round(tags.getBoundingClientRect().height) : 0;
1840
+ var sizeInMap = _this10.initialInputHeight || 40;
1841
+ input.style.height = _this10.selected.length === 0 ? sizeInMap + 'px' : Math.max(tags ? tagsHeight + (tagsHeight > sizeInMap ? 6 : 0) : 0, sizeInMap) + 'px';
1842
+ if (_this10.visible && _this10.emptyText !== false) {
1843
+ _this10.broadcast('ElSelectDropdown', 'updatePopper');
1844
+ }
1845
+ });
1846
+ },
1847
+ resetHoverIndex: function resetHoverIndex() {
1848
+ var _this11 = this;
1849
+
1850
+ setTimeout(function () {
1851
+ if (!_this11.multiple) {
1852
+ _this11.hoverIndex = _this11.options.indexOf(_this11.selected);
1853
+ } else {
1854
+ if (_this11.selected.length > 0) {
1855
+ _this11.hoverIndex = Math.min.apply(null, _this11.selected.map(function (item) {
1856
+ return _this11.options.indexOf(item);
1857
+ }));
1858
+ } else {
1859
+ _this11.hoverIndex = -1;
1860
+ }
1861
+ }
1862
+ }, 300);
1863
+ },
1864
+ handleOptionSelect: function handleOptionSelect(option, byClick) {
1865
+ var _this12 = this;
1866
+
1867
+ if (this.multiple) {
1868
+ var value = (this.value || []).slice();
1869
+ var optionIndex = this.getValueIndex(value, option.value);
1870
+ if (optionIndex > -1) {
1871
+ value.splice(optionIndex, 1);
1872
+ } else if (this.multipleLimit <= 0 || value.length < this.multipleLimit) {
1873
+ value.push(option.value);
1874
+ }
1875
+ this.$emit('input', value);
1876
+ this.emitChange(value);
1877
+ if (option.created) {
1878
+ this.query = '';
1879
+ this.handleQueryChange('');
1880
+ this.inputLength = 20;
1881
+ }
1882
+ if (this.filterable) this.$refs.input.focus();
1883
+ } else {
1884
+ this.$emit('input', option.value);
1885
+ this.emitChange(option.value);
1886
+ this.visible = false;
1887
+ }
1888
+ this.isSilentBlur = byClick;
1889
+ this.setSoftFocus();
1890
+ if (this.visible) return;
1891
+ this.$nextTick(function () {
1892
+ _this12.scrollToOption(option);
1893
+ });
1894
+ },
1895
+ setSoftFocus: function setSoftFocus() {
1896
+ this.softFocus = true;
1897
+ var input = this.$refs.input || this.$refs.reference;
1898
+ if (input) {
1899
+ input.focus();
1900
+ }
1901
+ },
1902
+ getValueIndex: function getValueIndex() {
1903
+ var arr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
1904
+ var value = arguments[1];
1905
+
1906
+ var isObject = Object.prototype.toString.call(value).toLowerCase() === '[object object]';
1907
+ if (!isObject) {
1908
+ return arr.indexOf(value);
1909
+ } else {
1910
+ var valueKey = this.valueKey;
1911
+ var index = -1;
1912
+ arr.some(function (item, i) {
1913
+ if (Object(util_["getValueByPath"])(item, valueKey) === Object(util_["getValueByPath"])(value, valueKey)) {
1914
+ index = i;
1915
+ return true;
1916
+ }
1917
+ return false;
1918
+ });
1919
+ return index;
1920
+ }
1921
+ },
1922
+ toggleMenu: function toggleMenu() {
1923
+ if (!this.selectDisabled) {
1924
+ if (this.menuVisibleOnFocus) {
1925
+ this.menuVisibleOnFocus = false;
1926
+ } else {
1927
+ this.visible = !this.visible;
1928
+ }
1929
+ if (this.visible) {
1930
+ (this.$refs.input || this.$refs.reference).focus();
1931
+ }
1932
+ }
1933
+ },
1934
+ selectOption: function selectOption() {
1935
+ if (!this.visible) {
1936
+ this.toggleMenu();
1937
+ } else {
1938
+ if (this.options[this.hoverIndex]) {
1939
+ this.handleOptionSelect(this.options[this.hoverIndex]);
1940
+ }
1941
+ }
1942
+ },
1943
+ deleteSelected: function deleteSelected(event) {
1944
+ event.stopPropagation();
1945
+ var value = this.multiple ? [] : '';
1946
+ this.$emit('input', value);
1947
+ this.emitChange(value);
1948
+ this.visible = false;
1949
+ this.$emit('clear');
1950
+ },
1951
+ deleteTag: function deleteTag(event, tag) {
1952
+ var index = this.selected.indexOf(tag);
1953
+ if (index > -1 && !this.selectDisabled) {
1954
+ var value = this.value.slice();
1955
+ value.splice(index, 1);
1956
+ this.$emit('input', value);
1957
+ this.emitChange(value);
1958
+ this.$emit('remove-tag', tag.value);
1959
+ }
1960
+ event.stopPropagation();
1961
+ },
1962
+ onInputChange: function onInputChange() {
1963
+ if (this.filterable && this.query !== this.selectedLabel) {
1964
+ this.query = this.selectedLabel;
1965
+ this.handleQueryChange(this.query);
1966
+ }
1967
+ },
1968
+ onOptionDestroy: function onOptionDestroy(index) {
1969
+ if (index > -1) {
1970
+ this.optionsCount--;
1971
+ this.filteredOptionsCount--;
1972
+ this.options.splice(index, 1);
1973
+ }
1974
+ },
1975
+ resetInputWidth: function resetInputWidth() {
1976
+ this.inputWidth = this.$refs.reference.$el.getBoundingClientRect().width;
1977
+ },
1978
+ handleResize: function handleResize() {
1979
+ this.resetInputWidth();
1980
+ if (this.multiple) this.resetInputHeight();
1981
+ },
1982
+ checkDefaultFirstOption: function checkDefaultFirstOption() {
1983
+ this.hoverIndex = -1;
1984
+ // highlight the created option
1985
+ var hasCreated = false;
1986
+ for (var i = this.options.length - 1; i >= 0; i--) {
1987
+ if (this.options[i].created) {
1988
+ hasCreated = true;
1989
+ this.hoverIndex = i;
1990
+ break;
1991
+ }
1992
+ }
1993
+ if (hasCreated) return;
1994
+ for (var _i = 0; _i !== this.options.length; ++_i) {
1995
+ var option = this.options[_i];
1996
+ if (this.query) {
1997
+ // highlight first options that passes the filter
1998
+ if (!option.disabled && !option.groupDisabled && option.visible) {
1999
+ this.hoverIndex = _i;
2000
+ break;
2001
+ }
2002
+ } else {
2003
+ // highlight currently selected option
2004
+ if (option.itemSelected) {
2005
+ this.hoverIndex = _i;
2006
+ break;
2007
+ }
2008
+ }
2009
+ }
2010
+ },
2011
+ getValueKey: function getValueKey(item) {
2012
+ if (Object.prototype.toString.call(item.value).toLowerCase() !== '[object object]') {
2013
+ return item.value;
2014
+ } else {
2015
+ return Object(util_["getValueByPath"])(item.value, this.valueKey);
2016
+ }
2017
+ }
2018
+ },
2019
+
2020
+ created: function created() {
2021
+ var _this13 = this;
2022
+
2023
+ this.cachedPlaceHolder = this.currentPlaceholder = this.propPlaceholder;
2024
+ if (this.multiple && !Array.isArray(this.value)) {
2025
+ this.$emit('input', []);
2026
+ }
2027
+ if (!this.multiple && Array.isArray(this.value)) {
2028
+ this.$emit('input', '');
2029
+ }
2030
+
2031
+ this.debouncedOnInputChange = debounce_default()(this.debounce, function () {
2032
+ _this13.onInputChange();
2033
+ });
2034
+
2035
+ this.debouncedQueryChange = debounce_default()(this.debounce, function (e) {
2036
+ _this13.handleQueryChange(e.target.value);
2037
+ });
2038
+
2039
+ this.$on('handleOptionClick', this.handleOptionSelect);
2040
+ this.$on('setSelected', this.setSelected);
2041
+ },
2042
+ mounted: function mounted() {
2043
+ var _this14 = this;
2044
+
2045
+ if (this.multiple && Array.isArray(this.value) && this.value.length > 0) {
2046
+ this.currentPlaceholder = '';
2047
+ }
2048
+ Object(resize_event_["addResizeListener"])(this.$el, this.handleResize);
2049
+
2050
+ var reference = this.$refs.reference;
2051
+ if (reference && reference.$el) {
2052
+ var sizeMap = {
2053
+ medium: 36,
2054
+ small: 32,
2055
+ mini: 28
2056
+ };
2057
+ var input = reference.$el.querySelector('input');
2058
+ this.initialInputHeight = input.getBoundingClientRect().height || sizeMap[this.selectSize];
2059
+ }
2060
+ if (this.remote && this.multiple) {
2061
+ this.resetInputHeight();
2062
+ }
2063
+ this.$nextTick(function () {
2064
+ if (reference && reference.$el) {
2065
+ _this14.inputWidth = reference.$el.getBoundingClientRect().width;
2066
+ }
2067
+ });
2068
+ this.setSelected();
2069
+ },
2070
+ beforeDestroy: function beforeDestroy() {
2071
+ if (this.$el && this.handleResize) Object(resize_event_["removeResizeListener"])(this.$el, this.handleResize);
2072
+ }
2073
+ });
2074
+ // CONCATENATED MODULE: ./packages/select/src/select.vue?vue&type=script&lang=js
2075
+ /* harmony default export */ var src_selectvue_type_script_lang_js = (selectvue_type_script_lang_js);
2076
+ // CONCATENATED MODULE: ./packages/select/src/select.vue
2077
+
2078
+
2079
+
2080
+
2081
+
2082
+ /* normalize component */
2083
+
2084
+ var select_component = Object(componentNormalizer["a" /* default */])(
2085
+ src_selectvue_type_script_lang_js,
2086
+ render,
2087
+ staticRenderFns,
2088
+ false,
2089
+ null,
2090
+ null,
2091
+ null
2092
+
2093
+ )
2094
+
2095
+ /* harmony default export */ var src_select = (select_component.exports);
2096
+ // CONCATENATED MODULE: ./packages/select/index.js
2097
+
2098
+
2099
+ /* istanbul ignore next */
2100
+ src_select.install = function (Vue) {
2101
+ Vue.component(src_select.name, src_select);
2102
+ };
2103
+
2104
+ /* harmony default export */ var packages_select = __webpack_exports__["default"] = (src_select);
2105
+
2106
+ /***/ })
2107
+
2108
+ /******/ });