@laozei/element-ui 2.16.1 → 2.16.2

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