mazey-element-ui 2.0.1 → 2.15.16

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 (796) hide show
  1. package/LICENSE +2 -2
  2. package/README.md +71 -68
  3. package/lib/alert.js +271 -262
  4. package/lib/aside.js +134 -200
  5. package/lib/autocomplete.js +500 -443
  6. package/lib/avatar.js +284 -0
  7. package/lib/backtop.js +336 -0
  8. package/lib/badge.js +188 -221
  9. package/lib/breadcrumb-item.js +176 -226
  10. package/lib/breadcrumb.js +150 -213
  11. package/lib/button-group.js +121 -190
  12. package/lib/button.js +213 -268
  13. package/lib/calendar.js +801 -0
  14. package/lib/card.js +156 -203
  15. package/lib/carousel-item.js +242 -264
  16. package/lib/carousel.js +386 -284
  17. package/lib/cascader-panel.js +1323 -0
  18. package/lib/cascader.js +1000 -1116
  19. package/lib/checkbox-button.js +388 -327
  20. package/lib/checkbox-group.js +168 -233
  21. package/lib/checkbox.js +422 -350
  22. package/lib/col.js +58 -112
  23. package/lib/collapse-item.js +335 -327
  24. package/lib/collapse.js +177 -246
  25. package/lib/color-picker.js +1128 -1231
  26. package/lib/container.js +144 -211
  27. package/lib/date-picker.js +4316 -2745
  28. package/lib/descriptions-item.js +88 -0
  29. package/lib/descriptions.js +342 -0
  30. package/lib/dialog.js +359 -337
  31. package/lib/directives/mousewheel.js +6 -12
  32. package/lib/directives/repeat-click.js +10 -10
  33. package/lib/divider.js +251 -0
  34. package/lib/drawer.js +523 -0
  35. package/lib/dropdown-item.js +175 -228
  36. package/lib/dropdown-menu.js +203 -253
  37. package/lib/dropdown.js +286 -384
  38. package/lib/element-ui.common.js +34136 -25458
  39. package/lib/empty.js +657 -0
  40. package/lib/footer.js +134 -200
  41. package/lib/form-item.js +401 -304
  42. package/lib/form.js +278 -297
  43. package/lib/header.js +134 -200
  44. package/lib/icon.js +123 -193
  45. package/lib/image.js +1005 -0
  46. package/lib/index.js +1 -1
  47. package/lib/infinite-scroll.js +219 -0
  48. package/lib/input-number.js +442 -386
  49. package/lib/input.js +682 -512
  50. package/lib/link.js +267 -0
  51. package/lib/loading.js +278 -377
  52. package/lib/locale/format.js +14 -25
  53. package/lib/locale/index.js +19 -33
  54. package/lib/locale/lang/af-ZA.js +29 -8
  55. package/lib/locale/lang/ar.js +29 -14
  56. package/lib/locale/lang/az.js +127 -0
  57. package/lib/locale/lang/bg.js +35 -11
  58. package/lib/locale/lang/bn.js +126 -0
  59. package/lib/locale/lang/ca.js +24 -9
  60. package/lib/locale/lang/cs-CZ.js +19 -3
  61. package/lib/locale/lang/da.js +19 -3
  62. package/lib/locale/lang/de.js +19 -3
  63. package/lib/locale/lang/ee.js +24 -8
  64. package/lib/locale/lang/el.js +20 -4
  65. package/lib/locale/lang/en.js +25 -7
  66. package/lib/locale/lang/eo.js +128 -0
  67. package/lib/locale/lang/es.js +22 -7
  68. package/lib/locale/lang/eu.js +131 -0
  69. package/lib/locale/lang/fa.js +24 -8
  70. package/lib/locale/lang/fi.js +40 -24
  71. package/lib/locale/lang/fr.js +21 -4
  72. package/lib/locale/lang/he.js +29 -8
  73. package/lib/locale/lang/hr.js +131 -0
  74. package/lib/locale/lang/hu.js +20 -4
  75. package/lib/locale/lang/hy-AM.js +128 -0
  76. package/lib/locale/lang/id.js +23 -8
  77. package/lib/locale/lang/is.js +127 -0
  78. package/lib/locale/lang/it.js +21 -6
  79. package/lib/locale/lang/ja.js +19 -3
  80. package/lib/locale/lang/kg.js +128 -0
  81. package/lib/locale/lang/km.js +21 -6
  82. package/lib/locale/lang/ko.js +19 -3
  83. package/lib/locale/lang/ku.js +19 -3
  84. package/lib/locale/lang/kz.js +19 -3
  85. package/lib/locale/lang/lt.js +19 -3
  86. package/lib/locale/lang/lv.js +26 -10
  87. package/lib/locale/lang/mn.js +19 -3
  88. package/lib/locale/lang/ms.js +126 -0
  89. package/lib/locale/lang/nb-NO.js +28 -13
  90. package/lib/locale/lang/nl.js +19 -3
  91. package/lib/locale/lang/pl.js +19 -3
  92. package/lib/locale/lang/pt-br.js +18 -3
  93. package/lib/locale/lang/pt.js +35 -11
  94. package/lib/locale/lang/ro.js +19 -3
  95. package/lib/locale/lang/ru-RU.js +20 -5
  96. package/lib/locale/lang/si.js +130 -0
  97. package/lib/locale/lang/sk.js +23 -8
  98. package/lib/locale/lang/sl.js +26 -10
  99. package/lib/locale/lang/sr-Latn.js +127 -0
  100. package/lib/locale/lang/sr.js +131 -0
  101. package/lib/locale/lang/sv-SE.js +34 -15
  102. package/lib/locale/lang/sw.js +130 -0
  103. package/lib/locale/lang/ta.js +31 -9
  104. package/lib/locale/lang/th.js +30 -12
  105. package/lib/locale/lang/tk.js +27 -7
  106. package/lib/locale/lang/tr-TR.js +20 -4
  107. package/lib/locale/lang/ua.js +20 -5
  108. package/lib/locale/lang/ug-CN.js +22 -7
  109. package/lib/locale/lang/uz-UZ.js +127 -0
  110. package/lib/locale/lang/vi.js +23 -8
  111. package/lib/locale/lang/zh-CN.js +18 -3
  112. package/lib/locale/lang/zh-TW.js +25 -6
  113. package/lib/main.js +123 -192
  114. package/lib/menu-item-group.js +164 -225
  115. package/lib/menu-item.js +300 -333
  116. package/lib/menu.js +401 -576
  117. package/lib/message-box.js +730 -614
  118. package/lib/message.js +289 -327
  119. package/lib/mixins/emitter.js +2 -4
  120. package/lib/mixins/focus.js +3 -4
  121. package/lib/mixins/locale.js +5 -7
  122. package/lib/mixins/migrating.js +19 -21
  123. package/lib/notification.js +366 -394
  124. package/lib/option-group.js +198 -250
  125. package/lib/option.js +247 -291
  126. package/lib/page-header.js +248 -0
  127. package/lib/pagination.js +485 -635
  128. package/lib/popconfirm.js +381 -0
  129. package/lib/popover.js +361 -396
  130. package/lib/progress.js +387 -261
  131. package/lib/radio-button.js +319 -309
  132. package/lib/radio-group.js +224 -282
  133. package/lib/radio.js +347 -328
  134. package/lib/rate.js +286 -305
  135. package/lib/result.js +513 -0
  136. package/lib/row.js +59 -110
  137. package/lib/scrollbar.js +234 -344
  138. package/lib/select.js +1041 -806
  139. package/lib/skeleton-item.js +278 -0
  140. package/lib/skeleton.js +308 -0
  141. package/lib/slider.js +608 -467
  142. package/lib/spinner.js +160 -207
  143. package/lib/statistic.js +462 -0
  144. package/lib/step.js +270 -262
  145. package/lib/steps.js +198 -261
  146. package/lib/submenu.js +318 -420
  147. package/lib/switch.js +311 -281
  148. package/lib/tab-pane.js +185 -245
  149. package/lib/table-column.js +667 -414
  150. package/lib/table.js +3388 -2770
  151. package/lib/tabs.js +577 -648
  152. package/lib/tag.js +160 -227
  153. package/lib/theme-chalk/alert.css +1 -1
  154. package/lib/theme-chalk/aside.css +1 -1
  155. package/lib/theme-chalk/autocomplete.css +1 -1
  156. package/lib/theme-chalk/avatar.css +1 -0
  157. package/lib/theme-chalk/backtop.css +1 -0
  158. package/lib/theme-chalk/badge.css +1 -1
  159. package/lib/theme-chalk/base.css +1 -1
  160. package/lib/theme-chalk/breadcrumb.css +1 -1
  161. package/lib/theme-chalk/button.css +1 -1
  162. package/lib/theme-chalk/calendar.css +1 -0
  163. package/lib/theme-chalk/card.css +1 -1
  164. package/lib/theme-chalk/carousel-item.css +1 -1
  165. package/lib/theme-chalk/carousel.css +1 -1
  166. package/lib/theme-chalk/cascader-panel.css +1 -0
  167. package/lib/theme-chalk/cascader.css +1 -1
  168. package/lib/theme-chalk/checkbox.css +1 -1
  169. package/lib/theme-chalk/col.css +1 -1
  170. package/lib/theme-chalk/collapse.css +1 -1
  171. package/lib/theme-chalk/color-picker.css +1 -1
  172. package/lib/theme-chalk/container.css +1 -1
  173. package/lib/theme-chalk/date-picker.css +1 -1
  174. package/lib/theme-chalk/descriptions-item.css +1 -0
  175. package/lib/theme-chalk/descriptions.css +1 -0
  176. package/lib/theme-chalk/dialog.css +1 -1
  177. package/lib/theme-chalk/display.css +1 -1
  178. package/lib/theme-chalk/divider.css +1 -0
  179. package/lib/theme-chalk/drawer.css +1 -0
  180. package/lib/theme-chalk/dropdown.css +1 -1
  181. package/lib/theme-chalk/empty.css +1 -0
  182. package/lib/theme-chalk/fonts/element-icons.ttf +0 -0
  183. package/lib/theme-chalk/fonts/element-icons.woff +0 -0
  184. package/lib/theme-chalk/footer.css +1 -1
  185. package/lib/theme-chalk/form.css +1 -1
  186. package/lib/theme-chalk/header.css +1 -1
  187. package/lib/theme-chalk/icon.css +1 -1
  188. package/lib/theme-chalk/image.css +1 -0
  189. package/lib/theme-chalk/index.css +1 -1
  190. package/lib/theme-chalk/input-number.css +1 -1
  191. package/lib/theme-chalk/input.css +1 -1
  192. package/lib/theme-chalk/link.css +1 -0
  193. package/lib/theme-chalk/loading.css +1 -1
  194. package/lib/theme-chalk/main.css +1 -1
  195. package/lib/theme-chalk/menu.css +1 -1
  196. package/lib/theme-chalk/message-box.css +1 -1
  197. package/lib/theme-chalk/message.css +1 -1
  198. package/lib/theme-chalk/notification.css +1 -1
  199. package/lib/theme-chalk/option-group.css +1 -1
  200. package/lib/theme-chalk/option.css +1 -1
  201. package/lib/theme-chalk/page-header.css +1 -0
  202. package/lib/theme-chalk/pagination.css +1 -1
  203. package/lib/theme-chalk/popconfirm.css +1 -0
  204. package/lib/theme-chalk/popover.css +1 -1
  205. package/lib/theme-chalk/popper.css +1 -1
  206. package/lib/theme-chalk/progress.css +1 -1
  207. package/lib/theme-chalk/radio-button.css +1 -1
  208. package/lib/theme-chalk/radio.css +1 -1
  209. package/lib/theme-chalk/rate.css +1 -1
  210. package/lib/theme-chalk/reset.css +1 -1
  211. package/lib/theme-chalk/result.css +1 -0
  212. package/lib/theme-chalk/row.css +1 -1
  213. package/lib/theme-chalk/scrollbar.css +1 -1
  214. package/lib/theme-chalk/select-dropdown.css +1 -1
  215. package/lib/theme-chalk/select.css +1 -1
  216. package/lib/theme-chalk/skeleton-item.css +1 -0
  217. package/lib/theme-chalk/skeleton.css +1 -0
  218. package/lib/theme-chalk/slider.css +1 -1
  219. package/lib/theme-chalk/spinner.css +1 -1
  220. package/lib/theme-chalk/statistic.css +1 -0
  221. package/lib/theme-chalk/step.css +1 -1
  222. package/lib/theme-chalk/steps.css +1 -1
  223. package/lib/theme-chalk/switch.css +1 -1
  224. package/lib/theme-chalk/table-column.css +1 -1
  225. package/lib/theme-chalk/table.css +1 -1
  226. package/lib/theme-chalk/tabs.css +1 -1
  227. package/lib/theme-chalk/tag.css +1 -1
  228. package/lib/theme-chalk/time-picker.css +1 -1
  229. package/lib/theme-chalk/time-select.css +1 -1
  230. package/lib/theme-chalk/timeline-item.css +1 -0
  231. package/lib/theme-chalk/timeline.css +1 -0
  232. package/lib/theme-chalk/tooltip.css +1 -1
  233. package/lib/theme-chalk/transfer.css +1 -1
  234. package/lib/theme-chalk/tree.css +1 -1
  235. package/lib/theme-chalk/upload.css +1 -1
  236. package/lib/time-picker.js +1548 -1348
  237. package/lib/time-select.js +633 -853
  238. package/lib/timeline-item.js +301 -0
  239. package/lib/timeline.js +207 -0
  240. package/lib/tooltip.js +166 -240
  241. package/lib/transfer.js +731 -639
  242. package/lib/transitions/collapse-transition.js +13 -31
  243. package/lib/tree.js +1769 -1883
  244. package/lib/umd/locale/af-ZA.js +35 -14
  245. package/lib/umd/locale/ar.js +35 -20
  246. package/lib/umd/locale/az.js +143 -0
  247. package/lib/umd/locale/bg.js +41 -17
  248. package/lib/umd/locale/bn.js +142 -0
  249. package/lib/umd/locale/ca.js +30 -15
  250. package/lib/umd/locale/cs-CZ.js +25 -9
  251. package/lib/umd/locale/da.js +25 -9
  252. package/lib/umd/locale/de.js +25 -9
  253. package/lib/umd/locale/ee.js +30 -14
  254. package/lib/umd/locale/el.js +26 -10
  255. package/lib/umd/locale/en.js +31 -13
  256. package/lib/umd/locale/eo.js +144 -0
  257. package/lib/umd/locale/es.js +28 -13
  258. package/lib/umd/locale/eu.js +147 -0
  259. package/lib/umd/locale/fa.js +30 -14
  260. package/lib/umd/locale/fi.js +46 -30
  261. package/lib/umd/locale/fr.js +27 -10
  262. package/lib/umd/locale/he.js +35 -14
  263. package/lib/umd/locale/hr.js +147 -0
  264. package/lib/umd/locale/hu.js +26 -10
  265. package/lib/umd/locale/hy-AM.js +144 -0
  266. package/lib/umd/locale/id.js +29 -14
  267. package/lib/umd/locale/is.js +143 -0
  268. package/lib/umd/locale/it.js +27 -12
  269. package/lib/umd/locale/ja.js +25 -9
  270. package/lib/umd/locale/kg.js +144 -0
  271. package/lib/umd/locale/km.js +27 -12
  272. package/lib/umd/locale/ko.js +25 -9
  273. package/lib/umd/locale/ku.js +25 -9
  274. package/lib/umd/locale/kz.js +25 -9
  275. package/lib/umd/locale/lt.js +25 -9
  276. package/lib/umd/locale/lv.js +32 -16
  277. package/lib/umd/locale/mn.js +25 -9
  278. package/lib/umd/locale/ms.js +142 -0
  279. package/lib/umd/locale/nb-NO.js +34 -19
  280. package/lib/umd/locale/nl.js +25 -9
  281. package/lib/umd/locale/pl.js +25 -9
  282. package/lib/umd/locale/pt-br.js +24 -9
  283. package/lib/umd/locale/pt.js +41 -17
  284. package/lib/umd/locale/ro.js +25 -9
  285. package/lib/umd/locale/ru-RU.js +26 -11
  286. package/lib/umd/locale/si.js +146 -0
  287. package/lib/umd/locale/sk.js +29 -14
  288. package/lib/umd/locale/sl.js +32 -16
  289. package/lib/umd/locale/sr-Latn.js +143 -0
  290. package/lib/umd/locale/sr.js +147 -0
  291. package/lib/umd/locale/sv-SE.js +40 -21
  292. package/lib/umd/locale/sw.js +146 -0
  293. package/lib/umd/locale/ta.js +37 -15
  294. package/lib/umd/locale/th.js +36 -18
  295. package/lib/umd/locale/tk.js +33 -13
  296. package/lib/umd/locale/tr-TR.js +26 -10
  297. package/lib/umd/locale/ua.js +26 -11
  298. package/lib/umd/locale/ug-CN.js +28 -13
  299. package/lib/umd/locale/uz-UZ.js +143 -0
  300. package/lib/umd/locale/vi.js +29 -14
  301. package/lib/umd/locale/zh-CN.js +24 -9
  302. package/lib/umd/locale/zh-TW.js +31 -12
  303. package/lib/upload.js +1093 -1338
  304. package/lib/utils/after-leave.js +19 -16
  305. package/lib/utils/aria-dialog.js +11 -29
  306. package/lib/utils/aria-utils.js +7 -15
  307. package/lib/utils/clickoutside.js +16 -24
  308. package/lib/utils/date-util.js +267 -0
  309. package/lib/utils/date.js +56 -52
  310. package/lib/utils/dom.js +57 -27
  311. package/lib/utils/lodash.js +9421 -0
  312. package/lib/utils/menu/aria-menubar.js +6 -11
  313. package/lib/utils/menu/aria-menuitem.js +11 -22
  314. package/lib/utils/menu/aria-submenu.js +7 -16
  315. package/lib/utils/merge.js +9 -16
  316. package/lib/utils/popper.js +1141 -1170
  317. package/lib/utils/popup/index.js +24 -76
  318. package/lib/utils/popup/popup-manager.js +17 -49
  319. package/lib/utils/resize-event.js +11 -24
  320. package/lib/utils/scroll-into-view.js +4 -12
  321. package/lib/utils/scrollbar-width.js +8 -19
  322. package/lib/utils/types.js +38 -0
  323. package/lib/utils/util.js +165 -18
  324. package/lib/utils/vdom.js +5 -16
  325. package/lib/utils/vue-popper.js +10 -31
  326. package/package.json +131 -139
  327. package/packages/alert/src/main.vue +15 -8
  328. package/packages/autocomplete/src/autocomplete-suggestions.vue +4 -4
  329. package/packages/autocomplete/src/autocomplete.vue +45 -14
  330. package/packages/avatar/index.js +8 -0
  331. package/packages/avatar/src/main.vue +107 -0
  332. package/packages/backtop/index.js +8 -0
  333. package/packages/backtop/src/main.vue +110 -0
  334. package/packages/badge/src/main.vue +15 -3
  335. package/packages/button/src/button.vue +2 -1
  336. package/packages/calendar/index.js +8 -0
  337. package/packages/calendar/src/date-table.vue +200 -0
  338. package/packages/calendar/src/main.vue +280 -0
  339. package/packages/carousel/src/item.vue +36 -12
  340. package/packages/carousel/src/main.vue +83 -22
  341. package/packages/cascader/index.js +1 -1
  342. package/packages/cascader/src/cascader.vue +663 -0
  343. package/packages/cascader-panel/index.js +8 -0
  344. package/packages/cascader-panel/src/cascader-menu.vue +138 -0
  345. package/packages/cascader-panel/src/cascader-node.vue +246 -0
  346. package/packages/cascader-panel/src/cascader-panel.vue +391 -0
  347. package/packages/cascader-panel/src/node.js +166 -0
  348. package/packages/cascader-panel/src/store.js +58 -0
  349. package/packages/checkbox/src/checkbox-button.vue +11 -3
  350. package/packages/checkbox/src/checkbox-group.vue +1 -1
  351. package/packages/checkbox/src/checkbox.vue +15 -8
  352. package/packages/collapse/src/collapse-item.vue +12 -11
  353. package/packages/color-picker/src/color.js +1 -0
  354. package/packages/color-picker/src/components/picker-dropdown.vue +10 -6
  355. package/packages/color-picker/src/components/sv-panel.vue +1 -3
  356. package/packages/color-picker/src/main.vue +13 -4
  357. package/packages/date-picker/src/basic/date-table.vue +104 -168
  358. package/packages/date-picker/src/basic/month-table.vue +223 -58
  359. package/packages/date-picker/src/basic/time-spinner.vue +31 -15
  360. package/packages/date-picker/src/basic/year-table.vue +16 -5
  361. package/packages/date-picker/src/panel/date-range.vue +105 -48
  362. package/packages/date-picker/src/panel/date.vue +82 -39
  363. package/packages/date-picker/src/panel/month-range.vue +289 -0
  364. package/packages/date-picker/src/panel/time-range.vue +2 -2
  365. package/packages/date-picker/src/panel/time-select.vue +3 -2
  366. package/packages/date-picker/src/panel/time.vue +2 -2
  367. package/packages/date-picker/src/picker/date-picker.js +3 -0
  368. package/packages/date-picker/src/picker.vue +87 -43
  369. package/packages/descriptions/index.js +8 -0
  370. package/packages/descriptions/src/descriptions-item.js +30 -0
  371. package/packages/descriptions/src/descriptions-row.js +116 -0
  372. package/packages/descriptions/src/index.js +180 -0
  373. package/packages/descriptions-item/index.js +8 -0
  374. package/packages/dialog/src/component.vue +35 -12
  375. package/packages/divider/index.js +8 -0
  376. package/packages/divider/src/main.vue +37 -0
  377. package/packages/drawer/index.js +8 -0
  378. package/packages/drawer/src/main.vue +205 -0
  379. package/packages/dropdown/src/dropdown-item.vue +4 -2
  380. package/packages/dropdown/src/dropdown-menu.vue +6 -3
  381. package/packages/dropdown/src/dropdown.vue +55 -35
  382. package/packages/empty/index.js +7 -0
  383. package/packages/empty/src/img-empty.vue +132 -0
  384. package/packages/empty/src/index.vue +50 -0
  385. package/packages/form/src/form-item.vue +76 -44
  386. package/packages/form/src/form.vue +59 -11
  387. package/packages/form/src/label-wrap.vue +78 -0
  388. package/packages/image/index.js +8 -0
  389. package/packages/image/src/image-viewer.vue +330 -0
  390. package/packages/image/src/main.vue +249 -0
  391. package/packages/infinite-scroll/index.js +8 -0
  392. package/packages/infinite-scroll/src/main.js +150 -0
  393. package/packages/input/src/input.vue +186 -75
  394. package/packages/input-number/src/input-number.vue +52 -25
  395. package/packages/link/index.js +8 -0
  396. package/packages/link/src/main.vue +53 -0
  397. package/packages/loading/src/directive.js +9 -4
  398. package/packages/loading/src/index.js +5 -5
  399. package/packages/menu/src/menu-item.vue +4 -4
  400. package/packages/menu/src/menu.vue +24 -10
  401. package/packages/menu/src/submenu.vue +26 -12
  402. package/packages/message/src/main.js +35 -16
  403. package/packages/message/src/main.vue +12 -15
  404. package/packages/message-box/src/main.js +6 -4
  405. package/packages/message-box/src/main.vue +32 -24
  406. package/packages/notification/src/main.js +9 -8
  407. package/packages/page-header/index.js +8 -0
  408. package/packages/page-header/src/main.vue +30 -0
  409. package/packages/pagination/src/pagination.js +36 -77
  410. package/packages/popconfirm/index.js +8 -0
  411. package/packages/popconfirm/src/main.vue +104 -0
  412. package/packages/popover/src/directive.js +5 -1
  413. package/packages/popover/src/main.vue +49 -31
  414. package/packages/progress/src/progress.vue +118 -21
  415. package/packages/radio/index.js +1 -1
  416. package/packages/radio/src/radio-button.vue +7 -3
  417. package/packages/radio/src/radio-group.vue +9 -3
  418. package/packages/radio/src/radio.vue +6 -3
  419. package/packages/rate/src/main.vue +36 -37
  420. package/packages/result/index.js +8 -0
  421. package/packages/result/src/icon-error.vue +13 -0
  422. package/packages/result/src/icon-info.vue +13 -0
  423. package/packages/result/src/icon-success.vue +13 -0
  424. package/packages/result/src/icon-warning.vue +13 -0
  425. package/packages/result/src/index.vue +65 -0
  426. package/packages/row/src/row.js +2 -5
  427. package/packages/scrollbar/src/bar.js +5 -1
  428. package/packages/scrollbar/src/main.js +3 -3
  429. package/packages/select/src/option-group.vue +1 -1
  430. package/packages/select/src/option.vue +22 -9
  431. package/packages/select/src/select-dropdown.vue +1 -1
  432. package/packages/select/src/select.vue +126 -105
  433. package/packages/skeleton/index.js +8 -0
  434. package/packages/skeleton/src/img-placeholder.vue +16 -0
  435. package/packages/skeleton/src/index.vue +76 -0
  436. package/packages/skeleton/src/item.vue +22 -0
  437. package/packages/skeleton-item/index.js +8 -0
  438. package/packages/slider/src/button.vue +6 -9
  439. package/packages/slider/src/main.vue +60 -32
  440. package/packages/slider/src/marker.js +18 -0
  441. package/packages/spinner/src/spinner.vue +1 -1
  442. package/packages/statistic/index.js +8 -0
  443. package/packages/statistic/src/main.vue +204 -0
  444. package/packages/steps/src/step.vue +5 -1
  445. package/packages/steps/src/steps.vue +1 -1
  446. package/packages/switch/src/component.vue +18 -7
  447. package/packages/table/src/config.js +124 -0
  448. package/packages/table/src/filter-panel.vue +9 -18
  449. package/packages/table/src/layout-observer.js +2 -2
  450. package/packages/table/src/store/current.js +76 -0
  451. package/packages/table/src/store/expand.js +65 -0
  452. package/packages/table/src/store/helper.js +41 -0
  453. package/packages/table/src/store/index.js +147 -0
  454. package/packages/table/src/store/tree.js +209 -0
  455. package/packages/table/src/store/watcher.js +381 -0
  456. package/packages/table/src/table-body.js +221 -166
  457. package/packages/table/src/table-column.js +203 -308
  458. package/packages/table/src/table-footer.js +75 -65
  459. package/packages/table/src/table-header.js +68 -77
  460. package/packages/table/src/table-layout.js +43 -25
  461. package/packages/table/src/table-row.js +101 -0
  462. package/packages/table/src/table.vue +155 -99
  463. package/packages/table/src/util.js +164 -1
  464. package/packages/tabs/src/tab-bar.vue +7 -7
  465. package/packages/tabs/src/tab-nav.vue +35 -14
  466. package/packages/tabs/src/tab-pane.vue +10 -18
  467. package/packages/tabs/src/tabs.vue +45 -22
  468. package/packages/tag/src/tag.vue +35 -18
  469. package/packages/theme-chalk/gulpfile.js +33 -0
  470. package/packages/theme-chalk/package.json +36 -0
  471. package/packages/theme-chalk/src/alert.scss +57 -15
  472. package/packages/theme-chalk/src/autocomplete.scss +3 -4
  473. package/packages/theme-chalk/src/avatar.scss +51 -0
  474. package/packages/theme-chalk/src/backtop.scss +22 -0
  475. package/packages/theme-chalk/src/badge.scss +17 -1
  476. package/packages/theme-chalk/src/button.scss +40 -20
  477. package/packages/theme-chalk/src/calendar.scss +79 -0
  478. package/packages/theme-chalk/src/carousel.scss +33 -6
  479. package/packages/theme-chalk/src/cascader-panel.scss +120 -0
  480. package/packages/theme-chalk/src/cascader.scss +118 -112
  481. package/packages/theme-chalk/src/checkbox.scss +18 -17
  482. package/packages/theme-chalk/src/collapse.scss +16 -9
  483. package/packages/theme-chalk/src/common/popup.scss +3 -2
  484. package/packages/theme-chalk/src/common/var.scss +500 -184
  485. package/packages/theme-chalk/src/date-picker/date-picker.scss +1 -1
  486. package/packages/theme-chalk/src/date-picker/date-range-picker.scss +4 -7
  487. package/packages/theme-chalk/src/date-picker/date-table.scss +11 -11
  488. package/packages/theme-chalk/src/date-picker/month-table.scss +48 -6
  489. package/packages/theme-chalk/src/date-picker/picker-panel.scss +3 -3
  490. package/packages/theme-chalk/src/date-picker/picker.scss +7 -0
  491. package/packages/theme-chalk/src/date-picker/time-picker.scss +1 -0
  492. package/packages/theme-chalk/src/date-picker/year-table.scss +9 -2
  493. package/packages/theme-chalk/src/descriptions-item.scss +42 -0
  494. package/packages/theme-chalk/src/descriptions.scss +111 -0
  495. package/packages/theme-chalk/src/dialog.scss +5 -4
  496. package/packages/theme-chalk/src/divider.scss +47 -0
  497. package/packages/theme-chalk/src/drawer.scss +219 -0
  498. package/packages/theme-chalk/src/dropdown.scss +14 -1
  499. package/packages/theme-chalk/src/empty.scss +45 -0
  500. package/packages/theme-chalk/src/fonts/element-icons.ttf +0 -0
  501. package/packages/theme-chalk/src/fonts/element-icons.woff +0 -0
  502. package/packages/theme-chalk/src/form.scss +18 -23
  503. package/packages/theme-chalk/src/icon.scss +1052 -71
  504. package/packages/theme-chalk/src/image.scss +179 -0
  505. package/packages/theme-chalk/src/index.scss +20 -0
  506. package/packages/theme-chalk/src/input.scss +56 -5
  507. package/packages/theme-chalk/src/link.scss +81 -0
  508. package/packages/theme-chalk/src/main.scss +2 -0
  509. package/packages/theme-chalk/src/menu.scss +11 -8
  510. package/packages/theme-chalk/src/message-box.scss +14 -11
  511. package/packages/theme-chalk/src/message.scss +10 -10
  512. package/packages/theme-chalk/src/notification.scss +8 -7
  513. package/packages/theme-chalk/src/option.scss +1 -5
  514. package/packages/theme-chalk/src/page-header.scss +41 -0
  515. package/packages/theme-chalk/src/pagination.scss +9 -10
  516. package/packages/theme-chalk/src/popconfirm.scss +16 -0
  517. package/packages/theme-chalk/src/popover.scss +3 -2
  518. package/packages/theme-chalk/src/popper.scss +4 -4
  519. package/packages/theme-chalk/src/progress.scss +13 -1
  520. package/packages/theme-chalk/src/radio-button.scss +8 -8
  521. package/packages/theme-chalk/src/radio.scss +7 -6
  522. package/packages/theme-chalk/src/result.scss +61 -0
  523. package/packages/theme-chalk/src/row.scss +4 -0
  524. package/packages/theme-chalk/src/scrollbar.scss +1 -0
  525. package/packages/theme-chalk/src/select-dropdown.scss +5 -2
  526. package/packages/theme-chalk/src/select.scss +14 -6
  527. package/packages/theme-chalk/src/skeleton-item.scss +84 -0
  528. package/packages/theme-chalk/src/skeleton.scss +40 -0
  529. package/packages/theme-chalk/src/slider.scss +22 -0
  530. package/packages/theme-chalk/src/statistic.scss +38 -0
  531. package/packages/theme-chalk/src/switch.scss +0 -3
  532. package/packages/theme-chalk/src/table.scss +67 -60
  533. package/packages/theme-chalk/src/tabs.scss +58 -32
  534. package/packages/theme-chalk/src/tag.scss +85 -68
  535. package/packages/theme-chalk/src/timeline-item.scss +86 -0
  536. package/packages/theme-chalk/src/timeline.scss +14 -0
  537. package/packages/theme-chalk/src/tooltip.scss +1 -0
  538. package/packages/theme-chalk/src/transfer.scss +2 -2
  539. package/packages/theme-chalk/src/tree.scss +8 -5
  540. package/packages/theme-chalk/src/upload.scss +1 -0
  541. package/packages/timeline/index.js +8 -0
  542. package/packages/timeline/src/item.vue +73 -0
  543. package/packages/timeline/src/main.vue +33 -0
  544. package/packages/timeline-item/index.js +8 -0
  545. package/packages/tooltip/src/main.js +52 -26
  546. package/packages/transfer/src/main.vue +15 -7
  547. package/packages/transfer/src/transfer-panel.vue +4 -4
  548. package/packages/tree/src/model/node.js +27 -21
  549. package/packages/tree/src/model/tree-store.js +22 -16
  550. package/packages/tree/src/tree-node.vue +16 -10
  551. package/packages/tree/src/tree.vue +41 -27
  552. package/packages/upload/src/index.vue +42 -13
  553. package/packages/upload/src/upload-list.vue +46 -41
  554. package/src/directives/repeat-click.js +6 -4
  555. package/src/index.js +66 -8
  556. package/src/locale/format.js +1 -1
  557. package/src/locale/index.js +1 -1
  558. package/src/locale/lang/af-ZA.js +15 -1
  559. package/src/locale/lang/ar.js +26 -12
  560. package/src/locale/lang/az.js +126 -0
  561. package/src/locale/lang/bg.js +15 -1
  562. package/src/locale/lang/bn.js +126 -0
  563. package/src/locale/lang/ca.js +21 -7
  564. package/src/locale/lang/cs-CZ.js +15 -1
  565. package/src/locale/lang/da.js +15 -1
  566. package/src/locale/lang/de.js +15 -1
  567. package/src/locale/lang/ee.js +20 -6
  568. package/src/locale/lang/el.js +16 -2
  569. package/src/locale/lang/en.js +16 -2
  570. package/src/locale/lang/eo.js +123 -0
  571. package/src/locale/lang/es.js +19 -5
  572. package/src/locale/lang/eu.js +123 -0
  573. package/src/locale/lang/fa.js +20 -6
  574. package/src/locale/lang/fi.js +36 -22
  575. package/src/locale/lang/fr.js +15 -1
  576. package/src/locale/lang/he.js +15 -1
  577. package/src/locale/lang/hr.js +123 -0
  578. package/src/locale/lang/hu.js +16 -2
  579. package/src/locale/lang/hy-AM.js +123 -0
  580. package/src/locale/lang/id.js +20 -6
  581. package/src/locale/lang/is.js +124 -0
  582. package/src/locale/lang/it.js +18 -4
  583. package/src/locale/lang/ja.js +15 -1
  584. package/src/locale/lang/kg.js +123 -0
  585. package/src/locale/lang/km.js +18 -4
  586. package/src/locale/lang/ko.js +15 -1
  587. package/src/locale/lang/ku.js +15 -1
  588. package/src/locale/lang/kz.js +15 -1
  589. package/src/locale/lang/lt.js +15 -1
  590. package/src/locale/lang/lv.js +22 -8
  591. package/src/locale/lang/mn.js +15 -1
  592. package/src/locale/lang/ms.js +122 -0
  593. package/src/locale/lang/nb-NO.js +25 -11
  594. package/src/locale/lang/nl.js +15 -1
  595. package/src/locale/lang/pl.js +15 -1
  596. package/src/locale/lang/pt-br.js +15 -1
  597. package/src/locale/lang/pt.js +15 -1
  598. package/src/locale/lang/ro.js +15 -1
  599. package/src/locale/lang/ru-RU.js +17 -3
  600. package/src/locale/lang/si.js +123 -0
  601. package/src/locale/lang/sk.js +20 -6
  602. package/src/locale/lang/sl.js +21 -7
  603. package/src/locale/lang/sr-Latn.js +123 -0
  604. package/src/locale/lang/sr.js +123 -0
  605. package/src/locale/lang/sv-SE.js +23 -9
  606. package/src/locale/lang/sw.js +123 -0
  607. package/src/locale/lang/ta.js +15 -1
  608. package/src/locale/lang/th.js +22 -8
  609. package/src/locale/lang/tk.js +15 -1
  610. package/src/locale/lang/tr-TR.js +16 -2
  611. package/src/locale/lang/ua.js +17 -3
  612. package/src/locale/lang/ug-CN.js +19 -5
  613. package/src/locale/lang/uz-UZ.js +123 -0
  614. package/src/locale/lang/vi.js +20 -6
  615. package/src/locale/lang/zh-CN.js +15 -1
  616. package/src/locale/lang/zh-TW.js +15 -1
  617. package/src/mixins/locale.js +1 -1
  618. package/src/mixins/migrating.js +6 -3
  619. package/src/transitions/collapse-transition.js +1 -1
  620. package/src/utils/aria-utils.js +2 -1
  621. package/src/utils/clickoutside.js +1 -1
  622. package/{packages/date-picker/src/util/index.js → src/utils/date-util.js} +69 -27
  623. package/src/utils/date.js +54 -30
  624. package/src/utils/dom.js +55 -2
  625. package/src/utils/lodash.js +18075 -0
  626. package/src/utils/merge.js +3 -13
  627. package/src/utils/popup/index.js +3 -11
  628. package/src/utils/popup/popup-manager.js +3 -3
  629. package/src/utils/resize-event.js +2 -1
  630. package/src/utils/types.js +38 -0
  631. package/src/utils/util.js +161 -0
  632. package/src/utils/vdom.js +1 -5
  633. package/src/utils/vue-popper.js +2 -1
  634. package/types/alert.d.ts +4 -0
  635. package/types/autocomplete.d.ts +6 -3
  636. package/types/avatar.d.ts +20 -0
  637. package/types/backtop.d.ts +16 -0
  638. package/types/calendar.d.ts +15 -0
  639. package/types/carousel.d.ts +4 -0
  640. package/types/cascader-panel.d.ts +72 -0
  641. package/types/cascader.d.ts +29 -21
  642. package/types/collapse-item.d.ts +3 -0
  643. package/types/descriptions-item.d.ts +37 -0
  644. package/types/descriptions.d.ts +52 -0
  645. package/types/dialog.d.ts +3 -0
  646. package/types/divider.d.ts +12 -0
  647. package/types/drawer.d.ts +63 -0
  648. package/types/dropdown-item.d.ts +3 -0
  649. package/types/dropdown.d.ts +12 -0
  650. package/types/element-ui.d.ts +91 -3
  651. package/types/empty.d.ts +31 -0
  652. package/types/form.d.ts +6 -6
  653. package/types/icon.d.ts +7 -0
  654. package/types/image.d.ts +43 -0
  655. package/types/infinite-scroll.d.ts +6 -0
  656. package/types/input-number.d.ts +4 -1
  657. package/types/input.d.ts +16 -1
  658. package/types/link.d.ts +25 -0
  659. package/types/loading.d.ts +3 -1
  660. package/types/message-box.d.ts +14 -4
  661. package/types/message.d.ts +17 -2
  662. package/types/page-header.d.ts +10 -0
  663. package/types/pagination.d.ts +3 -0
  664. package/types/popconfirm.d.ts +29 -0
  665. package/types/popover.d.ts +7 -1
  666. package/types/progress.d.ts +7 -1
  667. package/types/rate.d.ts +16 -4
  668. package/types/result.d.ts +33 -0
  669. package/types/select.d.ts +9 -0
  670. package/types/skeleton-item.d.ts +7 -0
  671. package/types/skeleton.d.ts +33 -0
  672. package/types/slider.d.ts +6 -0
  673. package/types/spinner.d.ts +16 -0
  674. package/types/statistic.d.ts +37 -0
  675. package/types/submenu.d.ts +1 -1
  676. package/types/switch.d.ts +3 -0
  677. package/types/table-column.d.ts +1 -1
  678. package/types/table.d.ts +58 -3
  679. package/types/tabs.d.ts +4 -1
  680. package/types/tag.d.ts +5 -1
  681. package/types/timeline-item.d.ts +20 -0
  682. package/types/timeline.d.ts +6 -0
  683. package/types/tooltip.d.ts +3 -0
  684. package/types/tree.d.ts +120 -97
  685. package/types/upload.d.ts +7 -4
  686. package/web-types.json +4195 -0
  687. package/CHANGELOG.en-US.md +0 -576
  688. package/CHANGELOG.es.md +0 -581
  689. package/CHANGELOG.zh-CN.md +0 -576
  690. package/lib/utils/sync.js +0 -59
  691. package/packages/carousel/_index.js +0 -10
  692. package/packages/carousel/cooking.conf.js +0 -6
  693. package/packages/carousel/package.json +0 -17
  694. package/packages/cascader/cooking.conf.js +0 -18
  695. package/packages/cascader/package.json +0 -15
  696. package/packages/cascader/src/main.vue +0 -438
  697. package/packages/cascader/src/menu.vue +0 -369
  698. package/packages/color-picker/cooking.conf.js +0 -6
  699. package/packages/color-picker/package.json +0 -15
  700. package/packages/date-picker/README.md +0 -64
  701. package/packages/date-picker/_index.js +0 -12
  702. package/packages/date-picker/cooking.conf.js +0 -6
  703. package/packages/date-picker/package.json +0 -15
  704. package/packages/loading/README.md +0 -66
  705. package/packages/loading/cooking.conf.js +0 -6
  706. package/packages/loading/package.json +0 -15
  707. package/packages/pagination/README.md +0 -59
  708. package/packages/pagination/cooking.conf.js +0 -6
  709. package/packages/pagination/package.json +0 -15
  710. package/packages/table/README.md +0 -106
  711. package/packages/table/_index.js +0 -10
  712. package/packages/table/cooking.conf.js +0 -6
  713. package/packages/table/package.json +0 -17
  714. package/packages/table/src/table-store.js +0 -619
  715. package/packages/theme-chalk/lib/alert.css +0 -1
  716. package/packages/theme-chalk/lib/aside.css +0 -1
  717. package/packages/theme-chalk/lib/autocomplete.css +0 -1
  718. package/packages/theme-chalk/lib/badge.css +0 -1
  719. package/packages/theme-chalk/lib/base.css +0 -1
  720. package/packages/theme-chalk/lib/breadcrumb.css +0 -1
  721. package/packages/theme-chalk/lib/button.css +0 -1
  722. package/packages/theme-chalk/lib/card.css +0 -1
  723. package/packages/theme-chalk/lib/carousel-item.css +0 -1
  724. package/packages/theme-chalk/lib/carousel.css +0 -1
  725. package/packages/theme-chalk/lib/cascader.css +0 -1
  726. package/packages/theme-chalk/lib/checkbox.css +0 -1
  727. package/packages/theme-chalk/lib/col.css +0 -1
  728. package/packages/theme-chalk/lib/collapse-item.css +0 -0
  729. package/packages/theme-chalk/lib/collapse.css +0 -1
  730. package/packages/theme-chalk/lib/color-picker.css +0 -1
  731. package/packages/theme-chalk/lib/container.css +0 -1
  732. package/packages/theme-chalk/lib/date-picker.css +0 -1
  733. package/packages/theme-chalk/lib/dialog.css +0 -1
  734. package/packages/theme-chalk/lib/display.css +0 -1
  735. package/packages/theme-chalk/lib/dropdown-item.css +0 -0
  736. package/packages/theme-chalk/lib/dropdown-menu.css +0 -0
  737. package/packages/theme-chalk/lib/dropdown.css +0 -1
  738. package/packages/theme-chalk/lib/fonts/element-icons.ttf +0 -0
  739. package/packages/theme-chalk/lib/fonts/element-icons.woff +0 -0
  740. package/packages/theme-chalk/lib/footer.css +0 -1
  741. package/packages/theme-chalk/lib/form-item.css +0 -0
  742. package/packages/theme-chalk/lib/form.css +0 -1
  743. package/packages/theme-chalk/lib/header.css +0 -1
  744. package/packages/theme-chalk/lib/icon.css +0 -1
  745. package/packages/theme-chalk/lib/index.css +0 -1
  746. package/packages/theme-chalk/lib/input-number.css +0 -1
  747. package/packages/theme-chalk/lib/input.css +0 -1
  748. package/packages/theme-chalk/lib/loading.css +0 -1
  749. package/packages/theme-chalk/lib/main.css +0 -1
  750. package/packages/theme-chalk/lib/menu-item-group.css +0 -0
  751. package/packages/theme-chalk/lib/menu-item.css +0 -0
  752. package/packages/theme-chalk/lib/menu.css +0 -1
  753. package/packages/theme-chalk/lib/message-box.css +0 -1
  754. package/packages/theme-chalk/lib/message.css +0 -1
  755. package/packages/theme-chalk/lib/notification.css +0 -1
  756. package/packages/theme-chalk/lib/option-group.css +0 -1
  757. package/packages/theme-chalk/lib/option.css +0 -1
  758. package/packages/theme-chalk/lib/pagination.css +0 -1
  759. package/packages/theme-chalk/lib/popover.css +0 -1
  760. package/packages/theme-chalk/lib/popper.css +0 -1
  761. package/packages/theme-chalk/lib/progress.css +0 -1
  762. package/packages/theme-chalk/lib/radio-button.css +0 -1
  763. package/packages/theme-chalk/lib/radio-group.css +0 -1
  764. package/packages/theme-chalk/lib/radio.css +0 -1
  765. package/packages/theme-chalk/lib/rate.css +0 -1
  766. package/packages/theme-chalk/lib/reset.css +0 -1
  767. package/packages/theme-chalk/lib/row.css +0 -1
  768. package/packages/theme-chalk/lib/scrollbar.css +0 -1
  769. package/packages/theme-chalk/lib/select-dropdown.css +0 -1
  770. package/packages/theme-chalk/lib/select.css +0 -1
  771. package/packages/theme-chalk/lib/slider.css +0 -1
  772. package/packages/theme-chalk/lib/spinner.css +0 -1
  773. package/packages/theme-chalk/lib/step.css +0 -1
  774. package/packages/theme-chalk/lib/steps.css +0 -1
  775. package/packages/theme-chalk/lib/submenu.css +0 -0
  776. package/packages/theme-chalk/lib/switch.css +0 -1
  777. package/packages/theme-chalk/lib/tab-pane.css +0 -0
  778. package/packages/theme-chalk/lib/table-column.css +0 -1
  779. package/packages/theme-chalk/lib/table.css +0 -1
  780. package/packages/theme-chalk/lib/tabs.css +0 -1
  781. package/packages/theme-chalk/lib/tag.css +0 -1
  782. package/packages/theme-chalk/lib/time-picker.css +0 -1
  783. package/packages/theme-chalk/lib/time-select.css +0 -1
  784. package/packages/theme-chalk/lib/tooltip.css +0 -1
  785. package/packages/theme-chalk/lib/transfer.css +0 -1
  786. package/packages/theme-chalk/lib/tree.css +0 -1
  787. package/packages/theme-chalk/lib/upload.css +0 -1
  788. package/packages/upload/README.md +0 -67
  789. package/packages/upload/cooking.conf.js +0 -6
  790. package/packages/upload/package.json +0 -16
  791. package/packages/upload/src/iframe-upload.vue +0 -167
  792. package/src/utils/sync.js +0 -54
  793. /package/{packages/theme-chalk/lib/breadcrumb-item.css → lib/theme-chalk/infinite-scroll.css} +0 -0
  794. /package/{packages/theme-chalk/lib/button-group.css → lib/theme-chalk/infiniteScroll.css} +0 -0
  795. /package/packages/theme-chalk/{lib/checkbox-button.css → src/infinite-scroll.scss} +0 -0
  796. /package/packages/theme-chalk/{lib/checkbox-group.css → src/infiniteScroll.scss} +0 -0
