cy-element-ui 1.0.4 → 1.0.5

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 (415) hide show
  1. package/README.md +22 -13
  2. package/lib/alert.js +211 -203
  3. package/lib/aside.js +29 -29
  4. package/lib/autocomplete.js +4615 -483
  5. package/lib/avatar.js +152 -126
  6. package/lib/backtop.js +117 -125
  7. package/lib/badge.js +128 -134
  8. package/lib/breadcrumb-item.js +146 -122
  9. package/lib/breadcrumb.js +97 -96
  10. package/lib/button-group.js +68 -65
  11. package/lib/button.js +67 -87
  12. package/lib/calendar.js +2475 -603
  13. package/lib/card.js +101 -100
  14. package/lib/carousel-item.js +854 -210
  15. package/lib/carousel.js +575 -408
  16. package/lib/cascader-panel.js +3546 -1153
  17. package/lib/cascader.js +7376 -970
  18. package/lib/checkbox-button.js +337 -290
  19. package/lib/checkbox-group.js +176 -105
  20. package/lib/checkbox.js +240 -220
  21. package/lib/col.js +113 -68
  22. package/lib/collapse-item.js +1228 -225
  23. package/lib/collapse.js +163 -123
  24. package/lib/color-picker.js +5223 -1251
  25. package/lib/container.js +98 -88
  26. package/lib/date-picker.js +8396 -3945
  27. package/lib/descriptions-item.js +53 -32
  28. package/lib/descriptions.js +697 -334
  29. package/lib/dialog.js +1725 -247
  30. package/lib/directives/mousewheel.js +14 -20
  31. package/lib/directives/repeat-click.js +27 -30
  32. package/lib/divider.js +38 -45
  33. package/lib/drawer.js +1032 -238
  34. package/lib/dropdown-item.js +159 -111
  35. package/lib/dropdown-menu.js +2445 -117
  36. package/lib/dropdown.js +1675 -366
  37. package/lib/element-ui.common.js +49110 -39985
  38. package/lib/empty.js +1084 -203
  39. package/lib/fileUpload.js +3900 -0
  40. package/lib/footer.js +29 -29
  41. package/lib/form-item.js +1236 -467
  42. package/lib/form.js +326 -258
  43. package/lib/header.js +80 -80
  44. package/lib/icon.js +71 -68
  45. package/lib/image.js +2389 -743
  46. package/lib/index.js +1 -1
  47. package/lib/infinite-scroll.js +814 -150
  48. package/lib/input-number.js +2181 -444
  49. package/lib/input.js +1197 -517
  50. package/lib/link.js +117 -135
  51. package/lib/loading.js +1130 -363
  52. package/lib/locale/format.js +38 -49
  53. package/lib/locale/index.js +38 -52
  54. package/lib/locale/lang/af-ZA.js +130 -123
  55. package/lib/locale/lang/ar.js +123 -122
  56. package/lib/locale/lang/az.js +122 -121
  57. package/lib/locale/lang/bg.js +133 -123
  58. package/lib/locale/lang/bn.js +121 -121
  59. package/lib/locale/lang/ca.js +123 -122
  60. package/lib/locale/lang/cs-CZ.js +127 -125
  61. package/lib/locale/lang/da.js +124 -122
  62. package/lib/locale/lang/de.js +126 -124
  63. package/lib/locale/lang/ee.js +125 -123
  64. package/lib/locale/lang/el.js +125 -123
  65. package/lib/locale/lang/en.js +127 -123
  66. package/lib/locale/lang/eo.js +125 -123
  67. package/lib/locale/lang/es.js +123 -122
  68. package/lib/locale/lang/eu.js +128 -123
  69. package/lib/locale/lang/fa.js +125 -123
  70. package/lib/locale/lang/fi.js +125 -123
  71. package/lib/locale/lang/fr.js +125 -122
  72. package/lib/locale/lang/he.js +130 -123
  73. package/lib/locale/lang/hr.js +128 -123
  74. package/lib/locale/lang/hu.js +124 -122
  75. package/lib/locale/lang/hy-AM.js +125 -123
  76. package/lib/locale/lang/id.js +124 -123
  77. package/lib/locale/lang/is.js +124 -123
  78. package/lib/locale/lang/it.js +123 -122
  79. package/lib/locale/lang/ja.js +125 -123
  80. package/lib/locale/lang/kg.js +125 -123
  81. package/lib/locale/lang/km.js +124 -123
  82. package/lib/locale/lang/ko.js +125 -123
  83. package/lib/locale/lang/ku.js +125 -123
  84. package/lib/locale/lang/kz.js +125 -123
  85. package/lib/locale/lang/lo-LA.js +121 -121
  86. package/lib/locale/lang/lt.js +125 -123
  87. package/lib/locale/lang/lv.js +125 -123
  88. package/lib/locale/lang/mn.js +125 -123
  89. package/lib/locale/lang/ms.js +123 -122
  90. package/lib/locale/lang/nb-NO.js +123 -122
  91. package/lib/locale/lang/nl.js +125 -123
  92. package/lib/locale/lang/pl.js +125 -123
  93. package/lib/locale/lang/pt-br.js +124 -123
  94. package/lib/locale/lang/pt.js +133 -123
  95. package/lib/locale/lang/ro.js +125 -123
  96. package/lib/locale/lang/ru-RU.js +124 -123
  97. package/lib/locale/lang/si.js +127 -123
  98. package/lib/locale/lang/sk.js +126 -125
  99. package/lib/locale/lang/sl.js +125 -123
  100. package/lib/locale/lang/sr-Latn.js +124 -123
  101. package/lib/locale/lang/sr.js +128 -123
  102. package/lib/locale/lang/sv-SE.js +128 -123
  103. package/lib/locale/lang/sw.js +127 -123
  104. package/lib/locale/lang/ta.js +130 -122
  105. package/lib/locale/lang/th.js +127 -123
  106. package/lib/locale/lang/tk.js +129 -123
  107. package/lib/locale/lang/tr-TR.js +125 -123
  108. package/lib/locale/lang/ua.js +124 -123
  109. package/lib/locale/lang/ug-CN.js +124 -123
  110. package/lib/locale/lang/uz-UZ.js +124 -123
  111. package/lib/locale/lang/vi.js +124 -123
  112. package/lib/locale/lang/zh-CN.js +124 -123
  113. package/lib/locale/lang/zh-TW.js +128 -123
  114. package/lib/main.js +23 -21
  115. package/lib/menu-item-group.js +105 -111
  116. package/lib/menu-item.js +3558 -253
  117. package/lib/menu.js +1680 -528
  118. package/lib/message-box.js +3427 -684
  119. package/lib/message.js +1677 -229
  120. package/lib/mixins/emitter.js +28 -30
  121. package/lib/mixins/focus.js +10 -11
  122. package/lib/mixins/locale.js +12 -14
  123. package/lib/mixins/migrating.js +38 -45
  124. package/lib/notification.js +1707 -269
  125. package/lib/option-group.js +190 -139
  126. package/lib/option.js +949 -196
  127. package/lib/page-header.js +964 -42
  128. package/lib/pagination.js +6947 -641
  129. package/lib/popconfirm.js +3951 -223
  130. package/lib/popover.js +3247 -369
  131. package/lib/progress.js +254 -244
  132. package/lib/radio-button.js +259 -226
  133. package/lib/radio-group.js +249 -186
  134. package/lib/radio.js +263 -253
  135. package/lib/rate.js +1399 -420
  136. package/lib/result.js +183 -227
  137. package/lib/row.js +58 -41
  138. package/lib/scrollbar.js +1331 -278
  139. package/lib/select.js +5816 -1428
  140. package/lib/skeleton-item.js +133 -145
  141. package/lib/skeleton.js +82 -91
  142. package/lib/slider.js +5157 -702
  143. package/lib/spinner.js +113 -101
  144. package/lib/statistic.js +10205 -254
  145. package/lib/step.js +274 -311
  146. package/lib/steps.js +854 -117
  147. package/lib/subTitle.js +292 -0
  148. package/lib/submenu.js +2867 -429
  149. package/lib/switch.js +1051 -291
  150. package/lib/tab-pane.js +125 -135
  151. package/lib/tabDialog.js +2658 -0
  152. package/lib/table-column.js +1975 -751
  153. package/lib/table.js +8019 -3979
  154. package/lib/tabs.js +1455 -605
  155. package/lib/tag.js +73 -68
  156. package/lib/theme-chalk/src/index.scss +3 -0
  157. package/lib/time-picker.js +6821 -1944
  158. package/lib/time-select.js +6297 -1186
  159. package/lib/timeline-item.js +43 -84
  160. package/lib/timeline.js +43 -39
  161. package/lib/tooltip.js +3185 -287
  162. package/lib/transfer.js +2943 -625
  163. package/lib/transitions/collapse-transition.js +69 -87
  164. package/lib/tree.js +3312 -1791
  165. package/lib/treeSelect.js +4436 -0
  166. package/lib/umd/locale/af-ZA.js +145 -138
  167. package/lib/umd/locale/ar.js +138 -137
  168. package/lib/umd/locale/az.js +139 -137
  169. package/lib/umd/locale/bg.js +148 -138
  170. package/lib/umd/locale/bn.js +138 -137
  171. package/lib/umd/locale/ca.js +138 -137
  172. package/lib/umd/locale/cs-CZ.js +142 -140
  173. package/lib/umd/locale/da.js +139 -137
  174. package/lib/umd/locale/de.js +141 -139
  175. package/lib/umd/locale/ee.js +140 -138
  176. package/lib/umd/locale/el.js +140 -138
  177. package/lib/umd/locale/en.js +142 -138
  178. package/lib/umd/locale/eo.js +140 -138
  179. package/lib/umd/locale/es.js +138 -137
  180. package/lib/umd/locale/eu.js +143 -138
  181. package/lib/umd/locale/fa.js +140 -138
  182. package/lib/umd/locale/fi.js +140 -138
  183. package/lib/umd/locale/fr.js +140 -137
  184. package/lib/umd/locale/he.js +145 -138
  185. package/lib/umd/locale/hr.js +143 -138
  186. package/lib/umd/locale/hu.js +139 -137
  187. package/lib/umd/locale/hy-AM.js +140 -138
  188. package/lib/umd/locale/id.js +139 -138
  189. package/lib/umd/locale/is.js +139 -138
  190. package/lib/umd/locale/it.js +138 -137
  191. package/lib/umd/locale/ja.js +140 -138
  192. package/lib/umd/locale/kg.js +140 -138
  193. package/lib/umd/locale/km.js +139 -138
  194. package/lib/umd/locale/ko.js +140 -138
  195. package/lib/umd/locale/ku.js +140 -138
  196. package/lib/umd/locale/kz.js +140 -138
  197. package/lib/umd/locale/lo-LA.js +138 -137
  198. package/lib/umd/locale/lt.js +140 -138
  199. package/lib/umd/locale/lv.js +140 -138
  200. package/lib/umd/locale/mn.js +140 -138
  201. package/lib/umd/locale/ms.js +138 -137
  202. package/lib/umd/locale/nb-NO.js +138 -137
  203. package/lib/umd/locale/nl.js +140 -138
  204. package/lib/umd/locale/pl.js +140 -138
  205. package/lib/umd/locale/pt-br.js +139 -138
  206. package/lib/umd/locale/pt.js +148 -138
  207. package/lib/umd/locale/ro.js +140 -138
  208. package/lib/umd/locale/ru-RU.js +139 -138
  209. package/lib/umd/locale/si.js +142 -138
  210. package/lib/umd/locale/sk.js +141 -140
  211. package/lib/umd/locale/sl.js +140 -138
  212. package/lib/umd/locale/sr-Latn.js +139 -138
  213. package/lib/umd/locale/sr.js +143 -138
  214. package/lib/umd/locale/sv-SE.js +143 -138
  215. package/lib/umd/locale/sw.js +142 -138
  216. package/lib/umd/locale/ta.js +145 -137
  217. package/lib/umd/locale/th.js +142 -138
  218. package/lib/umd/locale/tk.js +144 -138
  219. package/lib/umd/locale/tr-TR.js +140 -138
  220. package/lib/umd/locale/ua.js +139 -138
  221. package/lib/umd/locale/ug-CN.js +139 -138
  222. package/lib/umd/locale/uz-UZ.js +139 -138
  223. package/lib/umd/locale/vi.js +139 -138
  224. package/lib/umd/locale/zh-CN.js +139 -138
  225. package/lib/umd/locale/zh-TW.js +143 -138
  226. package/lib/upload.js +2377 -987
  227. package/lib/utils/after-leave.js +36 -33
  228. package/lib/utils/aria-dialog.js +55 -73
  229. package/lib/utils/aria-utils.js +67 -76
  230. package/lib/utils/clickoutside.js +52 -60
  231. package/lib/utils/date-util.js +198 -241
  232. package/lib/utils/date.js +6 -368
  233. package/lib/utils/date_source.js +349 -0
  234. package/lib/utils/dom.js +167 -183
  235. package/lib/utils/lodash.js +13 -9421
  236. package/lib/utils/lodash_source.js +9421 -0
  237. package/lib/utils/menu/aria-menubar.js +13 -18
  238. package/lib/utils/menu/aria-menuitem.js +43 -54
  239. package/lib/utils/menu/aria-submenu.js +50 -59
  240. package/lib/utils/merge.js +15 -17
  241. package/lib/utils/popper.js +1141 -1170
  242. package/lib/utils/popup/index.js +186 -230
  243. package/lib/utils/popup/popup-manager.js +159 -191
  244. package/lib/utils/resize-event.js +29 -44
  245. package/lib/utils/scroll-into-view.js +25 -33
  246. package/lib/utils/scrollbar-width.js +25 -36
  247. package/lib/utils/shared.js +3 -3
  248. package/lib/utils/types.js +19 -32
  249. package/lib/utils/util.js +187 -221
  250. package/lib/utils/vdom.js +5 -9
  251. package/lib/utils/vue-popper.js +166 -188
  252. package/package.json +20 -19
  253. package/packages/alert/src/main.vue +63 -63
  254. package/packages/aside/src/main.vue +9 -9
  255. package/packages/autocomplete/src/autocomplete-suggestions.vue +46 -46
  256. package/packages/autocomplete/src/autocomplete.vue +198 -198
  257. package/packages/avatar/src/main.vue +5 -5
  258. package/packages/backtop/src/main.vue +3 -3
  259. package/packages/badge/src/main.vue +1 -1
  260. package/packages/breadcrumb/src/breadcrumb-item.vue +26 -26
  261. package/packages/breadcrumb/src/breadcrumb.vue +22 -22
  262. package/packages/button/src/button-group.vue +3 -3
  263. package/packages/button/src/button.vue +44 -44
  264. package/packages/calendar/src/date-table.vue +3 -3
  265. package/packages/calendar/src/main.vue +7 -7
  266. package/packages/card/src/main.vue +9 -9
  267. package/packages/carousel/src/item.vue +98 -98
  268. package/packages/carousel/src/main.vue +2 -2
  269. package/packages/cascader/src/cascader.vue +4 -4
  270. package/packages/cascader-panel/src/cascader-menu.vue +4 -4
  271. package/packages/cascader-panel/src/cascader-node.vue +232 -232
  272. package/packages/cascader-panel/src/cascader-panel.vue +3 -3
  273. package/packages/cascader-panel/src/node.js +2 -3
  274. package/packages/cascader-panel/src/store.js +0 -1
  275. package/packages/checkbox/src/checkbox-button.vue +139 -139
  276. package/packages/checkbox/src/checkbox-group.vue +33 -33
  277. package/packages/checkbox/src/checkbox.vue +140 -140
  278. package/packages/col/src/col.js +5 -5
  279. package/packages/collapse/src/collapse-item.vue +55 -55
  280. package/packages/collapse/src/collapse.vue +54 -54
  281. package/packages/color-picker/src/color.js +4 -4
  282. package/packages/color-picker/src/components/alpha-slider.vue +100 -100
  283. package/packages/color-picker/src/components/hue-slider.vue +91 -91
  284. package/packages/color-picker/src/components/picker-dropdown.vue +64 -64
  285. package/packages/color-picker/src/components/predefine.vue +43 -43
  286. package/packages/color-picker/src/components/sv-panel.vue +70 -70
  287. package/packages/color-picker/src/main.vue +141 -141
  288. package/packages/container/src/main.vue +20 -20
  289. package/packages/date-picker/src/basic/date-table.vue +360 -360
  290. package/packages/date-picker/src/basic/month-table.vue +222 -223
  291. package/packages/date-picker/src/basic/time-spinner.vue +174 -174
  292. package/packages/date-picker/src/basic/year-table.vue +91 -91
  293. package/packages/date-picker/src/panel/date-range.vue +415 -415
  294. package/packages/date-picker/src/panel/date.vue +423 -423
  295. package/packages/date-picker/src/panel/month-range.vue +177 -177
  296. package/packages/date-picker/src/panel/time-range.vue +173 -173
  297. package/packages/date-picker/src/panel/time-select.vue +131 -131
  298. package/packages/date-picker/src/panel/time.vue +131 -131
  299. package/packages/date-picker/src/picker.vue +7 -7
  300. package/packages/descriptions/src/descriptions-row.js +3 -3
  301. package/packages/descriptions/src/index.js +1 -1
  302. package/packages/dialog/src/component.vue +155 -155
  303. package/packages/divider/src/main.vue +1 -1
  304. package/packages/drawer/src/main.vue +2 -2
  305. package/packages/dropdown/src/dropdown-item.vue +15 -15
  306. package/packages/dropdown/src/dropdown-menu.vue +47 -47
  307. package/packages/dropdown/src/dropdown.vue +260 -260
  308. package/packages/empty/src/index.vue +1 -1
  309. package/packages/fileUpload/index.js +8 -0
  310. package/packages/fileUpload/src/main.vue +430 -0
  311. package/packages/footer/src/main.vue +9 -9
  312. package/packages/form/src/form-item.vue +245 -245
  313. package/packages/form/src/form.vue +154 -154
  314. package/packages/header/src/main.vue +9 -9
  315. package/packages/icon/src/icon.vue +6 -6
  316. package/packages/image/src/image-viewer.vue +9 -9
  317. package/packages/image/src/main.vue +206 -206
  318. package/packages/infinite-scroll/src/main.js +1 -2
  319. package/packages/input/src/calcTextareaHeight.js +2 -2
  320. package/packages/input/src/input.vue +311 -311
  321. package/packages/input-number/src/input-number.vue +205 -205
  322. package/packages/loading/src/loading.vue +19 -19
  323. package/packages/main/src/main.vue +4 -4
  324. package/packages/menu/src/menu-item-group.vue +27 -27
  325. package/packages/menu/src/menu-item.vue +69 -69
  326. package/packages/menu/src/menu.vue +284 -284
  327. package/packages/menu/src/submenu.vue +308 -309
  328. package/packages/message/src/main.js +1 -1
  329. package/packages/message/src/main.vue +72 -72
  330. package/packages/message-box/src/main.vue +216 -216
  331. package/packages/notification/src/main.js +1 -1
  332. package/packages/notification/src/main.vue +93 -93
  333. package/packages/pagination/src/pager.vue +99 -99
  334. package/packages/popconfirm/src/main.vue +28 -28
  335. package/packages/popover/src/main.vue +6 -6
  336. package/packages/progress/src/progress.vue +174 -174
  337. package/packages/radio/src/radio-button.vue +64 -64
  338. package/packages/radio/src/radio-group.vue +88 -88
  339. package/packages/radio/src/radio.vue +74 -74
  340. package/packages/rate/src/main.vue +270 -270
  341. package/packages/row/src/row.js +3 -3
  342. package/packages/scrollbar/src/main.js +2 -2
  343. package/packages/scrollbar/src/util.js +1 -1
  344. package/packages/select/src/option-group.vue +46 -46
  345. package/packages/select/src/option.vue +122 -122
  346. package/packages/select/src/select-dropdown.vue +49 -49
  347. package/packages/select/src/select.vue +676 -676
  348. package/packages/skeleton/src/item.vue +12 -12
  349. package/packages/slider/src/button.vue +191 -191
  350. package/packages/slider/src/main.vue +314 -314
  351. package/packages/spinner/src/spinner.vue +16 -16
  352. package/packages/statistic/src/main.vue +5 -6
  353. package/packages/steps/src/step.vue +2 -2
  354. package/packages/steps/src/steps.vue +4 -4
  355. package/packages/subTitle/index.js +8 -0
  356. package/packages/subTitle/src/main.vue +33 -0
  357. package/packages/switch/src/component.vue +123 -123
  358. package/packages/tabDialog/index.js +23 -0
  359. package/packages/tabDialog/src/dialog/drag.js +63 -0
  360. package/packages/tabDialog/src/dialog/dragHeight.js +34 -0
  361. package/packages/tabDialog/src/dialog/dragWidth.js +30 -0
  362. package/packages/tabDialog/src/main.vue +277 -0
  363. package/packages/table/src/filter-panel.vue +128 -128
  364. package/packages/table/src/store/index.js +1 -1
  365. package/packages/table/src/table-body.js +2 -2
  366. package/packages/table/src/table-column.js +1 -1
  367. package/packages/table/src/table-header.js +1 -1
  368. package/packages/table/src/table-layout.js +1 -1
  369. package/packages/table/src/table.vue +416 -416
  370. package/packages/tabs/src/tab-bar.vue +43 -43
  371. package/packages/tabs/src/tab-nav.vue +250 -250
  372. package/packages/tabs/src/tab-pane.vue +34 -34
  373. package/packages/tabs/src/tabs.vue +165 -165
  374. package/packages/tag/src/tag.vue +52 -52
  375. package/packages/theme-cy/lib/element.css +1 -0
  376. package/packages/theme-cy/lib/fileUpload.css +1 -0
  377. package/packages/theme-cy/lib/index.css +1 -1
  378. package/packages/theme-cy/lib/subTitle.css +1 -0
  379. package/packages/theme-cy/lib/tabDialog.css +1 -0
  380. package/packages/theme-cy/lib/treeselect.css +1 -1
  381. package/packages/theme-cy/src/element.scss +45 -0
  382. package/packages/theme-cy/src/fileUpload.scss +30 -0
  383. package/packages/theme-cy/src/index.scss +4 -0
  384. package/packages/theme-cy/src/subTitle.scss +26 -0
  385. package/packages/theme-cy/src/tabDialog.scss +43 -0
  386. package/packages/theme-cy/src/treeselect.scss +20 -14
  387. package/packages/timeline/src/item.vue +24 -24
  388. package/packages/timeline/src/main.vue +27 -27
  389. package/packages/tooltip/src/main.js +1 -1
  390. package/packages/transfer/src/main.vue +169 -169
  391. package/packages/transfer/src/transfer-panel.vue +164 -164
  392. package/packages/tree/src/tree-node.vue +169 -169
  393. package/packages/tree/src/tree.vue +408 -408
  394. package/packages/treeSelect/index.js +8 -0
  395. package/packages/{treeselect → treeSelect}/src/main.vue +19 -19
  396. package/packages/upload/src/ajax.js +3 -3
  397. package/packages/upload/src/upload-dragger.vue +50 -50
  398. package/packages/upload/src/upload-list.vue +33 -33
  399. package/packages/upload/src/upload.vue +1 -1
  400. package/src/index.js +13 -5
  401. package/src/locale/format.js +0 -1
  402. package/src/mixins/migrating.js +2 -2
  403. package/src/utils/date.js +2 -368
  404. package/src/utils/date_source.js +368 -0
  405. package/src/utils/lodash.js +9 -18075
  406. package/src/utils/lodash_source.js +18075 -0
  407. package/src/utils/types.js +1 -1
  408. package/types/element-ui.d.ts +16 -3
  409. package/types/fileUpload.d.ts +5 -0
  410. package/types/subTitle.d.ts +5 -0
  411. package/types/tabDialog.d.ts +5 -0
  412. package/types/treeSelect.d.ts +5 -0
  413. package/lib/treeselect.js +0 -682
  414. package/packages/treeselect/index.js +0 -8
  415. package/types/treeselect.d.ts +0 -5
