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/loading.js CHANGED
@@ -82,160 +82,334 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 73);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 161);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
90
  /***/ 0:
91
+ /***/ (function(module, exports) {
92
+
93
+ module.exports = require("vue");
94
+
95
+ /***/ }),
96
+
97
+ /***/ 1:
91
98
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
99
 
93
100
  "use strict";
94
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
- /* globals __VUE_SSR_CONTEXT__ */
101
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return on; });
102
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return off; });
103
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return once; });
104
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return hasClass; });
105
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addClass; });
106
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return removeClass; });
107
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getStyle; });
108
+ /* unused harmony export setStyle */
109
+ /* unused harmony export isScroll */
110
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getScrollContainer; });
111
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isInContainer; });
112
+ /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18);
113
+ /* 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__);
114
+ /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53);
115
+ /* 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__);
116
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
117
+ /* 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__);
118
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
119
+ /* 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__);
120
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
121
+ /* 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__);
122
+ /* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(16);
123
+ /* 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__);
124
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(12);
125
+ /* 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__);
126
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(0);
127
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_7__);
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+ /* istanbul ignore next */
136
+
137
+
138
+ var isServer = vue__WEBPACK_IMPORTED_MODULE_7___default.a.prototype.$isServer;
139
+ var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
140
+ var MOZ_HACK_REGEXP = /^moz([A-Z])/;
141
+ var ieVersion = isServer ? 0 : Number(document.documentMode);
142
+
143
+ /* istanbul ignore next */
144
+ var trim = function trim(string) {
145
+ return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
146
+ };
147
+ /* istanbul ignore next */
148
+ var camelCase = function camelCase(name) {
149
+ return name.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
150
+ return offset ? letter.toUpperCase() : letter;
151
+ }).replace(MOZ_HACK_REGEXP, 'Moz$1');
152
+ };
96
153
 
97
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
98
- // This module is a runtime utility for cleaner component module output and will
99
- // be included in the final webpack user bundle.
154
+ /* istanbul ignore next */
155
+ var on = function () {
156
+ if (!isServer && document.addEventListener) {
157
+ return function (element, event, handler) {
158
+ if (element && event && handler) {
159
+ element.addEventListener(event, handler, false);
160
+ }
161
+ };
162
+ } else {
163
+ return function (element, event, handler) {
164
+ if (element && event && handler) {
165
+ element.attachEvent('on' + event, handler);
166
+ }
167
+ };
168
+ }
169
+ }();
170
+
171
+ /* istanbul ignore next */
172
+ var off = function () {
173
+ if (!isServer && document.removeEventListener) {
174
+ return function (element, event, handler) {
175
+ if (element && event) {
176
+ element.removeEventListener(event, handler, false);
177
+ }
178
+ };
179
+ } else {
180
+ return function (element, event, handler) {
181
+ if (element && event) {
182
+ element.detachEvent('on' + event, handler);
183
+ }
184
+ };
185
+ }
186
+ }();
100
187
 