@@ -1,530 +1,266 @@
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: {}
1
+ /******/ (() => { // webpackBootstrap
2
+ /******/ "use strict";
3
+ /******/ // The require scope
4
+ /******/ const __webpack_require__ = {};
5
+ /******/
6
+ /************************************************************************/
7
+ /******/ /* webpack/runtime/compat get default export */
8
+ /******/ (() => {
9
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
10
+ /******/ __webpack_require__.n = (module) => {
11
+ /******/ const getter = module && module.__esModule ?
12
+ /******/ () => (module['default']) :
13
+ /******/ () => (module);
14
+ /******/ __webpack_require__.d(getter, { a: getter });
15
+ /******/ return getter;
16
+ /******/ };
17
+ /******/ })();
18
+ /******/
19
+ /******/ /* webpack/runtime/define property getters */
20
+ /******/ (() => {
21
+ /******/ // define getter/value functions for harmony exports
22
+ /******/ __webpack_require__.d = (exports, definition) => {
23
+ /******/ if(Array.isArray(definition)) {
24
+ /******/ var i = 0;
25
+ /******/ while(i < definition.length) {
26
+ /******/ var key = definition[i++];
27
+ /******/ var binding = definition[i++];
28
+ /******/ if(!__webpack_require__.o(exports, key)) {
29
+ /******/ if(binding === 0) {
30
+ /******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
31
+ /******/ } else {
32
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
33
+ /******/ }
34
+ /******/ } else if(binding === 0) { i++; }
35
+ /******/ }
36
+ /******/ } else {
37
+ /******/ for(var key in definition) {
38
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
39
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
40
+ /******/ }
41
+ /******/ }
42
+ /******/ }
18
43
  /******/ };
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 = 246);
65
- /******/ })
44
+ /******/ })();
45
+ /******/
46
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
47
+ /******/ (() => {
48
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
49
+ /******/ })();
50
+ /******/
66
51
  /************************************************************************/
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
- }
52
+ let __webpack_exports__ = {};
53
+
54
+ // EXPORTS
55
+ __webpack_require__.d(__webpack_exports__, {
56
+ "default": () => (/* binding */ packages_time_select)
57
+ });
58
+
59
+ ;// ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/date-picker/src/picker.vue?vue&type=template&id=48cc41d8
60
+ var render = function () {
61
+ var _vm = this
62
+ var _h = _vm.$createElement
63
+ var _c = _vm._self._c || _h
64
+ return !_vm.ranged
65
+ ? _c(
66
+ "el-input",
67
+ _vm._b(
68
+ {
69
+ directives: [
70
+ {
71
+ name: "clickoutside",
72
+ rawName: "v-clickoutside",
73
+ value: _vm.handleClose,
74
+ expression: "handleClose",
75
+ },
76
+ ],
77
+ ref: "reference",
78
+ staticClass: "el-date-editor",
79
+ class: "el-date-editor--" + _vm.type,
80
+ attrs: {
81
+ readonly:
82
+ !_vm.editable ||
83
+ _vm.readonly ||
84
+ _vm.type === "dates" ||
85
+ _vm.type === "week" ||
86
+ _vm.type === "years" ||
87
+ _vm.type === "months",
88
+ disabled: _vm.pickerDisabled,
89
+ size: _vm.pickerSize,
90
+ name: _vm.name,
91
+ placeholder: _vm.placeholder,
92
+ value: _vm.displayValue,
93
+ validateEvent: false,
94
+ },
95
+ on: {
96
+ focus: _vm.handleFocus,
97
+ input: function (value) {
98
+ return (_vm.userInput = value)
99
+ },
100
+ change: _vm.handleChange,
101
+ },
102
+ nativeOn: {
103
+ keydown: function ($event) {
104
+ return _vm.handleKeydown($event)
105
+ },
106
+ mouseenter: function ($event) {
107
+ return _vm.handleMouseEnter($event)
108
+ },
109
+ mouseleave: function ($event) {
110
+ _vm.showClose = false
111
+ },
112
+ },
113
+ },
114
+ "el-input",
115
+ _vm.firstInputId,
116
+ false
117
+ ),
118
+ [
119
+ _c("i", {
120
+ staticClass: "el-input__icon",
121
+ class: _vm.triggerClass,
122
+ attrs: { slot: "prefix" },
123
+ on: { click: _vm.handleFocus },
124
+ slot: "prefix",
125
+ }),
126
+ _vm.haveTrigger
127
+ ? _c("i", {
128
+ staticClass: "el-input__icon",
129
+ class: [_vm.showClose ? "" + _vm.clearIcon : ""],
130
+ attrs: { slot: "suffix" },
131
+ on: { click: _vm.handleClickIcon },
132
+ slot: "suffix",
133
+ })
134
+ : _vm._e(),
135
+ ]
136
+ )
137
+ : _c(
138
+ "div",
139
+ {
140
+ directives: [
141
+ {
142
+ name: "clickoutside",
143
+ rawName: "v-clickoutside",
144
+ value: _vm.handleClose,
145
+ expression: "handleClose",
146
+ },
147
+ ],
148
+ ref: "reference",
149
+ staticClass: "el-date-editor el-range-editor el-input__inner",
150
+ class: [
151
+ "el-date-editor--" + _vm.type,
152
+ _vm.pickerSize ? "el-range-editor--" + _vm.pickerSize : "",
153
+ _vm.pickerDisabled ? "is-disabled" : "",
154
+ _vm.pickerVisible ? "is-active" : "",
155
+ ],
156
+ on: {
157
+ click: _vm.handleRangeClick,
158
+ mouseenter: _vm.handleMouseEnter,
159
+ mouseleave: function ($event) {
160
+ _vm.showClose = false
161
+ },
162
+ keydown: _vm.handleKeydown,
163
+ },
164
+ },
165
+ [
166
+ _c("i", {
167
+ class: ["el-input__icon", "el-range__icon", _vm.triggerClass],
168
+ }),
169
+ _c(
170
+ "input",
171
+ _vm._b(
172
+ {
173
+ staticClass: "el-range-input",
174
+ attrs: {
175
+ autocomplete: "off",
176
+ placeholder: _vm.startPlaceholder,
177
+ disabled: _vm.pickerDisabled,
178
+ readonly: !_vm.editable || _vm.readonly,
179
+ name: _vm.name && _vm.name[0],
180
+ },
181
+ domProps: { value: _vm.displayValue && _vm.displayValue[0] },
182
+ on: {
183
+ input: _vm.handleStartInput,
184
+ change: _vm.handleStartChange,
185
+ focus: _vm.handleFocus,
186
+ },
187
+ },
188
+ "input",
189
+ _vm.firstInputId,
190
+ false
191
+ )
192
+ ),
193
+ _vm._t("range-separator", [
194
+ _c("span", { staticClass: "el-range-separator" }, [
195
+ _vm._v(_vm._s(_vm.rangeSeparator)),
196
+ ]),
197
+ ]),
198
+ _c(
199
+ "input",
200
+ _vm._b(
201
+ {
202
+ staticClass: "el-range-input",
203
+ attrs: {
204
+ autocomplete: "off",
205
+ placeholder: _vm.endPlaceholder,
206
+ disabled: _vm.pickerDisabled,
207
+ readonly: !_vm.editable || _vm.readonly,
208
+ name: _vm.name && _vm.name[1],
209
+ },
210
+ domProps: { value: _vm.displayValue && _vm.displayValue[1] },
211
+ on: {
212
+ input: _vm.handleEndInput,
213
+ change: _vm.handleEndChange,
214
+ focus: _vm.handleFocus,
215
+ },
216
+ },
217
+ "input",
218
+ _vm.secondInputId,
219
+ false
220
+ )
221
+ ),
222
+ _vm.haveTrigger
223
+ ? _c("i", {
224
+ staticClass: "el-input__icon el-range__close-icon",
225
+ class: [_vm.showClose ? "" + _vm.clearIcon : ""],
226
+ on: { click: _vm.handleClickIcon },
227
+ })
228
+ : _vm._e(),
229
+ ],
230
+ 2
231
+ )
174
232
  }