package/lib/menu.js CHANGED
@@ -82,12 +82,265 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 72);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 166);
86
86
  /******/ })
87
87
  /************************************************************************/
88
- /******/ ({
88
+ /******/ ([
89
+ /* 0 */
90
+ /***/ (function(module, exports) {
91
+
92
+ module.exports = require("vue");
89
93
 
90
- /***/ 0:
94
+ /***/ }),
95
+ /* 1 */
96
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
97
+
98
+ "use strict";
99
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return on; });
100
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return off; });
101
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return once; });
102
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return hasClass; });
103
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addClass; });
104
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return removeClass; });
105
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getStyle; });
106
+ /* unused harmony export setStyle */
107
+ /* unused harmony export isScroll */
108
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getScrollContainer; });
109
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isInContainer; });
110
+ /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18);
111
+ /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0__);
112
+ /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53);
113
+ /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_1__);
114
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
115
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__);
116
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
117
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
118
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
119
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__);
120
+ /* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(16);
121
+ /* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_5__);
122
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(12);
123
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6__);
124
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(0);
125
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_7__);
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+ /* istanbul ignore next */
134
+
135
+
136
+ var isServer = vue__WEBPACK_IMPORTED_MODULE_7___default.a.prototype.$isServer;
137
+ var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
138
+ var MOZ_HACK_REGEXP = /^moz([A-Z])/;
139
+ var ieVersion = isServer ? 0 : Number(document.documentMode);
140
+
141
+ /* istanbul ignore next */
142
+ var trim = function trim(string) {
143
+ return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
144
+ };
145
+ /* istanbul ignore next */
146
+ var camelCase = function camelCase(name) {
147
+ return name.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
148
+ return offset ? letter.toUpperCase() : letter;
149
+ }).replace(MOZ_HACK_REGEXP, 'Moz$1');
150
+ };
151
+
152
+ /* istanbul ignore next */
153
+ var on = function () {
154
+ if (!isServer && document.addEventListener) {
155
+ return function (element, event, handler) {
156
+ if (element && event && handler) {
157
+ element.addEventListener(event, handler, false);
158
+ }
159
+ };
160
+ } else {
161
+ return function (element, event, handler) {
162
+ if (element && event && handler) {
163
+ element.attachEvent('on' + event, handler);
164
+ }
165
+ };
166
+ }
167
+ }();
168
+
169
+ /* istanbul ignore next */
170
+ var off = function () {
171
+ if (!isServer && document.removeEventListener) {
172
+ return function (element, event, handler) {
173
+ if (element && event) {
174
+ element.removeEventListener(event, handler, false);
175
+ }
176
+ };
177
+ } else {
178
+ return function (element, event, handler) {
179
+ if (element && event) {
180
+ element.detachEvent('on' + event, handler);
181
+ }
182
+ };
183
+ }
184
+ }();
185
+
186
+ /* istanbul ignore next */
187
+ var once = function once(el, event, fn) {
188
+ var _listener = function listener() {
189
+ if (fn) {
190
+ fn.apply(this, arguments);
191
+ }
192
+ off(el, event, _listener);
193
+ };
194
+ on(el, event, _listener);
195
+ };
196
+
197
+ /* istanbul ignore next */
198
+ function hasClass(el, cls) {
199
+ if (!el || !cls) return false;
200
+ if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
201
+ if (el.classList) {
202
+ return el.classList.contains(cls);
203
+ } else {
204
+ return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
205
+ }
206
+ }
207
+ ;
208
+
209
+ /* istanbul ignore next */
210
+ function addClass(el, cls) {
211
+ if (!el) return;
212
+ var curClass = el.className;
213
+ var classes = (cls || '').split(' ');
214
+ for (var i = 0, j = classes.length; i < j; i++) {
215
+ var clsName = classes[i];
216
+ if (!clsName) continue;
217
+ if (el.classList) {
218
+ el.classList.add(clsName);
219
+ } else if (!hasClass(el, clsName)) {
220
+ curClass += ' ' + clsName;
221
+ }
222
+ }
223
+ if (!el.classList) {
224
+ el.setAttribute('class', curClass);
225
+ }
226
+ }
227
+ ;
228
+
229
+ /* istanbul ignore next */
230
+ function removeClass(el, cls) {
231
+ if (!el || !cls) return;
232
+ var classes = cls.split(' ');
233
+ var curClass = ' ' + el.className + ' ';
234
+ for (var i = 0, j = classes.length; i < j; i++) {
235
+ var clsName = classes[i];
236
+ if (!clsName) continue;
237
+ if (el.classList) {
238
+ el.classList.remove(clsName);
239
+ } else if (hasClass(el, clsName)) {
240
+ curClass = curClass.replace(' ' + clsName + ' ', ' ');
241
+ }
242
+ }
243
+ if (!el.classList) {
244
+ el.setAttribute('class', trim(curClass));
245
+ }
246
+ }
247
+ ;
248
+
249
+ /* istanbul ignore next */
250
+ var getStyle = ieVersion < 9 ? function (element, styleName) {
251
+ if (isServer) return;
252
+ if (!element || !styleName) return null;
253
+ styleName = camelCase(styleName);
254
+ if (styleName === 'float') {
255
+ styleName = 'styleFloat';
256
+ }
257
+ try {
258
+ switch (styleName) {
259
+ case 'opacity':
260
+ try {
261
+ return element.filters.item('alpha').opacity / 100;
262
+ } catch (e) {
263
+ return 1.0;
264
+ }
265
+ default:
266
+ return element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null;
267
+ }
268
+ } catch (e) {
269
+ return element.style[styleName];
270
+ }
271
+ } : function (element, styleName) {
272
+ if (isServer) return;
273
+ if (!element || !styleName) return null;
274
+ styleName = camelCase(styleName);
275
+ if (styleName === 'float') {
276
+ styleName = 'cssFloat';
277
+ }
278
+ try {
279
+ var computed = document.defaultView.getComputedStyle(element, '');
280
+ return element.style[styleName] || computed ? computed[styleName] : null;
281
+ } catch (e) {
282
+ return element.style[styleName];
283
+ }
284
+ };
285
+
286
+ /* istanbul ignore next */
287
+ function setStyle(element, styleName, value) {
288
+ if (!element || !styleName) return;
289
+ if (typeof styleName === 'object') {
290
+ for (var prop in styleName) {
291
+ if (styleName.hasOwnProperty(prop)) {
292
+ setStyle(element, prop, styleName[prop]);
293
+ }
294
+ }
295
+ } else {
296
+ styleName = camelCase(styleName);
297
+ if (styleName === 'opacity' && ieVersion < 9) {
298
+ element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
299
+ } else {
300
+ element.style[styleName] = value;
301
+ }
302
+ }
303
+ }
304
+ ;
305
+ var isScroll = function isScroll(el, vertical) {
306
+ if (isServer) return;
307
+ var determinedDirection = vertical !== null && vertical !== undefined;
308
+ var overflow = determinedDirection ? vertical ? getStyle(el, 'overflow-y') : getStyle(el, 'overflow-x') : getStyle(el, 'overflow');
309
+ return overflow.match(/(scroll|auto|overlay)/);
310
+ };
311
+ var getScrollContainer = function getScrollContainer(el, vertical) {
312
+ if (isServer) return;
313
+ var parent = el;
314
+ while (parent) {
315
+ if ([window, document, document.documentElement].includes(parent)) {
316
+ return window;
317
+ }
318
+ if (isScroll(parent, vertical)) {
319
+ return parent;
320
+ }
321
+ parent = parent.parentNode;
322
+ }
323
+ return parent;
324
+ };
325
+ var isInContainer = function isInContainer(el, container) {
326
+ if (isServer || !el || !container) return false;
327
+ var elRect = el.getBoundingClientRect();
328
+ var containerRect;
329
+ if ([window, document, document.documentElement, null, undefined].includes(container)) {
330
+ containerRect = {
331
+ top: 0,
332
+ right: window.innerWidth,
333
+ bottom: window.innerHeight,
334
+ left: 0
335
+ };
336
+ } else {
337
+ containerRect = container.getBoundingClientRect();
338
+ }
339
+ return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;
340
+ };
341
+
342
+ /***/ }),
343
+ /* 2 */
91
344
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
345
 