101
- function normalizeComponent(
102
- scriptExports,
103
- render,
104
- staticRenderFns,
105
- functionalTemplate,
106
- injectStyles,
107
- scopeId,
108
- moduleIdentifier /* server only */,
109
- shadowMode /* vue-cli only */
110
- ) {
111
- // Vue.extend constructor export interop
112
- var options =
113
- typeof scriptExports === 'function' ? scriptExports.options : scriptExports
188
+ /* istanbul ignore next */
189
+ var once = function once(el, event, fn) {
190
+ var _listener = function listener() {
191
+ if (fn) {
192
+ fn.apply(this, arguments);
193
+ }
194
+ off(el, event, _listener);
195
+ };
196
+ on(el, event, _listener);
197
+ };
114
198
 
115
- // render functions
116
- if (render) {
117
- options.render = render
118
- options.staticRenderFns = staticRenderFns
119
- options._compiled = true
199
+ /* istanbul ignore next */
200
+ function hasClass(el, cls) {
201
+ if (!el || !cls) return false;
202
+ if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
203
+ if (el.classList) {
204
+ return el.classList.contains(cls);
205
+ } else {
206
+ return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
120
207
  }
121
-
122
- // functional template
123
- if (functionalTemplate) {
124
- options.functional = true
208
+ }
209
+ ;
210
+
211
+ /* istanbul ignore next */
212
+ function addClass(el, cls) {
213
+ if (!el) return;
214
+ var curClass = el.className;
215
+ var classes = (cls || '').split(' ');
216
+ for (var i = 0, j = classes.length; i < j; i++) {
217
+ var clsName = classes[i];
218
+ if (!clsName) continue;
219
+ if (el.classList) {
220
+ el.classList.add(clsName);
221
+ } else if (!hasClass(el, clsName)) {
222
+ curClass += ' ' + clsName;
223
+ }
125
224
  }
126
-
127
- // scopedId
128
- if (scopeId) {
129
- options._scopeId = 'data-v-' + scopeId
225
+ if (!el.classList) {
226
+ el.setAttribute('class', curClass);
130
227
  }
131
-
132
- var hook
133
- if (moduleIdentifier) {
134
- // server build
135
- hook = function (context) {
136
- // 2.3 injection
137
- context =
138
- context || // cached call
139
- (this.$vnode && this.$vnode.ssrContext) || // stateful
140
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
141
- // 2.2 with runInNewContext: true
142
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
143
- context = __VUE_SSR_CONTEXT__
144
- }
145
- // inject component styles
146
- if (injectStyles) {
147
- injectStyles.call(this, context)
148
- }
149
- // register component module identifier for async chunk inferrence
150
- if (context && context._registeredComponents) {
151
- context._registeredComponents.add(moduleIdentifier)
152
- }
228
+ }
229
+ ;
230
+
231
+ /* istanbul ignore next */
232
+ function removeClass(el, cls) {
233
+ if (!el || !cls) return;
234
+ var classes = cls.split(' ');
235
+ var curClass = ' ' + el.className + ' ';
236
+ for (var i = 0, j = classes.length; i < j; i++) {
237
+ var clsName = classes[i];
238
+ if (!clsName) continue;
239
+ if (el.classList) {
240
+ el.classList.remove(clsName);
241
+ } else if (hasClass(el, clsName)) {
242
+ curClass = curClass.replace(' ' + clsName + ' ', ' ');
153
243
  }
154
- // used by ssr in case component is cached and beforeCreate
155
- // never gets called
156
- options._ssrRegister = hook
157
- } else if (injectStyles) {
158
- hook = shadowMode
159
- ? function () {
160
- injectStyles.call(
161
- this,
162
- (options.functional ? this.parent : this).$root.$options.shadowRoot
163
- )
244
+ }
245
+ if (!el.classList) {
246
+ el.setAttribute('class', trim(curClass));
247
+ }
248
+ }
249
+ ;
250
+
251
+ /* istanbul ignore next */
252
+ var getStyle = ieVersion < 9 ? function (element, styleName) {
253
+ if (isServer) return;
254
+ if (!element || !styleName) return null;
255
+ styleName = camelCase(styleName);
256
+ if (styleName === 'float') {
257
+ styleName = 'styleFloat';
258
+ }
259
+ try {
260
+ switch (styleName) {
261
+ case 'opacity':
262
+ try {
263
+ return element.filters.item('alpha').opacity / 100;
264
+ } catch (e) {
265
+ return 1.0;
164
266
  }
165
- : injectStyles
267
+ default:
268
+ return element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null;
269
+ }
270
+ } catch (e) {
271
+ return element.style[styleName];
166
272
  }
273
+ } : function (element, styleName) {
274
+ if (isServer) return;
275
+ if (!element || !styleName) return null;
276
+ styleName = camelCase(styleName);
277
+ if (styleName === 'float') {
278
+ styleName = 'cssFloat';
279
+ }
280
+ try {
281
+ var computed = document.defaultView.getComputedStyle(element, '');
282
+ return element.style[styleName] || computed ? computed[styleName] : null;
283
+ } catch (e) {
284
+ return element.style[styleName];
285
+ }
286
+ };
167
287
 
168
- if (hook) {
169
- if (options.functional) {
170
- // for template-only hot-reload because in that case the render fn doesn't
171
- // go through the normalizer
172
- options._injectStyles = hook
173
- // register for functional component in vue file
174
- var originalRender = options.render
175
- options.render = function renderWithStyleInjection(h, context) {
176
- hook.call(context)
177
- return originalRender(h, context)
288
+ /* istanbul ignore next */
289
+ function setStyle(element, styleName, value) {
290
+ if (!element || !styleName) return;
291
+ if (typeof styleName === 'object') {
292
+ for (var prop in styleName) {
293
+ if (styleName.hasOwnProperty(prop)) {
294
+ setStyle(element, prop, styleName[prop]);
178
295
  }
296
+ }
297
+ } else {
298
+ styleName = camelCase(styleName);
299
+ if (styleName === 'opacity' && ieVersion < 9) {
300
+ element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
179
301
  } else {
180
- // inject component registration as beforeCreate hook
181
- var existing = options.beforeCreate
182
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
302
+ element.style[styleName] = value;
183
303
  }
184
304
  }
185
-
186
- return {
187
- exports: scriptExports,
188
- options: options
189
- }
190
305
  }
191
-
306
+ ;
307
+ var isScroll = function isScroll(el, vertical) {
308
+ if (isServer) return;
309
+ var determinedDirection = vertical !== null && vertical !== undefined;
310
+ var overflow = determinedDirection ? vertical ? getStyle(el, 'overflow-y') : getStyle(el, 'overflow-x') : getStyle(el, 'overflow');
311
+ return overflow.match(/(scroll|auto|overlay)/);
312
+ };
313
+ var getScrollContainer = function getScrollContainer(el, vertical) {
314
+ if (isServer) return;
315
+ var parent = el;
316
+ while (parent) {
317
+ if ([window, document, document.documentElement].includes(parent)) {
318
+ return window;
319
+ }
320
+ if (isScroll(parent, vertical)) {
321
+ return parent;
322
+ }
323
+ parent = parent.parentNode;
324
+ }
325
+ return parent;
326
+ };
327
+ var isInContainer = function isInContainer(el, container) {
328
+ if (isServer || !el || !container) return false;
329
+ var elRect = el.getBoundingClientRect();
330
+ var containerRect;
331
+ if ([window, document, document.documentElement, null, undefined].includes(container)) {
332
+ containerRect = {
333
+ top: 0,
334
+ right: window.innerWidth,
335
+ bottom: window.innerHeight,
336
+ left: 0
337
+ };
338
+ } else {
339
+ containerRect = container.getBoundingClientRect();
340
+ }
341
+ return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;
342
+ };
192
343
 
193
344
  /***/ }),
194
345
 
195
- /***/ 13:
346
+ /***/ 10:
196
347
  /***/ (function(module, exports) {
197
348
 
198
- module.exports = require("element-ui/lib/utils/popup");
349
+ module.exports = require("core-js/modules/web.dom-collections.for-each.js");
199
350
 
200
351
  /***/ }),
201
352
 
202
- /***/ 2:
353
+ /***/ 12:
203
354
  /***/ (function(module, exports) {
204
355
 
205
- module.exports = require("element-ui/lib/utils/dom");
356
+ module.exports = require("core-js/modules/es.string.replace.js");
206
357
 
207
358
  /***/ }),
208
359
 
209
- /***/ 43:
210
- /***/ (function(module, exports) {
360
+ /***/ 15:
361
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
211
362
 
212
- module.exports = require("element-ui/lib/utils/after-leave");
363
+ "use strict";
364
+ /* harmony default export */ __webpack_exports__["a"] = (function (target) {
365
+ for (var i = 1, j = arguments.length; i < j; i++) {
366
+ var source = arguments[i] || {};
367
+ for (var prop in source) {
368
+ if (source.hasOwnProperty(prop)) {
369
+ var value = source[prop];
370
+ if (value !== undefined) {
371
+ target[prop] = value;
372
+ }
373
+ }
374
+ }
375
+ }
376
+ return target;
377
+ });
378
+ ;
213
379
 
214
380
  /***/ }),
215
381
 
216
- /***/ 7:
382
+ /***/ 16:
217
383
  /***/ (function(module, exports) {
218
384
 
219
- module.exports = require("vue");
385
+ module.exports = require("core-js/modules/es.string.match.js");
220
386
 
221
387
  /***/ }),
222
388
 
223
- /***/ 73:
389
+ /***/ 161:
224
390
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
225
391
 
226
392
  "use strict";
227
393
  // ESM COMPAT FLAG
228
394
  __webpack_require__.r(__webpack_exports__);
229
395
 
396
+ // EXTERNAL MODULE: external "core-js/modules/es.object.keys.js"
397
+ var es_object_keys_js_ = __webpack_require__(17);
398
+
399
+ // EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
400
+ var es_object_to_string_js_ = __webpack_require__(3);
401
+
402
+ // EXTERNAL MODULE: external "core-js/modules/web.dom-collections.for-each.js"
403
+ var web_dom_collections_for_each_js_ = __webpack_require__(10);
404
+
230
405
  // EXTERNAL MODULE: external "vue"
231
- var external_vue_ = __webpack_require__(7);
406
+ var external_vue_ = __webpack_require__(0);
232
407
  var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
233
408
 
234
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/loading/src/loading.vue?vue&type=template&id=897d5e8e
235
- var render = function () {
236
- var _vm = this
237
- var _h = _vm.$createElement
238
- var _c = _vm._self._c || _h
409
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/loading/src/loading.vue?vue&type=template&id=5fc843e5
410
+ var render = function render() {
411
+ var _vm = this,
412
+ _c = _vm._self._c
239
413
  return _c(
240
414
  "transition",
241
415
  {
@@ -290,54 +464,33 @@ var staticRenderFns = []
290
464
  render._withStripped = true
291
465
 
292
466
 
293
- // CONCATENATED MODULE: ./packages/loading/src/loading.vue?vue&type=template&id=897d5e8e
467
+ // CONCATENATED MODULE: ./packages/loading/src/loading.vue?vue&type=template&id=5fc843e5
294
468
 
295
469
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/loading/src/loading.vue?vue&type=script&lang=js
296
- //
297
- //
298
- //
299
- //
300
- //
301
- //
302
- //
303
- //
304
- //
305
- //
306
- //
307
- //
308
- //
309
- //
310
- //
311
- //
312
- //
313
- //
314
-
315
470
  /* harmony default export */ var loadingvue_type_script_lang_js = ({
316
- data: function data() {
317
- return {
318
- text: null,
319
- spinner: null,
320
- background: null,
321
- fullscreen: true,
322
- visible: false,
323
- customClass: ''
324
- };
325
- },
326
-
327
-
328
- methods: {
329
- handleAfterLeave: function handleAfterLeave() {
330
- this.$emit('after-leave');
331
- },
332
- setText: function setText(text) {
333
- this.text = text;
334
- }
335
- }
471
+ data: function data() {
472
+ return {
473
+ text: null,
474
+ spinner: null,
475
+ background: null,
476
+ fullscreen: true,
477
+ visible: false,
478
+ customClass: ''
479
+ };
480
+ },
481
+ methods: {
482
+ handleAfterLeave: function handleAfterLeave() {
483
+ this.$emit('after-leave');
484
+ },
485
+ setText: function setText(text) {
486
+ this.text = text;
487
+ }
488
+ }
336
489
  });
337
490
  // CONCATENATED MODULE: ./packages/loading/src/loading.vue?vue&type=script&lang=js
338
491
  /* harmony default export */ var src_loadingvue_type_script_lang_js = (loadingvue_type_script_lang_js);
339
492
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
340
- var componentNormalizer = __webpack_require__(0);
493
+ var componentNormalizer = __webpack_require__(2);
341
494
 
342
495
  // CONCATENATED MODULE: ./packages/loading/src/loading.vue
343
496
 
@@ -359,145 +512,169 @@ var component = Object(componentNormalizer["a" /* default */])(
359
512
  )
360
513
 
361
514
  /* harmony default export */ var loading = (component.exports);
362
- // EXTERNAL MODULE: external "element-ui/lib/utils/dom"
363
- var dom_ = __webpack_require__(2);
515
+ // EXTERNAL MODULE: ./src/utils/dom.js
516
+ var dom = __webpack_require__(1);
517
+
518
+ // EXTERNAL MODULE: ./src/utils/popup/index.js + 1 modules
519
+ var popup = __webpack_require__(24);
520
+
521
+ // CONCATENATED MODULE: ./src/utils/after-leave.js
522
+ /**
523
+ * Bind after-leave event for vue instance. Make sure after-leave is called in any browsers.
524
+ *
525
+ * @param {Vue} instance Vue instance.
526
+ * @param {Function} callback callback of after-leave event
527
+ * @param {Number} speed the speed of transition, default value is 300ms
528
+ * @param {Boolean} once weather bind after-leave once. default value is false.
529
+ */
530
+ /* harmony default export */ var after_leave = (function (instance, callback, speed, once) {
531
+ if (speed === void 0) {
532
+ speed = 300;
533
+ }
534
+ if (once === void 0) {
535
+ once = false;
536
+ }
537
+ if (!instance || !callback) throw new Error('instance & callback is required');
538
+ var called = false;
539
+ var afterLeaveCallback = function afterLeaveCallback() {
540
+ if (called) return;
541
+ called = true;
542
+ if (callback) {
543
+ callback.apply(null, arguments);
544
+ }
545
+ };
546
+ if (once) {
547
+ instance.$once('after-leave', afterLeaveCallback);
548
+ } else {
549
+ instance.$on('after-leave', afterLeaveCallback);
550
+ }
551
+ setTimeout(function () {
552
+ afterLeaveCallback();
553
+ }, speed + 100);
554
+ });
555
+ ;
556
+ // CONCATENATED MODULE: ./packages/loading/src/directive.js
364
557
 
365
- // EXTERNAL MODULE: external "element-ui/lib/utils/popup"
366
- var popup_ = __webpack_require__(13);
367
558
 
368
- // EXTERNAL MODULE: external "element-ui/lib/utils/after-leave"
369
- var after_leave_ = __webpack_require__(43);
370
- var after_leave_default = /*#__PURE__*/__webpack_require__.n(after_leave_);
371
559
 
372
- // CONCATENATED MODULE: ./packages/loading/src/directive.js
373
560
 
374
561
 
375
562
 
376
563
 
377
564
 
378
565
  var Mask = external_vue_default.a.extend(loading);
379
-
380
566
  var loadingDirective = {};
381
567
  loadingDirective.install = function (Vue) {
382
- if (Vue.prototype.$isServer) return;
383
- var toggleLoading = function toggleLoading(el, binding) {
384
- if (binding.value) {
385
- Vue.nextTick(function () {
386
- if (binding.modifiers.fullscreen) {
387
- el.originalPosition = Object(dom_["getStyle"])(document.body, 'position');
388
- el.originalOverflow = Object(dom_["getStyle"])(document.body, 'overflow');
389
- el.maskStyle.zIndex = popup_["PopupManager"].nextZIndex();
390
-
391
- Object(dom_["addClass"])(el.mask, 'is-fullscreen');
392
- insertDom(document.body, el, binding);
393
- } else {
394
- Object(dom_["removeClass"])(el.mask, 'is-fullscreen');
395
-
396
- if (binding.modifiers.body) {
397
- el.originalPosition = Object(dom_["getStyle"])(document.body, 'position');
398
-
399
- ['top', 'left'].forEach(function (property) {
400
- var scroll = property === 'top' ? 'scrollTop' : 'scrollLeft';
401
- el.maskStyle[property] = el.getBoundingClientRect()[property] + document.body[scroll] + document.documentElement[scroll] - parseInt(Object(dom_["getStyle"])(document.body, 'margin-' + property), 10) + 'px';
402
- });
403
- ['height', 'width'].forEach(function (property) {
404
- el.maskStyle[property] = el.getBoundingClientRect()[property] + 'px';
405
- });
406
-
407
- insertDom(document.body, el, binding);
408
- } else {
409
- el.originalPosition = Object(dom_["getStyle"])(el, 'position');
410
- insertDom(el, el, binding);
411
- }
412
- }
413
- });
414
- } else {
415
- after_leave_default()(el.instance, function (_) {
416
- if (!el.instance.hiding) return;
417
- el.domVisible = false;
418
- var target = binding.modifiers.fullscreen || binding.modifiers.body ? document.body : el;
419
- Object(dom_["removeClass"])(target, 'el-loading-parent--relative');
420
- Object(dom_["removeClass"])(target, 'el-loading-parent--hidden');
421
- el.instance.hiding = false;
422
- }, 300, true);
423
- el.instance.visible = false;
424
- el.instance.hiding = true;
425
- }
426
- };
427
- var insertDom = function insertDom(parent, el, binding) {
428
- if (!el.domVisible && Object(dom_["getStyle"])(el, 'display') !== 'none' && Object(dom_["getStyle"])(el, 'visibility') !== 'hidden') {
429
- Object.keys(el.maskStyle).forEach(function (property) {
430
- el.mask.style[property] = el.maskStyle[property];
431
- });
432
-
433
- if (el.originalPosition !== 'absolute' && el.originalPosition !== 'fixed' && el.originalPosition !== 'sticky') {
434
- Object(dom_["addClass"])(parent, 'el-loading-parent--relative');
435
- }
436
- if (binding.modifiers.fullscreen && binding.modifiers.lock) {
437
- Object(dom_["addClass"])(parent, 'el-loading-parent--hidden');
438
- }
439
- el.domVisible = true;
440
-
441
- parent.appendChild(el.mask);
442
- Vue.nextTick(function () {
443
- if (el.instance.hiding) {
444
- el.instance.$emit('after-leave');
445
- } else {
446
- el.instance.visible = true;
447
- }
448
- });
449
- el.domInserted = true;
450
- } else if (el.domVisible && el.instance.hiding === true) {
451
- el.instance.visible = true;
452
- el.instance.hiding = false;
453
- }
454
- };
455
-
456
- Vue.directive('loading', {
457
- bind: function bind(el, binding, vnode) {
458
- var textExr = el.getAttribute('element-loading-text');
459
- var spinnerExr = el.getAttribute('element-loading-spinner');
460
- var backgroundExr = el.getAttribute('element-loading-background');
461
- var customClassExr = el.getAttribute('element-loading-custom-class');
462
- var vm = vnode.context;
463
- var mask = new Mask({
464
- el: document.createElement('div'),
465
- data: {
466
- text: vm && vm[textExr] || textExr,
467
- spinner: vm && vm[spinnerExr] || spinnerExr,
468
- background: vm && vm[backgroundExr] || backgroundExr,
469
- customClass: vm && vm[customClassExr] || customClassExr,
470
- fullscreen: !!binding.modifiers.fullscreen
471
- }
472
- });
473
- el.instance = mask;
474
- el.mask = mask.$el;
475
- el.maskStyle = {};
476
-
477
- binding.value && toggleLoading(el, binding);
478
- },
479
-
480
- update: function update(el, binding) {
481
- el.instance.setText(el.getAttribute('element-loading-text'));
482
- if (binding.oldValue !== binding.value) {
483
- toggleLoading(el, binding);
484
- }
485
- },
486
-
487
- unbind: function unbind(el, binding) {
488
- if (el.domInserted) {
489
- el.mask && el.mask.parentNode && el.mask.parentNode.removeChild(el.mask);
490
- toggleLoading(el, { value: false, modifiers: binding.modifiers });
491
- }
492
- el.instance && el.instance.$destroy();
493
- }
494
- });
568
+ if (Vue.prototype.$isServer) return;
569
+ var toggleLoading = function toggleLoading(el, binding) {
570
+ if (binding.value) {
571
+ Vue.nextTick(function () {
572
+ if (binding.modifiers.fullscreen) {
573
+ el.originalPosition = Object(dom["c" /* getStyle */])(document.body, 'position');
574
+ el.originalOverflow = Object(dom["c" /* getStyle */])(document.body, 'overflow');
575
+ el.maskStyle.zIndex = popup["a" /* PopupManager */].nextZIndex();
576
+ Object(dom["a" /* addClass */])(el.mask, 'is-fullscreen');
577
+ insertDom(document.body, el, binding);
578
+ } else {
579
+ Object(dom["i" /* removeClass */])(el.mask, 'is-fullscreen');
580
+ if (binding.modifiers.body) {
581
+ el.originalPosition = Object(dom["c" /* getStyle */])(document.body, 'position');
582
+ ['top', 'left'].forEach(function (property) {
583
+ var scroll = property === 'top' ? 'scrollTop' : 'scrollLeft';
584
+ el.maskStyle[property] = el.getBoundingClientRect()[property] + document.body[scroll] + document.documentElement[scroll] - parseInt(Object(dom["c" /* getStyle */])(document.body, "margin-" + property), 10) + 'px';
585
+ });
586
+ ['height', 'width'].forEach(function (property) {
587
+ el.maskStyle[property] = el.getBoundingClientRect()[property] + 'px';
588
+ });
589
+ insertDom(document.body, el, binding);
590
+ } else {
591
+ el.originalPosition = Object(dom["c" /* getStyle */])(el, 'position');
592
+ insertDom(el, el, binding);
593
+ }
594
+ }
595
+ });
596
+ } else {
597
+ after_leave(el.instance, function (_) {
598
+ if (!el.instance.hiding) return;
599
+ el.domVisible = false;
600
+ var target = binding.modifiers.fullscreen || binding.modifiers.body ? document.body : el;
601
+ Object(dom["i" /* removeClass */])(target, 'el-loading-parent--relative');
602
+ Object(dom["i" /* removeClass */])(target, 'el-loading-parent--hidden');
603
+ el.instance.hiding = false;
604
+ }, 300, true);
605
+ el.instance.visible = false;
606
+ el.instance.hiding = true;
607
+ }
608
+ };
609
+ var insertDom = function insertDom(parent, el, binding) {
610
+ if (!el.domVisible && Object(dom["c" /* getStyle */])(el, 'display') !== 'none' && Object(dom["c" /* getStyle */])(el, 'visibility') !== 'hidden') {
611
+ Object.keys(el.maskStyle).forEach(function (property) {
612
+ el.mask.style[property] = el.maskStyle[property];
613
+ });
614
+ if (el.originalPosition !== 'absolute' && el.originalPosition !== 'fixed' && el.originalPosition !== 'sticky') {
615
+ Object(dom["a" /* addClass */])(parent, 'el-loading-parent--relative');
616
+ }
617
+ if (binding.modifiers.fullscreen && binding.modifiers.lock) {
618
+ Object(dom["a" /* addClass */])(parent, 'el-loading-parent--hidden');
619
+ }
620
+ el.domVisible = true;
621
+ parent.appendChild(el.mask);
622
+ Vue.nextTick(function () {
623
+ if (el.instance.hiding) {
624
+ el.instance.$emit('after-leave');
625
+ } else {
626
+ el.instance.visible = true;
627
+ }
628
+ });
629
+ el.domInserted = true;
630
+ } else if (el.domVisible && el.instance.hiding === true) {
631
+ el.instance.visible = true;
632
+ el.instance.hiding = false;
633
+ }
634
+ };
635
+ Vue.directive('loading', {
636
+ bind: function bind(el, binding, vnode) {
637
+ var textExr = el.getAttribute('element-loading-text');
638
+ var spinnerExr = el.getAttribute('element-loading-spinner');
639
+ var backgroundExr = el.getAttribute('element-loading-background');
640
+ var customClassExr = el.getAttribute('element-loading-custom-class');
641
+ var vm = vnode.context;
642
+ var mask = new Mask({
643
+ el: document.createElement('div'),
644
+ data: {
645
+ text: vm && vm[textExr] || textExr,
646
+ spinner: vm && vm[spinnerExr] || spinnerExr,
647
+ background: vm && vm[backgroundExr] || backgroundExr,
648
+ customClass: vm && vm[customClassExr] || customClassExr,
649
+ fullscreen: !!binding.modifiers.fullscreen
650
+ }
651
+ });
652
+ el.instance = mask;
653
+ el.mask = mask.$el;
654
+ el.maskStyle = {};
655
+ binding.value && toggleLoading(el, binding);
656
+ },
657
+ update: function update(el, binding) {
658
+ el.instance.setText(el.getAttribute('element-loading-text'));
659
+ if (binding.oldValue !== binding.value) {
660
+ toggleLoading(el, binding);
661
+ }
662
+ },
663
+ unbind: function unbind(el, binding) {
664
+ if (el.domInserted) {
665
+ el.mask && el.mask.parentNode && el.mask.parentNode.removeChild(el.mask);
666
+ toggleLoading(el, {
667
+ value: false,
668
+ modifiers: binding.modifiers
669
+ });
670
+ }
671
+ el.instance && el.instance.$destroy();
672
+ }
673
+ });
495
674
  };
496
-
497
675
  /* harmony default export */ var directive = (loadingDirective);
498
- // EXTERNAL MODULE: external "element-ui/lib/utils/merge"
499
- var merge_ = __webpack_require__(9);
500
- var merge_default = /*#__PURE__*/__webpack_require__.n(merge_);
676
+ // EXTERNAL MODULE: ./src/utils/merge.js
677
+ var merge = __webpack_require__(15);
501
678
 
502
679
  // CONCATENATED MODULE: ./packages/loading/src/index.js
503
680
 
@@ -507,124 +684,714 @@ var merge_default = /*#__PURE__*/__webpack_require__.n(merge_);
507
684
 
508
685
 
509
686
 
510
- var LoadingConstructor = external_vue_default.a.extend(loading);
511
687
 
688
+
689
+ var LoadingConstructor = external_vue_default.a.extend(loading);
512
690
  var defaults = {
513
- text: null,
514
- fullscreen: true,
515
- body: false,
516
- lock: false,
517
- customClass: ''
691
+ text: null,
692
+ fullscreen: true,
693
+ body: false,
694
+ lock: false,
695
+ customClass: ''
518
696
  };
519
-
520
- var fullscreenLoading = void 0;
521
-
697
+ var fullscreenLoading;
522
698
  LoadingConstructor.prototype.originalPosition = '';
523
699
  LoadingConstructor.prototype.originalOverflow = '';
524
-
525
700
  LoadingConstructor.prototype.close = function () {
526
- var _this = this;
527
-
528
- if (this.fullscreen) {
529
- fullscreenLoading = undefined;
530
- }
531
- after_leave_default()(this, function (_) {
532
- var target = _this.fullscreen || _this.body ? document.body : _this.target;
533
- Object(dom_["removeClass"])(target, 'el-loading-parent--relative');
534
- Object(dom_["removeClass"])(target, 'el-loading-parent--hidden');
535
- if (_this.$el && _this.$el.parentNode) {
536
- _this.$el.parentNode.removeChild(_this.$el);
537
- }
538
- _this.$destroy();
539
- }, 300);
540
- this.visible = false;
701
+ var _this = this;
702
+ if (this.fullscreen) {
703
+ fullscreenLoading = undefined;
704
+ }
705
+ after_leave(this, function (_) {
706
+ var target = _this.fullscreen || _this.body ? document.body : _this.target;
707
+ Object(dom["i" /* removeClass */])(target, 'el-loading-parent--relative');
708
+ Object(dom["i" /* removeClass */])(target, 'el-loading-parent--hidden');
709
+ if (_this.$el && _this.$el.parentNode) {
710
+ _this.$el.parentNode.removeChild(_this.$el);
711
+ }
712
+ _this.$destroy();
713
+ }, 300);
714
+ this.visible = false;
541
715
  };
542
-
543
716
  var src_addStyle = function addStyle(options, parent, instance) {
544
- var maskStyle = {};
545
- if (options.fullscreen) {
546
- instance.originalPosition = Object(dom_["getStyle"])(document.body, 'position');
547
- instance.originalOverflow = Object(dom_["getStyle"])(document.body, 'overflow');
548
- maskStyle.zIndex = popup_["PopupManager"].nextZIndex();
549
- } else if (options.body) {
550
- instance.originalPosition = Object(dom_["getStyle"])(document.body, 'position');
551
- ['top', 'left'].forEach(function (property) {
552
- var scroll = property === 'top' ? 'scrollTop' : 'scrollLeft';
553
- maskStyle[property] = options.target.getBoundingClientRect()[property] + document.body[scroll] + document.documentElement[scroll] + 'px';
554
- });
555
- ['height', 'width'].forEach(function (property) {
556
- maskStyle[property] = options.target.getBoundingClientRect()[property] + 'px';
557
- });
558
- } else {
559
- instance.originalPosition = Object(dom_["getStyle"])(parent, 'position');
560
- }
561
- Object.keys(maskStyle).forEach(function (property) {
562
- instance.$el.style[property] = maskStyle[property];
563
- });
717
+ var maskStyle = {};
718
+ if (options.fullscreen) {
719
+ instance.originalPosition = Object(dom["c" /* getStyle */])(document.body, 'position');
720
+ instance.originalOverflow = Object(dom["c" /* getStyle */])(document.body, 'overflow');
721
+ maskStyle.zIndex = popup["a" /* PopupManager */].nextZIndex();
722
+ } else if (options.body) {
723
+ instance.originalPosition = Object(dom["c" /* getStyle */])(document.body, 'position');
724
+ ['top', 'left'].forEach(function (property) {
725
+ var scroll = property === 'top' ? 'scrollTop' : 'scrollLeft';
726
+ maskStyle[property] = options.target.getBoundingClientRect()[property] + document.body[scroll] + document.documentElement[scroll] + 'px';
727
+ });
728
+ ['height', 'width'].forEach(function (property) {
729
+ maskStyle[property] = options.target.getBoundingClientRect()[property] + 'px';
730
+ });
731
+ } else {
732
+ instance.originalPosition = Object(dom["c" /* getStyle */])(parent, 'position');
733
+ }
734
+ Object.keys(maskStyle).forEach(function (property) {
735
+ instance.$el.style[property] = maskStyle[property];
736
+ });
564
737
  };
565
-
566
- var src_Loading = function Loading() {
567
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
568
-
569
- if (external_vue_default.a.prototype.$isServer) return;
570
- options = merge_default()({}, defaults, options);
571
- if (typeof options.target === 'string') {
572
- options.target = document.querySelector(options.target);
573
- }
574
- options.target = options.target || document.body;
575
- if (options.target !== document.body) {
576
- options.fullscreen = false;
577
- } else {
578
- options.body = true;
579
- }
580
- if (options.fullscreen && fullscreenLoading) {
581
- return fullscreenLoading;
582
- }
583
-
584
- var parent = options.body ? document.body : options.target;
585
- var instance = new LoadingConstructor({
586
- el: document.createElement('div'),
587
- data: options
588
- });
589
-
590
- src_addStyle(options, parent, instance);
591
- if (instance.originalPosition !== 'absolute' && instance.originalPosition !== 'fixed' && instance.originalPosition !== 'sticky') {
592
- Object(dom_["addClass"])(parent, 'el-loading-parent--relative');
593
- }
594
- if (options.fullscreen && options.lock) {
595
- Object(dom_["addClass"])(parent, 'el-loading-parent--hidden');
596
- }
597
- parent.appendChild(instance.$el);
598
- external_vue_default.a.nextTick(function () {
599
- instance.visible = true;
600
- });
601
- if (options.fullscreen) {
602
- fullscreenLoading = instance;
603
- }
604
- return instance;
738
+ var src_Loading = function Loading(options) {
739
+ if (options === void 0) {
740
+ options = {};
741
+ }
742
+ if (external_vue_default.a.prototype.$isServer) return;
743
+ options = Object(merge["a" /* default */])({}, defaults, options);
744
+ if (typeof options.target === 'string') {
745
+ options.target = document.querySelector(options.target);
746
+ }
747
+ options.target = options.target || document.body;
748
+ if (options.target !== document.body) {
749
+ options.fullscreen = false;
750
+ } else {
751
+ options.body = true;
752
+ }
753
+ if (options.fullscreen && fullscreenLoading) {
754
+ return fullscreenLoading;
755
+ }
756
+ var parent = options.body ? document.body : options.target;
757
+ var instance = new LoadingConstructor({
758
+ el: document.createElement('div'),
759
+ data: options
760
+ });
761
+ src_addStyle(options, parent, instance);
762
+ if (instance.originalPosition !== 'absolute' && instance.originalPosition !== 'fixed' && instance.originalPosition !== 'sticky') {
763
+ Object(dom["a" /* addClass */])(parent, 'el-loading-parent--relative');
764
+ }
765
+ if (options.fullscreen && options.lock) {
766
+ Object(dom["a" /* addClass */])(parent, 'el-loading-parent--hidden');
767
+ }
768
+ parent.appendChild(instance.$el);
769
+ external_vue_default.a.nextTick(function () {
770
+ instance.visible = true;
771
+ });
772
+ if (options.fullscreen) {
773
+ fullscreenLoading = instance;
774
+ }
775
+ return instance;
605
776
  };
606
-
607
777
  /* harmony default export */ var src = (src_Loading);
608
778
  // CONCATENATED MODULE: ./packages/loading/index.js
609
779
 
610
780
 
611
-
612
781
  /* harmony default export */ var packages_loading = __webpack_exports__["default"] = ({
613
- install: function install(Vue) {
614
- Vue.use(directive);
615
- Vue.prototype.$loading = src;
616
- },
782
+ install: function install(Vue) {
783
+ Vue.use(directive);
784
+ Vue.prototype.$loading = src;
785
+ },
786
+ directive: directive,
787
+ service: src
788
+ });
789
+
790
+ /***/ }),
791
+
792
+ /***/ 17:
793
+ /***/ (function(module, exports) {
794
+
795
+ module.exports = require("core-js/modules/es.object.keys.js");
796
+
797
+ /***/ }),
798
+
799
+ /***/ 18:
800
+ /***/ (function(module, exports) {
617
801
 
618
- directive: directive,
619
- service: src
802
+ module.exports = require("core-js/modules/es.array.filter.js");
803
+
804
+ /***/ }),
805
+
806
+ /***/ 2:
807
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
808
+
809
+ "use strict";
810
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
811
+ /* globals __VUE_SSR_CONTEXT__ */
812
+
813
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
814
+ // This module is a runtime utility for cleaner component module output and will
815
+ // be included in the final webpack user bundle.
816
+
817
+ function normalizeComponent(
818
+ scriptExports,
819
+ render,
820
+ staticRenderFns,
821
+ functionalTemplate,
822
+ injectStyles,
823
+ scopeId,
824
+ moduleIdentifier /* server only */,
825
+ shadowMode /* vue-cli only */
826
+ ) {
827
+ // Vue.extend constructor export interop
828
+ var options =
829
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
830
+
831
+ // render functions
832
+ if (render) {
833
+ options.render = render
834
+ options.staticRenderFns = staticRenderFns
835
+ options._compiled = true
836
+ }
837
+
838
+ // functional template
839
+ if (functionalTemplate) {
840
+ options.functional = true
841
+ }
842
+
843
+ // scopedId
844
+ if (scopeId) {
845
+ options._scopeId = 'data-v-' + scopeId
846
+ }
847
+
848
+ var hook
849
+ if (moduleIdentifier) {
850
+ // server build
851
+ hook = function (context) {
852
+ // 2.3 injection
853
+ context =
854
+ context || // cached call
855
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
856
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
857
+ // 2.2 with runInNewContext: true
858
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
859
+ context = __VUE_SSR_CONTEXT__
860
+ }
861
+ // inject component styles
862
+ if (injectStyles) {
863
+ injectStyles.call(this, context)
864
+ }
865
+ // register component module identifier for async chunk inferrence
866
+ if (context && context._registeredComponents) {
867
+ context._registeredComponents.add(moduleIdentifier)
868
+ }
869
+ }
870
+ // used by ssr in case component is cached and beforeCreate
871
+ // never gets called
872
+ options._ssrRegister = hook
873
+ } else if (injectStyles) {
874
+ hook = shadowMode
875
+ ? function () {
876
+ injectStyles.call(
877
+ this,
878
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
879
+ )
880
+ }
881
+ : injectStyles
882
+ }
883
+
884
+ if (hook) {
885
+ if (options.functional) {
886
+ // for template-only hot-reload because in that case the render fn doesn't
887
+ // go through the normalizer
888
+ options._injectStyles = hook
889
+ // register for functional component in vue file
890
+ var originalRender = options.render
891
+ options.render = function renderWithStyleInjection(h, context) {
892
+ hook.call(context)
893
+ return originalRender(h, context)
894
+ }
895
+ } else {
896
+ // inject component registration as beforeCreate hook
897
+ var existing = options.beforeCreate
898
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
899
+ }
900
+ }
901
+
902
+ return {
903
+ exports: scriptExports,
904
+ options: options
905
+ }
906
+ }
907
+
908
+
909
+ /***/ }),
910
+
911
+ /***/ 22:
912
+ /***/ (function(module, exports) {
913
+
914
+ module.exports = require("core-js/modules/es.array.splice.js");
915
+
916
+ /***/ }),
917
+
918
+ /***/ 23:
919
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
920
+
921
+ "use strict";
922
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
923
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
924
+
925
+ var scrollBarWidth;
926
+ /* harmony default export */ __webpack_exports__["a"] = (function () {
927
+ if (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer) return 0;
928
+ if (scrollBarWidth !== undefined) return scrollBarWidth;
929
+ var outer = document.createElement('div');
930
+ outer.className = 'el-scrollbar__wrap';
931
+ outer.style.visibility = 'hidden';
932
+ outer.style.width = '100px';
933
+ outer.style.position = 'absolute';
934
+ outer.style.top = '-9999px';
935
+ document.body.appendChild(outer);
936
+ var widthNoScroll = outer.offsetWidth;
937
+ outer.style.overflow = 'scroll';
938
+ var inner = document.createElement('div');
939
+ inner.style.width = '100%';
940
+ outer.appendChild(inner);
941
+ var widthWithScroll = inner.offsetWidth;
942
+ outer.parentNode.removeChild(outer);
943
+ scrollBarWidth = widthNoScroll - widthWithScroll;
944
+ return scrollBarWidth;
620
945
  });
946
+ ;
621
947
 
622
948
  /***/ }),
623
949
 
624
- /***/ 9:
950
+ /***/ 24:
951
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
952
+
953
+ "use strict";
954
+
955
+ // EXPORTS
956
+ __webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ popup_manager; });
957
+
958
+ // EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
959
+ var es_number_constructor_js_ = __webpack_require__(6);
960
+
961
+ // EXTERNAL MODULE: external "vue"
962
+ var external_vue_ = __webpack_require__(0);
963
+ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
964
+
965
+ // EXTERNAL MODULE: ./src/utils/merge.js
966
+ var merge = __webpack_require__(15);
967
+
968
+ // EXTERNAL MODULE: external "core-js/modules/es.array.splice.js"
969
+ var es_array_splice_js_ = __webpack_require__(22);
970
+
971
+ // EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
972
+ var es_object_to_string_js_ = __webpack_require__(3);
973
+
974
+ // EXTERNAL MODULE: external "core-js/modules/es.regexp.exec.js"
975
+ var es_regexp_exec_js_ = __webpack_require__(7);
976
+
977
+ // EXTERNAL MODULE: external "core-js/modules/es.string.split.js"
978
+ var es_string_split_js_ = __webpack_require__(59);
979
+
980
+ // EXTERNAL MODULE: external "core-js/modules/es.string.trim.js"
981
+ var es_string_trim_js_ = __webpack_require__(55);
982
+
983
+ // EXTERNAL MODULE: external "core-js/modules/web.dom-collections.for-each.js"
984
+ var web_dom_collections_for_each_js_ = __webpack_require__(10);
985
+
986
+ // EXTERNAL MODULE: ./src/utils/dom.js
987
+ var utils_dom = __webpack_require__(1);
988
+
989
+ // CONCATENATED MODULE: ./src/utils/popup/popup-manager.js
990
+
991
+
992
+
993
+
994
+
995
+
996
+
997
+
998
+ var hasModal = false;
999
+ var hasInitZIndex = false;
1000
+ var popup_manager_zIndex;
1001
+ var popup_manager_getModal = function getModal() {
1002
+ if (external_vue_default.a.prototype.$isServer) return;
1003
+ var modalDom = PopupManager.modalDom;
1004
+ if (modalDom) {
1005
+ hasModal = true;
1006
+ } else {
1007
+ hasModal = false;
1008
+ modalDom = document.createElement('div');
1009
+ PopupManager.modalDom = modalDom;
1010
+ modalDom.addEventListener('touchmove', function (event) {
1011
+ event.preventDefault();
1012
+ event.stopPropagation();
1013
+ });
1014
+ modalDom.addEventListener('click', function () {
1015
+ PopupManager.doOnModalClick && PopupManager.doOnModalClick();
1016
+ });
1017
+ }
1018
+ return modalDom;
1019
+ };
1020
+ var instances = {};
1021
+ var PopupManager = {
1022
+ modalFade: true,
1023
+ getInstance: function getInstance(id) {
1024
+ return instances[id];
1025
+ },
1026
+ register: function register(id, instance) {
1027
+ if (id && instance) {
1028
+ instances[id] = instance;
1029
+ }
1030
+ },
1031
+ deregister: function deregister(id) {
1032
+ if (id) {
1033
+ instances[id] = null;
1034
+ delete instances[id];
1035
+ }
1036
+ },
1037
+ nextZIndex: function nextZIndex() {
1038
+ return PopupManager.zIndex++;
1039
+ },
1040
+ modalStack: [],
1041
+ doOnModalClick: function doOnModalClick() {
1042
+ var topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1];
1043
+ if (!topItem) return;
1044
+ var instance = PopupManager.getInstance(topItem.id);
1045
+ if (instance && instance.closeOnClickModal) {
1046
+ instance.close();
1047
+ }
1048
+ },
1049
+ openModal: function openModal(id, zIndex, dom, modalClass, modalFade) {
1050
+ if (external_vue_default.a.prototype.$isServer) return;
1051
+ if (!id || zIndex === undefined) return;
1052
+ this.modalFade = modalFade;
1053
+ var modalStack = this.modalStack;
1054
+ for (var i = 0, j = modalStack.length; i < j; i++) {
1055
+ var item = modalStack[i];
1056
+ if (item.id === id) {
1057
+ return;
1058
+ }
1059
+ }
1060
+ var modalDom = popup_manager_getModal();
1061
+ Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal');
1062
+ if (this.modalFade && !hasModal) {
1063
+ Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-enter');
1064
+ }
1065
+ if (modalClass) {
1066
+ var classArr = modalClass.trim().split(/\s+/);
1067
+ classArr.forEach(function (item) {
1068
+ return Object(utils_dom["a" /* addClass */])(modalDom, item);
1069
+ });
1070
+ }
1071
+ setTimeout(function () {
1072
+ Object(utils_dom["i" /* removeClass */])(modalDom, 'v-modal-enter');
1073
+ }, 200);
1074
+ if (dom && dom.parentNode && dom.parentNode.nodeType !== 11) {
1075
+ dom.parentNode.appendChild(modalDom);
1076
+ } else {
1077
+ document.body.appendChild(modalDom);
1078
+ }
1079
+ if (zIndex) {
1080
+ modalDom.style.zIndex = zIndex;
1081
+ }
1082
+ modalDom.tabIndex = 0;
1083
+ modalDom.style.display = '';
1084
+ this.modalStack.push({
1085
+ id: id,
1086
+ zIndex: zIndex,
1087
+ modalClass: modalClass
1088
+ });
1089
+ },
1090
+ closeModal: function closeModal(id) {
1091
+ var modalStack = this.modalStack;
1092
+ var modalDom = popup_manager_getModal();
1093
+ if (modalStack.length > 0) {
1094
+ var topItem = modalStack[modalStack.length - 1];
1095
+ if (topItem.id === id) {
1096
+ if (topItem.modalClass) {
1097
+ var classArr = topItem.modalClass.trim().split(/\s+/);
1098
+ classArr.forEach(function (item) {
1099
+ return Object(utils_dom["i" /* removeClass */])(modalDom, item);
1100
+ });
1101
+ }
1102
+ modalStack.pop();
1103
+ if (modalStack.length > 0) {
1104
+ modalDom.style.zIndex = modalStack[modalStack.length - 1].zIndex;
1105
+ }
1106
+ } else {
1107
+ for (var i = modalStack.length - 1; i >= 0; i--) {
1108
+ if (modalStack[i].id === id) {
1109
+ modalStack.splice(i, 1);
1110
+ break;
1111
+ }
1112
+ }
1113
+ }
1114
+ }
1115
+ if (modalStack.length === 0) {
1116
+ if (this.modalFade) {
1117
+ Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-leave');
1118
+ }
1119
+ setTimeout(function () {
1120
+ if (modalStack.length === 0) {
1121
+ if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom);
1122
+ modalDom.style.display = 'none';
1123
+ PopupManager.modalDom = undefined;
1124
+ }
1125
+ Object(utils_dom["i" /* removeClass */])(modalDom, 'v-modal-leave');
1126
+ }, 200);
1127
+ }
1128
+ }
1129
+ };
1130
+ Object.defineProperty(PopupManager, 'zIndex', {
1131
+ configurable: true,
1132
+ get: function get() {
1133
+ if (!hasInitZIndex) {
1134
+ popup_manager_zIndex = popup_manager_zIndex || (external_vue_default.a.prototype.$ELEMENT || {}).zIndex || 2000;
1135
+ hasInitZIndex = true;
1136
+ }
1137
+ return popup_manager_zIndex;
1138
+ },
1139
+ set: function set(value) {
1140
+ popup_manager_zIndex = value;
1141
+ }
1142
+ });
1143
+ var popup_manager_getTopPopup = function getTopPopup() {
1144
+ if (external_vue_default.a.prototype.$isServer) return;
1145
+ if (PopupManager.modalStack.length > 0) {
1146
+ var topPopup = PopupManager.modalStack[PopupManager.modalStack.length - 1];
1147
+ if (!topPopup) return;
1148
+ var instance = PopupManager.getInstance(topPopup.id);
1149
+ return instance;
1150
+ }
1151
+ };
1152
+ if (!external_vue_default.a.prototype.$isServer) {
1153
+ // handle `esc` key when the popup is shown
1154
+ window.addEventListener('keydown', function (event) {
1155
+ if (event.keyCode === 27) {
1156
+ var topPopup = popup_manager_getTopPopup();
1157
+ if (topPopup && topPopup.closeOnPressEscape) {
1158
+ topPopup.handleClose ? topPopup.handleClose() : topPopup.handleAction ? topPopup.handleAction('cancel') : topPopup.close();
1159
+ }
1160
+ }
1161
+ });
1162
+ }
1163
+ /* harmony default export */ var popup_manager = (PopupManager);
1164
+ // EXTERNAL MODULE: ./src/utils/scrollbar-width.js
1165
+ var scrollbar_width = __webpack_require__(23);
1166
+
1167
+ // CONCATENATED MODULE: ./src/utils/popup/index.js
1168
+
1169
+
1170
+
1171
+
1172
+
1173
+
1174
+ var idSeed = 1;
1175
+ var scrollBarWidth;
1176
+ /* harmony default export */ var popup = __webpack_exports__["b"] = ({
1177
+ props: {
1178
+ visible: {
1179
+ type: Boolean,
1180
+ default: false
1181
+ },
1182
+ openDelay: {},
1183
+ closeDelay: {},
1184
+ zIndex: {},
1185
+ modal: {
1186
+ type: Boolean,
1187
+ default: false
1188
+ },
1189
+ modalFade: {
1190
+ type: Boolean,
1191
+ default: true
1192
+ },
1193
+ modalClass: {},
1194
+ modalAppendToBody: {
1195
+ type: Boolean,
1196
+ default: false
1197
+ },
1198
+ lockScroll: {
1199
+ type: Boolean,
1200
+ default: true
1201
+ },
1202
+ closeOnPressEscape: {
1203
+ type: Boolean,
1204
+ default: false
1205
+ },
1206
+ closeOnClickModal: {
1207
+ type: Boolean,
1208
+ default: false
1209
+ }
1210
+ },
1211
+ beforeMount: function beforeMount() {
1212
+ this._popupId = 'popup-' + idSeed++;
1213
+ popup_manager.register(this._popupId, this);
1214
+ },
1215
+ beforeDestroy: function beforeDestroy() {
1216
+ popup_manager.deregister(this._popupId);
1217
+ popup_manager.closeModal(this._popupId);
1218
+ this.restoreBodyStyle();
1219
+ },
1220
+ data: function data() {
1221
+ return {
1222
+ opened: false,
1223
+ bodyPaddingRight: null,
1224
+ computedBodyPaddingRight: 0,
1225
+ withoutHiddenClass: true,
1226
+ rendered: false
1227
+ };
1228
+ },
1229
+ watch: {
1230
+ visible: function visible(val) {
1231
+ var _this = this;
1232
+ if (val) {
1233
+ if (this._opening) return;
1234
+ if (!this.rendered) {
1235
+ this.rendered = true;
1236
+ external_vue_default.a.nextTick(function () {
1237
+ _this.open();
1238
+ });
1239
+ } else {
1240
+ this.open();
1241
+ }
1242
+ } else {
1243
+ this.close();
1244
+ }
1245
+ }
1246
+ },
1247
+ methods: {
1248
+ open: function open(options) {
1249
+ var _this2 = this;
1250
+ if (!this.rendered) {
1251
+ this.rendered = true;
1252
+ }
1253
+ var props = Object(merge["a" /* default */])({}, this.$props || this, options);
1254
+ if (this._closeTimer) {
1255
+ clearTimeout(this._closeTimer);
1256
+ this._closeTimer = null;
1257
+ }
1258
+ clearTimeout(this._openTimer);
1259
+ var openDelay = Number(props.openDelay);
1260
+ if (openDelay > 0) {
1261
+ this._openTimer = setTimeout(function () {
1262
+ _this2._openTimer = null;
1263
+ _this2.doOpen(props);
1264
+ }, openDelay);
1265
+ } else {
1266
+ this.doOpen(props);
1267
+ }
1268
+ },
1269
+ doOpen: function doOpen(props) {
1270
+ if (this.$isServer) return;
1271
+ if (this.willOpen && !this.willOpen()) return;
1272
+ if (this.opened) return;
1273
+ this._opening = true;
1274
+ var dom = this.$el;
1275
+ var modal = props.modal;
1276
+ var zIndex = props.zIndex;
1277
+ if (zIndex) {
1278
+ popup_manager.zIndex = zIndex;
1279
+ }
1280
+ if (modal) {
1281
+ if (this._closing) {
1282
+ popup_manager.closeModal(this._popupId);
1283
+ this._closing = false;
1284
+ }
1285
+ popup_manager.openModal(this._popupId, popup_manager.nextZIndex(), this.modalAppendToBody ? undefined : dom, props.modalClass, props.modalFade);
1286
+ if (props.lockScroll) {
1287
+ this.withoutHiddenClass = !Object(utils_dom["d" /* hasClass */])(document.body, 'el-popup-parent--hidden');
1288
+ if (this.withoutHiddenClass) {
1289
+ this.bodyPaddingRight = document.body.style.paddingRight;
1290
+ this.computedBodyPaddingRight = parseInt(Object(utils_dom["c" /* getStyle */])(document.body, 'paddingRight'), 10);
1291
+ }
1292
+ scrollBarWidth = Object(scrollbar_width["a" /* default */])();
1293
+ var bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
1294
+ var bodyOverflowY = Object(utils_dom["c" /* getStyle */])(document.body, 'overflowY');
1295
+ if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === 'scroll') && this.withoutHiddenClass) {
1296
+ document.body.style.paddingRight = this.computedBodyPaddingRight + scrollBarWidth + 'px';
1297
+ }
1298
+ Object(utils_dom["a" /* addClass */])(document.body, 'el-popup-parent--hidden');
1299
+ }
1300
+ }
1301
+ if (getComputedStyle(dom).position === 'static') {
1302
+ dom.style.position = 'absolute';
1303
+ }
1304
+ dom.style.zIndex = popup_manager.nextZIndex();
1305
+ this.opened = true;
1306
+ this.onOpen && this.onOpen();
1307
+ this.doAfterOpen();
1308
+ },
1309
+ doAfterOpen: function doAfterOpen() {
1310
+ this._opening = false;
1311
+ },
1312
+ close: function close() {
1313
+ var _this3 = this;
1314
+ if (this.willClose && !this.willClose()) return;
1315
+ if (this._openTimer !== null) {
1316
+ clearTimeout(this._openTimer);
1317
+ this._openTimer = null;
1318
+ }
1319
+ clearTimeout(this._closeTimer);
1320
+ var closeDelay = Number(this.closeDelay);
1321
+ if (closeDelay > 0) {
1322
+ this._closeTimer = setTimeout(function () {
1323
+ _this3._closeTimer = null;
1324
+ _this3.doClose();
1325
+ }, closeDelay);
1326
+ } else {
1327
+ this.doClose();
1328
+ }
1329
+ },
1330
+ doClose: function doClose() {
1331
+ this._closing = true;
1332
+ this.onClose && this.onClose();
1333
+ if (this.lockScroll) {
1334
+ setTimeout(this.restoreBodyStyle, 200);
1335
+ }
1336
+ this.opened = false;
1337
+ this.doAfterClose();
1338
+ },
1339
+ doAfterClose: function doAfterClose() {
1340
+ popup_manager.closeModal(this._popupId);
1341
+ this._closing = false;
1342
+ },
1343
+ restoreBodyStyle: function restoreBodyStyle() {
1344
+ if (this.modal && this.withoutHiddenClass) {
1345
+ document.body.style.paddingRight = this.bodyPaddingRight;
1346
+ Object(utils_dom["i" /* removeClass */])(document.body, 'el-popup-parent--hidden');
1347
+ }
1348
+ this.withoutHiddenClass = true;
1349
+ }
1350
+ }
1351
+ });
1352
+
1353
+
1354
+ /***/ }),
1355
+
1356
+ /***/ 3:
1357
+ /***/ (function(module, exports) {
1358
+
1359
+ module.exports = require("core-js/modules/es.object.to-string.js");
1360
+
1361
+ /***/ }),
1362
+
1363
+ /***/ 53:
1364
+ /***/ (function(module, exports) {
1365
+
1366
+ module.exports = require("core-js/modules/es.array.includes.js");
1367
+
1368
+ /***/ }),
1369
+
1370
+ /***/ 55:
1371
+ /***/ (function(module, exports) {
1372
+
1373
+ module.exports = require("core-js/modules/es.string.trim.js");
1374
+
1375
+ /***/ }),
1376
+
1377
+ /***/ 59:
1378
+ /***/ (function(module, exports) {
1379
+
1380
+ module.exports = require("core-js/modules/es.string.split.js");
1381
+
1382
+ /***/ }),
1383
+
1384
+ /***/ 6:
1385
+ /***/ (function(module, exports) {
1386
+
1387
+ module.exports = require("core-js/modules/es.number.constructor.js");
1388
+
1389
+ /***/ }),
1390
+
1391
+ /***/ 7:
625
1392
  /***/ (function(module, exports) {
626
1393
 
627
- module.exports = require("element-ui/lib/utils/merge");
1394
+ module.exports = require("core-js/modules/es.regexp.exec.js");
628
1395
 
629
1396
  /***/ })
630
1397