233
+ var staticRenderFns = []
234
+ render._withStripped = true
175
235
 
176
236
 
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.modifyWithDefaultTime = exports.modifyTime = exports.modifyDate = exports.range = 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__(30);
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
- var range = exports.range = function range(n) {
355
- // see https://stackoverflow.com/questions/3746725/create-a-javascript-array-containing-1-n
356
- return Array.apply(null, { length: n }).map(function (_, n) {
357
- return n;
358
- });
359
- };
360
-
361
- var modifyDate = exports.modifyDate = function modifyDate(date, y, m, d) {
362
- return new Date(y, m, d, date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds());
363
- };
364
-
365
- var modifyTime = exports.modifyTime = function modifyTime(date, h, m, s) {
366
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), h, m, s, date.getMilliseconds());
367
- };
368
-
369
- var modifyWithDefaultTime = exports.modifyWithDefaultTime = function modifyWithDefaultTime(date, time) {
370
- if (date == null || !time) {
371
- return date;
372
- }
373
- time = parseDate(time, 'HH:mm:ss');
374
- return modifyTime(date, time.getHours(), time.getMinutes(), time.getSeconds());
375
- };
376
-
377
- var clearTime = exports.clearTime = function clearTime(date) {
378
- return new Date(date.getFullYear(), date.getMonth(), date.getDate());
379
- };
380
-
381
- var clearMilliseconds = exports.clearMilliseconds = function clearMilliseconds(date) {
382
- return new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), 0);
383
- };
384
-
385
- var limitTimeRange = exports.limitTimeRange = function limitTimeRange(date, ranges) {
386
- var format = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'HH:mm:ss';
387
-
388
- // TODO: refactory a more elegant solution
389
- if (ranges.length === 0) return date;
390
- var normalizeDate = function normalizeDate(date) {
391
- return _date2.default.parse(_date2.default.format(date, format), format);
392
- };
393
- var ndate = normalizeDate(date);
394
- var nranges = ranges.map(function (range) {
395
- return range.map(normalizeDate);
396
- });
397
- if (nranges.some(function (nrange) {
398
- return ndate >= nrange[0] && ndate <= nrange[1];
399
- })) return date;
400
-
401
- var minDate = nranges[0][0];
402
- var maxDate = nranges[0][0];
403
-
404
- nranges.forEach(function (nrange) {
405
- minDate = new Date(Math.min(nrange[0], minDate));
406
- maxDate = new Date(Math.max(nrange[1], minDate));
407
- });
408
-
409
- var ret = ndate < minDate ? minDate : maxDate;
410
- // preserve Year/Month/Date
411
- return modifyDate(ret, date.getFullYear(), date.getMonth(), date.getDate());
412
- };
413
-
414
- var timeWithinRange = exports.timeWithinRange = function timeWithinRange(date, selectableRange, format) {
415
- var limitedDate = limitTimeRange(date, selectableRange, format);
416
- return limitedDate.getTime() === date.getTime();
417
- };
418
-
419
- var changeYearMonthAndClampDate = exports.changeYearMonthAndClampDate = function changeYearMonthAndClampDate(date, year, month) {
420
- // clamp date to the number of days in `year`, `month`
421
- // eg: (2010-1-31, 2010, 2) => 2010-2-28
422
- var monthDate = Math.min(date.getDate(), getDayCountOfMonth(year, month));
423
- return modifyDate(date, year, month, monthDate);
424
- };
425
-
426
- var prevMonth = exports.prevMonth = function prevMonth(date) {
427
- var year = date.getFullYear();
428
- var month = date.getMonth();
429
- return month === 0 ? changeYearMonthAndClampDate(date, year - 1, 11) : changeYearMonthAndClampDate(date, year, month - 1);
430
- };
431
-
432
- var nextMonth = exports.nextMonth = function nextMonth(date) {
433
- var year = date.getFullYear();
434
- var month = date.getMonth();
435
- return month === 11 ? changeYearMonthAndClampDate(date, year + 1, 0) : changeYearMonthAndClampDate(date, year, month + 1);
436
- };
437
-
438
- var prevYear = exports.prevYear = function prevYear(date) {
439
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
440
-
441
- var year = date.getFullYear();
442
- var month = date.getMonth();
443
- return changeYearMonthAndClampDate(date, year - amount, month);
444
- };
445
-
446
- var nextYear = exports.nextYear = function nextYear(date) {
447
- var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
448
-
449
- var year = date.getFullYear();
450
- var month = date.getMonth();
451
- return changeYearMonthAndClampDate(date, year + amount, month);
452
- };
453
-
454
- var extractDateFormat = exports.extractDateFormat = function extractDateFormat(format) {
455
- return format.replace(/\W?m{1,2}|\W?ZZ/g, '').replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi, '').trim();
456
- };
457
-
458
- var extractTimeFormat = exports.extractTimeFormat = function extractTimeFormat(format) {
459
- return format.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g, '').trim();
460
- };
461
-
462
- /***/ }),
463
-
464
- /***/ 12:
465
- /***/ (function(module, exports) {
466
-
467
- module.exports = require("element-ui/lib/locale");
468
-
469
- /***/ }),
470
-
471
- /***/ 17:
472
- /***/ (function(module, exports) {
473
-
474
- module.exports = require("element-ui/lib/scrollbar");
475
-
476
- /***/ }),
477
-
478
- /***/ 19:
479
- /***/ (function(module, exports, __webpack_require__) {
480
-
481
- "use strict";
482
-
483
-
484
- exports.__esModule = true;
485
-
486
- var _vue = __webpack_require__(4);
487
-
488
- var _vue2 = _interopRequireDefault(_vue);
489
-
490
- var _clickoutside = __webpack_require__(10);
491
-
492
- var _clickoutside2 = _interopRequireDefault(_clickoutside);
493
-
494
- var _util = __webpack_require__(11);
495
-
496
- var _vuePopper = __webpack_require__(7);
497
-
498
- var _vuePopper2 = _interopRequireDefault(_vuePopper);
499
-
500
- var _emitter = __webpack_require__(1);
501
-
502
- var _emitter2 = _interopRequireDefault(_emitter);
503
-
504
- var _input = __webpack_require__(6);
505
-
506
- var _input2 = _interopRequireDefault(_input);
507
-
508
- var _merge = __webpack_require__(9);
509
-
510
- var _merge2 = _interopRequireDefault(_merge);
511
-
512
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
237
+ ;// ./packages/date-picker/src/picker.vue?vue&type=template&id=48cc41d8
513
238
 
514
- var NewPopper = {
515
- props: {
516
- appendToBody: _vuePopper2.default.props.appendToBody,
517
- offset: _vuePopper2.default.props.offset,
518
- boundariesPadding: _vuePopper2.default.props.boundariesPadding,
519
- arrowOffset: _vuePopper2.default.props.arrowOffset
520
- },
521
- methods: _vuePopper2.default.methods,
522
- data: function data() {
523
- return (0, _merge2.default)({ visibleArrow: true }, _vuePopper2.default.data);
524
- },
525
-
526
- beforeDestroy: _vuePopper2.default.beforeDestroy
527
- }; //
239
+ ;// external "vue"
240
+ const external_vue_namespaceObject = require("vue");
241
+ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_namespaceObject);
242
+ ;// external "mazey-element-ui/lib/utils/clickoutside"
243
+ const clickoutside_namespaceObject = require("mazey-element-ui/lib/utils/clickoutside");
244
+ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_namespaceObject);
245
+ ;// external "mazey-element-ui/lib/utils/date-util"
246
+ const date_util_namespaceObject = require("mazey-element-ui/lib/utils/date-util");
247
+ ;// external "mazey-element-ui/lib/utils/vue-popper"
248
+ const vue_popper_namespaceObject = require("mazey-element-ui/lib/utils/vue-popper");
249
+ var vue_popper_default = /*#__PURE__*/__webpack_require__.n(vue_popper_namespaceObject);
250
+ ;// external "mazey-element-ui/lib/mixins/emitter"
251
+ const emitter_namespaceObject = require("mazey-element-ui/lib/mixins/emitter");
252
+ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_namespaceObject);
253
+ ;// external "mazey-element-ui/lib/input"
254
+ const input_namespaceObject = require("mazey-element-ui/lib/input");
255
+ var input_default = /*#__PURE__*/__webpack_require__.n(input_namespaceObject);
256
+ ;// external "mazey-element-ui/lib/utils/merge"
257
+ const merge_namespaceObject = require("mazey-element-ui/lib/utils/merge");
258
+ var merge_default = /*#__PURE__*/__webpack_require__.n(merge_namespaceObject);
259
+ ;// ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/date-picker/src/picker.vue?vue&type=script&lang=js
260
+ //
261
+ //
262
+ //
263
+ //
528
264
  //