93
346
  "use strict";
@@ -191,46 +444,845 @@ function normalizeComponent(
191
444
 
192
445
 
193
446
  /***/ }),
447
+ /* 3 */
448
+ /***/ (function(module, exports) {
449
+
450
+ module.exports = require("core-js/modules/es.object.to-string.js");
451
+
452
+ /***/ }),
453
+ /* 4 */
454
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
455
+
456
+ "use strict";
457
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return noop; });
458
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hasOwn; });
459
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return toObject; });
460
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getValueByPath; });
461
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getPropByPath; });
462
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return generateId; });
463
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return valueEquals; });
464
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return escapeRegexpString; });
465
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; });
466
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; });
467
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return coerceTruthyValueToArray; });
468
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return isIE; });
469
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return isEdge; });
470
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return isFirefox; });
471
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return autoprefixer; });
472
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return kebabCase; });
473
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return capitalize; });
474
+ /* unused harmony export looseEqual */
475
+ /* unused harmony export arrayEquals */
476
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return isEqual; });
477
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return isEmpty; });
478
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return rafThrottle; });
479
+ /* unused harmony export objToArray */
480
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return isMac; });
481
+ /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13);
482
+ /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_0__);
483
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
484
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
485
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17);
486
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_2__);
487
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
488
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
489
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
490
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__);
491
+ /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(11);
492
+ /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_5__);
493
+ /* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(16);
494
+ /* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_6__);
495
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(12);
496
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__);
497
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(0);
498
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_8__);
499
+ /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(8);
500
+
501
+
502
+
503
+
504
+
505
+
506
+
507
+
508
+
509
+
510
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
511
+ function noop() {}
512
+ ;
513
+ function hasOwn(obj, key) {
514
+ return hasOwnProperty.call(obj, key);
515
+ }
516
+ ;
517
+ function extend(to, _from) {
518
+ for (var key in _from) {
519
+ to[key] = _from[key];
520
+ }
521
+ return to;
522
+ }
523
+ ;
524
+ function toObject(arr) {
525
+ var res = {};
526
+ for (var i = 0; i < arr.length; i++) {
527
+ if (arr[i]) {
528
+ extend(res, arr[i]);
529
+ }
530
+ }
531
+ return res;
532
+ }
533
+ ;
534
+ var getValueByPath = function getValueByPath(object, prop) {
535
+ prop = prop || '';
536
+ var paths = prop.split('.');
537
+ var current = object;
538
+ var result = null;
539
+ for (var i = 0, j = paths.length; i < j; i++) {
540
+ var path = paths[i];
541
+ if (!current) break;
542
+ if (i === j - 1) {
543
+ result = current[path];
544
+ break;
545
+ }
546
+ current = current[path];
547
+ }
548
+ return result;
549
+ };
550
+ function getPropByPath(obj, path, strict) {
551
+ var tempObj = obj;
552
+ path = path.replace(/\[(\w+)\]/g, '.$1');
553
+ path = path.replace(/^\./, '');
554
+ var keyArr = path.split('.');
555
+ var i = 0;
556
+ for (var len = keyArr.length; i < len - 1; ++i) {
557
+ if (!tempObj && !strict) break;
558
+ var key = keyArr[i];
559
+ if (key in tempObj) {
560
+ tempObj = tempObj[key];
561
+ } else {
562
+ if (strict) {
563
+ throw new Error('please transfer a valid prop path to form item!');
564
+ }
565
+ break;
566
+ }
567
+ }
568
+ return {
569
+ o: tempObj,
570
+ k: keyArr[i],
571
+ v: tempObj ? tempObj[keyArr[i]] : null
572
+ };
573
+ }
574
+ ;
575
+ var generateId = function generateId() {
576
+ return Math.floor(Math.random() * 10000);
577
+ };
578
+ var valueEquals = function valueEquals(a, b) {
579
+ // see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
580
+ if (a === b) return true;
581
+ if (!(a instanceof Array)) return false;
582
+ if (!(b instanceof Array)) return false;
583
+ if (a.length !== b.length) return false;
584
+ for (var i = 0; i !== a.length; ++i) {
585
+ if (a[i] !== b[i]) return false;
586
+ }
587
+ return true;
588
+ };
589
+ var escapeRegexpString = function escapeRegexpString(value) {
590
+ if (value === void 0) {
591
+ value = '';
592
+ }
593
+ return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
594
+ };
194
595
 
195
- /***/ 11:
596
+ // TODO: use native Array.find, Array.findIndex when IE support is dropped
597
+ var arrayFindIndex = function arrayFindIndex(arr, pred) {
598
+ for (var i = 0; i !== arr.length; ++i) {
599
+ if (pred(arr[i])) {
600
+ return i;
601
+ }
602
+ }
603
+ return -1;
604
+ };
605
+ var arrayFind = function arrayFind(arr, pred) {
606
+ var idx = arrayFindIndex(arr, pred);
607
+ return idx !== -1 ? arr[idx] : undefined;
608
+ };
609
+
610
+ // coerce truthy value to array
611
+ var coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
612
+ if (Array.isArray(val)) {
613
+ return val;
614
+ } else if (val) {
615
+ return [val];
616
+ } else {
617
+ return [];
618
+ }
619
+ };
620
+ var isIE = function isIE() {
621
+ return !vue__WEBPACK_IMPORTED_MODULE_8___default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
622
+ };
623
+ var isEdge = function isEdge() {
624
+ return !vue__WEBPACK_IMPORTED_MODULE_8___default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
625
+ };
626
+ var isFirefox = function isFirefox() {
627
+ return !vue__WEBPACK_IMPORTED_MODULE_8___default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
628
+ };
629
+ var autoprefixer = function autoprefixer(style) {
630
+ if (typeof style !== 'object') return style;
631
+ var rules = ['transform', 'transition', 'animation'];
632
+ var prefixes = ['ms-', 'webkit-'];
633
+ rules.forEach(function (rule) {
634
+ var value = style[rule];
635
+ if (rule && value) {
636
+ prefixes.forEach(function (prefix) {
637
+ style[prefix + rule] = value;
638
+ });
639
+ }
640
+ });
641
+ return style;
642
+ };
643
+ var kebabCase = function kebabCase(str) {
644
+ var hyphenateRE = /([^-])([A-Z])/g;
645
+ return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
646
+ };
647
+ var capitalize = function capitalize(str) {
648
+ if (!Object(_types__WEBPACK_IMPORTED_MODULE_9__[/* isString */ "e"])(str)) return str;
649
+ return str.charAt(0).toUpperCase() + str.slice(1);
650
+ };
651
+ var looseEqual = function looseEqual(a, b) {
652
+ var isObjectA = Object(_types__WEBPACK_IMPORTED_MODULE_9__[/* isObject */ "d"])(a);
653
+ var isObjectB = Object(_types__WEBPACK_IMPORTED_MODULE_9__[/* isObject */ "d"])(b);
654
+ if (isObjectA && isObjectB) {
655
+ return JSON.stringify(a) === JSON.stringify(b);
656
+ } else if (!isObjectA && !isObjectB) {
657
+ return String(a) === String(b);
658
+ } else {
659
+ return false;
660
+ }
661
+ };
662
+ var arrayEquals = function arrayEquals(arrayA, arrayB) {
663
+ arrayA = arrayA || [];
664
+ arrayB = arrayB || [];
665
+ if (arrayA.length !== arrayB.length) {
666
+ return false;
667
+ }
668
+ for (var i = 0; i < arrayA.length; i++) {
669
+ if (!looseEqual(arrayA[i], arrayB[i])) {
670
+ return false;
671
+ }
672
+ }
673
+ return true;
674
+ };
675
+ var isEqual = function isEqual(value1, value2) {
676
+ if (Array.isArray(value1) && Array.isArray(value2)) {
677
+ return arrayEquals(value1, value2);
678
+ }
679
+ return looseEqual(value1, value2);
680
+ };
681
+ var isEmpty = function isEmpty(val) {
682
+ // null or undefined
683
+ if (val == null) return true;
684
+ if (typeof val === 'boolean') return false;
685
+ if (typeof val === 'number') return !val;
686
+ if (val instanceof Error) return val.message === '';
687
+ switch (Object.prototype.toString.call(val)) {
688
+ // String or Array
689
+ case '[object String]':
690
+ case '[object Array]':
691
+ return !val.length;
692
+
693
+ // Map or Set or File
694
+ case '[object File]':
695
+ case '[object Map]':
696
+ case '[object Set]':
697
+ {
698
+ return !val.size;
699
+ }
700
+ // Plain Object
701
+ case '[object Object]':
702
+ {
703
+ return !Object.keys(val).length;
704
+ }
705
+ }
706
+ return false;
707
+ };
708
+ function rafThrottle(fn) {
709
+ var locked = false;
710
+ return function () {
711
+ var _this = this;
712
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
713
+ args[_key] = arguments[_key];
714
+ }
715
+ if (locked) return;
716
+ locked = true;
717
+ window.requestAnimationFrame(function (_) {
718
+ fn.apply(_this, args);
719
+ locked = false;
720
+ });
721
+ };
722
+ }
723
+ function objToArray(obj) {
724
+ if (Array.isArray(obj)) {
725
+ return obj;
726
+ }
727
+ return isEmpty(obj) ? [] : [obj];
728
+ }
729
+ var isMac = function isMac() {
730
+ return !vue__WEBPACK_IMPORTED_MODULE_8___default.a.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);
731
+ };
732
+
733
+ /***/ }),
734
+ /* 5 */
735
+ /***/ (function(module, exports) {
736
+
737
+ module.exports = require("core-js/modules/es.function.name.js");
738
+
739
+ /***/ }),
740
+ /* 6 */
196
741
  /***/ (function(module, exports) {
197
742
 
198
- module.exports = require("element-ui/lib/mixins/migrating");
743
+ module.exports = require("core-js/modules/es.number.constructor.js");
199
744
 
200
745
  /***/ }),
