@penggy/element-ui 2.4.11

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 (790) hide show
  1. package/CHANGELOG.en-US.md +748 -0
  2. package/CHANGELOG.es.md +756 -0
  3. package/CHANGELOG.zh-CN.md +748 -0
  4. package/LICENSE +21 -0
  5. package/README.md +237 -0
  6. package/lib/alert.js +343 -0
  7. package/lib/aside.js +277 -0
  8. package/lib/autocomplete.js +767 -0
  9. package/lib/badge.js +316 -0
  10. package/lib/breadcrumb-item.js +303 -0
  11. package/lib/breadcrumb.js +290 -0
  12. package/lib/button-group.js +267 -0
  13. package/lib/button.js +345 -0
  14. package/lib/card.js +280 -0
  15. package/lib/carousel-item.js +378 -0
  16. package/lib/carousel.js +532 -0
  17. package/lib/cascader.js +1338 -0
  18. package/lib/checkbox-button.js +446 -0
  19. package/lib/checkbox-group.js +310 -0
  20. package/lib/checkbox.js +481 -0
  21. package/lib/col.js +172 -0
  22. package/lib/collapse-item.js +404 -0
  23. package/lib/collapse.js +326 -0
  24. package/lib/color-picker.js +1826 -0
  25. package/lib/container.js +288 -0
  26. package/lib/date-picker.js +4396 -0
  27. package/lib/dialog.js +490 -0
  28. package/lib/directives/mousewheel.js +26 -0
  29. package/lib/directives/repeat-click.js +30 -0
  30. package/lib/dropdown-item.js +305 -0
  31. package/lib/dropdown-menu.js +330 -0
  32. package/lib/dropdown.js +623 -0
  33. package/lib/element-ui.common.js +32381 -0
  34. package/lib/footer.js +277 -0
  35. package/lib/form-item.js +610 -0
  36. package/lib/form.js +428 -0
  37. package/lib/header.js +277 -0
  38. package/lib/icon.js +270 -0
  39. package/lib/index.js +1 -0
  40. package/lib/input-number.js +590 -0
  41. package/lib/input.js +735 -0
  42. package/lib/loading.js +616 -0
  43. package/lib/locale/format.js +56 -0
  44. package/lib/locale/index.js +63 -0
  45. package/lib/locale/lang/af-ZA.js +112 -0
  46. package/lib/locale/lang/ar.js +111 -0
  47. package/lib/locale/lang/bg.js +112 -0
  48. package/lib/locale/lang/ca.js +111 -0
  49. package/lib/locale/lang/cs-CZ.js +114 -0
  50. package/lib/locale/lang/da.js +111 -0
  51. package/lib/locale/lang/de.js +113 -0
  52. package/lib/locale/lang/ee.js +112 -0
  53. package/lib/locale/lang/el.js +112 -0
  54. package/lib/locale/lang/en.js +112 -0
  55. package/lib/locale/lang/es.js +111 -0
  56. package/lib/locale/lang/eu.js +112 -0
  57. package/lib/locale/lang/fa.js +112 -0
  58. package/lib/locale/lang/fi.js +112 -0
  59. package/lib/locale/lang/fr.js +111 -0
  60. package/lib/locale/lang/he.js +112 -0
  61. package/lib/locale/lang/hu.js +111 -0
  62. package/lib/locale/lang/id.js +112 -0
  63. package/lib/locale/lang/it.js +111 -0
  64. package/lib/locale/lang/ja.js +112 -0
  65. package/lib/locale/lang/km.js +112 -0
  66. package/lib/locale/lang/ko.js +112 -0
  67. package/lib/locale/lang/ku.js +112 -0
  68. package/lib/locale/lang/kz.js +112 -0
  69. package/lib/locale/lang/lt.js +112 -0
  70. package/lib/locale/lang/lv.js +112 -0
  71. package/lib/locale/lang/mn.js +112 -0
  72. package/lib/locale/lang/nb-NO.js +111 -0
  73. package/lib/locale/lang/nl.js +112 -0
  74. package/lib/locale/lang/pl.js +112 -0
  75. package/lib/locale/lang/pt-br.js +112 -0
  76. package/lib/locale/lang/pt.js +112 -0
  77. package/lib/locale/lang/ro.js +112 -0
  78. package/lib/locale/lang/ru-RU.js +112 -0
  79. package/lib/locale/lang/sk.js +114 -0
  80. package/lib/locale/lang/sl.js +112 -0
  81. package/lib/locale/lang/sr.js +112 -0
  82. package/lib/locale/lang/sv-SE.js +112 -0
  83. package/lib/locale/lang/ta.js +111 -0
  84. package/lib/locale/lang/th.js +112 -0
  85. package/lib/locale/lang/tk.js +112 -0
  86. package/lib/locale/lang/tr-TR.js +112 -0
  87. package/lib/locale/lang/ua.js +112 -0
  88. package/lib/locale/lang/ug-CN.js +112 -0
  89. package/lib/locale/lang/vi.js +112 -0
  90. package/lib/locale/lang/zh-CN.js +112 -0
  91. package/lib/locale/lang/zh-TW.js +112 -0
  92. package/lib/main.js +269 -0
  93. package/lib/menu-item-group.js +302 -0
  94. package/lib/menu-item.js +444 -0
  95. package/lib/menu.js +915 -0
  96. package/lib/message-box.js +917 -0
  97. package/lib/message.js +483 -0
  98. package/lib/mixins/emitter.js +36 -0
  99. package/lib/mixins/focus.js +15 -0
  100. package/lib/mixins/locale.js +17 -0
  101. package/lib/mixins/migrating.js +64 -0
  102. package/lib/notification.js +539 -0
  103. package/lib/option-group.js +327 -0
  104. package/lib/option.js +443 -0
  105. package/lib/pagination.js +1000 -0
  106. package/lib/popover.js +545 -0
  107. package/lib/progress.js +406 -0
  108. package/lib/radio-button.js +389 -0
  109. package/lib/radio-group.js +370 -0
  110. package/lib/radio.js +402 -0
  111. package/lib/rate.js +607 -0
  112. package/lib/row.js +144 -0
  113. package/lib/scrollbar.js +441 -0
  114. package/lib/select.js +1691 -0
  115. package/lib/slider.js +938 -0
  116. package/lib/spinner.js +284 -0
  117. package/lib/step.js +439 -0
  118. package/lib/steps.js +338 -0
  119. package/lib/submenu.js +689 -0
  120. package/lib/switch.js +445 -0
  121. package/lib/tab-pane.js +316 -0
  122. package/lib/table-column.js +670 -0
  123. package/lib/table.js +3941 -0
  124. package/lib/tabs.js +960 -0
  125. package/lib/tag.js +292 -0
  126. package/lib/theme-chalk/alert.css +1 -0
  127. package/lib/theme-chalk/aside.css +1 -0
  128. package/lib/theme-chalk/autocomplete.css +1 -0
  129. package/lib/theme-chalk/badge.css +1 -0
  130. package/lib/theme-chalk/base.css +1 -0
  131. package/lib/theme-chalk/breadcrumb-item.css +0 -0
  132. package/lib/theme-chalk/breadcrumb.css +1 -0
  133. package/lib/theme-chalk/button-group.css +0 -0
  134. package/lib/theme-chalk/button.css +1 -0
  135. package/lib/theme-chalk/card.css +1 -0
  136. package/lib/theme-chalk/carousel-item.css +1 -0
  137. package/lib/theme-chalk/carousel.css +1 -0
  138. package/lib/theme-chalk/cascader.css +1 -0
  139. package/lib/theme-chalk/checkbox-button.css +0 -0
  140. package/lib/theme-chalk/checkbox-group.css +0 -0
  141. package/lib/theme-chalk/checkbox.css +1 -0
  142. package/lib/theme-chalk/col.css +1 -0
  143. package/lib/theme-chalk/collapse-item.css +0 -0
  144. package/lib/theme-chalk/collapse.css +1 -0
  145. package/lib/theme-chalk/color-picker.css +1 -0
  146. package/lib/theme-chalk/container.css +1 -0
  147. package/lib/theme-chalk/date-picker.css +1 -0
  148. package/lib/theme-chalk/dialog.css +1 -0
  149. package/lib/theme-chalk/display.css +1 -0
  150. package/lib/theme-chalk/dropdown-item.css +0 -0
  151. package/lib/theme-chalk/dropdown-menu.css +0 -0
  152. package/lib/theme-chalk/dropdown.css +1 -0
  153. package/lib/theme-chalk/fonts/element-icons.ttf +0 -0
  154. package/lib/theme-chalk/fonts/element-icons.woff +0 -0
  155. package/lib/theme-chalk/footer.css +1 -0
  156. package/lib/theme-chalk/form-item.css +0 -0
  157. package/lib/theme-chalk/form.css +1 -0
  158. package/lib/theme-chalk/header.css +1 -0
  159. package/lib/theme-chalk/icon.css +1 -0
  160. package/lib/theme-chalk/index.css +1 -0
  161. package/lib/theme-chalk/input-number.css +1 -0
  162. package/lib/theme-chalk/input.css +1 -0
  163. package/lib/theme-chalk/loading.css +1 -0
  164. package/lib/theme-chalk/main.css +1 -0
  165. package/lib/theme-chalk/menu-item-group.css +0 -0
  166. package/lib/theme-chalk/menu-item.css +0 -0
  167. package/lib/theme-chalk/menu.css +1 -0
  168. package/lib/theme-chalk/message-box.css +1 -0
  169. package/lib/theme-chalk/message.css +1 -0
  170. package/lib/theme-chalk/notification.css +1 -0
  171. package/lib/theme-chalk/option-group.css +1 -0
  172. package/lib/theme-chalk/option.css +1 -0
  173. package/lib/theme-chalk/pagination.css +1 -0
  174. package/lib/theme-chalk/popover.css +1 -0
  175. package/lib/theme-chalk/popper.css +1 -0
  176. package/lib/theme-chalk/progress.css +1 -0
  177. package/lib/theme-chalk/radio-button.css +1 -0
  178. package/lib/theme-chalk/radio-group.css +1 -0
  179. package/lib/theme-chalk/radio.css +1 -0
  180. package/lib/theme-chalk/rate.css +1 -0
  181. package/lib/theme-chalk/reset.css +1 -0
  182. package/lib/theme-chalk/row.css +1 -0
  183. package/lib/theme-chalk/scrollbar.css +1 -0
  184. package/lib/theme-chalk/select-dropdown.css +1 -0
  185. package/lib/theme-chalk/select.css +1 -0
  186. package/lib/theme-chalk/slider.css +1 -0
  187. package/lib/theme-chalk/spinner.css +1 -0
  188. package/lib/theme-chalk/step.css +1 -0
  189. package/lib/theme-chalk/steps.css +1 -0
  190. package/lib/theme-chalk/submenu.css +0 -0
  191. package/lib/theme-chalk/switch.css +1 -0
  192. package/lib/theme-chalk/tab-pane.css +0 -0
  193. package/lib/theme-chalk/table-column.css +1 -0
  194. package/lib/theme-chalk/table.css +1 -0
  195. package/lib/theme-chalk/tabs.css +1 -0
  196. package/lib/theme-chalk/tag.css +1 -0
  197. package/lib/theme-chalk/time-picker.css +1 -0
  198. package/lib/theme-chalk/time-select.css +1 -0
  199. package/lib/theme-chalk/tooltip.css +1 -0
  200. package/lib/theme-chalk/transfer.css +1 -0
  201. package/lib/theme-chalk/tree.css +1 -0
  202. package/lib/theme-chalk/upload.css +1 -0
  203. package/lib/time-picker.js +2553 -0
  204. package/lib/time-select.js +1839 -0
  205. package/lib/tooltip.js +397 -0
  206. package/lib/transfer.js +883 -0
  207. package/lib/transitions/collapse-transition.js +91 -0
  208. package/lib/tree.js +2138 -0
  209. package/lib/umd/locale/af-ZA.js +128 -0
  210. package/lib/umd/locale/ar.js +127 -0
  211. package/lib/umd/locale/bg.js +128 -0
  212. package/lib/umd/locale/ca.js +127 -0
  213. package/lib/umd/locale/cs-CZ.js +130 -0
  214. package/lib/umd/locale/da.js +127 -0
  215. package/lib/umd/locale/de.js +129 -0
  216. package/lib/umd/locale/ee.js +128 -0
  217. package/lib/umd/locale/el.js +128 -0
  218. package/lib/umd/locale/en.js +128 -0
  219. package/lib/umd/locale/es.js +127 -0
  220. package/lib/umd/locale/eu.js +128 -0
  221. package/lib/umd/locale/fa.js +128 -0
  222. package/lib/umd/locale/fi.js +128 -0
  223. package/lib/umd/locale/fr.js +127 -0
  224. package/lib/umd/locale/he.js +128 -0
  225. package/lib/umd/locale/hu.js +127 -0
  226. package/lib/umd/locale/id.js +128 -0
  227. package/lib/umd/locale/it.js +127 -0
  228. package/lib/umd/locale/ja.js +128 -0
  229. package/lib/umd/locale/km.js +128 -0
  230. package/lib/umd/locale/ko.js +128 -0
  231. package/lib/umd/locale/ku.js +128 -0
  232. package/lib/umd/locale/kz.js +128 -0
  233. package/lib/umd/locale/lt.js +128 -0
  234. package/lib/umd/locale/lv.js +128 -0
  235. package/lib/umd/locale/mn.js +128 -0
  236. package/lib/umd/locale/nb-NO.js +127 -0
  237. package/lib/umd/locale/nl.js +128 -0
  238. package/lib/umd/locale/pl.js +128 -0
  239. package/lib/umd/locale/pt-br.js +128 -0
  240. package/lib/umd/locale/pt.js +128 -0
  241. package/lib/umd/locale/ro.js +128 -0
  242. package/lib/umd/locale/ru-RU.js +128 -0
  243. package/lib/umd/locale/sk.js +130 -0
  244. package/lib/umd/locale/sl.js +128 -0
  245. package/lib/umd/locale/sr.js +128 -0
  246. package/lib/umd/locale/sv-SE.js +128 -0
  247. package/lib/umd/locale/ta.js +127 -0
  248. package/lib/umd/locale/th.js +128 -0
  249. package/lib/umd/locale/tk.js +128 -0
  250. package/lib/umd/locale/tr-TR.js +128 -0
  251. package/lib/umd/locale/ua.js +128 -0
  252. package/lib/umd/locale/ug-CN.js +128 -0
  253. package/lib/umd/locale/vi.js +128 -0
  254. package/lib/umd/locale/zh-CN.js +128 -0
  255. package/lib/umd/locale/zh-TW.js +128 -0
  256. package/lib/upload.js +1301 -0
  257. package/lib/utils/after-leave.js +35 -0
  258. package/lib/utils/aria-dialog.js +104 -0
  259. package/lib/utils/aria-utils.js +125 -0
  260. package/lib/utils/clickoutside.js +79 -0
  261. package/lib/utils/date.js +345 -0
  262. package/lib/utils/dom.js +188 -0
  263. package/lib/utils/menu/aria-menubar.js +24 -0
  264. package/lib/utils/menu/aria-menuitem.js +62 -0
  265. package/lib/utils/menu/aria-submenu.js +69 -0
  266. package/lib/utils/merge.js +21 -0
  267. package/lib/utils/popper.js +1261 -0
  268. package/lib/utils/popup/index.js +241 -0
  269. package/lib/utils/popup/popup-manager.js +205 -0
  270. package/lib/utils/resize-event.js +57 -0
  271. package/lib/utils/scroll-into-view.js +38 -0
  272. package/lib/utils/scrollbar-width.js +39 -0
  273. package/lib/utils/shared.js +12 -0
  274. package/lib/utils/util.js +138 -0
  275. package/lib/utils/vdom.js +20 -0
  276. package/lib/utils/vue-popper.js +204 -0
  277. package/package.json +143 -0
  278. package/packages/alert/index.js +8 -0
  279. package/packages/alert/src/main.vue +88 -0
  280. package/packages/aside/index.js +8 -0
  281. package/packages/aside/src/main.vue +20 -0
  282. package/packages/autocomplete/index.js +8 -0
  283. package/packages/autocomplete/src/autocomplete-suggestions.vue +76 -0
  284. package/packages/autocomplete/src/autocomplete.vue +269 -0
  285. package/packages/badge/index.js +8 -0
  286. package/packages/badge/src/main.vue +53 -0
  287. package/packages/breadcrumb/index.js +8 -0
  288. package/packages/breadcrumb/src/breadcrumb-item.vue +41 -0
  289. package/packages/breadcrumb/src/breadcrumb.vue +34 -0
  290. package/packages/breadcrumb-item/index.js +8 -0
  291. package/packages/button/index.js +8 -0
  292. package/packages/button/src/button-group.vue +10 -0
  293. package/packages/button/src/button.vue +78 -0
  294. package/packages/button-group/index.js +8 -0
  295. package/packages/card/index.js +8 -0
  296. package/packages/card/src/main.vue +23 -0
  297. package/packages/carousel/index.js +8 -0
  298. package/packages/carousel/src/item.vue +114 -0
  299. package/packages/carousel/src/main.vue +262 -0
  300. package/packages/carousel-item/index.js +8 -0
  301. package/packages/cascader/index.js +8 -0
  302. package/packages/cascader/src/main.vue +456 -0
  303. package/packages/cascader/src/menu.vue +376 -0
  304. package/packages/checkbox/index.js +8 -0
  305. package/packages/checkbox/src/checkbox-button.vue +191 -0
  306. package/packages/checkbox/src/checkbox-group.vue +48 -0
  307. package/packages/checkbox/src/checkbox.vue +219 -0
  308. package/packages/checkbox-button/index.js +8 -0
  309. package/packages/checkbox-group/index.js +8 -0
  310. package/packages/col/index.js +9 -0
  311. package/packages/col/src/col.js +71 -0
  312. package/packages/collapse/index.js +9 -0
  313. package/packages/collapse/src/collapse-item.vue +113 -0
  314. package/packages/collapse/src/collapse.vue +73 -0
  315. package/packages/collapse-item/index.js +8 -0
  316. package/packages/color-picker/index.js +8 -0
  317. package/packages/color-picker/src/color.js +316 -0
  318. package/packages/color-picker/src/components/alpha-slider.vue +132 -0
  319. package/packages/color-picker/src/components/hue-slider.vue +123 -0
  320. package/packages/color-picker/src/components/picker-dropdown.vue +121 -0
  321. package/packages/color-picker/src/components/predefine.vue +61 -0
  322. package/packages/color-picker/src/components/sv-panel.vue +100 -0
  323. package/packages/color-picker/src/draggable.js +36 -0
  324. package/packages/color-picker/src/main.vue +188 -0
  325. package/packages/container/index.js +8 -0
  326. package/packages/container/src/main.vue +33 -0
  327. package/packages/date-picker/index.js +8 -0
  328. package/packages/date-picker/src/basic/date-table.vue +437 -0
  329. package/packages/date-picker/src/basic/month-table.vue +105 -0
  330. package/packages/date-picker/src/basic/time-spinner.vue +301 -0
  331. package/packages/date-picker/src/basic/year-table.vue +101 -0
  332. package/packages/date-picker/src/panel/date-range.vue +640 -0
  333. package/packages/date-picker/src/panel/date.vue +579 -0
  334. package/packages/date-picker/src/panel/time-range.vue +248 -0
  335. package/packages/date-picker/src/panel/time-select.vue +177 -0
  336. package/packages/date-picker/src/panel/time.vue +186 -0
  337. package/packages/date-picker/src/picker/date-picker.js +40 -0
  338. package/packages/date-picker/src/picker/time-picker.js +39 -0
  339. package/packages/date-picker/src/picker/time-select.js +21 -0
  340. package/packages/date-picker/src/picker.vue +924 -0
  341. package/packages/date-picker/src/util/index.js +273 -0
  342. package/packages/dialog/index.js +8 -0
  343. package/packages/dialog/src/component.vue +201 -0
  344. package/packages/dropdown/index.js +8 -0
  345. package/packages/dropdown/src/dropdown-item.vue +35 -0
  346. package/packages/dropdown/src/dropdown-menu.vue +60 -0
  347. package/packages/dropdown/src/dropdown.vue +271 -0
  348. package/packages/dropdown-item/index.js +8 -0
  349. package/packages/dropdown-menu/index.js +8 -0
  350. package/packages/footer/index.js +8 -0
  351. package/packages/footer/src/main.vue +20 -0
  352. package/packages/form/index.js +8 -0
  353. package/packages/form/src/form-item.vue +290 -0
  354. package/packages/form/src/form.vue +148 -0
  355. package/packages/form-item/index.js +8 -0
  356. package/packages/header/index.js +8 -0
  357. package/packages/header/src/main.vue +20 -0
  358. package/packages/icon/index.js +8 -0
  359. package/packages/icon/src/icon.vue +13 -0
  360. package/packages/input/index.js +8 -0
  361. package/packages/input/src/calcTextareaHeight.js +104 -0
  362. package/packages/input/src/input.vue +349 -0
  363. package/packages/input-number/index.js +8 -0
  364. package/packages/input-number/src/input-number.vue +255 -0
  365. package/packages/loading/index.js +11 -0
  366. package/packages/loading/src/directive.js +128 -0
  367. package/packages/loading/src/index.js +106 -0
  368. package/packages/loading/src/loading.vue +41 -0
  369. package/packages/main/index.js +8 -0
  370. package/packages/main/src/main.vue +12 -0
  371. package/packages/menu/index.js +8 -0
  372. package/packages/menu/src/menu-item-group.vue +45 -0
  373. package/packages/menu/src/menu-item.vue +112 -0
  374. package/packages/menu/src/menu-mixin.js +44 -0
  375. package/packages/menu/src/menu.vue +311 -0
  376. package/packages/menu/src/submenu.vue +335 -0
  377. package/packages/menu-item/index.js +8 -0
  378. package/packages/menu-item-group/index.js +8 -0
  379. package/packages/message/index.js +2 -0
  380. package/packages/message/src/main.js +72 -0
  381. package/packages/message/src/main.vue +112 -0
  382. package/packages/message-box/index.js +2 -0
  383. package/packages/message-box/src/main.js +216 -0
  384. package/packages/message-box/src/main.vue +327 -0
  385. package/packages/notification/index.js +2 -0
  386. package/packages/notification/src/main.js +93 -0
  387. package/packages/notification/src/main.vue +152 -0
  388. package/packages/option/index.js +8 -0
  389. package/packages/option-group/index.js +8 -0
  390. package/packages/pagination/index.js +8 -0
  391. package/packages/pagination/src/pager.vue +163 -0
  392. package/packages/pagination/src/pagination.js +430 -0
  393. package/packages/popover/index.js +14 -0
  394. package/packages/popover/src/directive.js +20 -0
  395. package/packages/popover/src/main.vue +207 -0
  396. package/packages/progress/index.js +8 -0
  397. package/packages/progress/src/progress.vue +138 -0
  398. package/packages/radio/index.js +8 -0
  399. package/packages/radio/src/radio-button.vue +114 -0
  400. package/packages/radio/src/radio-group.vue +100 -0
  401. package/packages/radio/src/radio.vue +126 -0
  402. package/packages/radio-button/index.js +8 -0
  403. package/packages/radio-group/index.js +8 -0
  404. package/packages/rate/index.js +8 -0
  405. package/packages/rate/src/main.vue +350 -0
  406. package/packages/row/index.js +9 -0
  407. package/packages/row/src/row.js +47 -0
  408. package/packages/scrollbar/index.js +8 -0
  409. package/packages/scrollbar/src/bar.js +88 -0
  410. package/packages/scrollbar/src/main.js +130 -0
  411. package/packages/scrollbar/src/util.js +34 -0
  412. package/packages/select/index.js +8 -0
  413. package/packages/select/src/navigation-mixin.js +54 -0
  414. package/packages/select/src/option-group.vue +60 -0
  415. package/packages/select/src/option.vue +159 -0
  416. package/packages/select/src/select-dropdown.vue +74 -0
  417. package/packages/select/src/select.vue +878 -0
  418. package/packages/slider/index.js +8 -0
  419. package/packages/slider/src/button.vue +235 -0
  420. package/packages/slider/src/main.vue +385 -0
  421. package/packages/spinner/index.js +8 -0
  422. package/packages/spinner/src/spinner.vue +27 -0
  423. package/packages/step/index.js +8 -0
  424. package/packages/steps/README.md +69 -0
  425. package/packages/steps/index.js +8 -0
  426. package/packages/steps/src/step.vue +180 -0
  427. package/packages/steps/src/steps.vue +68 -0
  428. package/packages/submenu/index.js +8 -0
  429. package/packages/switch/index.js +9 -0
  430. package/packages/switch/src/component.vue +163 -0
  431. package/packages/tab-pane/index.js +8 -0
  432. package/packages/table/index.js +8 -0
  433. package/packages/table/src/dropdown.js +28 -0
  434. package/packages/table/src/filter-panel.vue +203 -0
  435. package/packages/table/src/layout-observer.js +68 -0
  436. package/packages/table/src/table-body.js +392 -0
  437. package/packages/table/src/table-column.js +462 -0
  438. package/packages/table/src/table-footer.js +147 -0
  439. package/packages/table/src/table-header.js +522 -0
  440. package/packages/table/src/table-layout.js +231 -0
  441. package/packages/table/src/table-store.js +657 -0
  442. package/packages/table/src/table.vue +660 -0
  443. package/packages/table/src/util.js +122 -0
  444. package/packages/table-column/index.js +8 -0
  445. package/packages/tabs/index.js +8 -0
  446. package/packages/tabs/src/tab-bar.vue +57 -0
  447. package/packages/tabs/src/tab-nav.vue +280 -0
  448. package/packages/tabs/src/tab-pane.vue +58 -0
  449. package/packages/tabs/src/tabs.vue +185 -0
  450. package/packages/tag/index.js +8 -0
  451. package/packages/tag/src/tag.vue +39 -0
  452. package/packages/theme-chalk/README.md +33 -0
  453. package/packages/theme-chalk/lib/alert.css +1 -0
  454. package/packages/theme-chalk/lib/aside.css +1 -0
  455. package/packages/theme-chalk/lib/autocomplete.css +1 -0
  456. package/packages/theme-chalk/lib/badge.css +1 -0
  457. package/packages/theme-chalk/lib/base.css +1 -0
  458. package/packages/theme-chalk/lib/breadcrumb-item.css +0 -0
  459. package/packages/theme-chalk/lib/breadcrumb.css +1 -0
  460. package/packages/theme-chalk/lib/button-group.css +0 -0
  461. package/packages/theme-chalk/lib/button.css +1 -0
  462. package/packages/theme-chalk/lib/card.css +1 -0
  463. package/packages/theme-chalk/lib/carousel-item.css +1 -0
  464. package/packages/theme-chalk/lib/carousel.css +1 -0
  465. package/packages/theme-chalk/lib/cascader.css +1 -0
  466. package/packages/theme-chalk/lib/checkbox-button.css +0 -0
  467. package/packages/theme-chalk/lib/checkbox-group.css +0 -0
  468. package/packages/theme-chalk/lib/checkbox.css +1 -0
  469. package/packages/theme-chalk/lib/col.css +1 -0
  470. package/packages/theme-chalk/lib/collapse-item.css +0 -0
  471. package/packages/theme-chalk/lib/collapse.css +1 -0
  472. package/packages/theme-chalk/lib/color-picker.css +1 -0
  473. package/packages/theme-chalk/lib/container.css +1 -0
  474. package/packages/theme-chalk/lib/date-picker.css +1 -0
  475. package/packages/theme-chalk/lib/dialog.css +1 -0
  476. package/packages/theme-chalk/lib/display.css +1 -0
  477. package/packages/theme-chalk/lib/dropdown-item.css +0 -0
  478. package/packages/theme-chalk/lib/dropdown-menu.css +0 -0
  479. package/packages/theme-chalk/lib/dropdown.css +1 -0
  480. package/packages/theme-chalk/lib/fonts/element-icons.ttf +0 -0
  481. package/packages/theme-chalk/lib/fonts/element-icons.woff +0 -0
  482. package/packages/theme-chalk/lib/footer.css +1 -0
  483. package/packages/theme-chalk/lib/form-item.css +0 -0
  484. package/packages/theme-chalk/lib/form.css +1 -0
  485. package/packages/theme-chalk/lib/header.css +1 -0
  486. package/packages/theme-chalk/lib/icon.css +1 -0
  487. package/packages/theme-chalk/lib/index.css +1 -0
  488. package/packages/theme-chalk/lib/input-number.css +1 -0
  489. package/packages/theme-chalk/lib/input.css +1 -0
  490. package/packages/theme-chalk/lib/loading.css +1 -0
  491. package/packages/theme-chalk/lib/main.css +1 -0
  492. package/packages/theme-chalk/lib/menu-item-group.css +0 -0
  493. package/packages/theme-chalk/lib/menu-item.css +0 -0
  494. package/packages/theme-chalk/lib/menu.css +1 -0
  495. package/packages/theme-chalk/lib/message-box.css +1 -0
  496. package/packages/theme-chalk/lib/message.css +1 -0
  497. package/packages/theme-chalk/lib/notification.css +1 -0
  498. package/packages/theme-chalk/lib/option-group.css +1 -0
  499. package/packages/theme-chalk/lib/option.css +1 -0
  500. package/packages/theme-chalk/lib/pagination.css +1 -0
  501. package/packages/theme-chalk/lib/popover.css +1 -0
  502. package/packages/theme-chalk/lib/popper.css +1 -0
  503. package/packages/theme-chalk/lib/progress.css +1 -0
  504. package/packages/theme-chalk/lib/radio-button.css +1 -0
  505. package/packages/theme-chalk/lib/radio-group.css +1 -0
  506. package/packages/theme-chalk/lib/radio.css +1 -0
  507. package/packages/theme-chalk/lib/rate.css +1 -0
  508. package/packages/theme-chalk/lib/reset.css +1 -0
  509. package/packages/theme-chalk/lib/row.css +1 -0
  510. package/packages/theme-chalk/lib/scrollbar.css +1 -0
  511. package/packages/theme-chalk/lib/select-dropdown.css +1 -0
  512. package/packages/theme-chalk/lib/select.css +1 -0
  513. package/packages/theme-chalk/lib/slider.css +1 -0
  514. package/packages/theme-chalk/lib/spinner.css +1 -0
  515. package/packages/theme-chalk/lib/step.css +1 -0
  516. package/packages/theme-chalk/lib/steps.css +1 -0
  517. package/packages/theme-chalk/lib/submenu.css +0 -0
  518. package/packages/theme-chalk/lib/switch.css +1 -0
  519. package/packages/theme-chalk/lib/tab-pane.css +0 -0
  520. package/packages/theme-chalk/lib/table-column.css +1 -0
  521. package/packages/theme-chalk/lib/table.css +1 -0
  522. package/packages/theme-chalk/lib/tabs.css +1 -0
  523. package/packages/theme-chalk/lib/tag.css +1 -0
  524. package/packages/theme-chalk/lib/time-picker.css +1 -0
  525. package/packages/theme-chalk/lib/time-select.css +1 -0
  526. package/packages/theme-chalk/lib/tooltip.css +1 -0
  527. package/packages/theme-chalk/lib/transfer.css +1 -0
  528. package/packages/theme-chalk/lib/tree.css +1 -0
  529. package/packages/theme-chalk/lib/upload.css +1 -0
  530. package/packages/theme-chalk/package.json +35 -0
  531. package/packages/theme-chalk/src/alert.scss +105 -0
  532. package/packages/theme-chalk/src/aside.scss +7 -0
  533. package/packages/theme-chalk/src/autocomplete.scss +82 -0
  534. package/packages/theme-chalk/src/badge.scss +57 -0
  535. package/packages/theme-chalk/src/base.scss +2 -0
  536. package/packages/theme-chalk/src/breadcrumb-item.scss +0 -0
  537. package/packages/theme-chalk/src/breadcrumb.scss +55 -0
  538. package/packages/theme-chalk/src/button-group.scss +0 -0
  539. package/packages/theme-chalk/src/button.scss +260 -0
  540. package/packages/theme-chalk/src/card.scss +32 -0
  541. package/packages/theme-chalk/src/carousel-item.scss +50 -0
  542. package/packages/theme-chalk/src/carousel.scss +134 -0
  543. package/packages/theme-chalk/src/cascader.scss +180 -0
  544. package/packages/theme-chalk/src/checkbox-button.scss +0 -0
  545. package/packages/theme-chalk/src/checkbox-group.scss +0 -0
  546. package/packages/theme-chalk/src/checkbox.scss +358 -0
  547. package/packages/theme-chalk/src/col.scss +156 -0
  548. package/packages/theme-chalk/src/collapse-item.scss +0 -0
  549. package/packages/theme-chalk/src/collapse.scss +57 -0
  550. package/packages/theme-chalk/src/color-picker.scss +384 -0
  551. package/packages/theme-chalk/src/common/popup.scss +41 -0
  552. package/packages/theme-chalk/src/common/transition.scss +99 -0
  553. package/packages/theme-chalk/src/common/var.scss +713 -0
  554. package/packages/theme-chalk/src/container.scss +14 -0
  555. package/packages/theme-chalk/src/date-picker/date-picker.scss +97 -0
  556. package/packages/theme-chalk/src/date-picker/date-range-picker.scss +104 -0
  557. package/packages/theme-chalk/src/date-picker/date-table.scss +151 -0
  558. package/packages/theme-chalk/src/date-picker/month-table.scss +40 -0
  559. package/packages/theme-chalk/src/date-picker/picker-panel.scss +117 -0
  560. package/packages/theme-chalk/src/date-picker/picker.scss +190 -0
  561. package/packages/theme-chalk/src/date-picker/time-picker.scss +85 -0
  562. package/packages/theme-chalk/src/date-picker/time-range-picker.scss +31 -0
  563. package/packages/theme-chalk/src/date-picker/time-spinner.scss +110 -0
  564. package/packages/theme-chalk/src/date-picker/year-table.scss +44 -0
  565. package/packages/theme-chalk/src/date-picker.scss +12 -0
  566. package/packages/theme-chalk/src/dialog.scss +122 -0
  567. package/packages/theme-chalk/src/display.scss +12 -0
  568. package/packages/theme-chalk/src/dropdown-item.scss +0 -0
  569. package/packages/theme-chalk/src/dropdown-menu.scss +0 -0
  570. package/packages/theme-chalk/src/dropdown.scss +169 -0
  571. package/packages/theme-chalk/src/fonts/element-icons.ttf +0 -0
  572. package/packages/theme-chalk/src/fonts/element-icons.woff +0 -0
  573. package/packages/theme-chalk/src/footer.scss +8 -0
  574. package/packages/theme-chalk/src/form-item.scss +0 -0
  575. package/packages/theme-chalk/src/form.scss +174 -0
  576. package/packages/theme-chalk/src/header.scss +8 -0
  577. package/packages/theme-chalk/src/icon.scss +186 -0
  578. package/packages/theme-chalk/src/index.scss +67 -0
  579. package/packages/theme-chalk/src/input-number.scss +180 -0
  580. package/packages/theme-chalk/src/input.scss +310 -0
  581. package/packages/theme-chalk/src/loading.scss +96 -0
  582. package/packages/theme-chalk/src/main.scss +12 -0
  583. package/packages/theme-chalk/src/menu-item-group.scss +0 -0
  584. package/packages/theme-chalk/src/menu-item.scss +0 -0
  585. package/packages/theme-chalk/src/menu.scss +289 -0
  586. package/packages/theme-chalk/src/message-box.scss +223 -0
  587. package/packages/theme-chalk/src/message.scss +120 -0
  588. package/packages/theme-chalk/src/mixins/_button.scss +81 -0
  589. package/packages/theme-chalk/src/mixins/config.scss +4 -0
  590. package/packages/theme-chalk/src/mixins/function.scss +44 -0
  591. package/packages/theme-chalk/src/mixins/mixins.scss +190 -0
  592. package/packages/theme-chalk/src/mixins/utils.scss +39 -0
  593. package/packages/theme-chalk/src/notification.scss +98 -0
  594. package/packages/theme-chalk/src/option-group.scss +42 -0
  595. package/packages/theme-chalk/src/option.scss +36 -0
  596. package/packages/theme-chalk/src/pagination.scss +295 -0
  597. package/packages/theme-chalk/src/popover.scss +39 -0
  598. package/packages/theme-chalk/src/popper.scss +101 -0
  599. package/packages/theme-chalk/src/progress.scss +130 -0
  600. package/packages/theme-chalk/src/radio-button.scss +113 -0
  601. package/packages/theme-chalk/src/radio-group.scss +9 -0
  602. package/packages/theme-chalk/src/radio.scss +198 -0
  603. package/packages/theme-chalk/src/rate.scss +49 -0
  604. package/packages/theme-chalk/src/reset.scss +79 -0
  605. package/packages/theme-chalk/src/row.scss +39 -0
  606. package/packages/theme-chalk/src/scrollbar.scss +71 -0
  607. package/packages/theme-chalk/src/select-dropdown.scss +59 -0
  608. package/packages/theme-chalk/src/select.scss +148 -0
  609. package/packages/theme-chalk/src/slider.scss +228 -0
  610. package/packages/theme-chalk/src/spinner.scss +44 -0
  611. package/packages/theme-chalk/src/step.scss +317 -0
  612. package/packages/theme-chalk/src/steps.scss +20 -0
  613. package/packages/theme-chalk/src/submenu.scss +0 -0
  614. package/packages/theme-chalk/src/switch.scss +116 -0
  615. package/packages/theme-chalk/src/tab-pane.scss +0 -0
  616. package/packages/theme-chalk/src/table-column.scss +97 -0
  617. package/packages/theme-chalk/src/table.scss +552 -0
  618. package/packages/theme-chalk/src/tabs.scss +587 -0
  619. package/packages/theme-chalk/src/tag.scss +146 -0
  620. package/packages/theme-chalk/src/time-picker.scss +8 -0
  621. package/packages/theme-chalk/src/time-select.scss +37 -0
  622. package/packages/theme-chalk/src/tooltip.scss +141 -0
  623. package/packages/theme-chalk/src/transfer.scss +227 -0
  624. package/packages/theme-chalk/src/tree.scss +122 -0
  625. package/packages/theme-chalk/src/upload.scss +602 -0
  626. package/packages/time-picker/index.js +8 -0
  627. package/packages/time-select/index.js +8 -0
  628. package/packages/tooltip/index.js +8 -0
  629. package/packages/tooltip/src/main.js +216 -0
  630. package/packages/transfer/index.js +8 -0
  631. package/packages/transfer/src/main.vue +231 -0
  632. package/packages/transfer/src/transfer-panel.vue +251 -0
  633. package/packages/tree/index.js +8 -0
  634. package/packages/tree/src/model/node.js +481 -0
  635. package/packages/tree/src/model/tree-store.js +333 -0
  636. package/packages/tree/src/model/util.js +27 -0
  637. package/packages/tree/src/tree-node.vue +277 -0
  638. package/packages/tree/src/tree.vue +495 -0
  639. package/packages/upload/index.js +8 -0
  640. package/packages/upload/src/ajax.js +85 -0
  641. package/packages/upload/src/index.vue +315 -0
  642. package/packages/upload/src/upload-dragger.vue +70 -0
  643. package/packages/upload/src/upload-list.vue +103 -0
  644. package/packages/upload/src/upload.vue +211 -0
  645. package/src/directives/mousewheel.js +18 -0
  646. package/src/directives/repeat-click.js +24 -0
  647. package/src/index.js +251 -0
  648. package/src/locale/format.js +46 -0
  649. package/src/locale/index.js +48 -0
  650. package/src/locale/lang/af-ZA.js +109 -0
  651. package/src/locale/lang/ar.js +108 -0
  652. package/src/locale/lang/bg.js +109 -0
  653. package/src/locale/lang/ca.js +108 -0
  654. package/src/locale/lang/cs-CZ.js +111 -0
  655. package/src/locale/lang/da.js +108 -0
  656. package/src/locale/lang/de.js +110 -0
  657. package/src/locale/lang/ee.js +109 -0
  658. package/src/locale/lang/el.js +109 -0
  659. package/src/locale/lang/en.js +109 -0
  660. package/src/locale/lang/es.js +108 -0
  661. package/src/locale/lang/eu.js +109 -0
  662. package/src/locale/lang/fa.js +109 -0
  663. package/src/locale/lang/fi.js +109 -0
  664. package/src/locale/lang/fr.js +108 -0
  665. package/src/locale/lang/he.js +109 -0
  666. package/src/locale/lang/hu.js +108 -0
  667. package/src/locale/lang/id.js +109 -0
  668. package/src/locale/lang/it.js +108 -0
  669. package/src/locale/lang/ja.js +109 -0
  670. package/src/locale/lang/km.js +109 -0
  671. package/src/locale/lang/ko.js +109 -0
  672. package/src/locale/lang/ku.js +109 -0
  673. package/src/locale/lang/kz.js +109 -0
  674. package/src/locale/lang/lt.js +109 -0
  675. package/src/locale/lang/lv.js +109 -0
  676. package/src/locale/lang/mn.js +109 -0
  677. package/src/locale/lang/nb-NO.js +108 -0
  678. package/src/locale/lang/nl.js +109 -0
  679. package/src/locale/lang/pl.js +109 -0
  680. package/src/locale/lang/pt-br.js +109 -0
  681. package/src/locale/lang/pt.js +109 -0
  682. package/src/locale/lang/ro.js +109 -0
  683. package/src/locale/lang/ru-RU.js +109 -0
  684. package/src/locale/lang/sk.js +111 -0
  685. package/src/locale/lang/sl.js +109 -0
  686. package/src/locale/lang/sr.js +109 -0
  687. package/src/locale/lang/sv-SE.js +109 -0
  688. package/src/locale/lang/ta.js +108 -0
  689. package/src/locale/lang/th.js +109 -0
  690. package/src/locale/lang/tk.js +109 -0
  691. package/src/locale/lang/tr-TR.js +109 -0
  692. package/src/locale/lang/ua.js +109 -0
  693. package/src/locale/lang/ug-CN.js +109 -0
  694. package/src/locale/lang/vi.js +109 -0
  695. package/src/locale/lang/zh-CN.js +109 -0
  696. package/src/locale/lang/zh-TW.js +109 -0
  697. package/src/mixins/emitter.js +33 -0
  698. package/src/mixins/focus.js +9 -0
  699. package/src/mixins/locale.js +9 -0
  700. package/src/mixins/migrating.js +51 -0
  701. package/src/transitions/collapse-transition.js +77 -0
  702. package/src/utils/after-leave.js +27 -0
  703. package/src/utils/aria-dialog.js +90 -0
  704. package/src/utils/aria-utils.js +121 -0
  705. package/src/utils/clickoutside.js +76 -0
  706. package/src/utils/date.js +344 -0
  707. package/src/utils/dom.js +174 -0
  708. package/src/utils/menu/aria-menubar.js +14 -0
  709. package/src/utils/menu/aria-menuitem.js +49 -0
  710. package/src/utils/menu/aria-submenu.js +59 -0
  711. package/src/utils/merge.js +15 -0
  712. package/src/utils/popper.js +1276 -0
  713. package/src/utils/popup/index.js +226 -0
  714. package/src/utils/popup/popup-manager.js +194 -0
  715. package/src/utils/resize-event.js +35 -0
  716. package/src/utils/scroll-into-view.js +27 -0
  717. package/src/utils/scrollbar-width.js +29 -0
  718. package/src/utils/shared.js +7 -0
  719. package/src/utils/util.js +122 -0
  720. package/src/utils/vdom.js +9 -0
  721. package/src/utils/vue-popper.js +200 -0
  722. package/types/alert.d.ts +27 -0
  723. package/types/aside.d.ts +7 -0
  724. package/types/autocomplete.d.ts +78 -0
  725. package/types/badge.d.ts +16 -0
  726. package/types/breadcrumb-item.d.ts +10 -0
  727. package/types/breadcrumb.d.ts +10 -0
  728. package/types/button-group.d.ts +4 -0
  729. package/types/button.d.ts +37 -0
  730. package/types/card.d.ts +26 -0
  731. package/types/carousel-item.d.ts +10 -0
  732. package/types/carousel.d.ts +53 -0
  733. package/types/cascader.d.ts +57 -0
  734. package/types/checkbox-button.d.ts +22 -0
  735. package/types/checkbox-group.d.ts +22 -0
  736. package/types/checkbox.d.ts +34 -0
  737. package/types/col.d.ts +46 -0
  738. package/types/collapse-item.d.ts +23 -0
  739. package/types/collapse.d.ts +10 -0
  740. package/types/color-picker.d.ts +21 -0
  741. package/types/component.d.ts +13 -0
  742. package/types/container.d.ts +7 -0
  743. package/types/date-picker.d.ts +124 -0
  744. package/types/dialog.d.ts +59 -0
  745. package/types/dropdown-item.d.ts +13 -0
  746. package/types/dropdown-menu.d.ts +4 -0
  747. package/types/dropdown.d.ts +26 -0
  748. package/types/element-ui.d.ts +294 -0
  749. package/types/footer.d.ts +7 -0
  750. package/types/form-item.d.ts +37 -0
  751. package/types/form.d.ts +82 -0
  752. package/types/header.d.ts +7 -0
  753. package/types/index.d.ts +4 -0
  754. package/types/input-number.d.ts +44 -0
  755. package/types/input.d.ts +98 -0
  756. package/types/loading.d.ts +62 -0
  757. package/types/main.d.ts +4 -0
  758. package/types/menu-item-group.d.ts +7 -0
  759. package/types/menu-item.d.ts +10 -0
  760. package/types/menu.d.ts +46 -0
  761. package/types/message-box.d.ts +176 -0
  762. package/types/message.d.ts +75 -0
  763. package/types/notification.d.ts +84 -0
  764. package/types/option-group.d.ts +10 -0
  765. package/types/option.d.ts +13 -0
  766. package/types/pagination.d.ts +40 -0
  767. package/types/popover.d.ts +65 -0
  768. package/types/progress.d.ts +31 -0
  769. package/types/radio-button.d.ts +16 -0
  770. package/types/radio-group.d.ts +18 -0
  771. package/types/radio.d.ts +19 -0
  772. package/types/rate.d.ts +52 -0
  773. package/types/row.d.ts +25 -0
  774. package/types/select.d.ts +90 -0
  775. package/types/slider.d.ts +62 -0
  776. package/types/step.d.ts +34 -0
  777. package/types/steps.d.ts +28 -0
  778. package/types/submenu.d.ts +22 -0
  779. package/types/switch.d.ts +40 -0
  780. package/types/tab-pane.d.ts +19 -0
  781. package/types/table-column.d.ts +117 -0
  782. package/types/table.d.ts +157 -0
  783. package/types/tabs.d.ts +31 -0
  784. package/types/tag.d.ts +24 -0
  785. package/types/time-picker.d.ts +63 -0
  786. package/types/time-select.d.ts +56 -0
  787. package/types/tooltip.d.ts +49 -0
  788. package/types/transfer.d.ts +73 -0
  789. package/types/tree.d.ts +264 -0
  790. package/types/upload.d.ts +124 -0
