7moor-element-ui 2.14.63

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