746
+ /* 7 */
747
+ /***/ (function(module, exports) {
748
+
749
+ module.exports = require("core-js/modules/es.regexp.exec.js");
750
+
751
+ /***/ }),
752
+ /* 8 */
753
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
754
+
755
+ "use strict";
756
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
757
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
758
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
759
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
760
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
761
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
762
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19);
763
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__);
764
+ /* harmony import */ var core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(25);
765
+ /* harmony import */ var core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
766
+ /* harmony import */ var core_js_modules_es_array_buffer_slice_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26);
767
+ /* harmony import */ var core_js_modules_es_array_buffer_slice_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_buffer_slice_js__WEBPACK_IMPORTED_MODULE_2__);
768
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
769
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
770
+ /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(11);
771
+ /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4__);
772
+ /* harmony import */ var core_js_modules_es_typed_array_int8_array_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(27);
773
+ /* harmony import */ var core_js_modules_es_typed_array_int8_array_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_int8_array_js__WEBPACK_IMPORTED_MODULE_5__);
774
+ /* harmony import */ var core_js_modules_es_typed_array_copy_within_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(28);
775
+ /* harmony import */ var core_js_modules_es_typed_array_copy_within_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_copy_within_js__WEBPACK_IMPORTED_MODULE_6__);
776
+ /* harmony import */ var core_js_modules_es_typed_array_every_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(29);
777
+ /* harmony import */ var core_js_modules_es_typed_array_every_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_every_js__WEBPACK_IMPORTED_MODULE_7__);
778
+ /* harmony import */ var core_js_modules_es_typed_array_fill_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(30);
779
+ /* harmony import */ var core_js_modules_es_typed_array_fill_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_fill_js__WEBPACK_IMPORTED_MODULE_8__);
780
+ /* harmony import */ var core_js_modules_es_typed_array_filter_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(31);
781
+ /* harmony import */ var core_js_modules_es_typed_array_filter_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_filter_js__WEBPACK_IMPORTED_MODULE_9__);
782
+ /* harmony import */ var core_js_modules_es_typed_array_find_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(32);
783
+ /* harmony import */ var core_js_modules_es_typed_array_find_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_find_js__WEBPACK_IMPORTED_MODULE_10__);
784
+ /* harmony import */ var core_js_modules_es_typed_array_find_index_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(33);
785
+ /* harmony import */ var core_js_modules_es_typed_array_find_index_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_find_index_js__WEBPACK_IMPORTED_MODULE_11__);
786
+ /* harmony import */ var core_js_modules_es_typed_array_for_each_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(34);
787
+ /* harmony import */ var core_js_modules_es_typed_array_for_each_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_for_each_js__WEBPACK_IMPORTED_MODULE_12__);
788
+ /* harmony import */ var core_js_modules_es_typed_array_includes_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(35);
789
+ /* harmony import */ var core_js_modules_es_typed_array_includes_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_includes_js__WEBPACK_IMPORTED_MODULE_13__);
790
+ /* harmony import */ var core_js_modules_es_typed_array_index_of_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(36);
791
+ /* harmony import */ var core_js_modules_es_typed_array_index_of_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_index_of_js__WEBPACK_IMPORTED_MODULE_14__);
792
+ /* harmony import */ var core_js_modules_es_typed_array_iterator_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(37);
793
+ /* harmony import */ var core_js_modules_es_typed_array_iterator_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_iterator_js__WEBPACK_IMPORTED_MODULE_15__);
794
+ /* harmony import */ var core_js_modules_es_typed_array_join_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(38);
795
+ /* harmony import */ var core_js_modules_es_typed_array_join_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_join_js__WEBPACK_IMPORTED_MODULE_16__);
796
+ /* harmony import */ var core_js_modules_es_typed_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(39);
797
+ /* harmony import */ var core_js_modules_es_typed_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_17__);
798
+ /* harmony import */ var core_js_modules_es_typed_array_map_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(40);
799
+ /* harmony import */ var core_js_modules_es_typed_array_map_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_map_js__WEBPACK_IMPORTED_MODULE_18__);
800
+ /* harmony import */ var core_js_modules_es_typed_array_reduce_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(41);
801
+ /* harmony import */ var core_js_modules_es_typed_array_reduce_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_reduce_js__WEBPACK_IMPORTED_MODULE_19__);
802
+ /* harmony import */ var core_js_modules_es_typed_array_reduce_right_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(42);
803
+ /* harmony import */ var core_js_modules_es_typed_array_reduce_right_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_reduce_right_js__WEBPACK_IMPORTED_MODULE_20__);
804
+ /* harmony import */ var core_js_modules_es_typed_array_reverse_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(43);
805
+ /* harmony import */ var core_js_modules_es_typed_array_reverse_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_reverse_js__WEBPACK_IMPORTED_MODULE_21__);
806
+ /* harmony import */ var core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(44);
807
+ /* harmony import */ var core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_22__);
808
+ /* harmony import */ var core_js_modules_es_typed_array_slice_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(45);
809
+ /* harmony import */ var core_js_modules_es_typed_array_slice_js__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_slice_js__WEBPACK_IMPORTED_MODULE_23__);
810
+ /* harmony import */ var core_js_modules_es_typed_array_some_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(46);
811
+ /* harmony import */ var core_js_modules_es_typed_array_some_js__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_some_js__WEBPACK_IMPORTED_MODULE_24__);
812
+ /* harmony import */ var core_js_modules_es_typed_array_sort_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(47);
813
+ /* harmony import */ var core_js_modules_es_typed_array_sort_js__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_sort_js__WEBPACK_IMPORTED_MODULE_25__);
814
+ /* harmony import */ var core_js_modules_es_typed_array_subarray_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(48);
815
+ /* harmony import */ var core_js_modules_es_typed_array_subarray_js__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_subarray_js__WEBPACK_IMPORTED_MODULE_26__);
816
+ /* harmony import */ var core_js_modules_es_typed_array_to_locale_string_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(49);
817
+ /* harmony import */ var core_js_modules_es_typed_array_to_locale_string_js__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_to_locale_string_js__WEBPACK_IMPORTED_MODULE_27__);
818
+ /* harmony import */ var core_js_modules_es_typed_array_to_string_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(50);
819
+ /* harmony import */ var core_js_modules_es_typed_array_to_string_js__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_to_string_js__WEBPACK_IMPORTED_MODULE_28__);
820
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(0);
821
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_29__);
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
+
201
849
 
202
- /***/ 2:
850
+
851
+
852
+ function isString(obj) {
853
+ return Object.prototype.toString.call(obj) === '[object String]';
854
+ }
855
+ function isObject(obj) {
856
+ return Object.prototype.toString.call(obj) === '[object Object]';
857
+ }
858
+ function isHtmlElement(node) {
859
+ return node && node.nodeType === Node.ELEMENT_NODE;
860
+ }
861
+
862
+ /**
863
+ * - Inspired:
864
+ * https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
865
+ */
866
+ var isFunction = function isFunction(functionToCheck) {
867
+ var getType = {};
868
+ return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
869
+ };
870
+ if ( true && typeof Int8Array !== 'object' && (vue__WEBPACK_IMPORTED_MODULE_29___default.a.prototype.$isServer || typeof document.childNodes !== 'function')) {
871
+ isFunction = function isFunction(obj) {
872
+ return typeof obj === 'function' || false;
873
+ };
874
+ }
875
+
876
+ var isUndefined = function isUndefined(val) {
877
+ return val === void 0;
878
+ };
879
+ var isDefined = function isDefined(val) {
880
+ return val !== undefined && val !== null;
881
+ };
882
+
883
+ /***/ }),
884
+ /* 9 */,
885
+ /* 10 */
203
886
  /***/ (function(module, exports) {
204
887
 
205
- module.exports = require("element-ui/lib/utils/dom");
888
+ module.exports = require("core-js/modules/web.dom-collections.for-each.js");
206
889
 
207
890
  /***/ }),
891
+ /* 11 */
892
+ /***/ (function(module, exports) {
893
+
894
+ module.exports = require("core-js/modules/es.regexp.to-string.js");
208
895
 
209
- /***/ 4:
896
+ /***/ }),
897
+ /* 12 */
210
898
  /***/ (function(module, exports) {
211
899
 
212
- module.exports = require("element-ui/lib/mixins/emitter");
900
+ module.exports = require("core-js/modules/es.string.replace.js");
213
901
 
214
902
  /***/ }),
903
+ /* 13 */
904
+ /***/ (function(module, exports) {
215
905
 
216
- /***/ 72:
906
+ module.exports = require("core-js/modules/es.array.slice.js");
907
+
908
+ /***/ }),
909
+ /* 14 */
217
910
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
218
911
 
219
912
  "use strict";
220
- // ESM COMPAT FLAG
221
- __webpack_require__.r(__webpack_exports__);
913
+ /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21);
914
+ /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__);
915
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
916
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__);
917
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10);
918
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2__);
222
919
 
223
- // EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
224
- var emitter_ = __webpack_require__(4);
225
- var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
226
920
 
227
- // EXTERNAL MODULE: external "element-ui/lib/mixins/migrating"
228
- var migrating_ = __webpack_require__(11);
229
- var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
230
921
 