@@ -0,0 +1,2553 @@
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, {
41
+ /******/ configurable: false,
42
+ /******/ enumerable: true,
43
+ /******/ get: getter
44
+ /******/ });
45
+ /******/ }
46
+ /******/ };
47
+ /******/
48
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
49
+ /******/ __webpack_require__.n = function(module) {
50
+ /******/ var getter = module && module.__esModule ?
51
+ /******/ function getDefault() { return module['default']; } :
52
+ /******/ function getModuleExports() { return module; };
53
+ /******/ __webpack_require__.d(getter, 'a', getter);
54
+ /******/ return getter;
55
+ /******/ };
56
+ /******/
57
+ /******/ // Object.prototype.hasOwnProperty.call
58
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
59
+ /******/
60
+ /******/ // __webpack_public_path__
61
+ /******/ __webpack_require__.p = "/dist/";
62
+ /******/
63
+ /******/ // Load entry module and return exports
64
+ /******/ return __webpack_require__(__webpack_require__.s = 197);
65
+ /******/ })
66
+ /************************************************************************/
67
+ /******/ ({
68
+
69
+ /***/ 0:
70
+ /***/ (function(module, exports) {
71
+
72
+ /* globals __VUE_SSR_CONTEXT__ */
73
+
74
+ // IMPORTANT: Do NOT use ES2015 features in this file.
75
+ // This module is a runtime utility for cleaner component module output and will
76
+ // be included in the final webpack user bundle.
77
+
78
+ module.exports = function normalizeComponent (
79
+ rawScriptExports,
80
+ compiledTemplate,
81
+ functionalTemplate,
82
+ injectStyles,
83
+ scopeId,
84
+ moduleIdentifier /* server only */
85
+ ) {
86
+ var esModule
87
+ var scriptExports = rawScriptExports = rawScriptExports || {}
88
+
89
+ // ES6 modules interop
90
+ var type = typeof rawScriptExports.default
91
+ if (type === 'object' || type === 'function') {
92
+ esModule = rawScriptExports
93
+ scriptExports = rawScriptExports.default
94
+ }
95
+
96
+ // Vue.extend constructor export interop
97
+ var options = typeof scriptExports === 'function'
98
+ ? scriptExports.options
99
+ : scriptExports
100
+
101
+ // render functions
102
+ if (compiledTemplate) {
103
+ options.render = compiledTemplate.render
104
+ options.staticRenderFns = compiledTemplate.staticRenderFns
105
+ options._compiled = true
106
+ }
107
+
108
+ // functional template
109
+ if (functionalTemplate) {
110
+ options.functional = true
111
+ }
112
+
113
+ // scopedId
114
+ if (scopeId) {
115
+ options._scopeId = scopeId
116
+ }
117
+
118
+ var hook
119
+ if (moduleIdentifier) { // server build
120
+ hook = function (context) {
121
+ // 2.3 injection
122
+ context =
123
+ context || // cached call
124
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
125
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
126
+ // 2.2 with runInNewContext: true
127
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
128
+ context = __VUE_SSR_CONTEXT__
129
+ }
130
+ // inject component styles
131
+ if (injectStyles) {
132
+ injectStyles.call(this, context)
133
+ }
134
+ // register component module identifier for async chunk inferrence
135
+ if (context && context._registeredComponents) {
136
+ context._registeredComponents.add(moduleIdentifier)
137
+ }
138
+ }
139
+ // used by ssr in case component is cached and beforeCreate
140
+ // never gets called
141
+ options._ssrRegister = hook
142
+ } else if (injectStyles) {
143
+ hook = injectStyles
144
+ }
145
+
146
+ if (hook) {
147
+ var functional = options.functional
148
+ var existing = functional
149
+ ? options.render
150
+ : options.beforeCreate
151
+
152
+ if (!functional) {
153
+ // inject component registration as beforeCreate hook
154
+ options.beforeCreate = existing
155
+ ? [].concat(existing, hook)
156
+ : [hook]
157
+ } else {
158
+ // for template-only hot-reload because in that case the render fn doesn't
159
+ // go through the normalizer
160
+ options._injectStyles = hook
161
+ // register for functioal component in vue file
162
+ options.render = function renderWithStyleInjection (h, context) {
163
+ hook.call(context)
164
+ return existing(h, context)
165
+ }
166
+ }
167
+ }
168
+
169
+ return {
170
+ esModule: esModule,
171
+ exports: scriptExports,
172
+ options: options
173
+ }
174
+ }
175
+
176
+
177
+ /***/ }),
178
+
179
+ /***/ 1:
180
+ /***/ (function(module, exports) {
181
+
182
+ module.exports = require("element-ui/lib/mixins/emitter");
183
+
184
+ /***/ }),
185
+
186
+ /***/ 10:
187
+ /***/ (function(module, exports) {
188
+
189
+ module.exports = require("element-ui/lib/utils/clickoutside");
190
+
191
+ /***/ }),
192
+
193
+ /***/ 11:
194
+ /***/ (function(module, exports, __webpack_require__) {
195
+
196
+ "use strict";
197
+
198
+
199
+ exports.__esModule = true;
200
+ exports.extractTimeFormat = exports.extractDateFormat = exports.nextYear = exports.prevYear = exports.nextMonth = exports.prevMonth = exports.changeYearMonthAndClampDate = exports.timeWithinRange = exports.limitTimeRange = exports.clearMilliseconds = exports.clearTime = exports.modifyWithTimeString = exports.modifyTime = exports.modifyDate = exports.range = exports.getRangeMinutes = exports.getRangeHours = exports.getWeekNumber = exports.getStartDateOfMonth = exports.nextDate = exports.prevDate = exports.getFirstDayOfMonth = exports.getDayCountOfYear = exports.getDayCountOfMonth = exports.parseDate = exports.formatDate = exports.isDateObject = exports.isDate = exports.toDate = undefined;
201
+
202
+ var _date = __webpack_require__(29);
203
+
204
+ var _date2 = _interopRequireDefault(_date);
205
+
206
+ var _locale = __webpack_require__(12);
207
+
208
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
209
+
210
+ var weeks = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'];
211
+ var months = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec'];
212
+ var getI18nSettings = function getI18nSettings() {
213
+ return {
214
+ dayNamesShort: weeks.map(function (week) {
215
+ return (0, _locale.t)('el.datepicker.weeks.' + week);
216
+ }),
217
+ dayNames: weeks.map(function (week) {
218
+ return (0, _locale.t)('el.datepicker.weeks.' + week);
219
+ }),
220
+ monthNamesShort: months.map(function (month) {
221
+ return (0, _locale.t)('el.datepicker.months.' + month);
222
+ }),
223
+ monthNames: months.map(function (month, index) {
224
+ return (0, _locale.t)('el.datepicker.month' + (index + 1));
225
+ }),
226
+ amPm: ['am', 'pm']
227
+ };
228
+ };
229
+
230
+ var newArray = function newArray(start, end) {
231
+ var result = [];
232
+ for (var i = start; i <= end; i++) {
233
+ result.push(i);
234
+ }
235
+ return result;
236
+ };
237
+
238
+ var toDate = exports.toDate = function toDate(date) {
239
+ return isDate(date) ? new Date(date) : null;
240
+ };
241
+
242
+ var isDate = exports.isDate = function isDate(date) {
243
+ if (date === null || date === undefined) return false;
244
+ if (isNaN(new Date(date).getTime())) return false;
245
+ if (Array.isArray(date)) return false; // deal with `new Date([ new Date() ]) -> new Date()`
246
+ return true;
247
+ };
248
+
249
+ var isDateObject = exports.isDateObject = function isDateObject(val) {
250
+ return val instanceof Date;
251
+ };
252
+
253
+ var formatDate = exports.formatDate = function formatDate(date, format) {
254
+ date = toDate(date);
255
+ if (!date) return '';
256
+ return _date2.default.format(date, format || 'yyyy-MM-dd', getI18nSettings());
257
+ };
258
+
259
+ var parseDate = exports.parseDate = function parseDate(string, format) {
260
+ return _date2.default.parse(string, format || 'yyyy-MM-dd', getI18nSettings());
261
+ };
262
+
263
+ var getDayCountOfMonth = exports.getDayCountOfMonth = function getDayCountOfMonth(year, month) {
264
+ if (month === 3 || month === 5 || month === 8 || month === 10) {
265
+ return 30;
266
+ }
267
+
268
+ if (month === 1) {
269
+ if (year % 4 === 0 && year % 100 !== 0 || year % 400 === 0) {
270
+ return 29;
271
+ } else {
272
+ return 28;
273
+ }
274
+ }
275
+
276
+ return 31;
277
+ };
278
+
279
+ var getDayCountOfYear = exports.getDayCountOfYear = function getDayCountOfYear(year) {
280
+ var isLeapYear = year % 400 === 0 || year % 100 !== 0 && year % 4 === 0;
281
+ return isLeapYear ? 366 : 365;
282
+ };
283
+
284
+ var getFirstDayOfMonth = exports.getFirstDayOfMonth = function getFirstDayOfMonth(date) {
285
+ var temp = new Date(date.getTime());
286
+ temp.setDate(1);
287
+ return temp.getDay();
288
+ };
289
+
290
+ // see: https://stackoverflow.com/questions/3674539/incrementing-a-date-in-javascript
291
+ // {prev, next} Date should work for Daylight Saving Time
292
+ // Adding 24 * 60 * 60 * 1000 does not work in the above scenario
293
+ var prevDate = exports.prevDate = function prevDate(date) {
294
+ var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
295
+
296
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() - amount);
297
+ };
298
+
299
+ var nextDate = exports.nextDate = function nextDate(date) {
300
+ var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
301
+
302
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() + amount);
303
+ };
304
+
305
+ var getStartDateOfMonth = exports.getStartDateOfMonth = function getStartDateOfMonth(year, month) {
306
+ var result = new Date(year, month, 1);
307
+ var day = result.getDay();
308
+
309
+ if (day === 0) {
310
+ return prevDate(result, 7);
311
+ } else {
312
+ return prevDate(result, day);
313
+ }
314
+ };
315
+
316
+ var getWeekNumber = exports.getWeekNumber = function getWeekNumber(src) {
317
+ if (!isDate(src)) return null;
318
+ var date = new Date(src.getTime());
319
+ date.setHours(0, 0, 0, 0);
320
+ // Thursday in current week decides the year.
321
+ date.setDate(date.getDate() + 3 - (date.getDay() + 6) % 7);
322
+ // January 4 is always in week 1.
323
+ var week1 = new Date(date.getFullYear(), 0, 4);
324
+ // Adjust to Thursday in week 1 and count number of weeks from date to week 1.
325
+ // Rounding should be fine for Daylight Saving Time. Its shift should never be more than 12 hours.
326
+ return 1 + Math.round(((date.getTime() - week1.getTime()) / 86400000 - 3 + (week1.getDay() + 6) % 7) / 7);
327
+ };
328
+
329
+ var getRangeHours = exports.getRangeHours = function getRangeHours(ranges) {
330
+ var hours = [];
331
+ var disabledHours = [];
332
+
333
+ (ranges || []).forEach(function (range) {
334
+ var value = range.map(function (date) {
335
+ return date.getHours();
336
+ });
337
+
338
+ disabledHours = disabledHours.concat(newArray(value[0], value[1]));
339
+ });
340
+
341
+ if (disabledHours.length) {
342
+ for (var i = 0; i < 24; i++) {
343
+ hours[i] = disabledHours.indexOf(i) === -1;
344
+ }
345
+ } else {
346
+ for (var _i = 0; _i < 24; _i++) {
347
+ hours[_i] = false;
348
+ }
349
+ }
350
+
351
+ return hours;
352
+ };
353
+
354
+ function setRangeData(arr, start, end, value) {
355
+ for (var i = start; i < end; i++) {
356
+ arr[i] = value;
357
+ }
358
+ }
359
+
360
+ var getRangeMinutes = exports.getRangeMinutes = function getRangeMinutes(ranges, hour) {
361
+ var minutes = new Array(60);
362
+
363
+ if (ranges.length > 0) {
364
+ ranges.forEach(function (range) {
365
+ var start = range[0];
366
+ var end = range[1];
367
+ var startHour = start.getHours();
368
+ var startMinute = start.getMinutes();
369
+ var endHour = end.getHours();
370
+ var endMinute = end.getMinutes();
371
+ if (startHour === hour && endHour !== hour) {
372
+ setRangeData(minutes, startMinute, 60, true);
373
+ } else if (startHour === hour && endHour === hour) {
374
+ setRangeData(minutes, startMinute, endMinute + 1, true);
375
+ } else if (startHour !== hour && endHour === hour) {
376
+ setRangeData(minutes, 0, endMinute + 1, true);
377
+ } else if (startHour < hour && endHour > hour) {
378
+ setRangeData(minutes, 0, 60, true);
379
+ }
380
+ });
381
+ } else {
382
+ setRangeData(minutes, 0, 60, true);
383
+ }
384
+ return minutes;
385
+ };
386
+
387
+ var range = exports.range = function range(n) {
388
+ // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
389
+ return Array.apply(null, { length: n }).map(function (_, n) {
390
+ return n;
391
+ });
392
+ };
393
+
394
+ var modifyDate = exports.modifyDate = function modifyDate(date, y, m, d) {
395
+ return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
396
+ };
397
+
398
+ var modifyTime = exports.modifyTime = function modifyTime(date, h, m, s) {
399
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
400
+ };
401
+
402
+ var modifyWithTimeString = exports.modifyWithTimeString = function modifyWithTimeString(date, time) {
403
+ if (date == null || !time) {
404
+ return date;
405
+ }
406
+ time = parseDate(time, 'HH:mm:ss');
407
+ return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
408
+ };
409
+
410
+ var clearTime = exports.clearTime = function clearTime(date) {
411
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate());
412
+ };
413
+
414
+ var clearMilliseconds = exports.clearMilliseconds = function clearMilliseconds(date) {
415
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
416
+ };
417
+
418
+ var limitTimeRange = exports.limitTimeRange = function limitTimeRange(date, ranges) {
419
+ var format = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'HH:mm:ss';
420
+
421
+ // TODO: refactory a more elegant solution
422
+ if (ranges.length === 0) return date;
423
+ var normalizeDate = function normalizeDate(date) {
424
+ return _date2.default.parse(_date2.default.format(date, format), format);
425
+ };
426
+ var ndate = normalizeDate(date);
427
+ var nranges = ranges.map(function (range) {
428
+ return range.map(normalizeDate);
429
+ });
430
+ if (nranges.some(function (nrange) {
431
+ return ndate >= nrange[0] && ndate <= nrange[1];
432
+ })) return date;
433
+
434
+ var minDate = nranges[0][0];
435
+ var maxDate = nranges[0][0];
436
+
437
+ nranges.forEach(function (nrange) {
438
+ minDate = new Date(Math.min(nrange[0], minDate));
439
+ maxDate = new Date(Math.max(nrange[1], minDate));
440
+ });
441
+
442
+ var ret = ndate < minDate ? minDate : maxDate;
443
+ // preserve Year/Month/Date
444
+ return modifyDate(ret, date.getFullYear(), date.getMonth(), date.getDate());
445
+ };
446
+
447
+ var timeWithinRange = exports.timeWithinRange = function timeWithinRange(date, selectableRange, format) {
448
+ var limitedDate = limitTimeRange(date, selectableRange, format);
449
+ return limitedDate.getTime() === date.getTime();
450
+ };
451
+
452
+ var changeYearMonthAndClampDate = exports.changeYearMonthAndClampDate = function changeYearMonthAndClampDate(date, year, month) {
453
+ // clamp date to the number of days in `year`, `month`
454
+ // eg: (2010-1-31, 2010, 2) => 2010-2-28
455
+ var monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
456
+ return modifyDate(date, year, month, monthDate);
457
+ };
458
+
459
+ var prevMonth = exports.prevMonth = function prevMonth(date) {
460
+ var year = date.getFullYear();
461
+ var month = date.getMonth();
462
+ return month === 0 ? changeYearMonthAndClampDate(date, year - 1, 11) : changeYearMonthAndClampDate(date, year, month - 1);
463
+ };
464
+
465
+ var nextMonth = exports.nextMonth = function nextMonth(date) {
466
+ var year = date.getFullYear();
467
+ var month = date.getMonth();
468
+ return month === 11 ? changeYearMonthAndClampDate(date, year + 1, 0) : changeYearMonthAndClampDate(date, year, month + 1);
469
+ };
470
+
471
+ var prevYear = exports.prevYear = function prevYear(date) {
472
+ var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
473
+
474
+ var year = date.getFullYear();
475
+ var month = date.getMonth();
476
+ return changeYearMonthAndClampDate(date, year - amount, month);
477
+ };
478
+
479
+ var nextYear = exports.nextYear = function nextYear(date) {
480
+ var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
481
+
482
+ var year = date.getFullYear();
483
+ var month = date.getMonth();
484
+ return changeYearMonthAndClampDate(date, year + amount, month);
485
+ };
486
+
487
+ var extractDateFormat = exports.extractDateFormat = function extractDateFormat(format) {
488
+ return format.replace(/\W?m{1,2}|\W?ZZ/g, '').replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '').trim();
489
+ };
490
+
491
+ var extractTimeFormat = exports.extractTimeFormat = function extractTimeFormat(format) {
492
+ return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '').trim();
493
+ };
494
+
495
+ /***/ }),
496
+
497
+ /***/ 12:
498
+ /***/ (function(module, exports) {
499
+
500
+ module.exports = require("element-ui/lib/locale");
501
+
502
+ /***/ }),
503
+
504
+ /***/ 17:
505
+ /***/ (function(module, exports) {
506
+
507
+ module.exports = require("element-ui/lib/scrollbar");
508
+
509
+ /***/ }),
510
+
511
+ /***/ 197:
512
+ /***/ (function(module, exports, __webpack_require__) {
513
+
514
+ "use strict";
515
+
516
+
517
+ exports.__esModule = true;
518
+
519
+ var _timePicker = __webpack_require__(198);
520
+
521
+ var _timePicker2 = _interopRequireDefault(_timePicker);
522
+
523
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
524
+
525
+ /* istanbul ignore next */
526
+ _timePicker2.default.install = function (Vue) {
527
+ Vue.component(_timePicker2.default.name, _timePicker2.default);
528
+ };
529
+
530
+ exports.default = _timePicker2.default;
531
+
532
+ /***/ }),
533
+
534
+ /***/ 198:
535
+ /***/ (function(module, exports, __webpack_require__) {
536
+
537
+ "use strict";
538
+
539
+
540
+ exports.__esModule = true;
541
+
542
+ var _picker = __webpack_require__(27);
543
+
544
+ var _picker2 = _interopRequireDefault(_picker);
545
+
546
+ var _time = __webpack_require__(31);
547
+
548
+ var _time2 = _interopRequireDefault(_time);
549
+
550
+ var _timeRange = __webpack_require__(199);
551
+
552
+ var _timeRange2 = _interopRequireDefault(_timeRange);
553
+
554
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
555
+
556
+ exports.default = {
557
+ mixins: [_picker2.default],
558
+
559
+ name: 'ElTimePicker',
560
+
561
+ props: {
562
+ isRange: Boolean,
563
+ arrowControl: Boolean
564
+ },
565
+
566
+ data: function data() {
567
+ return {
568
+ type: ''
569
+ };
570
+ },
571
+
572
+
573
+ watch: {
574
+ isRange: function isRange(_isRange) {
575
+ if (this.picker) {
576
+ this.unmountPicker();
577
+ this.type = _isRange ? 'timerange' : 'time';
578
+ this.panel = _isRange ? _timeRange2.default : _time2.default;
579
+ this.mountPicker();
580
+ } else {
581
+ this.type = _isRange ? 'timerange' : 'time';
582
+ this.panel = _isRange ? _timeRange2.default : _time2.default;
583
+ }
584
+ }
585
+ },
586
+
587
+ created: function created() {
588
+ this.type = this.isRange ? 'timerange' : 'time';
589
+ this.panel = this.isRange ? _timeRange2.default : _time2.default;
590
+ }
591
+ };
592
+
593
+ /***/ }),
594
+
595
+ /***/ 199:
596
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
597
+
598
+ "use strict";
599
+ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
600
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_time_range_vue__ = __webpack_require__(200);
601
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_time_range_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_time_range_vue__);
602
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_331fa926_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_time_range_vue__ = __webpack_require__(201);
603
+ var normalizeComponent = __webpack_require__(0)
604
+ /* script */
605
+
606
+ /* template */
607
+
608
+ /* template functional */
609
+ var __vue_template_functional__ = false
610
+ /* styles */
611
+ var __vue_styles__ = null
612
+ /* scopeId */
613
+ var __vue_scopeId__ = null
614
+ /* moduleIdentifier (server only) */
615
+ var __vue_module_identifier__ = null
616
+ var Component = normalizeComponent(
617
+ __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_time_range_vue___default.a,
618
+ __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_331fa926_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_time_range_vue__["a" /* default */],
619
+ __vue_template_functional__,
620
+ __vue_styles__,
621
+ __vue_scopeId__,
622
+ __vue_module_identifier__
623
+ )
624
+
625
+ /* harmony default export */ __webpack_exports__["default"] = (Component.exports);
626
+
627
+
628
+ /***/ }),
629
+
630
+ /***/ 200:
631
+ /***/ (function(module, exports, __webpack_require__) {
632
+
633
+ "use strict";
634
+
635
+
636
+ exports.__esModule = true;
637
+
638
+ var _util = __webpack_require__(11);
639
+
640
+ var _locale = __webpack_require__(5);
641
+
642
+ var _locale2 = _interopRequireDefault(_locale);
643
+
644
+ var _timeSpinner = __webpack_require__(32);
645
+
646
+ var _timeSpinner2 = _interopRequireDefault(_timeSpinner);
647
+
648
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
649
+
650
+ var MIN_TIME = (0, _util.parseDate)('00:00:00', 'HH:mm:ss'); //
651
+ //
652
+ //
653
+ //
654
+ //
655
+ //
656
+ //
657
+ //
658
+ //
659
+ //
660
+ //
661
+ //
662
+ //
663
+ //
664
+ //
665
+ //
666
+ //
667
+ //
668
+ //
669
+ //
670
+ //
671
+ //
672
+ //
673
+ //
674
+ //
675
+ //
676
+ //
677
+ //
678
+ //
679
+ //
680
+ //
681
+ //
682
+ //
683
+ //
684
+ //
685
+ //
686
+ //
687
+ //
688
+ //
689
+ //
690
+ //
691
+ //
692
+ //
693
+ //
694
+ //
695
+ //
696
+ //
697
+ //
698
+ //
699
+ //
700
+ //
701
+ //
702
+ //
703
+ //
704
+ //
705
+ //
706
+ //
707
+
708
+ var MAX_TIME = (0, _util.parseDate)('23:59:59', 'HH:mm:ss');
709
+
710
+ var minTimeOfDay = function minTimeOfDay(date) {
711
+ return (0, _util.modifyDate)(MIN_TIME, date.getFullYear(), date.getMonth(), date.getDate());
712
+ };
713
+
714
+ var maxTimeOfDay = function maxTimeOfDay(date) {
715
+ return (0, _util.modifyDate)(MAX_TIME, date.getFullYear(), date.getMonth(), date.getDate());
716
+ };
717
+
718
+ // increase time by amount of milliseconds, but within the range of day
719
+ var advanceTime = function advanceTime(date, amount) {
720
+ return new Date(Math.min(date.getTime() + amount, maxTimeOfDay(date).getTime()));
721
+ };
722
+
723
+ exports.default = {
724
+ mixins: [_locale2.default],
725
+
726
+ components: { TimeSpinner: _timeSpinner2.default },
727
+
728
+ computed: {
729
+ showSeconds: function showSeconds() {
730
+ return (this.format || '').indexOf('ss') !== -1;
731
+ },
732
+ offset: function offset() {
733
+ return this.showSeconds ? 11 : 8;
734
+ },
735
+ spinner: function spinner() {
736
+ return this.selectionRange[0] < this.offset ? this.$refs.minSpinner : this.$refs.maxSpinner;
737
+ },
738
+ btnDisabled: function btnDisabled() {
739
+ return this.minDate.getTime() > this.maxDate.getTime();
740
+ },
741
+ amPmMode: function amPmMode() {
742
+ if ((this.format || '').indexOf('A') !== -1) return 'A';
743
+ if ((this.format || '').indexOf('a') !== -1) return 'a';
744
+ return '';
745
+ }
746
+ },
747
+
748
+ data: function data() {
749
+ return {
750
+ popperClass: '',
751
+ minDate: new Date(),
752
+ maxDate: new Date(),
753
+ value: [],
754
+ oldValue: [new Date(), new Date()],
755
+ defaultValue: null,
756
+ format: 'HH:mm:ss',
757
+ visible: false,
758
+ selectionRange: [0, 2],
759
+ arrowControl: false
760
+ };
761
+ },
762
+
763
+
764
+ watch: {
765
+ value: function value(_value) {
766
+ if (Array.isArray(_value)) {
767
+ this.minDate = new Date(_value[0]);
768
+ this.maxDate = new Date(_value[1]);
769
+ } else {
770
+ if (Array.isArray(this.defaultValue)) {
771
+ this.minDate = new Date(this.defaultValue[0]);
772
+ this.maxDate = new Date(this.defaultValue[1]);
773
+ } else if (this.defaultValue) {
774
+ this.minDate = new Date(this.defaultValue);
775
+ this.maxDate = advanceTime(new Date(this.defaultValue), 60 * 60 * 1000);
776
+ } else {
777
+ this.minDate = new Date();
778
+ this.maxDate = advanceTime(new Date(), 60 * 60 * 1000);
779
+ }
780
+ }
781
+ },
782
+ visible: function visible(val) {
783
+ var _this = this;
784
+
785
+ if (val) {
786
+ this.oldValue = this.value;
787
+ this.$nextTick(function () {
788
+ return _this.$refs.minSpinner.emitSelectRange('hours');
789
+ });
790
+ }
791
+ }
792
+ },
793
+
794
+ methods: {
795
+ handleClear: function handleClear() {
796
+ this.$emit('pick', null);
797
+ },
798
+ handleCancel: function handleCancel() {
799
+ this.$emit('pick', this.oldValue);
800
+ },
801
+ handleMinChange: function handleMinChange(date) {
802
+ this.minDate = (0, _util.clearMilliseconds)(date);
803
+ this.handleChange();
804
+ },
805
+ handleMaxChange: function handleMaxChange(date) {
806
+ this.maxDate = (0, _util.clearMilliseconds)(date);
807
+ this.handleChange();
808
+ },
809
+ handleChange: function handleChange() {
810
+ if (this.isValidValue([this.minDate, this.maxDate])) {
811
+ this.$refs.minSpinner.selectableRange = [[minTimeOfDay(this.minDate), this.maxDate]];
812
+ this.$refs.maxSpinner.selectableRange = [[this.minDate, maxTimeOfDay(this.maxDate)]];
813
+ this.$emit('pick', [this.minDate, this.maxDate], true);
814
+ }
815
+ },
816
+ setMinSelectionRange: function setMinSelectionRange(start, end) {
817
+ this.$emit('select-range', start, end, 'min');
818
+ this.selectionRange = [start, end];
819
+ },
820
+ setMaxSelectionRange: function setMaxSelectionRange(start, end) {
821
+ this.$emit('select-range', start, end, 'max');
822
+ this.selectionRange = [start + this.offset, end + this.offset];
823
+ },
824
+ handleConfirm: function handleConfirm() {
825
+ var visible = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
826
+
827
+ var minSelectableRange = this.$refs.minSpinner.selectableRange;
828
+ var maxSelectableRange = this.$refs.maxSpinner.selectableRange;
829
+
830
+ this.minDate = (0, _util.limitTimeRange)(this.minDate, minSelectableRange, this.format);
831
+ this.maxDate = (0, _util.limitTimeRange)(this.maxDate, maxSelectableRange, this.format);
832
+
833
+ this.$emit('pick', [this.minDate, this.maxDate], visible);
834
+ },
835
+ adjustSpinners: function adjustSpinners() {
836
+ this.$refs.minSpinner.adjustSpinners();
837
+ this.$refs.maxSpinner.adjustSpinners();
838
+ },
839
+ changeSelectionRange: function changeSelectionRange(step) {
840
+ var list = this.showSeconds ? [0, 3, 6, 11, 14, 17] : [0, 3, 8, 11];
841
+ var mapping = ['hours', 'minutes'].concat(this.showSeconds ? ['seconds'] : []);
842
+ var index = list.indexOf(this.selectionRange[0]);
843
+ var next = (index + step + list.length) % list.length;
844
+ var half = list.length / 2;
845
+ if (next < half) {
846
+ this.$refs.minSpinner.emitSelectRange(mapping[next]);
847
+ } else {
848
+ this.$refs.maxSpinner.emitSelectRange(mapping[next - half]);
849
+ }
850
+ },
851
+ isValidValue: function isValidValue(date) {
852
+ return Array.isArray(date) && (0, _util.timeWithinRange)(this.minDate, this.$refs.minSpinner.selectableRange) && (0, _util.timeWithinRange)(this.maxDate, this.$refs.maxSpinner.selectableRange);
853
+ },
854
+ handleKeydown: function handleKeydown(event) {
855
+ var keyCode = event.keyCode;
856
+ var mapping = { 38: -1, 40: 1, 37: -1, 39: 1 };
857
+
858
+ // Left or Right
859
+ if (keyCode === 37 || keyCode === 39) {
860
+ var step = mapping[keyCode];
861
+ this.changeSelectionRange(step);
862
+ event.preventDefault();
863
+ return;
864
+ }
865
+
866
+ // Up or Down
867
+ if (keyCode === 38 || keyCode === 40) {
868
+ var _step = mapping[keyCode];
869
+ this.spinner.scrollDown(_step);
870
+ event.preventDefault();
871
+ return;
872
+ }
873
+ }
874
+ }
875
+ };
876
+
877
+ /***/ }),
878
+
879
+ /***/ 201:
880
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
881
+
882
+ "use strict";
883
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":"el-zoom-in-top"},on:{"after-leave":function($event){_vm.$emit('dodestroy')}}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.visible),expression:"visible"}],staticClass:"el-time-range-picker el-picker-panel el-popper",class:_vm.popperClass},[_c('div',{staticClass:"el-time-range-picker__content"},[_c('div',{staticClass:"el-time-range-picker__cell"},[_c('div',{staticClass:"el-time-range-picker__header"},[_vm._v(_vm._s(_vm.t('el.datepicker.startTime')))]),_c('div',{staticClass:"el-time-range-picker__body el-time-panel__content",class:{ 'has-seconds': _vm.showSeconds, 'is-arrow': _vm.arrowControl }},[_c('time-spinner',{ref:"minSpinner",attrs:{"show-seconds":_vm.showSeconds,"am-pm-mode":_vm.amPmMode,"arrow-control":_vm.arrowControl,"date":_vm.minDate},on:{"change":_vm.handleMinChange,"select-range":_vm.setMinSelectionRange}})],1)]),_c('div',{staticClass:"el-time-range-picker__cell"},[_c('div',{staticClass:"el-time-range-picker__header"},[_vm._v(_vm._s(_vm.t('el.datepicker.endTime')))]),_c('div',{staticClass:"el-time-range-picker__body el-time-panel__content",class:{ 'has-seconds': _vm.showSeconds, 'is-arrow': _vm.arrowControl }},[_c('time-spinner',{ref:"maxSpinner",attrs:{"show-seconds":_vm.showSeconds,"am-pm-mode":_vm.amPmMode,"arrow-control":_vm.arrowControl,"date":_vm.maxDate},on:{"change":_vm.handleMaxChange,"select-range":_vm.setMaxSelectionRange}})],1)])]),_c('div',{staticClass:"el-time-panel__footer"},[_c('button',{staticClass:"el-time-panel__btn cancel",attrs:{"type":"button"},on:{"click":function($event){_vm.handleCancel()}}},[_vm._v(_vm._s(_vm.t('el.datepicker.cancel')))]),_c('button',{staticClass:"el-time-panel__btn confirm",attrs:{"type":"button","disabled":_vm.btnDisabled},on:{"click":function($event){_vm.handleConfirm()}}},[_vm._v(_vm._s(_vm.t('el.datepicker.confirm')))])])])])}
884
+ var staticRenderFns = []
885
+ var esExports = { render: render, staticRenderFns: staticRenderFns }
886
+ /* harmony default export */ __webpack_exports__["a"] = (esExports);
887
+
888
+ /***/ }),
889
+
890
+ /***/ 24:
891
+ /***/ (function(module, exports, __webpack_require__) {
892
+
893
+ "use strict";
894
+
895
+
896
+ exports.__esModule = true;
897
+
898
+ var _dom = __webpack_require__(3);
899
+
900
+ exports.default = {
901
+ bind: function bind(el, binding, vnode) {
902
+ var interval = null;
903
+ var startTime = void 0;
904
+ var handler = function handler() {
905
+ return vnode.context[binding.expression].apply();
906
+ };
907
+ var clear = function clear() {
908
+ if (new Date() - startTime < 100) {
909
+ handler();
910
+ }
911
+ clearInterval(interval);
912
+ interval = null;
913
+ };
914
+
915
+ (0, _dom.on)(el, 'mousedown', function (e) {
916
+ if (e.button !== 0) return;
917
+ startTime = new Date();
918
+ (0, _dom.once)(document, 'mouseup', clear);
919
+ clearInterval(interval);
920
+ interval = setInterval(handler, 100);
921
+ });
922
+ }
923
+ };
924
+
925
+ /***/ }),
926
+
927
+ /***/ 27:
928
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
929
+
930
+ "use strict";
931
+ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
932
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_picker_vue__ = __webpack_require__(28);
933
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_picker_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_picker_vue__);
934
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_66b1c70c_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_picker_vue__ = __webpack_require__(30);
935
+ var normalizeComponent = __webpack_require__(0)
936
+ /* script */
937
+
938
+ /* template */
939
+
940
+ /* template functional */
941
+ var __vue_template_functional__ = false
942
+ /* styles */
943
+ var __vue_styles__ = null
944
+ /* scopeId */
945
+ var __vue_scopeId__ = null
946
+ /* moduleIdentifier (server only) */
947
+ var __vue_module_identifier__ = null
948
+ var Component = normalizeComponent(
949
+ __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_picker_vue___default.a,
950
+ __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_66b1c70c_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_picker_vue__["a" /* default */],
951
+ __vue_template_functional__,
952
+ __vue_styles__,
953
+ __vue_scopeId__,
954
+ __vue_module_identifier__
955
+ )
956
+
957
+ /* harmony default export */ __webpack_exports__["default"] = (Component.exports);
958
+
959
+
960
+ /***/ }),
961
+
962
+ /***/ 28:
963
+ /***/ (function(module, exports, __webpack_require__) {
964
+
965
+ "use strict";
966
+
967
+
968
+ exports.__esModule = true;
969
+
970
+ var _vue = __webpack_require__(4);
971
+
972
+ var _vue2 = _interopRequireDefault(_vue);
973
+
974
+ var _clickoutside = __webpack_require__(10);
975
+
976
+ var _clickoutside2 = _interopRequireDefault(_clickoutside);
977
+
978
+ var _util = __webpack_require__(11);
979
+
980
+ var _vuePopper = __webpack_require__(7);
981
+
982
+ var _vuePopper2 = _interopRequireDefault(_vuePopper);
983
+
984
+ var _emitter = __webpack_require__(1);
985
+
986
+ var _emitter2 = _interopRequireDefault(_emitter);
987
+
988
+ var _input = __webpack_require__(6);
989
+
990
+ var _input2 = _interopRequireDefault(_input);
991
+
992
+ var _merge = __webpack_require__(9);
993
+
994
+ var _merge2 = _interopRequireDefault(_merge);
995
+
996
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
997
+
998
+ var NewPopper = {
999
+ props: {
1000
+ appendToBody: _vuePopper2.default.props.appendToBody,
1001
+ offset: _vuePopper2.default.props.offset,
1002
+ boundariesPadding: _vuePopper2.default.props.boundariesPadding,
1003
+ arrowOffset: _vuePopper2.default.props.arrowOffset
1004
+ },
1005
+ methods: _vuePopper2.default.methods,
1006
+ data: function data() {
1007
+ return (0, _merge2.default)({ visibleArrow: true }, _vuePopper2.default.data);
1008
+ },
1009
+
1010
+ beforeDestroy: _vuePopper2.default.beforeDestroy
1011
+ }; //
1012
+ //
1013
+ //
1014
+ //
1015
+ //
1016
+ //
1017
+ //
1018
+ //
1019
+ //
1020
+ //
1021
+ //
1022
+ //
1023
+ //
1024
+ //
1025
+ //
1026
+ //
1027
+ //
1028
+ //
1029
+ //
1030
+ //
1031
+ //
1032
+ //
1033
+ //
1034
+ //
1035
+ //
1036
+ //
1037
+ //
1038
+ //
1039
+ //
1040
+ //
1041
+ //
1042
+ //
1043
+ //
1044
+ //
1045
+ //
1046
+ //
1047
+ //
1048
+ //
1049
+ //
1050
+ //
1051
+ //
1052
+ //
1053
+ //
1054
+ //
1055
+ //
1056
+ //
1057
+ //
1058
+ //
1059
+ //
1060
+ //
1061
+ //
1062
+ //
1063
+ //
1064
+ //
1065
+ //
1066
+ //
1067
+ //
1068
+ //
1069
+ //
1070
+ //
1071
+ //
1072
+ //
1073
+ //
1074
+ //
1075
+ //
1076
+ //
1077
+ //
1078
+ //
1079
+ //
1080
+ //
1081
+ //
1082
+ //
1083
+ //
1084
+ //
1085
+ //
1086
+ //
1087
+ //
1088
+ //
1089
+ //
1090
+ //
1091
+ //
1092
+ //
1093
+ //
1094
+ //
1095
+ //
1096
+
1097
+ var DEFAULT_FORMATS = {
1098
+ date: 'yyyy-MM-dd',
1099
+ month: 'yyyy-MM',
1100
+ datetime: 'yyyy-MM-dd HH:mm:ss',
1101
+ time: 'HH:mm:ss',
1102
+ week: 'yyyywWW',
1103
+ timerange: 'HH:mm:ss',
1104
+ daterange: 'yyyy-MM-dd',
1105
+ datetimerange: 'yyyy-MM-dd HH:mm:ss',
1106
+ year: 'yyyy'
1107
+ };
1108
+ var HAVE_TRIGGER_TYPES = ['date', 'datetime', 'time', 'time-select', 'week', 'month', 'year', 'daterange', 'timerange', 'datetimerange', 'dates'];
1109
+ var DATE_FORMATTER = function DATE_FORMATTER(value, format) {
1110
+ if (format === 'timestamp') return value.getTime();
1111
+ return (0, _util.formatDate)(value, format);
1112
+ };
1113
+ var DATE_PARSER = function DATE_PARSER(text, format) {
1114
+ if (format === 'timestamp') return new Date(Number(text));
1115
+ return (0, _util.parseDate)(text, format);
1116
+ };
1117
+ var RANGE_FORMATTER = function RANGE_FORMATTER(value, format) {
1118
+ if (Array.isArray(value) && value.length === 2) {
1119
+ var start = value[0];
1120
+ var end = value[1];
1121
+
1122
+ if (start && end) {
1123
+ return [DATE_FORMATTER(start, format), DATE_FORMATTER(end, format)];
1124
+ }
1125
+ }
1126
+ return '';
1127
+ };
1128
+ var RANGE_PARSER = function RANGE_PARSER(array, format, separator) {
1129
+ if (!Array.isArray(array)) {
1130
+ array = array.split(separator);
1131
+ }
1132
+ if (array.length === 2) {
1133
+ var range1 = array[0];
1134
+ var range2 = array[1];
1135
+
1136
+ return [DATE_PARSER(range1, format), DATE_PARSER(range2, format)];
1137
+ }
1138
+ return [];
1139
+ };
1140
+ var TYPE_VALUE_RESOLVER_MAP = {
1141
+ default: {
1142
+ formatter: function formatter(value) {
1143
+ if (!value) return '';
1144
+ return '' + value;
1145
+ },
1146
+ parser: function parser(text) {
1147
+ if (text === undefined || text === '') return null;
1148
+ return text;
1149
+ }
1150
+ },
1151
+ week: {
1152
+ formatter: function formatter(value, format) {
1153
+ var week = (0, _util.getWeekNumber)(value);
1154
+ var month = value.getMonth();
1155
+ var trueDate = new Date(value);
1156
+ if (week === 1 && month === 11) {
1157
+ trueDate.setHours(0, 0, 0, 0);
1158
+ trueDate.setDate(trueDate.getDate() + 3 - (trueDate.getDay() + 6) % 7);
1159
+ }
1160
+ var date = (0, _util.formatDate)(trueDate, format);
1161
+
1162
+ date = /WW/.test(date) ? date.replace(/WW/, week < 10 ? '0' + week : week) : date.replace(/W/, week);
1163
+ return date;
1164
+ },
1165
+ parser: function parser(text) {
1166
+ var array = (text || '').split('w');
1167
+ if (array.length === 2) {
1168
+ var year = Number(array[0]);
1169
+ var month = Number(array[1]);
1170
+
1171
+ if (!isNaN(year) && !isNaN(month) && month < 54) {
1172
+ return text;
1173
+ }
1174
+ }
1175
+ return null;
1176
+ }
1177
+ },
1178
+ date: {
1179
+ formatter: DATE_FORMATTER,
1180
+ parser: DATE_PARSER
1181
+ },
1182
+ datetime: {
1183
+ formatter: DATE_FORMATTER,
1184
+ parser: DATE_PARSER
1185
+ },
1186
+ daterange: {
1187
+ formatter: RANGE_FORMATTER,
1188
+ parser: RANGE_PARSER
1189
+ },
1190
+ datetimerange: {
1191
+ formatter: RANGE_FORMATTER,
1192
+ parser: RANGE_PARSER
1193
+ },
1194
+ timerange: {
1195
+ formatter: RANGE_FORMATTER,
1196
+ parser: RANGE_PARSER
1197
+ },
1198
+ time: {
1199
+ formatter: DATE_FORMATTER,
1200
+ parser: DATE_PARSER
1201
+ },
1202
+ month: {
1203
+ formatter: DATE_FORMATTER,
1204
+ parser: DATE_PARSER
1205
+ },
1206
+ year: {
1207
+ formatter: DATE_FORMATTER,
1208
+ parser: DATE_PARSER
1209
+ },
1210
+ number: {
1211
+ formatter: function formatter(value) {
1212
+ if (!value) return '';
1213
+ return '' + value;
1214
+ },
1215
+ parser: function parser(text) {
1216
+ var result = Number(text);
1217
+
1218
+ if (!isNaN(text)) {
1219
+ return result;
1220
+ } else {
1221
+ return null;
1222
+ }
1223
+ }
1224
+ },
1225
+ dates: {
1226
+ formatter: function formatter(value, format) {
1227
+ return value.map(function (date) {
1228
+ return DATE_FORMATTER(date, format);
1229
+ });
1230
+ },
1231
+ parser: function parser(value, format) {
1232
+ return (typeof value === 'string' ? value.split(', ') : value).map(function (date) {
1233
+ return date instanceof Date ? date : DATE_PARSER(date, format);
1234
+ });
1235
+ }
1236
+ }
1237
+ };
1238
+ var PLACEMENT_MAP = {
1239
+ left: 'bottom-start',
1240
+ center: 'bottom',
1241
+ right: 'bottom-end'
1242
+ };
1243
+
1244
+ var parseAsFormatAndType = function parseAsFormatAndType(value, customFormat, type) {
1245
+ var rangeSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '-';
1246
+
1247
+ if (!value) return null;
1248
+ var parser = (TYPE_VALUE_RESOLVER_MAP[type] || TYPE_VALUE_RESOLVER_MAP['default']).parser;
1249
+ var format = customFormat || DEFAULT_FORMATS[type];
1250
+ return parser(value, format, rangeSeparator);
1251
+ };
1252
+
1253
+ var formatAsFormatAndType = function formatAsFormatAndType(value, customFormat, type) {
1254
+ if (!value) return null;
1255
+ var formatter = (TYPE_VALUE_RESOLVER_MAP[type] || TYPE_VALUE_RESOLVER_MAP['default']).formatter;
1256
+ var format = customFormat || DEFAULT_FORMATS[type];
1257
+ return formatter(value, format);
1258
+ };
1259
+
1260
+ /*
1261
+ * Considers:
1262
+ * 1. Date object
1263
+ * 2. date string
1264
+ * 3. array of 1 or 2
1265
+ */
1266
+ var valueEquals = function valueEquals(a, b) {
1267
+ // considers Date object and string
1268
+ var dateEquals = function dateEquals(a, b) {
1269
+ var aIsDate = a instanceof Date;
1270
+ var bIsDate = b instanceof Date;
1271
+ if (aIsDate && bIsDate) {
1272
+ return a.getTime() === b.getTime();
1273
+ }
1274
+ if (!aIsDate && !bIsDate) {
1275
+ return a === b;
1276
+ }
1277
+ return false;
1278
+ };
1279
+
1280
+ var aIsArray = a instanceof Array;
1281
+ var bIsArray = b instanceof Array;
1282
+ if (aIsArray && bIsArray) {
1283
+ if (a.length !== b.length) {
1284
+ return false;
1285
+ }
1286
+ return a.every(function (item, index) {
1287
+ return dateEquals(item, b[index]);
1288
+ });
1289
+ }
1290
+ if (!aIsArray && !bIsArray) {
1291
+ return dateEquals(a, b);
1292
+ }
1293
+ return false;
1294
+ };
1295
+
1296
+ var isString = function isString(val) {
1297
+ return typeof val === 'string' || val instanceof String;
1298
+ };
1299
+
1300
+ var validator = function validator(val) {
1301
+ // either: String, Array of String, null / undefined
1302
+ return val === null || val === undefined || isString(val) || Array.isArray(val) && val.length === 2 && val.every(isString);
1303
+ };
1304
+
1305
+ exports.default = {
1306
+ mixins: [_emitter2.default, NewPopper],
1307
+
1308
+ inject: {
1309
+ elForm: {
1310
+ default: ''
1311
+ },
1312
+ elFormItem: {
1313
+ default: ''
1314
+ }
1315
+ },
1316
+
1317
+ props: {
1318
+ size: String,
1319
+ format: String,
1320
+ valueFormat: String,
1321
+ readonly: Boolean,
1322
+ placeholder: String,
1323
+ startPlaceholder: String,
1324
+ endPlaceholder: String,
1325
+ prefixIcon: String,
1326
+ clearIcon: {
1327
+ type: String,
1328
+ default: 'el-icon-circle-close'
1329
+ },
1330
+ name: {
1331
+ default: '',
1332
+ validator: validator
1333
+ },
1334
+ disabled: Boolean,
1335
+ clearable: {
1336
+ type: Boolean,
1337
+ default: true
1338
+ },
1339
+ id: {
1340
+ default: '',
1341
+ validator: validator
1342
+ },
1343
+ popperClass: String,
1344
+ editable: {
1345
+ type: Boolean,
1346
+ default: true
1347
+ },
1348
+ align: {
1349
+ type: String,
1350
+ default: 'left'
1351
+ },
1352
+ value: {},
1353
+ defaultValue: {},
1354
+ defaultTime: {},
1355
+ rangeSeparator: {
1356
+ default: '-'
1357
+ },
1358
+ pickerOptions: {},
1359
+ unlinkPanels: Boolean
1360
+ },
1361
+
1362
+ components: { ElInput: _input2.default },
1363
+
1364
+ directives: { Clickoutside: _clickoutside2.default },
1365
+
1366
+ data: function data() {
1367
+ return {
1368
+ pickerVisible: false,
1369
+ showClose: false,
1370
+ userInput: null,
1371
+ valueOnOpen: null, // value when picker opens, used to determine whether to emit change
1372
+ unwatchPickerOptions: null
1373
+ };
1374
+ },
1375
+
1376
+
1377
+ watch: {
1378
+ pickerVisible: function pickerVisible(val) {
1379
+ if (this.readonly || this.pickerDisabled) return;
1380
+ if (val) {
1381
+ this.showPicker();
1382
+ this.valueOnOpen = Array.isArray(this.value) ? [].concat(this.value) : this.value;
1383
+ } else {
1384
+ this.hidePicker();
1385
+ this.emitChange(this.value);
1386
+ this.userInput = null;
1387
+ this.dispatch('ElFormItem', 'el.form.blur');
1388
+ this.$emit('blur', this);
1389
+ this.blur();
1390
+ }
1391
+ },
1392
+
1393
+ parsedValue: {
1394
+ immediate: true,
1395
+ handler: function handler(val) {
1396
+ if (this.picker) {
1397
+ this.picker.value = val;
1398
+ }
1399
+ }
1400
+ },
1401
+ defaultValue: function defaultValue(val) {
1402
+ // NOTE: should eventually move to jsx style picker + panel ?
1403
+ if (this.picker) {
1404
+ this.picker.defaultValue = val;
1405
+ }
1406
+ },
1407
+ value: function value(val, oldVal) {
1408
+ if (!valueEquals(val, oldVal) && !this.pickerVisible) {
1409
+ this.dispatch('ElFormItem', 'el.form.change', val);
1410
+ }
1411
+ }
1412
+ },
1413
+
1414
+ computed: {
1415
+ ranged: function ranged() {
1416
+ return this.type.indexOf('range') > -1;
1417
+ },
1418
+ reference: function reference() {
1419
+ var reference = this.$refs.reference;
1420
+ return reference.$el || reference;
1421
+ },
1422
+ refInput: function refInput() {
1423
+ if (this.reference) {
1424
+ return [].slice.call(this.reference.querySelectorAll('input'));
1425
+ }
1426
+ return [];
1427
+ },
1428
+ valueIsEmpty: function valueIsEmpty() {
1429
+ var val = this.value;
1430
+ if (Array.isArray(val)) {
1431
+ for (var i = 0, len = val.length; i < len; i++) {
1432
+ if (val[i]) {
1433
+ return false;
1434
+ }
1435
+ }
1436
+ } else {
1437
+ if (val) {
1438
+ return false;
1439
+ }
1440
+ }
1441
+ return true;
1442
+ },
1443
+ triggerClass: function triggerClass() {
1444
+ return this.prefixIcon || (this.type.indexOf('time') !== -1 ? 'el-icon-time' : 'el-icon-date');
1445
+ },
1446
+ selectionMode: function selectionMode() {
1447
+ if (this.type === 'week') {
1448
+ return 'week';
1449
+ } else if (this.type === 'month') {
1450
+ return 'month';
1451
+ } else if (this.type === 'year') {
1452
+ return 'year';
1453
+ } else if (this.type === 'dates') {
1454
+ return 'dates';
1455
+ }
1456
+
1457
+ return 'day';
1458
+ },
1459
+ haveTrigger: function haveTrigger() {
1460
+ if (typeof this.showTrigger !== 'undefined') {
1461
+ return this.showTrigger;
1462
+ }
1463
+ return HAVE_TRIGGER_TYPES.indexOf(this.type) !== -1;
1464
+ },
1465
+ displayValue: function displayValue() {
1466
+ var formattedValue = formatAsFormatAndType(this.parsedValue, this.format, this.type, this.rangeSeparator);
1467
+ if (Array.isArray(this.userInput)) {
1468
+ return [this.userInput[0] || formattedValue && formattedValue[0] || '', this.userInput[1] || formattedValue && formattedValue[1] || ''];
1469
+ } else if (this.userInput !== null) {
1470
+ return this.userInput;
1471
+ } else if (formattedValue) {
1472
+ return this.type === 'dates' ? formattedValue.join(', ') : formattedValue;
1473
+ } else {
1474
+ return '';
1475
+ }
1476
+ },
1477
+ parsedValue: function parsedValue() {
1478
+ if (!this.value) return this.value; // component value is not set
1479
+ if (this.type === 'time-select') return this.value; // time-select does not require parsing, this might change in next major version
1480
+
1481
+ var valueIsDateObject = (0, _util.isDateObject)(this.value) || Array.isArray(this.value) && this.value.every(_util.isDateObject);
1482
+ if (valueIsDateObject) {
1483
+ return this.value;
1484
+ }
1485
+
1486
+ if (this.valueFormat) {
1487
+ return parseAsFormatAndType(this.value, this.valueFormat, this.type, this.rangeSeparator) || this.value;
1488
+ }
1489
+
1490
+ // NOTE: deal with common but incorrect usage, should remove in next major version
1491
+ // user might provide string / timestamp without value-format, coerce them into date (or array of date)
1492
+ return Array.isArray(this.value) ? this.value.map(function (val) {
1493
+ return new Date(val);
1494
+ }) : new Date(this.value);
1495
+ },
1496
+ _elFormItemSize: function _elFormItemSize() {
1497
+ return (this.elFormItem || {}).elFormItemSize;
1498
+ },
1499
+ pickerSize: function pickerSize() {
1500
+ return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
1501
+ },
1502
+ pickerDisabled: function pickerDisabled() {
1503
+ return this.disabled || (this.elForm || {}).disabled;
1504
+ },
1505
+ firstInputId: function firstInputId() {
1506
+ var obj = {};
1507
+ var id = void 0;
1508
+ if (this.ranged) {
1509
+ id = this.id && this.id[0];
1510
+ } else {
1511
+ id = this.id;
1512
+ }
1513
+ if (id) obj.id = id;
1514
+ return obj;
1515
+ },
1516
+ secondInputId: function secondInputId() {
1517
+ var obj = {};
1518
+ var id = void 0;
1519
+ if (this.ranged) {
1520
+ id = this.id && this.id[1];
1521
+ }
1522
+ if (id) obj.id = id;
1523
+ return obj;
1524
+ }
1525
+ },
1526
+
1527
+ created: function created() {
1528
+ // vue-popper
1529
+ this.popperOptions = {
1530
+ boundariesPadding: 0,
1531
+ gpuAcceleration: false
1532
+ };
1533
+ this.placement = PLACEMENT_MAP[this.align] || PLACEMENT_MAP.left;
1534
+
1535
+ this.$on('fieldReset', this.handleFieldReset);
1536
+ },
1537
+
1538
+
1539
+ methods: {
1540
+ focus: function focus() {
1541
+ if (!this.ranged) {
1542
+ this.$refs.reference.focus();
1543
+ } else {
1544
+ this.handleFocus();
1545
+ }
1546
+ },
1547
+ blur: function blur() {
1548
+ this.refInput.forEach(function (input) {
1549
+ return input.blur();
1550
+ });
1551
+ },
1552
+
1553
+
1554
+ // {parse, formatTo} Value deals maps component value with internal Date
1555
+ parseValue: function parseValue(value) {
1556
+ var isParsed = (0, _util.isDateObject)(value) || Array.isArray(value) && value.every(_util.isDateObject);
1557
+ if (this.valueFormat && !isParsed) {
1558
+ return parseAsFormatAndType(value, this.valueFormat, this.type, this.rangeSeparator) || value;
1559
+ } else {
1560
+ return value;
1561
+ }
1562
+ },
1563
+ formatToValue: function formatToValue(date) {
1564
+ var isFormattable = (0, _util.isDateObject)(date) || Array.isArray(date) && date.every(_util.isDateObject);
1565
+ if (this.valueFormat && isFormattable) {
1566
+ return formatAsFormatAndType(date, this.valueFormat, this.type, this.rangeSeparator);
1567
+ } else {
1568
+ return date;
1569
+ }
1570
+ },
1571
+
1572
+
1573
+ // {parse, formatTo} String deals with user input
1574
+ parseString: function parseString(value) {
1575
+ var type = Array.isArray(value) ? this.type : this.type.replace('range', '');
1576
+ return parseAsFormatAndType(value, this.format, type);
1577
+ },
1578
+ formatToString: function formatToString(value) {
1579
+ var type = Array.isArray(value) ? this.type : this.type.replace('range', '');
1580
+ return formatAsFormatAndType(value, this.format, type);
1581
+ },
1582
+ handleMouseEnter: function handleMouseEnter() {
1583
+ if (this.readonly || this.pickerDisabled) return;
1584
+ if (!this.valueIsEmpty && this.clearable) {
1585
+ this.showClose = true;
1586
+ }
1587
+ },
1588
+ handleChange: function handleChange() {
1589
+ if (this.userInput) {
1590
+ var value = this.parseString(this.displayValue);
1591
+ if (value) {
1592
+ this.picker.value = value;
1593
+ if (this.isValidValue(value)) {
1594
+ this.emitInput(value);
1595
+ this.userInput = null;
1596
+ }
1597
+ }
1598
+ }
1599
+ if (this.userInput === '') {
1600
+ this.emitInput(null);
1601
+ this.emitChange(null);
1602
+ this.userInput = null;
1603
+ }
1604
+ },
1605
+ handleStartInput: function handleStartInput(event) {
1606
+ if (this.userInput) {
1607
+ this.userInput = [event.target.value, this.userInput[1]];
1608
+ } else {
1609
+ this.userInput = [event.target.value, null];
1610
+ }
1611
+ },
1612
+ handleEndInput: function handleEndInput(event) {
1613
+ if (this.userInput) {
1614
+ this.userInput = [this.userInput[0], event.target.value];
1615
+ } else {
1616
+ this.userInput = [null, event.target.value];
1617
+ }
1618
+ },
1619
+ handleStartChange: function handleStartChange(event) {
1620
+ var value = this.parseString(this.userInput && this.userInput[0]);
1621
+ if (value) {
1622
+ this.userInput = [this.formatToString(value), this.displayValue[1]];
1623
+ var newValue = [value, this.picker.value && this.picker.value[1]];
1624
+ this.picker.value = newValue;
1625
+ if (this.isValidValue(newValue)) {
1626
+ this.emitInput(newValue);
1627
+ this.userInput = null;
1628
+ }
1629
+ }
1630
+ },
1631
+ handleEndChange: function handleEndChange(event) {
1632
+ var value = this.parseString(this.userInput && this.userInput[1]);
1633
+ if (value) {
1634
+ this.userInput = [this.displayValue[0], this.formatToString(value)];
1635
+ var newValue = [this.picker.value && this.picker.value[0], value];
1636
+ this.picker.value = newValue;
1637
+ if (this.isValidValue(newValue)) {
1638
+ this.emitInput(newValue);
1639
+ this.userInput = null;
1640
+ }
1641
+ }
1642
+ },
1643
+ handleClickIcon: function handleClickIcon(event) {
1644
+ if (this.readonly || this.pickerDisabled) return;
1645
+ if (this.showClose) {
1646
+ this.valueOnOpen = this.value;
1647
+ event.stopPropagation();
1648
+ this.emitInput(null);
1649
+ this.emitChange(null);
1650
+ this.showClose = false;
1651
+ if (this.picker && typeof this.picker.handleClear === 'function') {
1652
+ this.picker.handleClear();
1653
+ }
1654
+ } else {
1655
+ this.pickerVisible = !this.pickerVisible;
1656
+ }
1657
+ },
1658
+ handleClose: function handleClose() {
1659
+ if (!this.pickerVisible) return;
1660
+ this.pickerVisible = false;
1661
+
1662
+ if (this.type === 'dates') {
1663
+ // restore to former value
1664
+ var oldValue = parseAsFormatAndType(this.valueOnOpen, this.valueFormat, this.type, this.rangeSeparator) || this.valueOnOpen;
1665
+ this.emitInput(oldValue);
1666
+ }
1667
+ },
1668
+ handleFieldReset: function handleFieldReset(initialValue) {
1669
+ this.userInput = initialValue === '' ? null : initialValue;
1670
+ },
1671
+ handleFocus: function handleFocus() {
1672
+ var type = this.type;
1673
+
1674
+ if (HAVE_TRIGGER_TYPES.indexOf(type) !== -1 && !this.pickerVisible) {
1675
+ this.pickerVisible = true;
1676
+ }
1677
+ this.$emit('focus', this);
1678
+ },
1679
+ handleKeydown: function handleKeydown(event) {
1680
+ var _this = this;
1681
+
1682
+ var keyCode = event.keyCode;
1683
+
1684
+ // ESC
1685
+ if (keyCode === 27) {
1686
+ this.pickerVisible = false;
1687
+ event.stopPropagation();
1688
+ return;
1689
+ }
1690
+
1691
+ // Tab
1692
+ if (keyCode === 9) {
1693
+ if (!this.ranged) {
1694
+ this.handleChange();
1695
+ this.pickerVisible = this.picker.visible = false;
1696
+ this.blur();
1697
+ event.stopPropagation();
1698
+ } else {
1699
+ // user may change focus between two input
1700
+ setTimeout(function () {
1701
+ if (_this.refInput.indexOf(document.activeElement) === -1) {
1702
+ _this.pickerVisible = false;
1703
+ _this.blur();
1704
+ event.stopPropagation();
1705
+ }
1706
+ }, 0);
1707
+ }
1708
+ return;
1709
+ }
1710
+
1711
+ // Enter
1712
+ if (keyCode === 13) {
1713
+ if (this.userInput === '' || this.isValidValue(this.parseString(this.displayValue))) {
1714
+ this.handleChange();
1715
+ this.pickerVisible = this.picker.visible = false;
1716
+ this.blur();
1717
+ }
1718
+ event.stopPropagation();
1719
+ return;
1720
+ }
1721
+
1722
+ // if user is typing, do not let picker handle key input
1723
+ if (this.userInput) {
1724
+ event.stopPropagation();
1725
+ return;
1726
+ }
1727
+
1728
+ // delegate other keys to panel
1729
+ if (this.picker && this.picker.handleKeydown) {
1730
+ this.picker.handleKeydown(event);
1731
+ }
1732
+ },
1733
+ handleRangeClick: function handleRangeClick() {
1734
+ var type = this.type;
1735
+
1736
+ if (HAVE_TRIGGER_TYPES.indexOf(type) !== -1 && !this.pickerVisible) {
1737
+ this.pickerVisible = true;
1738
+ }
1739
+ this.$emit('focus', this);
1740
+ },
1741
+ hidePicker: function hidePicker() {
1742
+ if (this.picker) {
1743
+ this.picker.resetView && this.picker.resetView();
1744
+ this.pickerVisible = this.picker.visible = false;
1745
+ this.destroyPopper();
1746
+ }
1747
+ },
1748
+ showPicker: function showPicker() {
1749
+ var _this2 = this;
1750
+
1751
+ if (this.$isServer) return;
1752
+ if (!this.picker) {
1753
+ this.mountPicker();
1754
+ }
1755
+ this.pickerVisible = this.picker.visible = true;
1756
+
1757
+ this.updatePopper();
1758
+
1759
+ this.picker.value = this.parsedValue;
1760
+ this.picker.resetView && this.picker.resetView();
1761
+
1762
+ this.$nextTick(function () {
1763
+ _this2.picker.adjustSpinners && _this2.picker.adjustSpinners();
1764
+ });
1765
+ },
1766
+ mountPicker: function mountPicker() {
1767
+ var _this3 = this;
1768
+
1769
+ this.picker = new _vue2.default(this.panel).$mount();
1770
+ this.picker.defaultValue = this.defaultValue;
1771
+ this.picker.defaultTime = this.defaultTime;
1772
+ this.picker.popperClass = this.popperClass;
1773
+ this.popperElm = this.picker.$el;
1774
+ this.picker.width = this.reference.getBoundingClientRect().width;
1775
+ this.picker.showTime = this.type === 'datetime' || this.type === 'datetimerange';
1776
+ this.picker.selectionMode = this.selectionMode;
1777
+ this.picker.unlinkPanels = this.unlinkPanels;
1778
+ this.picker.arrowControl = this.arrowControl || this.timeArrowControl || false;
1779
+ this.$watch('format', function (format) {
1780
+ _this3.picker.format = format;
1781
+ });
1782
+
1783
+ var updateOptions = function updateOptions() {
1784
+ var options = _this3.pickerOptions;
1785
+
1786
+ if (options && options.selectableRange) {
1787
+ (function () {
1788
+ var ranges = options.selectableRange;
1789
+ var parser = TYPE_VALUE_RESOLVER_MAP.datetimerange.parser;
1790
+ var format = DEFAULT_FORMATS.timerange;
1791
+
1792
+ ranges = Array.isArray(ranges) ? ranges : [ranges];
1793
+ _this3.picker.selectableRange = ranges.map(function (range) {
1794
+ return parser(range, format, _this3.rangeSeparator);
1795
+ });
1796
+ })();
1797
+ }
1798
+
1799
+ for (var option in options) {
1800
+ if (options.hasOwnProperty(option) &&
1801
+ // 忽略 time-picker 的该配置项
1802
+ option !== 'selectableRange') {
1803
+ _this3.picker[option] = options[option];
1804
+ }
1805
+ }
1806
+
1807
+ // main format must prevail over undocumented pickerOptions.format
1808
+ if (_this3.format) {
1809
+ _this3.picker.format = _this3.format;
1810
+ }
1811
+ };
1812
+ updateOptions();
1813
+ this.unwatchPickerOptions = this.$watch('pickerOptions', function () {
1814
+ return updateOptions();
1815
+ }, { deep: true });
1816
+
1817
+ this.$el.appendChild(this.picker.$el);
1818
+ this.picker.resetView && this.picker.resetView();
1819
+
1820
+ this.picker.$on('dodestroy', this.doDestroy);
1821
+ this.picker.$on('pick', function () {
1822
+ var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
1823
+ var visible = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1824
+
1825
+ _this3.userInput = null;
1826
+ _this3.pickerVisible = _this3.picker.visible = visible;
1827
+ _this3.emitInput(date);
1828
+ _this3.picker.resetView && _this3.picker.resetView();
1829
+ });
1830
+
1831
+ this.picker.$on('select-range', function (start, end, pos) {
1832
+ if (_this3.refInput.length === 0) return;
1833
+ if (!pos || pos === 'min') {
1834
+ _this3.refInput[0].setSelectionRange(start, end);
1835
+ _this3.refInput[0].focus();
1836
+ } else if (pos === 'max') {
1837
+ _this3.refInput[1].setSelectionRange(start, end);
1838
+ _this3.refInput[1].focus();
1839
+ }
1840
+ });
1841
+ },
1842
+ unmountPicker: function unmountPicker() {
1843
+ if (this.picker) {
1844
+ this.picker.$destroy();
1845
+ this.picker.$off();
1846
+ if (typeof this.unwatchPickerOptions === 'function') {
1847
+ this.unwatchPickerOptions();
1848
+ }
1849
+ this.picker.$el.parentNode.removeChild(this.picker.$el);
1850
+ }
1851
+ },
1852
+ emitChange: function emitChange(val) {
1853
+ // determine user real change only
1854
+ if (!valueEquals(val, this.valueOnOpen)) {
1855
+ this.$emit('change', val);
1856
+ this.dispatch('ElFormItem', 'el.form.change', val);
1857
+ this.valueOnOpen = val;
1858
+ }
1859
+ },
1860
+ emitInput: function emitInput(val) {
1861
+ var formatted = this.formatToValue(val);
1862
+ if (!valueEquals(this.value, formatted)) {
1863
+ this.$emit('input', formatted);
1864
+ }
1865
+ },
1866
+ isValidValue: function isValidValue(value) {
1867
+ if (!this.picker) {
1868
+ this.mountPicker();
1869
+ }
1870
+ if (this.picker.isValidValue) {
1871
+ return value && this.picker.isValidValue(value);
1872
+ } else {
1873
+ return true;
1874
+ }
1875
+ }
1876
+ }
1877
+ };
1878
+
1879
+ /***/ }),
1880
+
1881
+ /***/ 29:
1882
+ /***/ (function(module, exports) {
1883
+
1884
+ module.exports = require("element-ui/lib/utils/date");
1885
+
1886
+ /***/ }),
1887
+
1888
+ /***/ 3:
1889
+ /***/ (function(module, exports) {
1890
+
1891
+ module.exports = require("element-ui/lib/utils/dom");
1892
+
1893
+ /***/ }),
1894
+
1895
+ /***/ 30:
1896
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1897
+
1898
+ "use strict";
1899
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (!_vm.ranged)?_c('el-input',_vm._b({directives:[{name:"clickoutside",rawName:"v-clickoutside",value:(_vm.handleClose),expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor",class:'el-date-editor--' + _vm.type,attrs:{"readonly":!_vm.editable || _vm.readonly || _vm.type === 'dates',"disabled":_vm.pickerDisabled,"size":_vm.pickerSize,"name":_vm.name,"placeholder":_vm.placeholder,"value":_vm.displayValue,"validateEvent":false},on:{"focus":_vm.handleFocus,"input":function (value) { return _vm.userInput = value; },"change":_vm.handleChange},nativeOn:{"keydown":function($event){_vm.handleKeydown($event)},"mouseenter":function($event){_vm.handleMouseEnter($event)},"mouseleave":function($event){_vm.showClose = false}}},'el-input',_vm.firstInputId,false),[_c('i',{staticClass:"el-input__icon",class:_vm.triggerClass,attrs:{"slot":"prefix"},on:{"click":_vm.handleFocus},slot:"prefix"}),(_vm.haveTrigger)?_c('i',{staticClass:"el-input__icon",class:[_vm.showClose ? '' + _vm.clearIcon : ''],attrs:{"slot":"suffix"},on:{"click":_vm.handleClickIcon},slot:"suffix"}):_vm._e()]):_c('div',{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:(_vm.handleClose),expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor el-range-editor el-input__inner",class:[
1900
+ 'el-date-editor--' + _vm.type,
1901
+ _vm.pickerSize ? ("el-range-editor--" + _vm.pickerSize) : '',
1902
+ _vm.pickerDisabled ? 'is-disabled' : '',
1903
+ _vm.pickerVisible ? 'is-active' : ''
1904
+ ],on:{"click":_vm.handleRangeClick,"mouseenter":_vm.handleMouseEnter,"mouseleave":function($event){_vm.showClose = false},"keydown":_vm.handleKeydown}},[_c('i',{class:['el-input__icon', 'el-range__icon', _vm.triggerClass]}),_c('input',_vm._b({staticClass:"el-range-input",attrs:{"autocomplete":"off","placeholder":_vm.startPlaceholder,"disabled":_vm.pickerDisabled,"readonly":!_vm.editable || _vm.readonly,"name":_vm.name && _vm.name[0]},domProps:{"value":_vm.displayValue && _vm.displayValue[0]},on:{"input":_vm.handleStartInput,"change":_vm.handleStartChange,"focus":_vm.handleFocus}},'input',_vm.firstInputId,false)),_vm._t("range-separator",[_c('span',{staticClass:"el-range-separator"},[_vm._v(_vm._s(_vm.rangeSeparator))])]),_c('input',_vm._b({staticClass:"el-range-input",attrs:{"autocomplete":"off","placeholder":_vm.endPlaceholder,"disabled":_vm.pickerDisabled,"readonly":!_vm.editable || _vm.readonly,"name":_vm.name && _vm.name[1]},domProps:{"value":_vm.displayValue && _vm.displayValue[1]},on:{"input":_vm.handleEndInput,"change":_vm.handleEndChange,"focus":_vm.handleFocus}},'input',_vm.secondInputId,false)),(_vm.haveTrigger)?_c('i',{staticClass:"el-input__icon el-range__close-icon",class:[_vm.showClose ? '' + _vm.clearIcon : ''],on:{"click":_vm.handleClickIcon}}):_vm._e()],2)}
1905
+ var staticRenderFns = []
1906
+ var esExports = { render: render, staticRenderFns: staticRenderFns }
1907
+ /* harmony default export */ __webpack_exports__["a"] = (esExports);
1908
+
1909
+ /***/ }),
1910
+
1911
+ /***/ 31:
1912
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1913
+
1914
+ "use strict";
1915
+ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
1916
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_time_vue__ = __webpack_require__(41);
1917
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_time_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_time_vue__);
1918
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_ee915b14_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_time_vue__ = __webpack_require__(44);
1919
+ var normalizeComponent = __webpack_require__(0)
1920
+ /* script */
1921
+
1922
+ /* template */
1923
+
1924
+ /* template functional */
1925
+ var __vue_template_functional__ = false
1926
+ /* styles */
1927
+ var __vue_styles__ = null
1928
+ /* scopeId */
1929
+ var __vue_scopeId__ = null
1930
+ /* moduleIdentifier (server only) */
1931
+ var __vue_module_identifier__ = null
1932
+ var Component = normalizeComponent(
1933
+ __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_time_vue___default.a,
1934
+ __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_ee915b14_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_time_vue__["a" /* default */],
1935
+ __vue_template_functional__,
1936
+ __vue_styles__,
1937
+ __vue_scopeId__,
1938
+ __vue_module_identifier__
1939
+ )
1940
+
1941
+ /* harmony default export */ __webpack_exports__["default"] = (Component.exports);
1942
+
1943
+
1944
+ /***/ }),
1945
+
1946
+ /***/ 32:
1947
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1948
+
1949
+ "use strict";
1950
+ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
1951
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_time_spinner_vue__ = __webpack_require__(42);
1952
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_time_spinner_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_time_spinner_vue__);
1953
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_72da32d8_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_time_spinner_vue__ = __webpack_require__(43);
1954
+ var normalizeComponent = __webpack_require__(0)
1955
+ /* script */
1956
+
1957
+ /* template */
1958
+
1959
+ /* template functional */
1960
+ var __vue_template_functional__ = false
1961
+ /* styles */
1962
+ var __vue_styles__ = null
1963
+ /* scopeId */
1964
+ var __vue_scopeId__ = null
1965
+ /* moduleIdentifier (server only) */
1966
+ var __vue_module_identifier__ = null
1967
+ var Component = normalizeComponent(
1968
+ __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_time_spinner_vue___default.a,
1969
+ __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_72da32d8_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_time_spinner_vue__["a" /* default */],
1970
+ __vue_template_functional__,
1971
+ __vue_styles__,
1972
+ __vue_scopeId__,
1973
+ __vue_module_identifier__
1974
+ )
1975
+
1976
+ /* harmony default export */ __webpack_exports__["default"] = (Component.exports);
1977
+
1978
+
1979
+ /***/ }),
1980
+
1981
+ /***/ 4:
1982
+ /***/ (function(module, exports) {
1983
+
1984
+ module.exports = require("vue");
1985
+
1986
+ /***/ }),
1987
+
1988
+ /***/ 41:
1989
+ /***/ (function(module, exports, __webpack_require__) {
1990
+
1991
+ "use strict";
1992
+
1993
+
1994
+ exports.__esModule = true;
1995
+
1996
+ var _util = __webpack_require__(11);
1997
+
1998
+ var _locale = __webpack_require__(5);
1999
+
2000
+ var _locale2 = _interopRequireDefault(_locale);
2001
+
2002
+ var _timeSpinner = __webpack_require__(32);
2003
+
2004
+ var _timeSpinner2 = _interopRequireDefault(_timeSpinner);
2005
+
2006
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2007
+
2008
+ exports.default = {
2009
+ mixins: [_locale2.default],
2010
+
2011
+ components: {
2012
+ TimeSpinner: _timeSpinner2.default
2013
+ },
2014
+
2015
+ props: {
2016
+ visible: Boolean,
2017
+ timeArrowControl: Boolean
2018
+ },
2019
+
2020
+ watch: {
2021
+ visible: function visible(val) {
2022
+ var _this = this;
2023
+
2024
+ if (val) {
2025
+ this.oldValue = this.value;
2026
+ this.$nextTick(function () {
2027
+ return _this.$refs.spinner.emitSelectRange('hours');
2028
+ });
2029
+ } else {
2030
+ this.needInitAdjust = true;
2031
+ }
2032
+ },
2033
+ value: function value(newVal) {
2034
+ var _this2 = this;
2035
+
2036
+ var date = void 0;
2037
+ if (newVal instanceof Date) {
2038
+ date = (0, _util.limitTimeRange)(newVal, this.selectableRange, this.format);
2039
+ } else if (!newVal) {
2040
+ date = this.defaultValue ? new Date(this.defaultValue) : new Date();
2041
+ }
2042
+
2043
+ this.date = date;
2044
+ if (this.visible && this.needInitAdjust) {
2045
+ this.$nextTick(function (_) {
2046
+ return _this2.adjustSpinners();
2047
+ });
2048
+ this.needInitAdjust = false;
2049
+ }
2050
+ },
2051
+ selectableRange: function selectableRange(val) {
2052
+ this.$refs.spinner.selectableRange = val;
2053
+ },
2054
+ defaultValue: function defaultValue(val) {
2055
+ if (!(0, _util.isDate)(this.value)) {
2056
+ this.date = val ? new Date(val) : new Date();
2057
+ }
2058
+ }
2059
+ },
2060
+
2061
+ data: function data() {
2062
+ return {
2063
+ popperClass: '',
2064
+ format: 'HH:mm:ss',
2065
+ value: '',
2066
+ defaultValue: null,
2067
+ date: new Date(),
2068
+ oldValue: new Date(),
2069
+ selectableRange: [],
2070
+ selectionRange: [0, 2],
2071
+ disabled: false,
2072
+ arrowControl: false,
2073
+ needInitAdjust: true
2074
+ };
2075
+ },
2076
+
2077
+
2078
+ computed: {
2079
+ showSeconds: function showSeconds() {
2080
+ return (this.format || '').indexOf('ss') !== -1;
2081
+ },
2082
+ useArrow: function useArrow() {
2083
+ return this.arrowControl || this.timeArrowControl || false;
2084
+ },
2085
+ amPmMode: function amPmMode() {
2086
+ if ((this.format || '').indexOf('A') !== -1) return 'A';
2087
+ if ((this.format || '').indexOf('a') !== -1) return 'a';
2088
+ return '';
2089
+ }
2090
+ },
2091
+
2092
+ methods: {
2093
+ handleCancel: function handleCancel() {
2094
+ this.$emit('pick', this.oldValue, false);
2095
+ },
2096
+ handleChange: function handleChange(date) {
2097
+ // this.visible avoids edge cases, when use scrolls during panel closing animation
2098
+ if (this.visible) {
2099
+ this.date = (0, _util.clearMilliseconds)(date);
2100
+ // if date is out of range, do not emit
2101
+ if (this.isValidValue(this.date)) {
2102
+ this.$emit('pick', this.date, true);
2103
+ }
2104
+ }
2105
+ },
2106
+ setSelectionRange: function setSelectionRange(start, end) {
2107
+ this.$emit('select-range', start, end);
2108
+ this.selectionRange = [start, end];
2109
+ },
2110
+ handleConfirm: function handleConfirm() {
2111
+ var visible = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
2112
+ var first = arguments[1];
2113
+
2114
+ if (first) return;
2115
+ var date = (0, _util.clearMilliseconds)((0, _util.limitTimeRange)(this.date, this.selectableRange, this.format));
2116
+ this.$emit('pick', date, visible, first);
2117
+ },
2118
+ handleKeydown: function handleKeydown(event) {
2119
+ var keyCode = event.keyCode;
2120
+ var mapping = { 38: -1, 40: 1, 37: -1, 39: 1 };
2121
+
2122
+ // Left or Right
2123
+ if (keyCode === 37 || keyCode === 39) {
2124
+ var step = mapping[keyCode];
2125
+ this.changeSelectionRange(step);
2126
+ event.preventDefault();
2127
+ return;
2128
+ }
2129
+
2130
+ // Up or Down
2131
+ if (keyCode === 38 || keyCode === 40) {
2132
+ var _step = mapping[keyCode];
2133
+ this.$refs.spinner.scrollDown(_step);
2134
+ event.preventDefault();
2135
+ return;
2136
+ }
2137
+ },
2138
+ isValidValue: function isValidValue(date) {
2139
+ return (0, _util.timeWithinRange)(date, this.selectableRange, this.format);
2140
+ },
2141
+ adjustSpinners: function adjustSpinners() {
2142
+ return this.$refs.spinner.adjustSpinners();
2143
+ },
2144
+ changeSelectionRange: function changeSelectionRange(step) {
2145
+ var list = [0, 3].concat(this.showSeconds ? [6] : []);
2146
+ var mapping = ['hours', 'minutes'].concat(this.showSeconds ? ['seconds'] : []);
2147
+ var index = list.indexOf(this.selectionRange[0]);
2148
+ var next = (index + step + list.length) % list.length;
2149
+ this.$refs.spinner.emitSelectRange(mapping[next]);
2150
+ }
2151
+ },
2152
+
2153
+ mounted: function mounted() {
2154
+ var _this3 = this;
2155
+
2156
+ this.$nextTick(function () {
2157
+ return _this3.handleConfirm(true, true);
2158
+ });
2159
+ this.$emit('mounted');
2160
+ }
2161
+ }; //
2162
+ //
2163
+ //
2164
+ //
2165
+ //
2166
+ //
2167
+ //
2168
+ //
2169
+ //
2170
+ //
2171
+ //
2172
+ //
2173
+ //
2174
+ //
2175
+ //
2176
+ //
2177
+ //
2178
+ //
2179
+ //
2180
+ //
2181
+ //
2182
+ //
2183
+ //
2184
+ //
2185
+ //
2186
+ //
2187
+ //
2188
+ //
2189
+ //
2190
+ //
2191
+ //
2192
+ //
2193
+
2194
+ /***/ }),
2195
+
2196
+ /***/ 42:
2197
+ /***/ (function(module, exports, __webpack_require__) {
2198
+
2199
+ "use strict";
2200
+
2201
+
2202
+ exports.__esModule = true;
2203
+
2204
+ var _util = __webpack_require__(11);
2205
+
2206
+ var _scrollbar = __webpack_require__(17);
2207
+
2208
+ var _scrollbar2 = _interopRequireDefault(_scrollbar);
2209
+
2210
+ var _repeatClick = __webpack_require__(24);
2211
+
2212
+ var _repeatClick2 = _interopRequireDefault(_repeatClick);
2213
+
2214
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2215
+
2216
+ exports.default = {
2217
+ components: { ElScrollbar: _scrollbar2.default },
2218
+
2219
+ directives: {
2220
+ repeatClick: _repeatClick2.default
2221
+ },
2222
+
2223
+ props: {
2224
+ date: {},
2225
+ defaultValue: {}, // reserved for future use
2226
+ showSeconds: {
2227
+ type: Boolean,
2228
+ default: true
2229
+ },
2230
+ arrowControl: Boolean,
2231
+ amPmMode: {
2232
+ type: String,
2233
+ default: '' // 'a': am/pm; 'A': AM/PM
2234
+ }
2235
+ },
2236
+
2237
+ computed: {
2238
+ hours: function hours() {
2239
+ return this.date.getHours();
2240
+ },
2241
+ minutes: function minutes() {
2242
+ return this.date.getMinutes();
2243
+ },
2244
+ seconds: function seconds() {
2245
+ return this.date.getSeconds();
2246
+ },
2247
+ hoursList: function hoursList() {
2248
+ return (0, _util.getRangeHours)(this.selectableRange);
2249
+ },
2250
+ minutesList: function minutesList() {
2251
+ return (0, _util.getRangeMinutes)(this.selectableRange, this.hours);
2252
+ },
2253
+ arrowHourList: function arrowHourList() {
2254
+ var hours = this.hours;
2255
+ return [hours > 0 ? hours - 1 : undefined, hours, hours < 23 ? hours + 1 : undefined];
2256
+ },
2257
+ arrowMinuteList: function arrowMinuteList() {
2258
+ var minutes = this.minutes;
2259
+ return [minutes > 0 ? minutes - 1 : undefined, minutes, minutes < 59 ? minutes + 1 : undefined];
2260
+ },
2261
+ arrowSecondList: function arrowSecondList() {
2262
+ var seconds = this.seconds;
2263
+ return [seconds > 0 ? seconds - 1 : undefined, seconds, seconds < 59 ? seconds + 1 : undefined];
2264
+ }
2265
+ },
2266
+
2267
+ data: function data() {
2268
+ return {
2269
+ selectableRange: [],
2270
+ currentScrollbar: null
2271
+ };
2272
+ },
2273
+ mounted: function mounted() {
2274
+ var _this = this;
2275
+
2276
+ this.$nextTick(function () {
2277
+ !_this.arrowControl && _this.bindScrollEvent();
2278
+ });
2279
+ },
2280
+
2281
+
2282
+ methods: {
2283
+ increase: function increase() {
2284
+ this.scrollDown(1);
2285
+ },
2286
+ decrease: function decrease() {
2287
+ this.scrollDown(-1);
2288
+ },
2289
+ modifyDateField: function modifyDateField(type, value) {
2290
+ switch (type) {
2291
+ case 'hours':
2292
+ this.$emit('change', (0, _util.modifyTime)(this.date, value, this.minutes, this.seconds));break;
2293
+ case 'minutes':
2294
+ this.$emit('change', (0, _util.modifyTime)(this.date, this.hours, value, this.seconds));break;
2295
+ case 'seconds':
2296
+ this.$emit('change', (0, _util.modifyTime)(this.date, this.hours, this.minutes, value));break;
2297
+ }
2298
+ },
2299
+ handleClick: function handleClick(type, _ref) {
2300
+ var value = _ref.value,
2301
+ disabled = _ref.disabled;
2302
+
2303
+ if (!disabled) {
2304
+ this.modifyDateField(type, value);
2305
+ this.emitSelectRange(type);
2306
+ this.adjustSpinner(type, value);
2307
+ }
2308
+ },
2309
+ emitSelectRange: function emitSelectRange(type) {
2310
+ if (type === 'hours') {
2311
+ this.$emit('select-range', 0, 2);
2312
+ } else if (type === 'minutes') {
2313
+ this.$emit('select-range', 3, 5);
2314
+ } else if (type === 'seconds') {
2315
+ this.$emit('select-range', 6, 8);
2316
+ }
2317
+ this.currentScrollbar = type;
2318
+ },
2319
+ bindScrollEvent: function bindScrollEvent() {
2320
+ var _this2 = this;
2321
+
2322
+ var bindFuntion = function bindFuntion(type) {
2323
+ _this2.$refs[type].wrap.onscroll = function (e) {
2324
+ // TODO: scroll is emitted when set scrollTop programatically
2325
+ // should find better solutions in the future!
2326
+ _this2.handleScroll(type, e);
2327
+ };
2328
+ };
2329
+ bindFuntion('hours');
2330
+ bindFuntion('minutes');
2331
+ bindFuntion('seconds');
2332
+ },
2333
+ handleScroll: function handleScroll(type) {
2334
+ var value = Math.min(Math.floor((this.$refs[type].wrap.scrollTop - (this.scrollBarHeight(type) * 0.5 - 10) / this.typeItemHeight(type) + 3) / this.typeItemHeight(type)), type === 'hours' ? 23 : 59);
2335
+ this.modifyDateField(type, value);
2336
+ },
2337
+
2338
+
2339
+ // NOTE: used by datetime / date-range panel
2340
+ // renamed from adjustScrollTop
2341
+ // should try to refactory it
2342
+ adjustSpinners: function adjustSpinners() {
2343
+ this.adjustSpinner('hours', this.hours);
2344
+ this.adjustSpinner('minutes', this.minutes);
2345
+ this.adjustSpinner('seconds', this.seconds);
2346
+ },
2347
+ adjustCurrentSpinner: function adjustCurrentSpinner(type) {
2348
+ this.adjustSpinner(type, this[type]);
2349
+ },
2350
+ adjustSpinner: function adjustSpinner(type, value) {
2351
+ if (this.arrowControl) return;
2352
+ var el = this.$refs[type].wrap;
2353
+ if (el) {
2354
+ el.scrollTop = Math.max(0, value * this.typeItemHeight(type));
2355
+ }
2356
+ },
2357
+ scrollDown: function scrollDown(step) {
2358
+ if (!this.currentScrollbar) {
2359
+ this.emitSelectRange('hours');
2360
+ }
2361
+
2362
+ var label = this.currentScrollbar;
2363
+ var hoursList = this.hoursList;
2364
+ var now = this[label];
2365
+
2366
+ if (this.currentScrollbar === 'hours') {
2367
+ var total = Math.abs(step);
2368
+ step = step > 0 ? 1 : -1;
2369
+ var length = hoursList.length;
2370
+ while (length-- && total) {
2371
+ now = (now + step + hoursList.length) % hoursList.length;
2372
+ if (hoursList[now]) {
2373
+ continue;
2374
+ }
2375
+ total--;
2376
+ }
2377
+ if (hoursList[now]) return;
2378
+ } else {
2379
+ now = (now + step + 60) % 60;
2380
+ }
2381
+
2382
+ this.modifyDateField(label, now);
2383
+ this.adjustSpinner(label, now);
2384
+ },
2385
+ amPm: function amPm(hour) {
2386
+ var shouldShowAmPm = this.amPmMode.toLowerCase() === 'a';
2387
+ if (!shouldShowAmPm) return '';
2388
+ var isCapital = this.amPmMode === 'A';
2389
+ var content = hour < 12 ? ' am' : ' pm';
2390
+ if (isCapital) content = content.toUpperCase();
2391
+ return content;
2392
+ },
2393
+ typeItemHeight: function typeItemHeight(type) {
2394
+ return this.$refs[type].$el.querySelector('li').offsetHeight;
2395
+ },
2396
+ scrollBarHeight: function scrollBarHeight(type) {
2397
+ return this.$refs[type].$el.offsetHeight;
2398
+ }
2399
+ }
2400
+ }; //
2401
+ //
2402
+ //
2403
+ //
2404
+ //
2405
+ //
2406
+ //
2407
+ //
2408
+ //
2409
+ //
2410
+ //
2411
+ //
2412
+ //
2413
+ //
2414
+ //
2415
+ //
2416
+ //
2417
+ //
2418
+ //
2419
+ //
2420
+ //
2421
+ //
2422
+ //
2423
+ //
2424
+ //
2425
+ //
2426
+ //
2427
+ //
2428
+ //
2429
+ //
2430
+ //
2431
+ //
2432
+ //
2433
+ //
2434
+ //
2435
+ //
2436
+ //
2437
+ //
2438
+ //
2439
+ //
2440
+ //
2441
+ //
2442
+ //
2443
+ //
2444
+ //
2445
+ //
2446
+ //
2447
+ //
2448
+ //
2449
+ //
2450
+ //
2451
+ //
2452
+ //
2453
+ //
2454
+ //
2455
+ //
2456
+ //
2457
+ //
2458
+ //
2459
+ //
2460
+ //
2461
+ //
2462
+ //
2463
+ //
2464
+ //
2465
+ //
2466
+ //
2467
+ //
2468
+ //
2469
+ //
2470
+ //
2471
+ //
2472
+ //
2473
+ //
2474
+ //
2475
+ //
2476
+ //
2477
+ //
2478
+ //
2479
+ //
2480
+ //
2481
+ //
2482
+ //
2483
+ //
2484
+ //
2485
+ //
2486
+ //
2487
+ //
2488
+ //
2489
+ //
2490
+ //
2491
+ //
2492
+ //
2493
+ //
2494
+ //
2495
+ //
2496
+ //
2497
+ //
2498
+ //
2499
+ //
2500
+
2501
+ /***/ }),
2502
+
2503
+ /***/ 43:
2504
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2505
+
2506
+ "use strict";
2507
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"el-time-spinner",class:{ 'has-seconds': _vm.showSeconds }},[(!_vm.arrowControl)?[_c('el-scrollbar',{ref:"hours",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list","noresize":"","tag":"ul"},nativeOn:{"mouseenter":function($event){_vm.emitSelectRange('hours')},"mousemove":function($event){_vm.adjustCurrentSpinner('hours')}}},_vm._l((_vm.hoursList),function(disabled,hour){return _c('li',{staticClass:"el-time-spinner__item",class:{ 'active': hour === _vm.hours, 'disabled': disabled },on:{"click":function($event){_vm.handleClick('hours', { value: hour, disabled: disabled })}}},[_vm._v(_vm._s(('0' + (_vm.amPmMode ? (hour % 12 || 12) : hour )).slice(-2))+_vm._s(_vm.amPm(hour)))])})),_c('el-scrollbar',{ref:"minutes",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list","noresize":"","tag":"ul"},nativeOn:{"mouseenter":function($event){_vm.emitSelectRange('minutes')},"mousemove":function($event){_vm.adjustCurrentSpinner('minutes')}}},_vm._l((_vm.minutesList),function(enabled,key){return _c('li',{staticClass:"el-time-spinner__item",class:{ 'active': key === _vm.minutes, disabled: !enabled },on:{"click":function($event){_vm.handleClick('minutes', { value: key, disabled: false })}}},[_vm._v(_vm._s(('0' + key).slice(-2)))])})),_c('el-scrollbar',{directives:[{name:"show",rawName:"v-show",value:(_vm.showSeconds),expression:"showSeconds"}],ref:"seconds",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list","noresize":"","tag":"ul"},nativeOn:{"mouseenter":function($event){_vm.emitSelectRange('seconds')},"mousemove":function($event){_vm.adjustCurrentSpinner('seconds')}}},_vm._l((60),function(second,key){return _c('li',{key:key,staticClass:"el-time-spinner__item",class:{ 'active': key === _vm.seconds },on:{"click":function($event){_vm.handleClick('seconds', { value: key, disabled: false })}}},[_vm._v(_vm._s(('0' + key).slice(-2)))])}))]:_vm._e(),(_vm.arrowControl)?[_c('div',{staticClass:"el-time-spinner__wrapper is-arrow",on:{"mouseenter":function($event){_vm.emitSelectRange('hours')}}},[_c('i',{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:(_vm.decrease),expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),_c('i',{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:(_vm.increase),expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),_c('ul',{ref:"hours",staticClass:"el-time-spinner__list"},_vm._l((_vm.arrowHourList),function(hour,key){return _c('li',{key:key,staticClass:"el-time-spinner__item",class:{ 'active': hour === _vm.hours, 'disabled': _vm.hoursList[hour] }},[_vm._v(_vm._s(hour === undefined ? '' : ('0' + (_vm.amPmMode ? (hour % 12 || 12) : hour )).slice(-2) + _vm.amPm(hour)))])}))]),_c('div',{staticClass:"el-time-spinner__wrapper is-arrow",on:{"mouseenter":function($event){_vm.emitSelectRange('minutes')}}},[_c('i',{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:(_vm.decrease),expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),_c('i',{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:(_vm.increase),expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),_c('ul',{ref:"minutes",staticClass:"el-time-spinner__list"},_vm._l((_vm.arrowMinuteList),function(minute,key){return _c('li',{key:key,staticClass:"el-time-spinner__item",class:{ 'active': minute === _vm.minutes }},[_vm._v("\n "+_vm._s(minute === undefined ? '' : ('0' + minute).slice(-2))+"\n ")])}))]),(_vm.showSeconds)?_c('div',{staticClass:"el-time-spinner__wrapper is-arrow",on:{"mouseenter":function($event){_vm.emitSelectRange('seconds')}}},[_c('i',{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:(_vm.decrease),expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),_c('i',{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:(_vm.increase),expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),_c('ul',{ref:"seconds",staticClass:"el-time-spinner__list"},_vm._l((_vm.arrowSecondList),function(second,key){return _c('li',{key:key,staticClass:"el-time-spinner__item",class:{ 'active': second === _vm.seconds }},[_vm._v("\n "+_vm._s(second === undefined ? '' : ('0' + second).slice(-2))+"\n ")])}))]):_vm._e()]:_vm._e()],2)}
2508
+ var staticRenderFns = []
2509
+ var esExports = { render: render, staticRenderFns: staticRenderFns }
2510
+ /* harmony default export */ __webpack_exports__["a"] = (esExports);
2511
+
2512
+ /***/ }),
2513
+
2514
+ /***/ 44:
2515
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
2516
+
2517
+ "use strict";
2518
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":"el-zoom-in-top"},on:{"after-leave":function($event){_vm.$emit('dodestroy')}}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.visible),expression:"visible"}],staticClass:"el-time-panel el-popper",class:_vm.popperClass},[_c('div',{staticClass:"el-time-panel__content",class:{ 'has-seconds': _vm.showSeconds }},[_c('time-spinner',{ref:"spinner",attrs:{"arrow-control":_vm.useArrow,"show-seconds":_vm.showSeconds,"am-pm-mode":_vm.amPmMode,"date":_vm.date},on:{"change":_vm.handleChange,"select-range":_vm.setSelectionRange}})],1),_c('div',{staticClass:"el-time-panel__footer"},[_c('button',{staticClass:"el-time-panel__btn cancel",attrs:{"type":"button"},on:{"click":_vm.handleCancel}},[_vm._v(_vm._s(_vm.t('el.datepicker.cancel')))]),_c('button',{staticClass:"el-time-panel__btn",class:{confirm: !_vm.disabled},attrs:{"type":"button"},on:{"click":function($event){_vm.handleConfirm()}}},[_vm._v(_vm._s(_vm.t('el.datepicker.confirm')))])])])])}
2519
+ var staticRenderFns = []
2520
+ var esExports = { render: render, staticRenderFns: staticRenderFns }
2521
+ /* harmony default export */ __webpack_exports__["a"] = (esExports);
2522
+
2523
+ /***/ }),
2524
+
2525
+ /***/ 5:
2526
+ /***/ (function(module, exports) {
2527
+
2528
+ module.exports = require("element-ui/lib/mixins/locale");
2529
+
2530
+ /***/ }),
2531
+
2532
+ /***/ 6:
2533
+ /***/ (function(module, exports) {
2534
+
2535
+ module.exports = require("element-ui/lib/input");
2536
+
2537
+ /***/ }),
2538
+
2539
+ /***/ 7:
2540
+ /***/ (function(module, exports) {
2541
+
2542
+ module.exports = require("element-ui/lib/utils/vue-popper");
2543
+
2544
+ /***/ }),
2545
+
2546
+ /***/ 9:
2547
+ /***/ (function(module, exports) {
2548
+
2549
+ module.exports = require("element-ui/lib/utils/merge");
2550
+
2551
+ /***/ })
2552
+
2553
+ /******/ });