529
265
  //
530
266
  //
@@ -605,32 +341,58 @@ var NewPopper = {
605
341
  //
606
342
  //
607
343
  //
344
+ //
345
+
346
+
347
+
348
+
349
+
350
+
608
351
 
352
+
353
+ var NewPopper = {
354
+ props: {
355
+ appendToBody: (vue_popper_default()).props.appendToBody,
356
+ offset: (vue_popper_default()).props.offset,
357
+ boundariesPadding: (vue_popper_default()).props.boundariesPadding,
358
+ arrowOffset: (vue_popper_default()).props.arrowOffset,
359
+ transformOrigin: (vue_popper_default()).props.transformOrigin
360
+ },
361
+ methods: (vue_popper_default()).methods,
362
+ data: function data() {
363
+ return merge_default()({
364
+ visibleArrow: true
365
+ }, (vue_popper_default()).data);
366
+ },
367
+ beforeDestroy: (vue_popper_default()).beforeDestroy
368
+ };
609
369
  var DEFAULT_FORMATS = {
610
370
  date: 'yyyy-MM-dd',
611
371
  month: 'yyyy-MM',
372
+ months: 'yyyy-MM',
612
373
  datetime: 'yyyy-MM-dd HH:mm:ss',
613
374
  time: 'HH:mm:ss',
614
375
  week: 'yyyywWW',
615
376
  timerange: 'HH:mm:ss',
616
377
  daterange: 'yyyy-MM-dd',
378
+ monthrange: 'yyyy-MM',
617
379
  datetimerange: 'yyyy-MM-dd HH:mm:ss',
618
- year: 'yyyy'
380
+ year: 'yyyy',
381
+ years: 'yyyy'
619
382
  };
620
- var HAVE_TRIGGER_TYPES = ['date', 'datetime', 'time', 'time-select', 'week', 'month', 'year', 'daterange', 'timerange', 'datetimerange', 'dates'];
383
+ var HAVE_TRIGGER_TYPES = ['date', 'datetime', 'time', 'time-select', 'week', 'month', 'year', 'daterange', 'monthrange', 'timerange', 'datetimerange', 'dates', 'months', 'years'];
621
384
  var DATE_FORMATTER = function DATE_FORMATTER(value, format) {
622
385
  if (format === 'timestamp') return value.getTime();
623
- return (0, _util.formatDate)(value, format);
386
+ return (0,date_util_namespaceObject.formatDate)(value, format);
624
387
  };
625
388
  var DATE_PARSER = function DATE_PARSER(text, format) {
626
389
  if (format === 'timestamp') return new Date(Number(text));
627
- return (0, _util.parseDate)(text, format);
390
+ return (0,date_util_namespaceObject.parseDate)(text, format);
628
391
  };
629
392
  var RANGE_FORMATTER = function RANGE_FORMATTER(value, format) {
630
393
  if (Array.isArray(value) && value.length === 2) {
631
394
  var start = value[0];
632
395
  var end = value[1];
633
-
634
396
  if (start && end) {
635
397
  return [DATE_FORMATTER(start, format), DATE_FORMATTER(end, format)];
636
398
  }
@@ -644,7 +406,6 @@ var RANGE_PARSER = function RANGE_PARSER(array, format, separator) {
644
406
  if (array.length === 2) {
645
407
  var range1 = array[0];
646
408
  var range2 = array[1];
647
-
648
409
  return [DATE_PARSER(range1, format), DATE_PARSER(range2, format)];
649
410
  }
650
411
  return [];
@@ -662,29 +423,20 @@ var TYPE_VALUE_RESOLVER_MAP = {
662
423
  },
663
424
  week: {
664
425
  formatter: function formatter(value, format) {
665
- var week = (0, _util.getWeekNumber)(value);
426
+ var week = (0,date_util_namespaceObject.getWeekNumber)(value);
666
427
  var month = value.getMonth();
667
428
  var trueDate = new Date(value);
668
429
  if (week === 1 && month === 11) {
669
430
  trueDate.setHours(0, 0, 0, 0);
670
431
  trueDate.setDate(trueDate.getDate() + 3 - (trueDate.getDay() + 6) % 7);
671
432
  }
672
- var date = (0, _util.formatDate)(trueDate, format);
673
-
433
+ var date = (0,date_util_namespaceObject.formatDate)(trueDate, format);
674
434
  date = /WW/.test(date) ? date.replace(/WW/, week < 10 ? '0' + week : week) : date.replace(/W/, week);
675
435
  return date;
676
436
  },
677
- parser: function parser(text) {
678
- var array = (text || '').split('w');
679
- if (array.length === 2) {
680
- var year = Number(array[0]);
681
- var month = Number(array[1]);
682
-
683
- if (!isNaN(year) && !isNaN(month) && month < 54) {
684
- return text;
685
- }
686
- }
687
- return null;
437
+ parser: function parser(text, format) {
438
+ // parse as if a normal date
439
+ return TYPE_VALUE_RESOLVER_MAP.date.parser(text, format);
688
440
  }
689
441
  },
690
442
  date: {
@@ -699,6 +451,10 @@ var TYPE_VALUE_RESOLVER_MAP = {
699
451
  formatter: RANGE_FORMATTER,
700
452
  parser: RANGE_PARSER
701
453
  },
454
+ monthrange: {
455
+ formatter: RANGE_FORMATTER,
456
+ parser: RANGE_PARSER
457
+ },
702
458
  datetimerange: {
703
459
  formatter: RANGE_FORMATTER,
704
460
  parser: RANGE_PARSER
@@ -726,7 +482,6 @@ var TYPE_VALUE_RESOLVER_MAP = {
726
482
  },
727
483
  parser: function parser(text) {
728
484
  var result = Number(text);
729
-
730
485
  if (!isNaN(text)) {
731
486
  return result;
732
487
  } else {
@@ -745,6 +500,30 @@ var TYPE_VALUE_RESOLVER_MAP = {
745
500
  return date instanceof Date ? date : DATE_PARSER(date, format);
746
501
  });
747
502
  }
503
+ },
504
+ months: {
505
+ formatter: function formatter(value, format) {
506
+ return value.map(function (date) {
507
+ return DATE_FORMATTER(date, format);
508
+ });
509
+ },
510
+ parser: function parser(value, format) {
511
+ return (typeof value === 'string' ? value.split(', ') : value).map(function (date) {
512
+ return date instanceof Date ? date : DATE_PARSER(date, format);
513
+ });
514
+ }
515
+ },
516
+ years: {
517
+ formatter: function formatter(value, format) {
518
+ return value.map(function (date) {
519
+ return DATE_FORMATTER(date, format);
520
+ });
521
+ },
522
+ parser: function parser(value, format) {
523
+ return (typeof value === 'string' ? value.split(', ') : value).map(function (date) {
524
+ return date instanceof Date ? date : DATE_PARSER(date, format);
525
+ });
526
+ }
748
527
  }
749
528
  };
750
529
  var PLACEMENT_MAP = {
@@ -752,16 +531,15 @@ var PLACEMENT_MAP = {
752
531
  center: 'bottom',
753
532
  right: 'bottom-end'
754
533
  };
755
-
756
- var parseAsFormatAndType = function parseAsFormatAndType(value, customFormat, type) {
757
- var rangeSeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '-';
758
-
534
+ var parseAsFormatAndType = function parseAsFormatAndType(value, customFormat, type, rangeSeparator) {
535
+ if (rangeSeparator === void 0) {
536
+ rangeSeparator = '-';
537
+ }
759
538
  if (!value) return null;
760
539
  var parser = (TYPE_VALUE_RESOLVER_MAP[type] || TYPE_VALUE_RESOLVER_MAP['default']).parser;
761
540
  var format = customFormat || DEFAULT_FORMATS[type];
762
541
  return parser(value, format, rangeSeparator);
763
542
  };
764
-
765
543
  var formatAsFormatAndType = function formatAsFormatAndType(value, customFormat, type) {
766
544
  if (!value) return null;
767
545
  var formatter = (TYPE_VALUE_RESOLVER_MAP[type] || TYPE_VALUE_RESOLVER_MAP['default']).formatter;
@@ -788,7 +566,6 @@ var valueEquals = function valueEquals(a, b) {
788
566
  }
789
567
  return false;
790
568
  };
791
-
792
569
  var aIsArray = a instanceof Array;
793
570
  var bIsArray = b instanceof Array;
794
571
  if (aIsArray && bIsArray) {
@@ -804,19 +581,15 @@ var valueEquals = function valueEquals(a, b) {
804
581
  }
805
582
  return false;
806
583
  };
807
-
808
584
  var isString = function isString(val) {
809
585
  return typeof val === 'string' || val instanceof String;
810
586
  };
811
-
812
587
  var validator = function validator(val) {
813
588
  // either: String, Array of String, null / undefined
814
589
  return val === null || val === undefined || isString(val) || Array.isArray(val) && val.length === 2 && val.every(isString);
815
590
  };
816
-
817
- exports.default = {
818
- mixins: [_emitter2.default, NewPopper],
819
-
591
+ /* harmony default export */ const pickervue_type_script_lang_js = ({
592
+ mixins: [(emitter_default()), NewPopper],
820
593
  inject: {
821
594
  elForm: {
822
595
  default: ''
@@ -825,7 +598,6 @@ exports.default = {
825
598
  default: ''
826
599
  }
827
600
  },
828
-
829
601
  props: {
830
602
  size: String,
831
603
  format: String,
@@ -868,24 +640,28 @@ exports.default = {
868
640
  default: '-'
869
641
  },
870
642
  pickerOptions: {},
871
- unlinkPanels: Boolean
643
+ unlinkPanels: Boolean,
644
+ validateEvent: {
645
+ type: Boolean,
646
+ default: true
647
+ }
648
+ },
649
+ components: {
650
+ ElInput: (input_default())
651
+ },
652
+ directives: {
653
+ Clickoutside: (clickoutside_default())
872
654
  },
873
-
874
- components: { ElInput: _input2.default },
875
-
876
- directives: { Clickoutside: _clickoutside2.default },
877
-
878
655
  data: function data() {
879
656
  return {
880
657
  pickerVisible: false,
881
658
  showClose: false,
882
659
  userInput: null,
883
- valueOnOpen: null, // value when picker opens, used to determine whether to emit change
660
+ valueOnOpen: null,
661
+ // value when picker opens, used to determine whether to emit change
884
662
  unwatchPickerOptions: null
885
663
  };
886
664
  },
887
-
888
-
889
665
  watch: {
890
666
  pickerVisible: function pickerVisible(val) {
891
667
  if (this.readonly || this.pickerDisabled) return;
@@ -896,18 +672,18 @@ exports.default = {
896
672
  this.hidePicker();
897
673
  this.emitChange(this.value);
898
674
  this.userInput = null;
899
- this.dispatch('ElFormItem', 'el.form.blur');
675
+ if (this.validateEvent) {
676
+ this.dispatch('ElFormItem', 'el.form.blur');
677
+ }
900
678
  this.$emit('blur', this);
901
679
  this.blur();
902
680
  }
903
681
  },
904
-
905
682
  parsedValue: {
906
683
  immediate: true,
907
684
  handler: function handler(val) {
908
685
  if (this.picker) {
909
686
  this.picker.value = val;
910
- this.picker.selectedDate = Array.isArray(val) ? val : [];
911
687
  }
912
688
  }
913
689
  },
@@ -916,9 +692,13 @@ exports.default = {
916
692
  if (this.picker) {
917
693
  this.picker.defaultValue = val;
918
694
  }
695
+ },
696
+ value: function value(val, oldVal) {
697
+ if (!valueEquals(val, oldVal) && !this.pickerVisible && this.validateEvent) {
698
+ this.dispatch('ElFormItem', 'el.form.change', val);
699
+ }
919
700
  }
920
701
  },
921
-
922
702
  computed: {
923
703
  ranged: function ranged() {
924
704
  return this.type.indexOf('range') > -1;
@@ -960,8 +740,11 @@ exports.default = {
960
740
  return 'year';
961
741
  } else if (this.type === 'dates') {
962
742
  return 'dates';
743
+ } else if (this.type === 'months') {
744
+ return 'months';
745
+ } else if (this.type === 'years') {
746
+ return 'years';
963
747
  }
964
-
965
748
  return 'day';
966
749
  },
967
750
  haveTrigger: function haveTrigger() {
@@ -977,18 +760,28 @@ exports.default = {
977
760
  } else if (this.userInput !== null) {
978
761
  return this.userInput;
979
762
  } else if (formattedValue) {
980
- return this.type === 'dates' ? formattedValue.join(', ') : formattedValue;
763
+ return this.type === 'dates' || this.type === 'years' || this.type === 'months' ? formattedValue.join(', ') : formattedValue;
981
764
  } else {
982
765
  return '';
983
766
  }
984
767
  },
985
768
  parsedValue: function parsedValue() {
986
- var isParsed = (0, _util.isDateObject)(this.value) || Array.isArray(this.value) && this.value.every(_util.isDateObject);
987
- if (this.valueFormat && !isParsed) {
988
- return parseAsFormatAndType(this.value, this.valueFormat, this.type, this.rangeSeparator) || this.value;
989
- } else {
769
+ if (!this.value) return this.value; // component value is not set
770
+ if (this.type === 'time-select') return this.value; // time-select does not require parsing, this might change in next major version
771
+
772
+ var valueIsDateObject = (0,date_util_namespaceObject.isDateObject)(this.value) || Array.isArray(this.value) && this.value.every(date_util_namespaceObject.isDateObject);
773
+ if (valueIsDateObject) {
990
774
  return this.value;
991
775
  }
776
+ if (this.valueFormat) {
777
+ return parseAsFormatAndType(this.value, this.valueFormat, this.type, this.rangeSeparator) || this.value;
778
+ }
779
+
780
+ // NOTE: deal with common but incorrect usage, should remove in next major version
781
+ // user might provide string / timestamp without value-format, coerce them into date (or array of date)
782
+ return Array.isArray(this.value) ? this.value.map(function (val) {
783
+ return new Date(val);
784
+ }) : new Date(this.value);
992
785
  },
993
786
  _elFormItemSize: function _elFormItemSize() {
994
787
  return (this.elFormItem || {}).elFormItemSize;
@@ -1001,7 +794,7 @@ exports.default = {
1001
794
  },
1002
795
  firstInputId: function firstInputId() {
1003
796
  var obj = {};
1004
- var id = void 0;
797
+ var id;
1005
798
  if (this.ranged) {
1006
799
  id = this.id && this.id[0];
1007
800
  } else {
@@ -1012,7 +805,7 @@ exports.default = {
1012
805
  },
1013
806
  secondInputId: function secondInputId() {
1014
807
  var obj = {};
1015
- var id = void 0;
808
+ var id;
1016
809
  if (this.ranged) {
1017
810
  id = this.id && this.id[1];
1018
811
  }
@@ -1020,7 +813,6 @@ exports.default = {
1020
813
  return obj;
1021
814
  }
1022
815
  },
1023
-
1024
816
  created: function created() {
1025
817
  // vue-popper
1026
818
  this.popperOptions = {
@@ -1028,11 +820,8 @@ exports.default = {
1028
820
  gpuAcceleration: false
1029
821
  };
1030
822
  this.placement = PLACEMENT_MAP[this.align] || PLACEMENT_MAP.left;
1031
-
1032
823
  this.$on('fieldReset', this.handleFieldReset);
1033
824
  },
1034
-
1035
-
1036
825
  methods: {
1037
826
  focus: function focus() {
1038
827
  if (!this.ranged) {
@@ -1046,11 +835,9 @@ exports.default = {
1046
835
  return input.blur();
1047
836
  });
1048
837
  },
1049
-
1050
-
1051
838
  // {parse, formatTo} Value deals maps component value with internal Date
1052
839
  parseValue: function parseValue(value) {
1053
- var isParsed = (0, _util.isDateObject)(value) || Array.isArray(value) && value.every(_util.isDateObject);
840
+ var isParsed = (0,date_util_namespaceObject.isDateObject)(value) || Array.isArray(value) && value.every(date_util_namespaceObject.isDateObject);
1054
841
  if (this.valueFormat && !isParsed) {
1055
842
  return parseAsFormatAndType(value, this.valueFormat, this.type, this.rangeSeparator) || value;
1056
843
  } else {
@@ -1058,15 +845,13 @@ exports.default = {
1058
845
  }
1059
846
  },
1060
847
  formatToValue: function formatToValue(date) {
1061
- var isFormattable = (0, _util.isDateObject)(date) || Array.isArray(date) && date.every(_util.isDateObject);
848
+ var isFormattable = (0,date_util_namespaceObject.isDateObject)(date) || Array.isArray(date) && date.every(date_util_namespaceObject.isDateObject);
1062
849
  if (this.valueFormat && isFormattable) {
1063
850
  return formatAsFormatAndType(date, this.valueFormat, this.type, this.rangeSeparator);
1064
851
  } else {
1065
852
  return date;
1066
853
  }
1067
854
  },
1068
-
1069
-
1070
855
  // {parse, formatTo} String deals with user input
1071
856
  parseString: function parseString(value) {
1072
857
  var type = Array.isArray(value) ? this.type : this.type.replace('range', '');
@@ -1155,22 +940,17 @@ exports.default = {
1155
940
  handleClose: function handleClose() {
1156
941
  if (!this.pickerVisible) return;
1157
942
  this.pickerVisible = false;
1158
- var type = this.type,
1159
- valueOnOpen = this.valueOnOpen,
1160
- valueFormat = this.valueFormat,
1161
- rangeSeparator = this.rangeSeparator;
1162
-
1163
- if (type === 'dates' && this.picker) {
1164
- this.picker.selectedDate = parseAsFormatAndType(valueOnOpen, valueFormat, type, rangeSeparator) || valueOnOpen;
1165
- this.emitInput(this.picker.selectedDate);
943
+ if (this.type === 'dates' || this.type === 'years' || this.type === 'months') {
944
+ // restore to former value
945
+ var oldValue = parseAsFormatAndType(this.valueOnOpen, this.valueFormat, this.type, this.rangeSeparator) || this.valueOnOpen;
946
+ this.emitInput(oldValue);
1166
947
  }
1167
948
  },
1168
949
  handleFieldReset: function handleFieldReset(initialValue) {
1169
- this.userInput = initialValue;
950
+ this.userInput = initialValue === '' ? null : initialValue;
1170
951
  },
1171
952
  handleFocus: function handleFocus() {
1172
953
  var type = this.type;
1173
-
1174
954
  if (HAVE_TRIGGER_TYPES.indexOf(type) !== -1 && !this.pickerVisible) {
1175
955
  this.pickerVisible = true;
1176
956
  }
@@ -1178,7 +958,6 @@ exports.default = {
1178
958
  },
1179
959
  handleKeydown: function handleKeydown(event) {
1180
960
  var _this = this;
1181
-
1182
961
  var keyCode = event.keyCode;
1183
962
 
1184
963
  // ESC
@@ -1232,7 +1011,6 @@ exports.default = {
1232
1011
  },
1233
1012
  handleRangeClick: function handleRangeClick() {
1234
1013
  var type = this.type;
1235
-
1236
1014
  if (HAVE_TRIGGER_TYPES.indexOf(type) !== -1 && !this.pickerVisible) {
1237
1015
  this.pickerVisible = true;
1238
1016
  }
@@ -1247,26 +1025,21 @@ exports.default = {
1247
1025
  },
1248
1026
  showPicker: function showPicker() {
1249
1027
  var _this2 = this;
1250
-
1251
1028
  if (this.$isServer) return;
1252
1029
  if (!this.picker) {
1253
1030
  this.mountPicker();
1254
1031
  }
1255
1032
  this.pickerVisible = this.picker.visible = true;
1256
-
1257
1033
  this.updatePopper();
1258
-
1259
1034
  this.picker.value = this.parsedValue;
1260
1035
  this.picker.resetView && this.picker.resetView();
1261
-
1262
1036
  this.$nextTick(function () {
1263
1037
  _this2.picker.adjustSpinners && _this2.picker.adjustSpinners();
1264
1038
  });
1265
1039
  },
1266
1040
  mountPicker: function mountPicker() {
1267
1041
  var _this3 = this;
1268
-
1269
- this.picker = new _vue2.default(this.panel).$mount();
1042
+ this.picker = new (external_vue_default())(this.panel).$mount();
1270
1043
  this.picker.defaultValue = this.defaultValue;
1271
1044
  this.picker.defaultTime = this.defaultTime;
1272
1045
  this.picker.popperClass = this.popperClass;
@@ -1276,25 +1049,20 @@ exports.default = {
1276
1049
  this.picker.selectionMode = this.selectionMode;
1277
1050
  this.picker.unlinkPanels = this.unlinkPanels;
1278
1051
  this.picker.arrowControl = this.arrowControl || this.timeArrowControl || false;
1279
- this.picker.selectedDate = Array.isArray(this.value) && this.value || [];
1280
1052
  this.$watch('format', function (format) {
1281
1053
  _this3.picker.format = format;
1282
1054
  });
1283
-
1284
1055
  var updateOptions = function updateOptions() {
1285
1056
  var options = _this3.pickerOptions;
1286
-
1287
1057
  if (options && options.selectableRange) {
1288
1058
  var ranges = options.selectableRange;
1289
1059
  var parser = TYPE_VALUE_RESOLVER_MAP.datetimerange.parser;
1290
1060
  var format = DEFAULT_FORMATS.timerange;
1291
-
1292
1061
  ranges = Array.isArray(ranges) ? ranges : [ranges];
1293
1062
  _this3.picker.selectableRange = ranges.map(function (range) {
1294
1063
  return parser(range, format, _this3.rangeSeparator);
1295
1064
  });
1296
1065
  }
1297
-
1298
1066
  for (var option in options) {
1299
1067
  if (options.hasOwnProperty(option) &&
1300
1068
  // 忽略 time-picker 的该配置项
@@ -1311,22 +1079,24 @@ exports.default = {
1311
1079
  updateOptions();
1312
1080
  this.unwatchPickerOptions = this.$watch('pickerOptions', function () {
1313
1081
  return updateOptions();
1314
- }, { deep: true });
1315
-
1082
+ }, {
1083
+ deep: true
1084
+ });
1316
1085
  this.$el.appendChild(this.picker.$el);
1317
1086
  this.picker.resetView && this.picker.resetView();
1318
-
1319
1087
  this.picker.$on('dodestroy', this.doDestroy);
1320
- this.picker.$on('pick', function () {
1321
- var date = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
1322
- var visible = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1323
-
1088
+ this.picker.$on('pick', function (date, visible) {
1089
+ if (date === void 0) {
1090
+ date = '';
1091
+ }
1092
+ if (visible === void 0) {
1093
+ visible = false;
1094
+ }
1324
1095
  _this3.userInput = null;
1325
1096
  _this3.pickerVisible = _this3.picker.visible = visible;
1326
1097
  _this3.emitInput(date);
1327
1098
  _this3.picker.resetView && _this3.picker.resetView();
1328
1099
  });
1329
-
1330
1100
  this.picker.$on('select-range', function (start, end, pos) {
1331
1101
  if (_this3.refInput.length === 0) return;
1332
1102
  if (!pos || pos === 'min') {
@@ -1352,8 +1122,10 @@ exports.default = {
1352
1122
  // determine user real change only
1353
1123
  if (!valueEquals(val, this.valueOnOpen)) {
1354
1124
  this.$emit('change', val);
1355
- this.dispatch('ElFormItem', 'el.form.change', val);
1356
1125
  this.valueOnOpen = val;
1126
+ if (this.validateEvent) {
1127
+ this.dispatch('ElFormItem', 'el.form.change', val);
1128
+ }
1357
1129
  }
1358
1130
  },
1359
1131
  emitInput: function emitInput(val) {
@@ -1373,226 +1145,209 @@ exports.default = {
1373
1145
  }
1374
1146
  }
1375
1147
  }
1376
- };
1377
-
1378
- /***/ }),
1379
-
1380
- /***/ 246:
1381
- /***/ (function(module, exports, __webpack_require__) {
1382
-
1383
- "use strict";
1384
-
1385
-
1386
- exports.__esModule = true;
1387
-
1388
- var _timeSelect = __webpack_require__(247);
1389
-
1390
- var _timeSelect2 = _interopRequireDefault(_timeSelect);
1391
-
1392
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1393
-
1394
- /* istanbul ignore next */
1395
- _timeSelect2.default.install = function (Vue) {
1396
- Vue.component(_timeSelect2.default.name, _timeSelect2.default);
1397
- };
1398
-
1399
- exports.default = _timeSelect2.default;
1400
-
1401
- /***/ }),
1402
-
1403
- /***/ 247:
1404
- /***/ (function(module, exports, __webpack_require__) {
1405
-
1406
- "use strict";
1407
-
1408
-
1409
- exports.__esModule = true;
1410
-
1411
- var _picker = __webpack_require__(29);
1412
-
1413
- var _picker2 = _interopRequireDefault(_picker);
1414
-
1415
- var _timeSelect = __webpack_require__(248);
1148
+ });
1149
+ ;// ./packages/date-picker/src/picker.vue?vue&type=script&lang=js
1150
+ /* harmony default export */ const src_pickervue_type_script_lang_js = (pickervue_type_script_lang_js);
1151
+ ;// ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
1152
+ /* globals __VUE_SSR_CONTEXT__ */
1416
1153
 
1417
- var _timeSelect2 = _interopRequireDefault(_timeSelect);
1154
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
1155
+ // This module is a runtime utility for cleaner component module output and will
1156
+ // be included in the final webpack user bundle.
1418
1157
 
1419
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1158
+ function normalizeComponent(
1159
+ scriptExports,
1160
+ render,
1161
+ staticRenderFns,
1162
+ functionalTemplate,
1163
+ injectStyles,
1164
+ scopeId,
1165
+ moduleIdentifier /* server only */,
1166
+ shadowMode /* vue-cli only */
1167
+ ) {
1168
+ // Vue.extend constructor export interop
1169
+ var options =
1170
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
1420
1171
 
1421
- exports.default = {
1422
- mixins: [_picker2.default],
1172
+ // render functions
1173
+ if (render) {
1174
+ options.render = render
1175
+ options.staticRenderFns = staticRenderFns
1176
+ options._compiled = true
1177
+ }
1423
1178
 
1424
- name: 'ElTimeSelect',
1179
+ // functional template
1180
+ if (functionalTemplate) {
1181
+ options.functional = true
1182
+ }
1425
1183
 
1426
- componentName: 'ElTimeSelect',
1184
+ // scopedId
1185
+ if (scopeId) {
1186
+ options._scopeId = 'data-v-' + scopeId
1187
+ }
1427
1188
 
1428
- props: {
1429
- type: {
1430
- type: String,
1431
- default: 'time-select'
1189
+ var hook
1190
+ if (moduleIdentifier) {
1191
+ // server build
1192
+ hook = function (context) {
1193
+ // 2.3 injection
1194
+ context =
1195
+ context || // cached call
1196
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
1197
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
1198
+ // 2.2 with runInNewContext: true
1199
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
1200
+ context = __VUE_SSR_CONTEXT__
1201
+ }
1202
+ // inject component styles
1203
+ if (injectStyles) {
1204
+ injectStyles.call(this, context)
1205
+ }
1206
+ // register component module identifier for async chunk inferrence
1207
+ if (context && context._registeredComponents) {
1208
+ context._registeredComponents.add(moduleIdentifier)
1209
+ }
1432
1210
  }
1433
- },
1434
-
1435
- beforeCreate: function beforeCreate() {
1436
- this.panel = _timeSelect2.default;
1211
+ // used by ssr in case component is cached and beforeCreate
1212
+ // never gets called
1213
+ options._ssrRegister = hook
1214
+ } else if (injectStyles) {
1215
+ hook = shadowMode
1216
+ ? function () {
1217
+ injectStyles.call(
1218
+ this,
1219
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
1220
+ )
1221
+ }
1222
+ : injectStyles
1437
1223
  }
1438
- };
1439
-
1440
- /***/ }),
1441
-
1442
- /***/ 248:
1443
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1444
-
1445
- "use strict";
1446
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
1447
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_time_select_vue__ = __webpack_require__(82);
1448
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_time_select_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_time_select_vue__);
1449
- /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_time_select_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_time_select_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__));
1450
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_13_7_3_vue_loader_lib_template_compiler_index_id_data_v_1b7c2c8e_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_template_index_0_time_select_vue__ = __webpack_require__(249);
1451
- var normalizeComponent = __webpack_require__(0)
1452
- /* script */
1453
-
1454
-
1455
- /* template */
1456
-
1457
- /* template functional */
1458
- var __vue_template_functional__ = false
1459
- /* styles */
1460
- var __vue_styles__ = null
1461
- /* scopeId */
1462
- var __vue_scopeId__ = null
1463
- /* moduleIdentifier (server only) */
1464
- var __vue_module_identifier__ = null
1465
- var Component = normalizeComponent(
1466
- __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_time_select_vue___default.a,
1467
- __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_13_7_3_vue_loader_lib_template_compiler_index_id_data_v_1b7c2c8e_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_template_index_0_time_select_vue__["a" /* default */],
1468
- __vue_template_functional__,
1469
- __vue_styles__,
1470
- __vue_scopeId__,
1471
- __vue_module_identifier__
1472
- )
1473
-
1474
- /* harmony default export */ __webpack_exports__["default"] = (Component.exports);
1475
-
1476
-
1477
- /***/ }),
1478
1224
 
1479
- /***/ 249:
1480
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1481
-
1482
- "use strict";
1483
- 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:{"before-enter":_vm.handleMenuEnter,"after-leave":function($event){_vm.$emit('dodestroy')}}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.visible),expression:"visible"}],ref:"popper",staticClass:"el-picker-panel time-select el-popper",class:_vm.popperClass,style:({ width: _vm.width + 'px' })},[_c('el-scrollbar',{attrs:{"noresize":"","wrap-class":"el-picker-panel__content"}},_vm._l((_vm.items),function(item){return _c('div',{staticClass:"time-select-item",class:{ selected: _vm.value === item.value, disabled: item.disabled, default: item.value === _vm.defaultValue },attrs:{"disabled":item.disabled},on:{"click":function($event){_vm.handleClick(item)}}},[_vm._v(_vm._s(item.value))])}))],1)])}
1484
- var staticRenderFns = []
1485
- var esExports = { render: render, staticRenderFns: staticRenderFns }
1486
- /* harmony default export */ __webpack_exports__["a"] = (esExports);
1487
-
1488
- /***/ }),
1489
-
1490
- /***/ 28:
1491
- /***/ (function(module, exports) {
1225
+ if (hook) {
1226
+ if (options.functional) {
1227
+ // for template-only hot-reload because in that case the render fn doesn't
1228
+ // go through the normalizer
1229
+ options._injectStyles = hook
1230
+ // register for functional component in vue file
1231
+ var originalRender = options.render
1232
+ options.render = function renderWithStyleInjection(h, context) {
1233
+ hook.call(context)
1234
+ return originalRender(h, context)
1235
+ }
1236
+ } else {
1237
+ // inject component registration as beforeCreate hook
1238
+ var existing = options.beforeCreate
1239
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
1240
+ }
1241
+ }
1492
1242
 
1493
- module.exports = require("element-ui/lib/utils/scroll-into-view");
1243
+ return {
1244
+ exports: scriptExports,
1245
+ options: options
1246
+ }
1247
+ }
1494
1248
 
1495
- /***/ }),
1249
+ ;// ./packages/date-picker/src/picker.vue
1496
1250
 
1497
- /***/ 29:
1498
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1499
1251
 
1500
- "use strict";
1501
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
1502
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_picker_vue__ = __webpack_require__(19);
1503
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_picker_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_picker_vue__);
1504
- /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_picker_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_picker_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__));
1505
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_13_7_3_vue_loader_lib_template_compiler_index_id_data_v_4fbf5458_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_template_index_0_picker_vue__ = __webpack_require__(31);
1506
- var normalizeComponent = __webpack_require__(0)
1507
- /* script */
1508
1252
 
1509
1253
 
1510
- /* template */
1511
1254
 
1512
- /* template functional */
1513
- var __vue_template_functional__ = false
1514
- /* styles */
1515
- var __vue_styles__ = null
1516
- /* scopeId */
1517
- var __vue_scopeId__ = null
1518
- /* moduleIdentifier (server only) */
1519
- var __vue_module_identifier__ = null
1520
- var Component = normalizeComponent(
1521
- __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_picker_vue___default.a,
1522
- __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_13_7_3_vue_loader_lib_template_compiler_index_id_data_v_4fbf5458_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_template_index_0_picker_vue__["a" /* default */],
1523
- __vue_template_functional__,
1524
- __vue_styles__,
1525
- __vue_scopeId__,
1526
- __vue_module_identifier__
1255
+ /* normalize component */
1256
+ ;
1257
+ var component = normalizeComponent(
1258
+ src_pickervue_type_script_lang_js,
1259
+ render,
1260
+ staticRenderFns,
1261
+ false,
1262
+ null,
1263
+ null,
1264
+ null
1265
+
1527
1266
  )
1528
1267
 
1529
- /* harmony default export */ __webpack_exports__["default"] = (Component.exports);
1530
-
1531
-
1532
- /***/ }),
1533
-
1534
- /***/ 30:
1535
- /***/ (function(module, exports) {
1536
-
1537
- module.exports = require("element-ui/lib/utils/date");
1538
-
1539
- /***/ }),
1540
-
1541
- /***/ 31:
1542
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1543
-
1544
- "use strict";
1545
- 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){return _vm.handleKeydown($event)},"mouseenter":function($event){return _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:[
1546
- 'el-date-editor--' + _vm.type,
1547
- _vm.pickerSize ? ("el-range-editor--" + _vm.pickerSize) : '',
1548
- _vm.pickerDisabled ? 'is-disabled' : '',
1549
- _vm.pickerVisible ? 'is-active' : ''
1550
- ],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:{"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)),_c('span',{staticClass:"el-range-separator"},[_vm._v(_vm._s(_vm.rangeSeparator))]),_c('input',_vm._b({staticClass:"el-range-input",attrs:{"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()])}
1551
- var staticRenderFns = []
1552
- var esExports = { render: render, staticRenderFns: staticRenderFns }
1553
- /* harmony default export */ __webpack_exports__["a"] = (esExports);
1554
-
1555
- /***/ }),
1556
-
1557
- /***/ 4:
1558
- /***/ (function(module, exports) {
1559
-
1560
- module.exports = require("vue");
1561
-
1562
- /***/ }),
1563
-
1564
- /***/ 6:
1565
- /***/ (function(module, exports) {
1566
-
1567
- module.exports = require("element-ui/lib/input");
1568
-
1569
- /***/ }),
1570
-
1571
- /***/ 7:
1572
- /***/ (function(module, exports) {
1573
-
1574
- module.exports = require("element-ui/lib/utils/vue-popper");
1575
-
1576
- /***/ }),
1577
-
1578
- /***/ 82:
1579
- /***/ (function(module, exports, __webpack_require__) {
1580
-
1581
- "use strict";
1582
-
1583
-
1584
- exports.__esModule = true;
1585
-
1586
- var _scrollbar = __webpack_require__(17);
1587
-
1588
- var _scrollbar2 = _interopRequireDefault(_scrollbar);
1589
-
1590
- var _scrollIntoView = __webpack_require__(28);
1268
+ /* harmony default export */ const picker = (component.exports);
1269
+ ;// ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/date-picker/src/panel/time-select.vue?vue&type=template&id=5a77e4aa
1270
+ var time_selectvue_type_template_id_5a77e4aa_render = function () {
1271
+ var _vm = this
1272
+ var _h = _vm.$createElement
1273
+ var _c = _vm._self._c || _h
1274
+ return _c(
1275
+ "transition",
1276
+ {
1277
+ attrs: { name: "el-zoom-in-top" },
1278
+ on: {
1279
+ "before-enter": _vm.handleMenuEnter,
1280
+ "after-leave": function ($event) {
1281
+ _vm.$emit("dodestroy")
1282
+ },
1283
+ },
1284
+ },
1285
+ [
1286
+ _c(
1287
+ "div",
1288
+ {
1289
+ directives: [
1290
+ {
1291
+ name: "show",
1292
+ rawName: "v-show",
1293
+ value: _vm.visible,
1294
+ expression: "visible",
1295
+ },
1296
+ ],
1297
+ ref: "popper",
1298
+ staticClass: "el-picker-panel time-select el-popper",
1299
+ class: _vm.popperClass,
1300
+ style: { width: _vm.width + "px" },
1301
+ },
1302
+ [
1303
+ _c(
1304
+ "el-scrollbar",
1305
+ {
1306
+ attrs: { noresize: "", "wrap-class": "el-picker-panel__content" },
1307
+ },
1308
+ _vm._l(_vm.items, function (item) {
1309
+ return _c(
1310
+ "div",
1311
+ {
1312
+ key: item.value,
1313
+ staticClass: "time-select-item",
1314
+ class: {
1315
+ selected: _vm.value === item.value,
1316
+ disabled: item.disabled,
1317
+ default: item.value === _vm.defaultValue,
1318
+ },
1319
+ attrs: { disabled: item.disabled },
1320
+ on: {
1321
+ click: function ($event) {
1322
+ _vm.handleClick(item)
1323
+ },
1324
+ },
1325
+ },
1326
+ [_vm._v(_vm._s(item.value))]
1327
+ )
1328
+ }),
1329
+ 0
1330
+ ),
1331
+ ],
1332
+ 1
1333
+ ),
1334
+ ]
1335
+ )
1336
+ }
1337
+ var time_selectvue_type_template_id_5a77e4aa_staticRenderFns = []
1338
+ time_selectvue_type_template_id_5a77e4aa_render._withStripped = true
1591
1339
 
1592
- var _scrollIntoView2 = _interopRequireDefault(_scrollIntoView);
1593
1340
 
1594
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1341
+ ;// ./packages/date-picker/src/panel/time-select.vue?vue&type=template&id=5a77e4aa
1595
1342
 
1343
+ ;// external "mazey-element-ui/lib/scrollbar"
1344
+ const scrollbar_namespaceObject = require("mazey-element-ui/lib/scrollbar");
1345
+ var scrollbar_default = /*#__PURE__*/__webpack_require__.n(scrollbar_namespaceObject);
1346
+ ;// external "mazey-element-ui/lib/utils/scroll-into-view"
1347
+ const scroll_into_view_namespaceObject = require("mazey-element-ui/lib/utils/scroll-into-view");
1348
+ var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_view_namespaceObject);
1349
+ ;// ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/date-picker/src/panel/time-select.vue?vue&type=script&lang=js
1350
+ //
1596
1351
  //
1597
1352
  //
1598
1353
  //
@@ -1613,12 +1368,13 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
1613
1368
  //
1614
1369
  //
1615
1370
 
1371
+
1372
+
1616
1373
  var parseTime = function parseTime(time) {
1617
1374
  var values = (time || '').split(':');
1618
1375
  if (values.length >= 2) {
1619
1376
  var hours = parseInt(values[0], 10);
1620
1377
  var minutes = parseInt(values[1], 10);
1621
-
1622
1378
  return {
1623
1379
  hours: hours,
1624
1380
  minutes: minutes
@@ -1627,57 +1383,45 @@ var parseTime = function parseTime(time) {
1627
1383
  /* istanbul ignore next */
1628
1384
  return null;
1629
1385
  };
1630
-
1631
1386
  var compareTime = function compareTime(time1, time2) {
1632
1387
  var value1 = parseTime(time1);
1633
1388
  var value2 = parseTime(time2);
1634
-
1635
1389
  var minutes1 = value1.minutes + value1.hours * 60;
1636
1390
  var minutes2 = value2.minutes + value2.hours * 60;
1637
-
1638
1391
  if (minutes1 === minutes2) {
1639
1392
  return 0;
1640
1393
  }
1641
-
1642
1394
  return minutes1 > minutes2 ? 1 : -1;
1643
1395
  };
1644
-
1645
1396
  var formatTime = function formatTime(time) {
1646
1397
  return (time.hours < 10 ? '0' + time.hours : time.hours) + ':' + (time.minutes < 10 ? '0' + time.minutes : time.minutes);
1647
1398
  };
1648
-
1649
1399
  var nextTime = function nextTime(time, step) {
1650
1400
  var timeValue = parseTime(time);
1651
1401
  var stepValue = parseTime(step);
1652
-
1653
1402
  var next = {
1654
1403
  hours: timeValue.hours,
1655
1404
  minutes: timeValue.minutes
1656
1405
  };
1657
-
1658
1406
  next.minutes += stepValue.minutes;
1659
1407
  next.hours += stepValue.hours;
1660
-
1661
1408
  next.hours += Math.floor(next.minutes / 60);
1662
1409
  next.minutes = next.minutes % 60;
1663
-
1664
1410
  return formatTime(next);
1665
1411
  };
1666
-
1667
- exports.default = {
1668
- components: { ElScrollbar: _scrollbar2.default },
1669
-
1412
+ /* harmony default export */ const time_selectvue_type_script_lang_js = ({
1413
+ components: {
1414
+ ElScrollbar: (scrollbar_default())
1415
+ },
1670
1416
  watch: {
1671
1417
  value: function value(val) {
1672
1418
  var _this = this;
1673
-
1674
1419
  if (!val) return;
1675
1420
  this.$nextTick(function () {
1676
1421
  return _this.scrollToOption();
1677
1422
  });
1678
1423
  }
1679
1424
  },
1680
-
1681
1425
  methods: {
1682
1426
  handleClick: function handleClick(item) {
1683
1427
  if (!item.disabled) {
@@ -1687,15 +1431,15 @@ exports.default = {
1687
1431
  handleClear: function handleClear() {
1688
1432
  this.$emit('pick', null);
1689
1433
  },
1690
- scrollToOption: function scrollToOption() {
1691
- var selector = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '.selected';
1692
-
1434
+ scrollToOption: function scrollToOption(selector) {
1435
+ if (selector === void 0) {
1436
+ selector = '.selected';
1437
+ }
1693
1438
  var menu = this.$refs.popper.querySelector('.el-picker-panel__content');
1694
- (0, _scrollIntoView2.default)(menu, menu.querySelector(selector));
1439
+ scroll_into_view_default()(menu, menu.querySelector(selector));
1695
1440
  },
1696
1441
  handleMenuEnter: function handleMenuEnter() {
1697
1442
  var _this2 = this;
1698
-
1699
1443
  var selected = this.items.map(function (item) {
1700
1444
  return item.value;
1701
1445
  }).indexOf(this.value) !== -1;
@@ -1732,7 +1476,10 @@ exports.default = {
1732
1476
  handleKeydown: function handleKeydown(event) {
1733
1477
  var keyCode = event.keyCode;
1734
1478
  if (keyCode === 38 || keyCode === 40) {
1735
- var mapping = { 40: 1, 38: -1 };
1479
+ var mapping = {
1480
+ 40: 1,
1481
+ 38: -1
1482
+ };
1736
1483
  var offset = mapping[keyCode.toString()];
1737
1484
  this.scrollDown(offset);
1738
1485
  event.stopPropagation();
@@ -1740,7 +1487,6 @@ exports.default = {
1740
1487
  }
1741
1488
  }
1742
1489
  },
1743
-
1744
1490
  data: function data() {
1745
1491
  return {
1746
1492
  popperClass: '',
@@ -1755,16 +1501,12 @@ exports.default = {
1755
1501
  width: 0
1756
1502
  };
1757
1503
  },
1758
-
1759
-
1760
1504
  computed: {
1761
1505
  items: function items() {
1762
1506
  var start = this.start;
1763
1507
  var end = this.end;
1764
1508
  var step = this.step;
1765
-
1766
1509
  var result = [];
1767
-
1768
1510
  if (start && end && step) {
1769
1511
  var current = start;
1770
1512
  while (compareTime(current, end) <= 0) {
@@ -1775,19 +1517,57 @@ exports.default = {
1775
1517
  current = nextTime(current, step);
1776
1518
  }
1777
1519
  }
1778
-
1779
1520
  return result;
1780
1521
  }
1781
1522
  }
1782
- };
1523
+ });
1524
+ ;// ./packages/date-picker/src/panel/time-select.vue?vue&type=script&lang=js
1525
+ /* harmony default export */ const panel_time_selectvue_type_script_lang_js = (time_selectvue_type_script_lang_js);
1526
+ ;// ./packages/date-picker/src/panel/time-select.vue
1527
+
1783
1528
 
1784
- /***/ }),
1785
1529
 
1786
- /***/ 9:
1787
- /***/ (function(module, exports) {
1788
1530
 
1789
- module.exports = require("element-ui/lib/utils/merge");
1790
1531
 
1791
- /***/ })
1532
+ /* normalize component */
1533
+ ;
1534
+ var time_select_component = normalizeComponent(
1535
+ panel_time_selectvue_type_script_lang_js,
1536
+ time_selectvue_type_template_id_5a77e4aa_render,
1537
+ time_selectvue_type_template_id_5a77e4aa_staticRenderFns,
1538
+ false,
1539
+ null,
1540
+ null,
1541
+ null
1542
+
1543
+ )
1544
+
1545
+ /* harmony default export */ const time_select = (time_select_component.exports);
1546
+ ;// ./packages/date-picker/src/picker/time-select.js
1792
1547
 
1793
- /******/ });
1548
+
1549
+ /* harmony default export */ const picker_time_select = ({
1550
+ mixins: [picker],
1551
+ name: 'ElTimeSelect',
1552
+ componentName: 'ElTimeSelect',
1553
+ props: {
1554
+ type: {
1555
+ type: String,
1556
+ default: 'time-select'
1557
+ }
1558
+ },
1559
+ beforeCreate: function beforeCreate() {
1560
+ this.panel = time_select;
1561
+ }
1562
+ });
1563
+ ;// ./packages/time-select/index.js
1564
+
1565
+
1566
+ /* istanbul ignore next */
1567
+ picker_time_select.install = function (Vue) {
1568
+ Vue.component(picker_time_select.name, picker_time_select);
1569
+ };
1570
+ /* harmony default export */ const packages_time_select = (picker_time_select);
1571
+ module.exports = __webpack_exports__["default"];
1572
+ /******/ })()
1573
+ ;