231
- // CONCATENATED MODULE: ./src/utils/aria-utils.js
232
- var aria = aria || {};
922
+ function _broadcast(componentName, eventName, params) {
923
+ this.$children.forEach(function (child) {
924
+ var name = child.$options.componentName;
925
+ if (name === componentName) {
926
+ child.$emit.apply(child, [eventName].concat(params));
927
+ } else {
928
+ _broadcast.apply(child, [componentName, eventName].concat([params]));
929
+ }
930
+ });
931
+ }
932
+ /* harmony default export */ __webpack_exports__["a"] = ({
933
+ methods: {
934
+ dispatch: function dispatch(componentName, eventName, params) {
935
+ var parent = this.$parent || this.$root;
936
+ var name = parent.$options.componentName;
937
+ while (parent && (!name || name !== componentName)) {
938
+ parent = parent.$parent;
939
+ if (parent) {
940
+ name = parent.$options.componentName;
941
+ }
942
+ }
943
+ if (parent) {
944
+ parent.$emit.apply(parent, [eventName].concat(params));
945
+ }
946
+ },
947
+ broadcast: function broadcast(componentName, eventName, params) {
948
+ _broadcast.call(this, componentName, eventName, params);
949
+ }
950
+ }
951
+ });
952
+
953
+ /***/ }),
954
+ /* 15 */,
955
+ /* 16 */
956
+ /***/ (function(module, exports) {
957
+
958
+ module.exports = require("core-js/modules/es.string.match.js");
959
+
960
+ /***/ }),
961
+ /* 17 */
962
+ /***/ (function(module, exports) {
963
+
964
+ module.exports = require("core-js/modules/es.object.keys.js");
965
+
966
+ /***/ }),
967
+ /* 18 */
968
+ /***/ (function(module, exports) {
233
969
 
970
+ module.exports = require("core-js/modules/es.array.filter.js");
971
+
972
+ /***/ }),
973
+ /* 19 */
974
+ /***/ (function(module, exports) {
975
+
976
+ module.exports = require("core-js/modules/es.array.iterator.js");
977
+
978
+ /***/ }),
979
+ /* 20 */,
980
+ /* 21 */
981
+ /***/ (function(module, exports) {
982
+
983
+ module.exports = require("core-js/modules/es.array.concat.js");
984
+
985
+ /***/ }),
986
+ /* 22 */
987
+ /***/ (function(module, exports) {
988
+
989
+ module.exports = require("core-js/modules/es.array.splice.js");
990
+
991
+ /***/ }),
992
+ /* 23 */,
993
+ /* 24 */,
994
+ /* 25 */
995
+ /***/ (function(module, exports) {
996
+
997
+ module.exports = require("core-js/modules/es.array-buffer.constructor.js");
998
+
999
+ /***/ }),
1000
+ /* 26 */
1001
+ /***/ (function(module, exports) {
1002
+
1003
+ module.exports = require("core-js/modules/es.array-buffer.slice.js");
1004
+
1005
+ /***/ }),
1006
+ /* 27 */
1007
+ /***/ (function(module, exports) {
1008
+
1009
+ module.exports = require("core-js/modules/es.typed-array.int8-array.js");
1010
+
1011
+ /***/ }),
1012
+ /* 28 */
1013
+ /***/ (function(module, exports) {
1014
+
1015
+ module.exports = require("core-js/modules/es.typed-array.copy-within.js");
1016
+
1017
+ /***/ }),
1018
+ /* 29 */
1019
+ /***/ (function(module, exports) {
1020
+
1021
+ module.exports = require("core-js/modules/es.typed-array.every.js");
1022
+
1023
+ /***/ }),
1024
+ /* 30 */
1025
+ /***/ (function(module, exports) {
1026
+
1027
+ module.exports = require("core-js/modules/es.typed-array.fill.js");
1028
+
1029
+ /***/ }),
1030
+ /* 31 */
1031
+ /***/ (function(module, exports) {
1032
+
1033
+ module.exports = require("core-js/modules/es.typed-array.filter.js");
1034
+
1035
+ /***/ }),
1036
+ /* 32 */
1037
+ /***/ (function(module, exports) {
1038
+
1039
+ module.exports = require("core-js/modules/es.typed-array.find.js");
1040
+
1041
+ /***/ }),
1042
+ /* 33 */
1043
+ /***/ (function(module, exports) {
1044
+
1045
+ module.exports = require("core-js/modules/es.typed-array.find-index.js");
1046
+
1047
+ /***/ }),
1048
+ /* 34 */
1049
+ /***/ (function(module, exports) {
1050
+
1051
+ module.exports = require("core-js/modules/es.typed-array.for-each.js");
1052
+
1053
+ /***/ }),
1054
+ /* 35 */
1055
+ /***/ (function(module, exports) {
1056
+
1057
+ module.exports = require("core-js/modules/es.typed-array.includes.js");
1058
+
1059
+ /***/ }),
1060
+ /* 36 */
1061
+ /***/ (function(module, exports) {
1062
+
1063
+ module.exports = require("core-js/modules/es.typed-array.index-of.js");
1064
+
1065
+ /***/ }),
1066
+ /* 37 */
1067
+ /***/ (function(module, exports) {
1068
+
1069
+ module.exports = require("core-js/modules/es.typed-array.iterator.js");
1070
+
1071
+ /***/ }),
1072
+ /* 38 */
1073
+ /***/ (function(module, exports) {
1074
+
1075
+ module.exports = require("core-js/modules/es.typed-array.join.js");
1076
+
1077
+ /***/ }),
1078
+ /* 39 */
1079
+ /***/ (function(module, exports) {
1080
+
1081
+ module.exports = require("core-js/modules/es.typed-array.last-index-of.js");
1082
+
1083
+ /***/ }),
1084
+ /* 40 */
1085
+ /***/ (function(module, exports) {
1086
+
1087
+ module.exports = require("core-js/modules/es.typed-array.map.js");
1088
+
1089
+ /***/ }),
1090
+ /* 41 */
1091
+ /***/ (function(module, exports) {
1092
+
1093
+ module.exports = require("core-js/modules/es.typed-array.reduce.js");
1094
+
1095
+ /***/ }),
1096
+ /* 42 */
1097
+ /***/ (function(module, exports) {
1098
+
1099
+ module.exports = require("core-js/modules/es.typed-array.reduce-right.js");
1100
+
1101
+ /***/ }),
1102
+ /* 43 */
1103
+ /***/ (function(module, exports) {
1104
+
1105
+ module.exports = require("core-js/modules/es.typed-array.reverse.js");
1106
+
1107
+ /***/ }),
1108
+ /* 44 */
1109
+ /***/ (function(module, exports) {
1110
+
1111
+ module.exports = require("core-js/modules/es.typed-array.set.js");
1112
+
1113
+ /***/ }),
1114
+ /* 45 */
1115
+ /***/ (function(module, exports) {
1116
+
1117
+ module.exports = require("core-js/modules/es.typed-array.slice.js");
1118
+
1119
+ /***/ }),
1120
+ /* 46 */
1121
+ /***/ (function(module, exports) {
1122
+
1123
+ module.exports = require("core-js/modules/es.typed-array.some.js");
1124
+
1125
+ /***/ }),
1126
+ /* 47 */
1127
+ /***/ (function(module, exports) {
1128
+
1129
+ module.exports = require("core-js/modules/es.typed-array.sort.js");
1130
+
1131
+ /***/ }),
1132
+ /* 48 */
1133
+ /***/ (function(module, exports) {
1134
+
1135
+ module.exports = require("core-js/modules/es.typed-array.subarray.js");
1136
+
1137
+ /***/ }),
1138
+ /* 49 */
1139
+ /***/ (function(module, exports) {
1140
+
1141
+ module.exports = require("core-js/modules/es.typed-array.to-locale-string.js");
1142
+
1143
+ /***/ }),
1144
+ /* 50 */
1145
+ /***/ (function(module, exports) {
1146
+
1147
+ module.exports = require("core-js/modules/es.typed-array.to-string.js");
1148
+
1149
+ /***/ }),
1150
+ /* 51 */,
1151
+ /* 52 */,
1152
+ /* 53 */
1153
+ /***/ (function(module, exports) {
1154
+
1155
+ module.exports = require("core-js/modules/es.array.includes.js");
1156
+
1157
+ /***/ }),
1158
+ /* 54 */
1159
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1160
+
1161
+ "use strict";
1162
+ /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
1163
+ /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0__);
1164
+ /* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
1165
+
1166
+
1167
+ /**
1168
+ * Show migrating guide in browser console.
1169
+ *
1170
+ * Usage:
1171
+ * import Migrating from 'element-ui/src/mixins/migrating';
1172
+ *
1173
+ * mixins: [Migrating]
1174
+ *
1175
+ * add getMigratingConfig method for your component.
1176
+ * getMigratingConfig() {
1177
+ * return {
1178
+ * props: {
1179
+ * 'allow-no-selection': 'allow-no-selection is removed.',
1180
+ * 'selection-mode': 'selection-mode is removed.'
1181
+ * },
1182
+ * events: {
1183
+ * selectionchange: 'selectionchange is renamed to selection-change.'
1184
+ * }
1185
+ * };
1186
+ * },
1187
+ */
1188
+ /* harmony default export */ __webpack_exports__["a"] = ({
1189
+ mounted: function mounted() {
1190
+ if (true) return;
1191
+ if (!this.$vnode) return;
1192
+ var _this$getMigratingCon = this.getMigratingConfig(),
1193
+ _this$getMigratingCon2 = _this$getMigratingCon.props,
1194
+ props = _this$getMigratingCon2 === void 0 ? {} : _this$getMigratingCon2,
1195
+ _this$getMigratingCon3 = _this$getMigratingCon.events,
1196
+ events = _this$getMigratingCon3 === void 0 ? {} : _this$getMigratingCon3;
1197
+ var _this$$vnode = this.$vnode,
1198
+ data = _this$$vnode.data,
1199
+ componentOptions = _this$$vnode.componentOptions;
1200
+ var definedProps = data.attrs || {};
1201
+ var definedEvents = componentOptions.listeners || {};
1202
+ for (var propName in definedProps) {
1203
+ propName = Object(_utils_util__WEBPACK_IMPORTED_MODULE_1__[/* kebabCase */ "q"])(propName); // compatible with camel case
1204
+ if (props[propName]) {
1205
+ console.warn("[Element Migrating][" + this.$options.name + "][Attribute]: " + props[propName]);
1206
+ }
1207
+ }
1208
+ for (var eventName in definedEvents) {
1209
+ eventName = Object(_utils_util__WEBPACK_IMPORTED_MODULE_1__[/* kebabCase */ "q"])(eventName); // compatible with camel case
1210
+ if (events[eventName]) {
1211
+ console.warn("[Element Migrating][" + this.$options.name + "][Event]: " + events[eventName]);
1212
+ }
1213
+ }
1214
+ },
1215
+ methods: {
1216
+ getMigratingConfig: function getMigratingConfig() {
1217
+ return {
1218
+ props: {},
1219
+ events: {}
1220
+ };
1221
+ }
1222
+ }
1223
+ });
1224
+
1225
+ /***/ }),
1226
+ /* 55 */,
1227
+ /* 56 */,
1228
+ /* 57 */,
1229
+ /* 58 */,
1230
+ /* 59 */,
1231
+ /* 60 */,
1232
+ /* 61 */,
1233
+ /* 62 */,
1234
+ /* 63 */,
1235
+ /* 64 */
1236
+ /***/ (function(module, exports) {
1237
+
1238
+ module.exports = require("core-js/modules/es.array.join.js");
1239
+
1240
+ /***/ }),
1241
+ /* 65 */
1242
+ /***/ (function(module, exports) {
1243
+
1244
+ module.exports = require("core-js/modules/web.dom-collections.iterator.js");
1245
+
1246
+ /***/ }),
1247
+ /* 66 */,
1248
+ /* 67 */,
1249
+ /* 68 */,
1250
+ /* 69 */,
1251
+ /* 70 */,
1252
+ /* 71 */,
1253
+ /* 72 */,
1254
+ /* 73 */,
1255
+ /* 74 */,
1256
+ /* 75 */,
1257
+ /* 76 */,
1258
+ /* 77 */,
1259
+ /* 78 */,
1260
+ /* 79 */,
1261
+ /* 80 */,
1262
+ /* 81 */,
1263
+ /* 82 */,
1264
+ /* 83 */,
1265
+ /* 84 */,
1266
+ /* 85 */
1267
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1268
+
1269
+ "use strict";
1270
+ /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21);
1271
+ /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__);
1272
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19);
1273
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_1__);
1274
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
1275
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__);
1276
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7);
1277
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__);
1278
+ /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(65);
1279
+ /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4__);
1280
+
1281
+
1282
+
1283
+
1284
+
1285
+ var aria = aria || {};
234
1286
  aria.Utils = aria.Utils || {};
235
1287
 
236
1288
  /**
@@ -242,13 +1294,13 @@ aria.Utils = aria.Utils || {};
242
1294
  * true if a focusable element is found and focus is set.
243
1295
  */
244
1296
  aria.Utils.focusFirstDescendant = function (element) {
245
- for (var i = 0; i < element.childNodes.length; i++) {
246
- var child = element.childNodes[i];
247
- if (aria.Utils.attemptFocus(child) || aria.Utils.focusFirstDescendant(child)) {
248
- return true;
249
- }
250
- }
251
- return false;
1297
+ for (var i = 0; i < element.childNodes.length; i++) {
1298
+ var child = element.childNodes[i];
1299
+ if (aria.Utils.attemptFocus(child) || aria.Utils.focusFirstDescendant(child)) {
1300
+ return true;
1301
+ }
1302
+ }
1303
+ return false;
252
1304
  };
253
1305
 
254
1306
  /**
@@ -260,13 +1312,13 @@ aria.Utils.focusFirstDescendant = function (element) {
260
1312
  */
261
1313
 
262
1314
  aria.Utils.focusLastDescendant = function (element) {
263
- for (var i = element.childNodes.length - 1; i >= 0; i--) {
264
- var child = element.childNodes[i];
265
- if (aria.Utils.attemptFocus(child) || aria.Utils.focusLastDescendant(child)) {
266
- return true;
267
- }
268
- }
269
- return false;
1315
+ for (var i = element.childNodes.length - 1; i >= 0; i--) {
1316
+ var child = element.childNodes[i];
1317
+ if (aria.Utils.attemptFocus(child) || aria.Utils.focusLastDescendant(child)) {
1318
+ return true;
1319
+ }
1320
+ }
1321
+ return false;
270
1322
  };
271
1323
 
272
1324
  /**
@@ -277,38 +1329,35 @@ aria.Utils.focusLastDescendant = function (element) {
277
1329
  * true if element is focused.
278
1330
  */
279
1331
  aria.Utils.attemptFocus = function (element) {
280
- if (!aria.Utils.isFocusable(element)) {
281
- return false;
282
- }
283
- aria.Utils.IgnoreUtilFocusChanges = true;
284
- try {
285
- element.focus();
286
- } catch (e) {}
287
- aria.Utils.IgnoreUtilFocusChanges = false;
288
- return document.activeElement === element;
1332
+ if (!aria.Utils.isFocusable(element)) {
1333
+ return false;
1334
+ }
1335
+ aria.Utils.IgnoreUtilFocusChanges = true;
1336
+ try {
1337
+ element.focus();
1338
+ } catch (e) {}
1339
+ aria.Utils.IgnoreUtilFocusChanges = false;
1340
+ return document.activeElement === element;
289
1341
  };
290
-
291
1342
  aria.Utils.isFocusable = function (element) {
292
- if (element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute('tabIndex') !== null) {
293
- return true;
294
- }
295
-
296
- if (element.disabled) {
297
- return false;
298
- }
299
-
300
- switch (element.nodeName) {
301
- case 'A':
302
- return !!element.href && element.rel !== 'ignore';
303
- case 'INPUT':
304
- return element.type !== 'hidden' && element.type !== 'file';
305
- case 'BUTTON':
306
- case 'SELECT':
307
- case 'TEXTAREA':
308
- return true;
309
- default:
310
- return false;
311
- }
1343
+ if (element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute('tabIndex') !== null) {
1344
+ return true;
1345
+ }
1346
+ if (element.disabled) {
1347
+ return false;
1348
+ }
1349
+ switch (element.nodeName) {
1350
+ case 'A':
1351
+ return !!element.href && element.rel !== 'ignore';
1352
+ case 'INPUT':
1353
+ return element.type !== 'hidden' && element.type !== 'file';
1354
+ case 'BUTTON':
1355
+ case 'SELECT':
1356
+ case 'TEXTAREA':
1357
+ return true;
1358
+ default:
1359
+ return false;
1360
+ }
312
1361
  };
313
1362
 
314
1363
  /**
@@ -319,172 +1368,296 @@ aria.Utils.isFocusable = function (element) {
319
1368
  * @param {*} opts
320
1369
  */
321
1370
  aria.Utils.triggerEvent = function (elm, name) {
322
- var eventName = void 0;
1371
+ var eventName;
1372
+ if (/^mouse|click/.test(name)) {
1373
+ eventName = 'MouseEvents';
1374
+ } else if (/^key/.test(name)) {
1375
+ eventName = 'KeyboardEvent';
1376
+ } else {
1377
+ eventName = 'HTMLEvents';
1378
+ }
1379
+ var evt = document.createEvent(eventName);
1380
+ for (var _len = arguments.length, opts = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
1381
+ opts[_key - 2] = arguments[_key];
1382
+ }
1383
+ evt.initEvent.apply(evt, [name].concat(opts));
1384
+ elm.dispatchEvent ? elm.dispatchEvent(evt) : elm.fireEvent('on' + name, evt);
1385
+ return elm;
1386
+ };
1387
+ aria.Utils.keys = {
1388
+ tab: 9,
1389
+ enter: 13,
1390
+ space: 32,
1391
+ left: 37,
1392
+ up: 38,
1393
+ right: 39,
1394
+ down: 40,
1395
+ esc: 27
1396
+ };
1397
+ /* harmony default export */ __webpack_exports__["a"] = (aria.Utils);
323
1398
 
324
- if (/^mouse|click/.test(name)) {
325
- eventName = 'MouseEvents';
326
- } else if (/^key/.test(name)) {
327
- eventName = 'KeyboardEvent';
328
- } else {
329
- eventName = 'HTMLEvents';
330
- }
331
- var evt = document.createEvent(eventName);
1399
+ /***/ }),
1400
+ /* 86 */,
1401
+ /* 87 */,
1402
+ /* 88 */,
1403
+ /* 89 */,
1404
+ /* 90 */,
1405
+ /* 91 */,
1406
+ /* 92 */,
1407
+ /* 93 */,
1408
+ /* 94 */,
1409
+ /* 95 */,
1410
+ /* 96 */,
1411
+ /* 97 */,
1412
+ /* 98 */,
1413
+ /* 99 */,
1414
+ /* 100 */,
1415
+ /* 101 */,
1416
+ /* 102 */,
1417
+ /* 103 */,
1418
+ /* 104 */,
1419
+ /* 105 */,
1420
+ /* 106 */,
1421
+ /* 107 */,
1422
+ /* 108 */,
1423
+ /* 109 */,
1424
+ /* 110 */,
1425
+ /* 111 */,
1426
+ /* 112 */,
1427
+ /* 113 */,
1428
+ /* 114 */,
1429
+ /* 115 */,
1430
+ /* 116 */,
1431
+ /* 117 */,
1432
+ /* 118 */,
1433
+ /* 119 */,
1434
+ /* 120 */,
1435
+ /* 121 */,
1436
+ /* 122 */,
1437
+ /* 123 */,
1438
+ /* 124 */,
1439
+ /* 125 */,
1440
+ /* 126 */,
1441
+ /* 127 */,
1442
+ /* 128 */,
1443
+ /* 129 */,
1444
+ /* 130 */,
1445
+ /* 131 */,
1446
+ /* 132 */,
1447
+ /* 133 */,
1448
+ /* 134 */,
1449
+ /* 135 */,
1450
+ /* 136 */,
1451
+ /* 137 */,
1452
+ /* 138 */,
1453
+ /* 139 */,
1454
+ /* 140 */,
1455
+ /* 141 */,
1456
+ /* 142 */,
1457
+ /* 143 */,
1458
+ /* 144 */,
1459
+ /* 145 */,
1460
+ /* 146 */,
1461
+ /* 147 */,
1462
+ /* 148 */,
1463
+ /* 149 */,
1464
+ /* 150 */,
1465
+ /* 151 */,
1466
+ /* 152 */,
1467
+ /* 153 */,
1468
+ /* 154 */,
1469
+ /* 155 */,
1470
+ /* 156 */,
1471
+ /* 157 */,
1472
+ /* 158 */,
1473
+ /* 159 */,
1474
+ /* 160 */,
1475
+ /* 161 */,
1476
+ /* 162 */,
1477
+ /* 163 */,
1478
+ /* 164 */,
1479
+ /* 165 */,
1480
+ /* 166 */
1481
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
332
1482
 
333
- for (var _len = arguments.length, opts = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
334
- opts[_key - 2] = arguments[_key];
335
- }
1483
+ "use strict";
1484
+ // ESM COMPAT FLAG
1485
+ __webpack_require__.r(__webpack_exports__);
336
1486
 
337
- evt.initEvent.apply(evt, [name].concat(opts));
338
- elm.dispatchEvent ? elm.dispatchEvent(evt) : elm.fireEvent('on' + name, evt);
1487
+ // EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
1488
+ var es_function_name_js_ = __webpack_require__(5);
339
1489
 
340
- return elm;
341
- };
1490
+ // EXTERNAL MODULE: external "core-js/modules/es.array.filter.js"
1491
+ var es_array_filter_js_ = __webpack_require__(18);
342
1492
 
343
- aria.Utils.keys = {
344
- tab: 9,
345
- enter: 13,
346
- space: 32,
347
- left: 37,
348
- up: 38,
349
- right: 39,
350
- down: 40,
351
- esc: 27
352
- };
1493
+ // EXTERNAL MODULE: external "core-js/modules/es.array.join.js"
1494
+ var es_array_join_js_ = __webpack_require__(64);
1495
+
1496
+ // EXTERNAL MODULE: external "core-js/modules/es.array.slice.js"
1497
+ var es_array_slice_js_ = __webpack_require__(13);
1498
+
1499
+ // EXTERNAL MODULE: external "core-js/modules/es.array.splice.js"
1500
+ var es_array_splice_js_ = __webpack_require__(22);
1501
+
1502
+ // EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
1503
+ var es_object_to_string_js_ = __webpack_require__(3);
1504
+
1505
+ // EXTERNAL MODULE: external "core-js/modules/es.regexp.exec.js"
1506
+ var es_regexp_exec_js_ = __webpack_require__(7);
1507
+
1508
+ // EXTERNAL MODULE: external "core-js/modules/es.regexp.to-string.js"
1509
+ var es_regexp_to_string_js_ = __webpack_require__(11);
1510
+
1511
+ // EXTERNAL MODULE: external "core-js/modules/es.string.replace.js"
1512
+ var es_string_replace_js_ = __webpack_require__(12);
1513
+
1514
+ // EXTERNAL MODULE: external "core-js/modules/web.dom-collections.for-each.js"
1515
+ var web_dom_collections_for_each_js_ = __webpack_require__(10);
1516
+
1517
+ // EXTERNAL MODULE: ./src/mixins/emitter.js
1518
+ var emitter = __webpack_require__(14);
1519
+
1520
+ // EXTERNAL MODULE: ./src/mixins/migrating.js
1521
+ var migrating = __webpack_require__(54);
1522
+
1523
+ // EXTERNAL MODULE: external "core-js/modules/es.array.iterator.js"
1524
+ var es_array_iterator_js_ = __webpack_require__(19);
1525
+
1526
+ // EXTERNAL MODULE: external "core-js/modules/web.dom-collections.iterator.js"
1527
+ var web_dom_collections_iterator_js_ = __webpack_require__(65);
1528
+
1529
+ // EXTERNAL MODULE: ./src/utils/aria-utils.js
1530
+ var aria_utils = __webpack_require__(85);
353
1531
 
354
- /* harmony default export */ var aria_utils = (aria.Utils);
355
1532
  // CONCATENATED MODULE: ./src/utils/menu/aria-submenu.js
356
1533
 
357
1534
 
1535
+
1536
+
358
1537
  var SubMenu = function SubMenu(parent, domNode) {
359
- this.domNode = domNode;
360
- this.parent = parent;
361
- this.subMenuItems = [];
362
- this.subIndex = 0;
363
- this.init();
1538
+ this.domNode = domNode;
1539
+ this.parent = parent;
1540
+ this.subMenuItems = [];
1541
+ this.subIndex = 0;
1542
+ this.init();
364
1543
  };
365
-
366
1544
  SubMenu.prototype.init = function () {
367
- this.subMenuItems = this.domNode.querySelectorAll('li');
368
- this.addListeners();
1545
+ this.subMenuItems = this.domNode.querySelectorAll('li');
1546
+ this.addListeners();
369
1547
  };
370
-
371
1548
  SubMenu.prototype.gotoSubIndex = function (idx) {
372
- if (idx === this.subMenuItems.length) {
373
- idx = 0;
374
- } else if (idx < 0) {
375
- idx = this.subMenuItems.length - 1;
376
- }
377
- this.subMenuItems[idx].focus();
378
- this.subIndex = idx;
1549
+ if (idx === this.subMenuItems.length) {
1550
+ idx = 0;
1551
+ } else if (idx < 0) {
1552
+ idx = this.subMenuItems.length - 1;
1553
+ }
1554
+ this.subMenuItems[idx].focus();
1555
+ this.subIndex = idx;
379
1556
  };
380
-
381
1557
  SubMenu.prototype.addListeners = function () {
382
- var _this = this;
383
-
384
- var keys = aria_utils.keys;
385
- var parentNode = this.parent.domNode;
386
- Array.prototype.forEach.call(this.subMenuItems, function (el) {
387
- el.addEventListener('keydown', function (event) {
388
- var prevDef = false;
389
- switch (event.keyCode) {
390
- case keys.down:
391
- _this.gotoSubIndex(_this.subIndex + 1);
392
- prevDef = true;
393
- break;
394
- case keys.up:
395
- _this.gotoSubIndex(_this.subIndex - 1);
396
- prevDef = true;
397
- break;
398
- case keys.tab:
399
- aria_utils.triggerEvent(parentNode, 'mouseleave');
400
- break;
401
- case keys.enter:
402
- case keys.space:
403
- prevDef = true;
404
- event.currentTarget.click();
405
- break;
406
- }
407
- if (prevDef) {
408
- event.preventDefault();
409
- event.stopPropagation();
410
- }
411
- return false;
412
- });
413
- });
1558
+ var _this = this;
1559
+ var keys = aria_utils["a" /* default */].keys;
1560
+ var parentNode = this.parent.domNode;
1561
+ Array.prototype.forEach.call(this.subMenuItems, function (el) {
1562
+ el.addEventListener('keydown', function (event) {
1563
+ var prevDef = false;
1564
+ switch (event.keyCode) {
1565
+ case keys.down:
1566
+ _this.gotoSubIndex(_this.subIndex + 1);
1567
+ prevDef = true;
1568
+ break;
1569
+ case keys.up:
1570
+ _this.gotoSubIndex(_this.subIndex - 1);
1571
+ prevDef = true;
1572
+ break;
1573
+ case keys.tab:
1574
+ aria_utils["a" /* default */].triggerEvent(parentNode, 'mouseleave');
1575
+ break;
1576
+ case keys.enter:
1577
+ case keys.space:
1578
+ prevDef = true;
1579
+ event.currentTarget.click();
1580
+ break;
1581
+ }
1582
+ if (prevDef) {
1583
+ event.preventDefault();
1584
+ event.stopPropagation();
1585
+ }
1586
+ return false;
1587
+ });
1588
+ });
414
1589
  };
415
-
416
1590
  /* harmony default export */ var aria_submenu = (SubMenu);
417
1591
  // CONCATENATED MODULE: ./src/utils/menu/aria-menuitem.js
418
1592
 
419
1593
 
420
1594
 
1595
+
1596
+
421
1597
  var MenuItem = function MenuItem(domNode) {
422
- this.domNode = domNode;
423
- this.submenu = null;
424
- this.init();
1598
+ this.domNode = domNode;
1599
+ this.submenu = null;
1600
+ this.init();
425
1601
  };
426
-
427
1602
  MenuItem.prototype.init = function () {
428
- this.domNode.setAttribute('tabindex', '0');
429
- var menuChild = this.domNode.querySelector('.el-menu');
430
- if (menuChild) {
431
- this.submenu = new aria_submenu(this, menuChild);
432
- }
433
- this.addListeners();
1603
+ this.domNode.setAttribute('tabindex', '0');
1604
+ var menuChild = this.domNode.querySelector('.el-menu');
1605
+ if (menuChild) {
1606
+ this.submenu = new aria_submenu(this, menuChild);
1607
+ }
1608
+ this.addListeners();
434
1609
  };
435
-
436
1610
  MenuItem.prototype.addListeners = function () {
437
- var _this = this;
438
-
439
- var keys = aria_utils.keys;
440
- this.domNode.addEventListener('keydown', function (event) {
441
- var prevDef = false;
442
- switch (event.keyCode) {
443
- case keys.down:
444
- aria_utils.triggerEvent(event.currentTarget, 'mouseenter');
445
- _this.submenu && _this.submenu.gotoSubIndex(0);
446
- prevDef = true;
447
- break;
448
- case keys.up:
449
- aria_utils.triggerEvent(event.currentTarget, 'mouseenter');
450
- _this.submenu && _this.submenu.gotoSubIndex(_this.submenu.subMenuItems.length - 1);
451
- prevDef = true;
452
- break;
453
- case keys.tab:
454
- aria_utils.triggerEvent(event.currentTarget, 'mouseleave');
455
- break;
456
- case keys.enter:
457
- case keys.space:
458
- prevDef = true;
459
- event.currentTarget.click();
460
- break;
461
- }
462
- if (prevDef) {
463
- event.preventDefault();
464
- }
465
- });
1611
+ var _this = this;
1612
+ var keys = aria_utils["a" /* default */].keys;
1613
+ this.domNode.addEventListener('keydown', function (event) {
1614
+ var prevDef = false;
1615
+ switch (event.keyCode) {
1616
+ case keys.down:
1617
+ aria_utils["a" /* default */].triggerEvent(event.currentTarget, 'mouseenter');
1618
+ _this.submenu && _this.submenu.gotoSubIndex(0);
1619
+ prevDef = true;
1620
+ break;
1621
+ case keys.up:
1622
+ aria_utils["a" /* default */].triggerEvent(event.currentTarget, 'mouseenter');
1623
+ _this.submenu && _this.submenu.gotoSubIndex(_this.submenu.subMenuItems.length - 1);
1624
+ prevDef = true;
1625
+ break;
1626
+ case keys.tab:
1627
+ aria_utils["a" /* default */].triggerEvent(event.currentTarget, 'mouseleave');
1628
+ break;
1629
+ case keys.enter:
1630
+ case keys.space:
1631
+ prevDef = true;
1632
+ event.currentTarget.click();
1633
+ break;
1634
+ }
1635
+ if (prevDef) {
1636
+ event.preventDefault();
1637
+ }
1638
+ });
466
1639
  };
467
-
468
1640
  /* harmony default export */ var aria_menuitem = (MenuItem);
469
1641
  // CONCATENATED MODULE: ./src/utils/menu/aria-menubar.js
470
1642
 
471
1643
 
1644
+
1645
+
472
1646
  var Menu = function Menu(domNode) {
473
- this.domNode = domNode;
474
- this.init();
1647
+ this.domNode = domNode;
1648
+ this.init();
475
1649
  };
476
-
477
1650
  Menu.prototype.init = function () {
478
- var menuChildren = this.domNode.childNodes;
479
- [].filter.call(menuChildren, function (child) {
480
- return child.nodeType === 1;
481
- }).forEach(function (child) {
482
- new aria_menuitem(child); // eslint-disable-line
483
- });
1651
+ var menuChildren = this.domNode.childNodes;
1652
+ [].filter.call(menuChildren, function (child) {
1653
+ return child.nodeType === 1;
1654
+ }).forEach(function (child) {
1655
+ new aria_menuitem(child); // eslint-disable-line
1656
+ });
484
1657
  };
485
1658
  /* harmony default export */ var aria_menubar = (Menu);
486
- // EXTERNAL MODULE: external "element-ui/lib/utils/dom"
487
- var dom_ = __webpack_require__(2);
1659
+ // EXTERNAL MODULE: ./src/utils/dom.js
1660
+ var dom = __webpack_require__(1);
488
1661
 
489
1662
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/menu.vue?vue&type=script&lang=js
490
1663
 
@@ -493,342 +1666,322 @@ var dom_ = __webpack_require__(2);
493
1666
 
494
1667
 
495
1668
 
1669
+
1670
+
1671
+
1672
+
1673
+
1674
+
1675
+
1676
+
496
1677
  /* harmony default export */ var menuvue_type_script_lang_js = ({
497
- name: 'ElMenu',
498
-
499
- render: function render(h) {
500
- var component = h(
501
- 'ul',
502
- {
503
- attrs: {
504
- role: 'menubar'
505
- },
506
- key: +this.collapse,
507
- style: { backgroundColor: this.backgroundColor || '' },
508
- 'class': {
509
- 'el-menu--horizontal': this.mode === 'horizontal',
510
- 'el-menu--collapse': this.collapse,
511
- "el-menu": true
512
- }
513
- },
514
- [this.$slots.default]
515
- );
516
-
517
- if (this.collapseTransition) {
518
- return h('el-menu-collapse-transition', [component]);
519
- } else {
520
- return component;
521
- }
522
- },
523
-
524
-
525
- componentName: 'ElMenu',
526
-
527
- mixins: [emitter_default.a, migrating_default.a],
528
-
529
- provide: function provide() {
530
- return {
531
- rootMenu: this
532
- };
533
- },
534
-
535
-
536
- components: {
537
- 'el-menu-collapse-transition': {
538
- functional: true,
539
- render: function render(createElement, context) {
540
- var data = {
541
- props: {
542
- mode: 'out-in'
543
- },
544
- on: {
545
- beforeEnter: function beforeEnter(el) {
546
- el.style.opacity = 0.2;
547
- },
548
- enter: function enter(el) {
549
- Object(dom_["addClass"])(el, 'el-opacity-transition');
550
- el.style.opacity = 1;
551
- },
552
- afterEnter: function afterEnter(el) {
553
- Object(dom_["removeClass"])(el, 'el-opacity-transition');
554
- el.style.opacity = '';
555
- },
556
- beforeLeave: function beforeLeave(el) {
557
- if (!el.dataset) el.dataset = {};
558
-
559
- if (Object(dom_["hasClass"])(el, 'el-menu--collapse')) {
560
- Object(dom_["removeClass"])(el, 'el-menu--collapse');
561
- el.dataset.oldOverflow = el.style.overflow;
562
- el.dataset.scrollWidth = el.clientWidth;
563
- Object(dom_["addClass"])(el, 'el-menu--collapse');
564
- } else {
565
- Object(dom_["addClass"])(el, 'el-menu--collapse');
566
- el.dataset.oldOverflow = el.style.overflow;
567
- el.dataset.scrollWidth = el.clientWidth;
568
- Object(dom_["removeClass"])(el, 'el-menu--collapse');
569
- }
570
-
571
- el.style.width = el.scrollWidth + 'px';
572
- el.style.overflow = 'hidden';
573
- },
574
- leave: function leave(el) {
575
- Object(dom_["addClass"])(el, 'horizontal-collapse-transition');
576
- el.style.width = el.dataset.scrollWidth + 'px';
577
- }
578
- }
579
- };
580
- return createElement('transition', data, context.children);
581
- }
582
- }
583
- },
584
-
585
- props: {
586
- mode: {
587
- type: String,
588
- default: 'vertical'
589
- },
590
- defaultActive: {
591
- type: String,
592
- default: ''
593
- },
594
- defaultOpeneds: Array,
595
- uniqueOpened: Boolean,
596
- router: Boolean,
597
- menuTrigger: {
598
- type: String,
599
- default: 'hover'
600
- },
601
- collapse: Boolean,
602
- backgroundColor: String,
603
- textColor: String,
604
- activeTextColor: String,
605
- collapseTransition: {
606
- type: Boolean,
607
- default: true
608
- }
609
- },
610
- data: function data() {
611
- return {
612
- activeIndex: this.defaultActive,
613
- openedMenus: this.defaultOpeneds && !this.collapse ? this.defaultOpeneds.slice(0) : [],
614
- items: {},
615
- submenus: {}
616
- };
617
- },
618
-
619
- computed: {
620
- hoverBackground: function hoverBackground() {
621
- return this.backgroundColor ? this.mixColor(this.backgroundColor, 0.2) : '';
622
- },
623
- isMenuPopup: function isMenuPopup() {
624
- return this.mode === 'horizontal' || this.mode === 'vertical' && this.collapse;
625
- }
626
- },
627
- watch: {
628
- defaultActive: function defaultActive(value) {
629
- if (!this.items[value]) {
630
- this.activeIndex = null;
631
- }
632
- this.updateActiveIndex(value);
633
- },
634
- defaultOpeneds: function defaultOpeneds(value) {
635
- if (!this.collapse) {
636
- this.openedMenus = value;
637
- }
638
- },
639
- collapse: function collapse(value) {
640
- if (value) this.openedMenus = [];
641
- this.broadcast('ElSubmenu', 'toggle-collapse', value);
642
- }
643
- },
644
- methods: {
645
- updateActiveIndex: function updateActiveIndex(val) {
646
- var item = this.items[val] || this.items[this.activeIndex] || this.items[this.defaultActive];
647
- if (item) {
648
- this.activeIndex = item.index;
649
- this.initOpenedMenu();
650
- } else {
651
- this.activeIndex = null;
652
- }
653
- },
654
- getMigratingConfig: function getMigratingConfig() {
655
- return {
656
- props: {
657
- 'theme': 'theme is removed.'
658
- }
659
- };
660
- },
661
- getColorChannels: function getColorChannels(color) {
662
- color = color.replace('#', '');
663
- if (/^[0-9a-fA-F]{3}$/.test(color)) {
664
- color = color.split('');
665
- for (var i = 2; i >= 0; i--) {
666
- color.splice(i, 0, color[i]);
667
- }
668
- color = color.join('');
669
- }
670
- if (/^[0-9a-fA-F]{6}$/.test(color)) {
671
- return {
672
- red: parseInt(color.slice(0, 2), 16),
673
- green: parseInt(color.slice(2, 4), 16),
674
- blue: parseInt(color.slice(4, 6), 16)
675
- };
676
- } else {
677
- return {
678
- red: 255,
679
- green: 255,
680
- blue: 255
681
- };
682
- }
683
- },
684
- mixColor: function mixColor(color, percent) {
685
- var _getColorChannels = this.getColorChannels(color),
686
- red = _getColorChannels.red,
687
- green = _getColorChannels.green,
688
- blue = _getColorChannels.blue;
689
-
690
- if (percent > 0) {
691
- // shade given color
692
- red *= 1 - percent;
693
- green *= 1 - percent;
694
- blue *= 1 - percent;
695
- } else {
696
- // tint given color
697
- red += (255 - red) * percent;
698
- green += (255 - green) * percent;
699
- blue += (255 - blue) * percent;
700
- }
701
- return 'rgb(' + Math.round(red) + ', ' + Math.round(green) + ', ' + Math.round(blue) + ')';
702
- },
703
- addItem: function addItem(item) {
704
- this.$set(this.items, item.index, item);
705
- },
706
- removeItem: function removeItem(item) {
707
- delete this.items[item.index];
708
- },
709
- addSubmenu: function addSubmenu(item) {
710
- this.$set(this.submenus, item.index, item);
711
- },
712
- removeSubmenu: function removeSubmenu(item) {
713
- delete this.submenus[item.index];
714
- },
715
- openMenu: function openMenu(index, indexPath) {
716
- var openedMenus = this.openedMenus;
717
- if (openedMenus.indexOf(index) !== -1) return;
718
- // 将不在该菜单路径下的其余菜单收起
719
- // collapse all menu that are not under current menu item
720
- if (this.uniqueOpened) {
721
- this.openedMenus = openedMenus.filter(function (index) {
722
- return indexPath.indexOf(index) !== -1;
723
- });
724
- }
725
- this.openedMenus.push(index);
726
- },
727
- closeMenu: function closeMenu(index) {
728
- var i = this.openedMenus.indexOf(index);
729
- if (i !== -1) {
730
- this.openedMenus.splice(i, 1);
731
- }
732
- },
733
- handleSubmenuClick: function handleSubmenuClick(submenu) {
734
- var index = submenu.index,
735
- indexPath = submenu.indexPath;
736
-
737
- var isOpened = this.openedMenus.indexOf(index) !== -1;
738
-
739
- if (isOpened) {
740
- this.closeMenu(index);
741
- this.$emit('close', index, indexPath);
742
- } else {
743
- this.openMenu(index, indexPath);
744
- this.$emit('open', index, indexPath);
745
- }
746
- },
747
- handleItemClick: function handleItemClick(item) {
748
- var _this = this;
749
-
750
- var index = item.index,
751
- indexPath = item.indexPath;
752
-
753
- var oldActiveIndex = this.activeIndex;
754
- var hasIndex = item.index !== null;
755
-
756
- if (hasIndex) {
757
- this.activeIndex = item.index;
758
- }
759
-
760
- this.$emit('select', index, indexPath, item);
761
-
762
- if (this.mode === 'horizontal' || this.collapse) {
763
- this.openedMenus = [];
764
- }
765
-
766
- if (this.router && hasIndex) {
767
- this.routeToItem(item, function (error) {
768
- _this.activeIndex = oldActiveIndex;
769
- if (error) {
770
- // vue-router 3.1.0+ push/replace cause NavigationDuplicated error
771
- // https://github.com/ElemeFE/element/issues/17044
772
- if (error.name === 'NavigationDuplicated') return;
773
- console.error(error);
774
- }
775
- });
776
- }
777
- },
778
-
779
- // 初始化展开菜单
780
- // initialize opened menu
781
- initOpenedMenu: function initOpenedMenu() {
782
- var _this2 = this;
783
-
784
- var index = this.activeIndex;
785
- var activeItem = this.items[index];
786
- if (!activeItem || this.mode === 'horizontal' || this.collapse) return;
787
-
788
- var indexPath = activeItem.indexPath;
789
-
790
- // 展开该菜单项的路径上所有子菜单
791
- // expand all submenus of the menu item
792
- indexPath.forEach(function (index) {
793
- var submenu = _this2.submenus[index];
794
- submenu && _this2.openMenu(index, submenu.indexPath);
795
- });
796
- },
797
- routeToItem: function routeToItem(item, onError) {
798
- var route = item.route || item.index;
799
- try {
800
- this.$router.push(route, function () {}, onError);
801
- } catch (e) {
802
- console.error(e);
803
- }
804
- },
805
- open: function open(index) {
806
- var _this3 = this;
807
-
808
- var indexPath = this.submenus[index.toString()].indexPath;
809
-
810
- indexPath.forEach(function (i) {
811
- return _this3.openMenu(i, indexPath);
812
- });
813
- },
814
- close: function close(index) {
815
- this.closeMenu(index);
816
- }
817
- },
818
- mounted: function mounted() {
819
- this.initOpenedMenu();
820
- this.$on('item-click', this.handleItemClick);
821
- this.$on('submenu-click', this.handleSubmenuClick);
822
- if (this.mode === 'horizontal') {
823
- new aria_menubar(this.$el); // eslint-disable-line
824
- }
825
- this.$watch('items', this.updateActiveIndex);
826
- }
1678
+ name: 'ElMenu',
1679
+ render: function render(h) {
1680
+ var component = h("ul", {
1681
+ "attrs": {
1682
+ "role": "menubar"
1683
+ },
1684
+ "key": +this.collapse,
1685
+ "style": {
1686
+ backgroundColor: this.backgroundColor || ''
1687
+ },
1688
+ "class": {
1689
+ 'el-menu--horizontal': this.mode === 'horizontal',
1690
+ 'el-menu--collapse': this.collapse,
1691
+ 'el-menu': true
1692
+ }
1693
+ }, [this.$slots.default]);
1694
+ if (this.collapseTransition) {
1695
+ return h("el-menu-collapse-transition", [component]);
1696
+ } else {
1697
+ return component;
1698
+ }
1699
+ },
1700
+ componentName: 'ElMenu',
1701
+ mixins: [emitter["a" /* default */], migrating["a" /* default */]],
1702
+ provide: function provide() {
1703
+ return {
1704
+ rootMenu: this
1705
+ };
1706
+ },
1707
+ components: {
1708
+ 'el-menu-collapse-transition': {
1709
+ functional: true,
1710
+ render: function render(createElement, context) {
1711
+ var data = {
1712
+ props: {
1713
+ mode: 'out-in'
1714
+ },
1715
+ on: {
1716
+ beforeEnter: function beforeEnter(el) {
1717
+ el.style.opacity = 0.2;
1718
+ },
1719
+ enter: function enter(el) {
1720
+ Object(dom["a" /* addClass */])(el, 'el-opacity-transition');
1721
+ el.style.opacity = 1;
1722
+ },
1723
+ afterEnter: function afterEnter(el) {
1724
+ Object(dom["i" /* removeClass */])(el, 'el-opacity-transition');
1725
+ el.style.opacity = '';
1726
+ },
1727
+ beforeLeave: function beforeLeave(el) {
1728
+ if (!el.dataset) el.dataset = {};
1729
+ if (Object(dom["d" /* hasClass */])(el, 'el-menu--collapse')) {
1730
+ Object(dom["i" /* removeClass */])(el, 'el-menu--collapse');
1731
+ el.dataset.oldOverflow = el.style.overflow;
1732
+ el.dataset.scrollWidth = el.clientWidth;
1733
+ Object(dom["a" /* addClass */])(el, 'el-menu--collapse');
1734
+ } else {
1735
+ Object(dom["a" /* addClass */])(el, 'el-menu--collapse');
1736
+ el.dataset.oldOverflow = el.style.overflow;
1737
+ el.dataset.scrollWidth = el.clientWidth;
1738
+ Object(dom["i" /* removeClass */])(el, 'el-menu--collapse');
1739
+ }
1740
+ el.style.width = el.scrollWidth + 'px';
1741
+ el.style.overflow = 'hidden';
1742
+ },
1743
+ leave: function leave(el) {
1744
+ Object(dom["a" /* addClass */])(el, 'horizontal-collapse-transition');
1745
+ el.style.width = el.dataset.scrollWidth + 'px';
1746
+ }
1747
+ }
1748
+ };
1749
+ return createElement('transition', data, context.children);
1750
+ }
1751
+ }
1752
+ },
1753
+ props: {
1754
+ mode: {
1755
+ type: String,
1756
+ default: 'vertical'
1757
+ },
1758
+ defaultActive: {
1759
+ type: String,
1760
+ default: ''
1761
+ },
1762
+ defaultOpeneds: Array,
1763
+ uniqueOpened: Boolean,
1764
+ router: Boolean,
1765
+ menuTrigger: {
1766
+ type: String,
1767
+ default: 'hover'
1768
+ },
1769
+ collapse: Boolean,
1770
+ backgroundColor: String,
1771
+ textColor: String,
1772
+ activeTextColor: String,
1773
+ collapseTransition: {
1774
+ type: Boolean,
1775
+ default: true
1776
+ }
1777
+ },
1778
+ data: function data() {
1779
+ return {
1780
+ activeIndex: this.defaultActive,
1781
+ openedMenus: this.defaultOpeneds && !this.collapse ? this.defaultOpeneds.slice(0) : [],
1782
+ items: {},
1783
+ submenus: {}
1784
+ };
1785
+ },
1786
+ computed: {
1787
+ hoverBackground: function hoverBackground() {
1788
+ return this.backgroundColor ? this.mixColor(this.backgroundColor, 0.2) : '';
1789
+ },
1790
+ isMenuPopup: function isMenuPopup() {
1791
+ return this.mode === 'horizontal' || this.mode === 'vertical' && this.collapse;
1792
+ }
1793
+ },
1794
+ watch: {
1795
+ defaultActive: function defaultActive(value) {
1796
+ if (!this.items[value]) {
1797
+ this.activeIndex = null;
1798
+ }
1799
+ this.updateActiveIndex(value);
1800
+ },
1801
+ defaultOpeneds: function defaultOpeneds(value) {
1802
+ if (!this.collapse) {
1803
+ this.openedMenus = value;
1804
+ }
1805
+ },
1806
+ collapse: function collapse(value) {
1807
+ if (value) this.openedMenus = [];
1808
+ this.broadcast('ElSubmenu', 'toggle-collapse', value);
1809
+ }
1810
+ },
1811
+ methods: {
1812
+ updateActiveIndex: function updateActiveIndex(val) {
1813
+ var item = this.items[val] || this.items[this.activeIndex] || this.items[this.defaultActive];
1814
+ if (item) {
1815
+ this.activeIndex = item.index;
1816
+ this.initOpenedMenu();
1817
+ } else {
1818
+ this.activeIndex = null;
1819
+ }
1820
+ },
1821
+ getMigratingConfig: function getMigratingConfig() {
1822
+ return {
1823
+ props: {
1824
+ 'theme': 'theme is removed.'
1825
+ }
1826
+ };
1827
+ },
1828
+ getColorChannels: function getColorChannels(color) {
1829
+ color = color.replace('#', '');
1830
+ if (/^[0-9a-fA-F]{3}$/.test(color)) {
1831
+ color = color.split('');
1832
+ for (var i = 2; i >= 0; i--) {
1833
+ color.splice(i, 0, color[i]);
1834
+ }
1835
+ color = color.join('');
1836
+ }
1837
+ if (/^[0-9a-fA-F]{6}$/.test(color)) {
1838
+ return {
1839
+ red: parseInt(color.slice(0, 2), 16),
1840
+ green: parseInt(color.slice(2, 4), 16),
1841
+ blue: parseInt(color.slice(4, 6), 16)
1842
+ };
1843
+ } else {
1844
+ return {
1845
+ red: 255,
1846
+ green: 255,
1847
+ blue: 255
1848
+ };
1849
+ }
1850
+ },
1851
+ mixColor: function mixColor(color, percent) {
1852
+ var _this$getColorChannel = this.getColorChannels(color),
1853
+ red = _this$getColorChannel.red,
1854
+ green = _this$getColorChannel.green,
1855
+ blue = _this$getColorChannel.blue;
1856
+ if (percent > 0) {
1857
+ // shade given color
1858
+ red *= 1 - percent;
1859
+ green *= 1 - percent;
1860
+ blue *= 1 - percent;
1861
+ } else {
1862
+ // tint given color
1863
+ red += (255 - red) * percent;
1864
+ green += (255 - green) * percent;
1865
+ blue += (255 - blue) * percent;
1866
+ }
1867
+ return "rgb(" + Math.round(red) + ", " + Math.round(green) + ", " + Math.round(blue) + ")";
1868
+ },
1869
+ addItem: function addItem(item) {
1870
+ this.$set(this.items, item.index, item);
1871
+ },
1872
+ removeItem: function removeItem(item) {
1873
+ delete this.items[item.index];
1874
+ },
1875
+ addSubmenu: function addSubmenu(item) {
1876
+ this.$set(this.submenus, item.index, item);
1877
+ },
1878
+ removeSubmenu: function removeSubmenu(item) {
1879
+ delete this.submenus[item.index];
1880
+ },
1881
+ openMenu: function openMenu(index, indexPath) {
1882
+ var openedMenus = this.openedMenus;
1883
+ if (openedMenus.indexOf(index) !== -1) return;
1884
+ // 将不在该菜单路径下的其余菜单收起
1885
+ // collapse all menu that are not under current menu item
1886
+ if (this.uniqueOpened) {
1887
+ this.openedMenus = openedMenus.filter(function (index) {
1888
+ return indexPath.indexOf(index) !== -1;
1889
+ });
1890
+ }
1891
+ this.openedMenus.push(index);
1892
+ },
1893
+ closeMenu: function closeMenu(index) {
1894
+ var i = this.openedMenus.indexOf(index);
1895
+ if (i !== -1) {
1896
+ this.openedMenus.splice(i, 1);
1897
+ }
1898
+ },
1899
+ handleSubmenuClick: function handleSubmenuClick(submenu) {
1900
+ var index = submenu.index,
1901
+ indexPath = submenu.indexPath;
1902
+ var isOpened = this.openedMenus.indexOf(index) !== -1;
1903
+ if (isOpened) {
1904
+ this.closeMenu(index);
1905
+ this.$emit('close', index, indexPath);
1906
+ } else {
1907
+ this.openMenu(index, indexPath);
1908
+ this.$emit('open', index, indexPath);
1909
+ }
1910
+ },
1911
+ handleItemClick: function handleItemClick(item) {
1912
+ var _this = this;
1913
+ var index = item.index,
1914
+ indexPath = item.indexPath;
1915
+ var oldActiveIndex = this.activeIndex;
1916
+ var hasIndex = item.index !== null;
1917
+ if (hasIndex) {
1918
+ this.activeIndex = item.index;
1919
+ }
1920
+ this.$emit('select', index, indexPath, item);
1921
+ if (this.mode === 'horizontal' || this.collapse) {
1922
+ this.openedMenus = [];
1923
+ }
1924
+ if (this.router && hasIndex) {
1925
+ this.routeToItem(item, function (error) {
1926
+ _this.activeIndex = oldActiveIndex;
1927
+ if (error) {
1928
+ // vue-router 3.1.0+ push/replace cause NavigationDuplicated error
1929
+ // https://github.com/ElemeFE/element/issues/17044
1930
+ if (error.name === 'NavigationDuplicated') return;
1931
+ console.error(error);
1932
+ }
1933
+ });
1934
+ }
1935
+ },
1936
+ // 初始化展开菜单
1937
+ // initialize opened menu
1938
+ initOpenedMenu: function initOpenedMenu() {
1939
+ var _this2 = this;
1940
+ var index = this.activeIndex;
1941
+ var activeItem = this.items[index];
1942
+ if (!activeItem || this.mode === 'horizontal' || this.collapse) return;
1943
+ var indexPath = activeItem.indexPath;
1944
+
1945
+ // 展开该菜单项的路径上所有子菜单
1946
+ // expand all submenus of the menu item
1947
+ indexPath.forEach(function (index) {
1948
+ var submenu = _this2.submenus[index];
1949
+ submenu && _this2.openMenu(index, submenu.indexPath);
1950
+ });
1951
+ },
1952
+ routeToItem: function routeToItem(item, onError) {
1953
+ var route = item.route || item.index;
1954
+ try {
1955
+ this.$router.push(route, function () {}, onError);
1956
+ } catch (e) {
1957
+ console.error(e);
1958
+ }
1959
+ },
1960
+ open: function open(index) {
1961
+ var _this3 = this;
1962
+ var indexPath = this.submenus[index.toString()].indexPath;
1963
+ indexPath.forEach(function (i) {
1964
+ return _this3.openMenu(i, indexPath);
1965
+ });
1966
+ },
1967
+ close: function close(index) {
1968
+ this.closeMenu(index);
1969
+ }
1970
+ },
1971
+ mounted: function mounted() {
1972
+ this.initOpenedMenu();
1973
+ this.$on('item-click', this.handleItemClick);
1974
+ this.$on('submenu-click', this.handleSubmenuClick);
1975
+ if (this.mode === 'horizontal') {
1976
+ new aria_menubar(this.$el); // eslint-disable-line
1977
+ }
1978
+ this.$watch('items', this.updateActiveIndex);
1979
+ }
827
1980
  });
828
1981
  // CONCATENATED MODULE: ./packages/menu/src/menu.vue?vue&type=script&lang=js
829
1982
  /* harmony default export */ var src_menuvue_type_script_lang_js = (menuvue_type_script_lang_js);
830
1983
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
831
- var componentNormalizer = __webpack_require__(0);
1984
+ var componentNormalizer = __webpack_require__(2);
832
1985
 
833
1986
  // CONCATENATED MODULE: ./packages/menu/src/menu.vue
834
1987
  var menu_render, staticRenderFns
@@ -853,13 +2006,12 @@ var component = Object(componentNormalizer["a" /* default */])(
853
2006
  // CONCATENATED MODULE: ./packages/menu/index.js
854
2007
 
855
2008
 
2009
+
856
2010
  /* istanbul ignore next */
857
2011
  menu.install = function (Vue) {
858
- Vue.component(menu.name, menu);
2012
+ Vue.component(menu.name, menu);
859
2013
  };
860
-
861
2014
  /* harmony default export */ var packages_menu = __webpack_exports__["default"] = (menu);
862
2015
 
863
2016
  /***/ })
864
-
865
- /******/ });
2017
+ /******/ ]);