cy-element-ui 1.0.27 → 1.0.29

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 (902) hide show
  1. package/CHANGELOG.md +280 -280
  2. package/LICENSE +21 -21
  3. package/README.md +171 -171
  4. package/lib/alert.js +203 -211
  5. package/lib/aside.js +80 -80
  6. package/lib/autocomplete.js +465 -4583
  7. package/lib/avatar.js +126 -152
  8. package/lib/backtop.js +198 -190
  9. package/lib/badge.js +134 -128
  10. package/lib/breadcrumb-item.js +122 -146
  11. package/lib/breadcrumb.js +96 -97
  12. package/lib/button-group.js +65 -68
  13. package/lib/button.js +87 -67
  14. package/lib/calendar.js +605 -2416
  15. package/lib/card.js +100 -101
  16. package/lib/carousel-item.js +210 -854
  17. package/lib/carousel.js +411 -578
  18. package/lib/cascader-panel.js +1153 -3542
  19. package/lib/cascader.js +893 -7284
  20. package/lib/checkbox-button.js +290 -337
  21. package/lib/checkbox-group.js +105 -176
  22. package/lib/checkbox.js +220 -240
  23. package/lib/col.js +68 -113
  24. package/lib/collapse-item.js +162 -1250
  25. package/lib/collapse.js +123 -163
  26. package/lib/color-picker.js +1242 -5200
  27. package/lib/container.js +88 -98
  28. package/lib/date-picker.js +4024 -8447
  29. package/lib/descriptions-item.js +32 -53
  30. package/lib/descriptions.js +334 -697
  31. package/lib/dialog.js +247 -1721
  32. package/lib/directives/mousewheel.js +20 -14
  33. package/lib/directives/repeat-click.js +30 -27
  34. package/lib/divider.js +116 -109
  35. package/lib/drawer.js +315 -1109
  36. package/lib/dropdown-item.js +111 -159
  37. package/lib/dropdown-menu.js +117 -2445
  38. package/lib/dropdown.js +381 -1784
  39. package/lib/element-ui.common.js +42414 -46083
  40. package/lib/empty.js +202 -1069
  41. package/lib/fileUpload.js +605 -3512
  42. package/lib/footer.js +80 -80
  43. package/lib/form-item.js +467 -1222
  44. package/lib/form.js +258 -326
  45. package/lib/header.js +80 -80
  46. package/lib/icon.js +68 -71
  47. package/lib/image.js +743 -2375
  48. package/lib/index.js +1 -1
  49. package/lib/infinite-scroll.js +150 -814
  50. package/lib/input-number.js +444 -2177
  51. package/lib/input.js +517 -1197
  52. package/lib/link.js +135 -117
  53. package/lib/loading.js +372 -1139
  54. package/lib/locale/format.js +52 -42
  55. package/lib/locale/index.js +52 -38
  56. package/lib/locale/lang/af-ZA.js +123 -130
  57. package/lib/locale/lang/ar.js +122 -123
  58. package/lib/locale/lang/az.js +121 -122
  59. package/lib/locale/lang/bg.js +123 -133
  60. package/lib/locale/lang/bn.js +121 -121
  61. package/lib/locale/lang/ca.js +122 -123
  62. package/lib/locale/lang/cs-CZ.js +125 -127
  63. package/lib/locale/lang/da.js +122 -124
  64. package/lib/locale/lang/de.js +124 -126
  65. package/lib/locale/lang/ee.js +123 -125
  66. package/lib/locale/lang/el.js +123 -125
  67. package/lib/locale/lang/en.js +123 -127
  68. package/lib/locale/lang/eo.js +123 -125
  69. package/lib/locale/lang/es.js +122 -123
  70. package/lib/locale/lang/eu.js +123 -128
  71. package/lib/locale/lang/fa.js +123 -125
  72. package/lib/locale/lang/fi.js +123 -125
  73. package/lib/locale/lang/fr.js +122 -125
  74. package/lib/locale/lang/he.js +123 -130
  75. package/lib/locale/lang/hr.js +123 -128
  76. package/lib/locale/lang/hu.js +122 -124
  77. package/lib/locale/lang/hy-AM.js +123 -125
  78. package/lib/locale/lang/id.js +123 -124
  79. package/lib/locale/lang/is.js +123 -124
  80. package/lib/locale/lang/it.js +122 -123
  81. package/lib/locale/lang/ja.js +123 -125
  82. package/lib/locale/lang/kg.js +123 -125
  83. package/lib/locale/lang/km.js +123 -124
  84. package/lib/locale/lang/ko.js +123 -125
  85. package/lib/locale/lang/ku.js +123 -125
  86. package/lib/locale/lang/kz.js +123 -125
  87. package/lib/locale/lang/lo-LA.js +121 -121
  88. package/lib/locale/lang/lt.js +123 -125
  89. package/lib/locale/lang/lv.js +123 -125
  90. package/lib/locale/lang/mn.js +123 -125
  91. package/lib/locale/lang/ms.js +122 -123
  92. package/lib/locale/lang/nb-NO.js +122 -123
  93. package/lib/locale/lang/nl.js +123 -125
  94. package/lib/locale/lang/pl.js +123 -125
  95. package/lib/locale/lang/pt-br.js +123 -124
  96. package/lib/locale/lang/pt.js +123 -133
  97. package/lib/locale/lang/ro.js +123 -125
  98. package/lib/locale/lang/ru-RU.js +123 -124
  99. package/lib/locale/lang/si.js +123 -127
  100. package/lib/locale/lang/sk.js +125 -126
  101. package/lib/locale/lang/sl.js +123 -125
  102. package/lib/locale/lang/sr-Latn.js +123 -124
  103. package/lib/locale/lang/sr.js +123 -128
  104. package/lib/locale/lang/sv-SE.js +123 -128
  105. package/lib/locale/lang/sw.js +123 -127
  106. package/lib/locale/lang/ta.js +122 -130
  107. package/lib/locale/lang/th.js +123 -127
  108. package/lib/locale/lang/tk.js +123 -129
  109. package/lib/locale/lang/tr-TR.js +123 -125
  110. package/lib/locale/lang/ua.js +123 -124
  111. package/lib/locale/lang/ug-CN.js +123 -124
  112. package/lib/locale/lang/uz-UZ.js +123 -124
  113. package/lib/locale/lang/vi.js +123 -124
  114. package/lib/locale/lang/zh-CN.js +123 -124
  115. package/lib/locale/lang/zh-TW.js +123 -128
  116. package/lib/main.js +67 -69
  117. package/lib/menu-item-group.js +111 -105
  118. package/lib/menu-item.js +259 -3549
  119. package/lib/menu.js +559 -1697
  120. package/lib/message-box.js +693 -3422
  121. package/lib/message.js +229 -1663
  122. package/lib/mixins/emitter.js +30 -28
  123. package/lib/mixins/focus.js +11 -10
  124. package/lib/mixins/locale.js +14 -12
  125. package/lib/mixins/migrating.js +65 -58
  126. package/lib/notification.js +269 -1693
  127. package/lib/option-group.js +139 -190
  128. package/lib/option.js +192 -941
  129. package/lib/page-header.js +92 -1014
  130. package/lib/pagination.js +677 -6969
  131. package/lib/popconfirm.js +219 -3932
  132. package/lib/popover.js +368 -3242
  133. package/lib/progress.js +244 -254
  134. package/lib/radio-button.js +226 -259
  135. package/lib/radio-group.js +186 -249
  136. package/lib/radio.js +253 -263
  137. package/lib/rate.js +415 -1394
  138. package/lib/result.js +233 -189
  139. package/lib/row.js +41 -58
  140. package/lib/scrollbar.js +278 -1331
  141. package/lib/select.js +1347 -5731
  142. package/lib/skeleton-item.js +145 -133
  143. package/lib/skeleton.js +172 -163
  144. package/lib/slider.js +702 -5143
  145. package/lib/spinner.js +101 -113
  146. package/lib/statistic.js +533 -0
  147. package/lib/step.js +310 -273
  148. package/lib/steps.js +115 -852
  149. package/lib/subTitle.js +96 -95
  150. package/lib/submenu.js +448 -2887
  151. package/lib/switch.js +204 -1036
  152. package/lib/tab-pane.js +135 -125
  153. package/lib/tabDialog.js +493 -2350
  154. package/lib/table-column.js +751 -1975
  155. package/lib/table.js +3934 -7957
  156. package/lib/tabs.js +605 -1441
  157. package/lib/tag.js +68 -73
  158. package/lib/theme-chalk/README.md +33 -33
  159. package/lib/theme-chalk/package.json +35 -35
  160. package/lib/theme-chalk/src/alert.scss +147 -147
  161. package/lib/theme-chalk/src/aside.scss +7 -7
  162. package/lib/theme-chalk/src/autocomplete.scss +80 -80
  163. package/lib/theme-chalk/src/avatar.scss +51 -51
  164. package/lib/theme-chalk/src/backtop.scss +22 -22
  165. package/lib/theme-chalk/src/badge.scss +57 -57
  166. package/lib/theme-chalk/src/base.scss +2 -2
  167. package/lib/theme-chalk/src/breadcrumb.scss +55 -55
  168. package/lib/theme-chalk/src/button.scss +262 -262
  169. package/lib/theme-chalk/src/calendar.scss +79 -79
  170. package/lib/theme-chalk/src/card.scss +32 -32
  171. package/lib/theme-chalk/src/carousel-item.scss +50 -50
  172. package/lib/theme-chalk/src/carousel.scss +161 -161
  173. package/lib/theme-chalk/src/cascader-panel.scss +120 -120
  174. package/lib/theme-chalk/src/cascader.scss +182 -182
  175. package/lib/theme-chalk/src/checkbox.scss +359 -359
  176. package/lib/theme-chalk/src/col.scss +156 -156
  177. package/lib/theme-chalk/src/collapse.scss +63 -63
  178. package/lib/theme-chalk/src/color-picker.scss +384 -384
  179. package/lib/theme-chalk/src/common/popup.scss +42 -42
  180. package/lib/theme-chalk/src/common/transition.scss +99 -99
  181. package/lib/theme-chalk/src/common/var.scss +1028 -1028
  182. package/lib/theme-chalk/src/container.scss +14 -14
  183. package/lib/theme-chalk/src/date-picker/date-picker.scss +97 -97
  184. package/lib/theme-chalk/src/date-picker/date-range-picker.scss +101 -101
  185. package/lib/theme-chalk/src/date-picker/date-table.scss +151 -151
  186. package/lib/theme-chalk/src/date-picker/month-table.scss +82 -82
  187. package/lib/theme-chalk/src/date-picker/picker-panel.scss +117 -117
  188. package/lib/theme-chalk/src/date-picker/picker.scss +197 -197
  189. package/lib/theme-chalk/src/date-picker/time-picker.scss +85 -85
  190. package/lib/theme-chalk/src/date-picker/time-range-picker.scss +31 -31
  191. package/lib/theme-chalk/src/date-picker/time-spinner.scss +110 -110
  192. package/lib/theme-chalk/src/date-picker/year-table.scss +51 -51
  193. package/lib/theme-chalk/src/date-picker.scss +11 -11
  194. package/lib/theme-chalk/src/descriptions-item.scss +42 -42
  195. package/lib/theme-chalk/src/descriptions.scss +111 -111
  196. package/lib/theme-chalk/src/dialog.scss +123 -123
  197. package/lib/theme-chalk/src/display.scss +12 -12
  198. package/lib/theme-chalk/src/divider.scss +47 -47
  199. package/lib/theme-chalk/src/drawer.scss +219 -219
  200. package/lib/theme-chalk/src/dropdown.scss +182 -182
  201. package/lib/theme-chalk/src/empty.scss +45 -45
  202. package/lib/theme-chalk/src/footer.scss +8 -8
  203. package/lib/theme-chalk/src/form.scss +167 -167
  204. package/lib/theme-chalk/src/header.scss +8 -8
  205. package/lib/theme-chalk/src/icon.scss +1167 -1167
  206. package/lib/theme-chalk/src/image.scss +179 -179
  207. package/lib/theme-chalk/src/index.scss +90 -89
  208. package/lib/theme-chalk/src/input-number.scss +180 -180
  209. package/lib/theme-chalk/src/input.scss +360 -360
  210. package/lib/theme-chalk/src/link.scss +81 -81
  211. package/lib/theme-chalk/src/loading.scss +96 -96
  212. package/lib/theme-chalk/src/main.scss +12 -12
  213. package/lib/theme-chalk/src/menu.scss +289 -289
  214. package/lib/theme-chalk/src/message-box.scss +226 -226
  215. package/lib/theme-chalk/src/message.scss +120 -120
  216. package/lib/theme-chalk/src/mixins/_button.scss +81 -81
  217. package/lib/theme-chalk/src/mixins/config.scss +4 -4
  218. package/lib/theme-chalk/src/mixins/function.scss +44 -44
  219. package/lib/theme-chalk/src/mixins/mixins.scss +190 -190
  220. package/lib/theme-chalk/src/mixins/utils.scss +39 -39
  221. package/lib/theme-chalk/src/notification.scss +99 -99
  222. package/lib/theme-chalk/src/option-group.scss +42 -42
  223. package/lib/theme-chalk/src/option.scss +36 -36
  224. package/lib/theme-chalk/src/page-header.scss +41 -41
  225. package/lib/theme-chalk/src/pagination.scss +295 -295
  226. package/lib/theme-chalk/src/popconfirm.scss +16 -16
  227. package/lib/theme-chalk/src/popover.scss +40 -40
  228. package/lib/theme-chalk/src/popper.scss +101 -101
  229. package/lib/theme-chalk/src/progress.scss +141 -141
  230. package/lib/theme-chalk/src/radio-button.scss +113 -113
  231. package/lib/theme-chalk/src/radio-group.scss +9 -9
  232. package/lib/theme-chalk/src/radio.scss +199 -199
  233. package/lib/theme-chalk/src/rate.scss +49 -49
  234. package/lib/theme-chalk/src/reset.scss +79 -79
  235. package/lib/theme-chalk/src/result.scss +61 -61
  236. package/lib/theme-chalk/src/row.scss +43 -43
  237. package/lib/theme-chalk/src/scrollbar.scss +72 -72
  238. package/lib/theme-chalk/src/select-dropdown.scss +62 -62
  239. package/lib/theme-chalk/src/select.scss +152 -152
  240. package/lib/theme-chalk/src/skeleton-item.scss +84 -84
  241. package/lib/theme-chalk/src/skeleton.scss +40 -40
  242. package/lib/theme-chalk/src/slider.scss +250 -250
  243. package/lib/theme-chalk/src/spinner.scss +44 -44
  244. package/lib/theme-chalk/src/statistic.scss +38 -0
  245. package/lib/theme-chalk/src/step.scss +317 -317
  246. package/lib/theme-chalk/src/steps.scss +20 -20
  247. package/lib/theme-chalk/src/switch.scss +116 -116
  248. package/lib/theme-chalk/src/table-column.scss +97 -97
  249. package/lib/theme-chalk/src/table.scss +564 -564
  250. package/lib/theme-chalk/src/tabs.scss +602 -602
  251. package/lib/theme-chalk/src/tag.scss +163 -163
  252. package/lib/theme-chalk/src/time-picker.scss +8 -8
  253. package/lib/theme-chalk/src/time-select.scss +37 -37
  254. package/lib/theme-chalk/src/timeline-item.scss +86 -86
  255. package/lib/theme-chalk/src/timeline.scss +14 -14
  256. package/lib/theme-chalk/src/tooltip.scss +141 -141
  257. package/lib/theme-chalk/src/transfer.scss +227 -227
  258. package/lib/theme-chalk/src/tree.scss +123 -123
  259. package/lib/theme-chalk/src/upload.scss +603 -603
  260. package/lib/time-picker.js +1837 -6690
  261. package/lib/time-select.js +1240 -6327
  262. package/lib/timeline-item.js +174 -133
  263. package/lib/timeline.js +39 -43
  264. package/lib/tooltip.js +287 -3184
  265. package/lib/transfer.js +625 -2929
  266. package/lib/transitions/collapse-transition.js +87 -69
  267. package/lib/tree.js +1741 -3248
  268. package/lib/treeSelect.js +370 -4109
  269. package/lib/umd/locale/af-ZA.js +138 -145
  270. package/lib/umd/locale/ar.js +137 -138
  271. package/lib/umd/locale/az.js +137 -139
  272. package/lib/umd/locale/bg.js +138 -148
  273. package/lib/umd/locale/bn.js +137 -138
  274. package/lib/umd/locale/ca.js +137 -138
  275. package/lib/umd/locale/cs-CZ.js +140 -142
  276. package/lib/umd/locale/da.js +137 -139
  277. package/lib/umd/locale/de.js +139 -141
  278. package/lib/umd/locale/ee.js +138 -140
  279. package/lib/umd/locale/el.js +138 -140
  280. package/lib/umd/locale/en.js +138 -142
  281. package/lib/umd/locale/eo.js +138 -140
  282. package/lib/umd/locale/es.js +137 -138
  283. package/lib/umd/locale/eu.js +138 -143
  284. package/lib/umd/locale/fa.js +138 -140
  285. package/lib/umd/locale/fi.js +138 -140
  286. package/lib/umd/locale/fr.js +137 -140
  287. package/lib/umd/locale/he.js +138 -145
  288. package/lib/umd/locale/hr.js +138 -143
  289. package/lib/umd/locale/hu.js +137 -139
  290. package/lib/umd/locale/hy-AM.js +138 -140
  291. package/lib/umd/locale/id.js +138 -139
  292. package/lib/umd/locale/is.js +138 -139
  293. package/lib/umd/locale/it.js +137 -138
  294. package/lib/umd/locale/ja.js +138 -140
  295. package/lib/umd/locale/kg.js +138 -140
  296. package/lib/umd/locale/km.js +138 -139
  297. package/lib/umd/locale/ko.js +138 -140
  298. package/lib/umd/locale/ku.js +138 -140
  299. package/lib/umd/locale/kz.js +138 -140
  300. package/lib/umd/locale/lo-LA.js +137 -138
  301. package/lib/umd/locale/lt.js +138 -140
  302. package/lib/umd/locale/lv.js +138 -140
  303. package/lib/umd/locale/mn.js +138 -140
  304. package/lib/umd/locale/ms.js +137 -138
  305. package/lib/umd/locale/nb-NO.js +137 -138
  306. package/lib/umd/locale/nl.js +138 -140
  307. package/lib/umd/locale/pl.js +138 -140
  308. package/lib/umd/locale/pt-br.js +138 -139
  309. package/lib/umd/locale/pt.js +138 -148
  310. package/lib/umd/locale/ro.js +138 -140
  311. package/lib/umd/locale/ru-RU.js +138 -139
  312. package/lib/umd/locale/si.js +138 -142
  313. package/lib/umd/locale/sk.js +140 -141
  314. package/lib/umd/locale/sl.js +138 -140
  315. package/lib/umd/locale/sr-Latn.js +138 -139
  316. package/lib/umd/locale/sr.js +138 -143
  317. package/lib/umd/locale/sv-SE.js +138 -143
  318. package/lib/umd/locale/sw.js +138 -142
  319. package/lib/umd/locale/ta.js +137 -145
  320. package/lib/umd/locale/th.js +138 -142
  321. package/lib/umd/locale/tk.js +138 -144
  322. package/lib/umd/locale/tr-TR.js +138 -140
  323. package/lib/umd/locale/ua.js +138 -139
  324. package/lib/umd/locale/ug-CN.js +138 -139
  325. package/lib/umd/locale/uz-UZ.js +138 -139
  326. package/lib/umd/locale/vi.js +138 -139
  327. package/lib/umd/locale/zh-CN.js +138 -139
  328. package/lib/umd/locale/zh-TW.js +138 -143
  329. package/lib/upload.js +990 -2376
  330. package/lib/utils/after-leave.js +33 -36
  331. package/lib/utils/aria-dialog.js +89 -71
  332. package/lib/utils/aria-utils.js +101 -92
  333. package/lib/utils/clickoutside.js +67 -59
  334. package/lib/utils/date-util.js +241 -198
  335. package/lib/utils/date.js +369 -14
  336. package/lib/utils/dom.js +183 -167
  337. package/lib/utils/lodash.js +9421 -13
  338. package/lib/utils/menu/aria-menubar.js +18 -13
  339. package/lib/utils/menu/aria-menuitem.js +54 -43
  340. package/lib/utils/menu/aria-submenu.js +59 -50
  341. package/lib/utils/merge.js +17 -15
  342. package/lib/utils/popper.js +1196 -1167
  343. package/lib/utils/popup/index.js +230 -186
  344. package/lib/utils/popup/popup-manager.js +191 -159
  345. package/lib/utils/resize-event.js +44 -29
  346. package/lib/utils/scroll-into-view.js +33 -25
  347. package/lib/utils/scrollbar-width.js +36 -25
  348. package/lib/utils/shared.js +3 -3
  349. package/lib/utils/types.js +35 -22
  350. package/lib/utils/util.js +221 -187
  351. package/lib/utils/vdom.js +9 -5
  352. package/lib/utils/vue-popper.js +195 -173
  353. package/package.json +160 -160
  354. package/packages/alert/index.js +8 -8
  355. package/packages/alert/src/main.vue +94 -94
  356. package/packages/aside/index.js +8 -8
  357. package/packages/aside/src/main.vue +20 -20
  358. package/packages/autocomplete/index.js +8 -8
  359. package/packages/autocomplete/src/autocomplete-suggestions.vue +76 -76
  360. package/packages/autocomplete/src/autocomplete.vue +285 -285
  361. package/packages/avatar/index.js +8 -8
  362. package/packages/avatar/src/main.vue +107 -107
  363. package/packages/backtop/index.js +8 -8
  364. package/packages/backtop/src/main.vue +110 -110
  365. package/packages/badge/index.js +8 -8
  366. package/packages/badge/src/main.vue +53 -53
  367. package/packages/breadcrumb/index.js +8 -8
  368. package/packages/breadcrumb/src/breadcrumb-item.vue +41 -41
  369. package/packages/breadcrumb/src/breadcrumb.vue +34 -34
  370. package/packages/breadcrumb-item/index.js +8 -8
  371. package/packages/button/index.js +8 -8
  372. package/packages/button/src/button-group.vue +10 -10
  373. package/packages/button/src/button.vue +78 -78
  374. package/packages/button-group/index.js +8 -8
  375. package/packages/calendar/index.js +8 -8
  376. package/packages/calendar/src/date-table.vue +200 -200
  377. package/packages/calendar/src/main.vue +280 -280
  378. package/packages/card/index.js +8 -8
  379. package/packages/card/src/main.vue +23 -23
  380. package/packages/carousel/index.js +8 -8
  381. package/packages/carousel/src/item.vue +138 -138
  382. package/packages/carousel/src/main.vue +315 -315
  383. package/packages/carousel-item/index.js +8 -8
  384. package/packages/cascader/index.js +8 -8
  385. package/packages/cascader/src/cascader.vue +663 -663
  386. package/packages/cascader-panel/index.js +8 -8
  387. package/packages/cascader-panel/src/cascader-menu.vue +138 -138
  388. package/packages/cascader-panel/src/cascader-node.vue +246 -246
  389. package/packages/cascader-panel/src/cascader-panel.vue +391 -391
  390. package/packages/cascader-panel/src/node.js +164 -164
  391. package/packages/cascader-panel/src/store.js +56 -56
  392. package/packages/checkbox/index.js +8 -8
  393. package/packages/checkbox/src/checkbox-button.vue +199 -199
  394. package/packages/checkbox/src/checkbox-group.vue +48 -48
  395. package/packages/checkbox/src/checkbox.vue +222 -222
  396. package/packages/checkbox-button/index.js +8 -8
  397. package/packages/checkbox-group/index.js +8 -8
  398. package/packages/col/index.js +9 -9
  399. package/packages/col/src/col.js +71 -71
  400. package/packages/collapse/index.js +9 -9
  401. package/packages/collapse/src/collapse-item.vue +114 -114
  402. package/packages/collapse/src/collapse.vue +73 -73
  403. package/packages/collapse-item/index.js +8 -8
  404. package/packages/color-picker/index.js +8 -8
  405. package/packages/color-picker/src/color.js +317 -317
  406. package/packages/color-picker/src/components/alpha-slider.vue +132 -132
  407. package/packages/color-picker/src/components/hue-slider.vue +123 -123
  408. package/packages/color-picker/src/components/picker-dropdown.vue +121 -121
  409. package/packages/color-picker/src/components/predefine.vue +61 -61
  410. package/packages/color-picker/src/components/sv-panel.vue +100 -100
  411. package/packages/color-picker/src/draggable.js +36 -36
  412. package/packages/color-picker/src/main.vue +188 -188
  413. package/packages/container/index.js +8 -8
  414. package/packages/container/src/main.vue +33 -33
  415. package/packages/date-picker/index.js +8 -8
  416. package/packages/date-picker/src/basic/date-table.vue +441 -441
  417. package/packages/date-picker/src/basic/month-table.vue +268 -268
  418. package/packages/date-picker/src/basic/time-spinner.vue +304 -304
  419. package/packages/date-picker/src/basic/year-table.vue +111 -111
  420. package/packages/date-picker/src/panel/date-range.vue +680 -680
  421. package/packages/date-picker/src/panel/date.vue +609 -609
  422. package/packages/date-picker/src/panel/month-range.vue +289 -289
  423. package/packages/date-picker/src/panel/time-range.vue +248 -248
  424. package/packages/date-picker/src/panel/time-select.vue +178 -178
  425. package/packages/date-picker/src/panel/time.vue +186 -186
  426. package/packages/date-picker/src/picker/date-picker.js +43 -43
  427. package/packages/date-picker/src/picker/time-picker.js +39 -39
  428. package/packages/date-picker/src/picker/time-select.js +21 -21
  429. package/packages/date-picker/src/picker.vue +956 -956
  430. package/packages/descriptions/index.js +8 -8
  431. package/packages/descriptions/src/descriptions-item.js +30 -30
  432. package/packages/descriptions/src/descriptions-row.js +116 -116
  433. package/packages/descriptions/src/index.js +180 -180
  434. package/packages/descriptions-item/index.js +8 -8
  435. package/packages/dialog/index.js +8 -8
  436. package/packages/dialog/src/component.vue +212 -212
  437. package/packages/divider/index.js +8 -8
  438. package/packages/divider/src/main.vue +37 -37
  439. package/packages/drawer/index.js +8 -8
  440. package/packages/drawer/src/main.vue +205 -205
  441. package/packages/dropdown/index.js +8 -8
  442. package/packages/dropdown/src/dropdown-item.vue +37 -37
  443. package/packages/dropdown/src/dropdown-menu.vue +63 -63
  444. package/packages/dropdown/src/dropdown.vue +293 -293
  445. package/packages/dropdown-item/index.js +8 -8
  446. package/packages/dropdown-menu/index.js +8 -8
  447. package/packages/empty/index.js +7 -7
  448. package/packages/empty/src/img-empty.vue +132 -132
  449. package/packages/empty/src/index.vue +50 -50
  450. package/packages/footer/index.js +8 -8
  451. package/packages/footer/src/main.vue +20 -20
  452. package/packages/form/index.js +8 -8
  453. package/packages/form/src/form-item.vue +324 -324
  454. package/packages/form/src/form.vue +182 -182
  455. package/packages/form/src/label-wrap.vue +78 -78
  456. package/packages/form-item/index.js +8 -8
  457. package/packages/header/index.js +8 -8
  458. package/packages/header/src/main.vue +20 -20
  459. package/packages/icon/index.js +8 -8
  460. package/packages/icon/src/icon.vue +13 -13
  461. package/packages/image/index.js +8 -8
  462. package/packages/image/src/image-viewer.vue +330 -330
  463. package/packages/image/src/main.vue +249 -249
  464. package/packages/infinite-scroll/index.js +8 -8
  465. package/packages/infinite-scroll/src/main.js +148 -148
  466. package/packages/input/index.js +8 -8
  467. package/packages/input/src/calcTextareaHeight.js +104 -104
  468. package/packages/input/src/input.vue +440 -440
  469. package/packages/input-number/index.js +8 -8
  470. package/packages/input-number/src/input-number.vue +283 -283
  471. package/packages/link/index.js +8 -8
  472. package/packages/link/src/main.vue +53 -53
  473. package/packages/loading/index.js +11 -11
  474. package/packages/loading/src/directive.js +133 -133
  475. package/packages/loading/src/index.js +106 -106
  476. package/packages/loading/src/loading.vue +41 -41
  477. package/packages/main/index.js +8 -8
  478. package/packages/main/src/main.vue +12 -12
  479. package/packages/menu/index.js +8 -8
  480. package/packages/menu/src/menu-item-group.vue +45 -45
  481. package/packages/menu/src/menu-item.vue +112 -112
  482. package/packages/menu/src/menu-mixin.js +44 -44
  483. package/packages/menu/src/menu.vue +325 -325
  484. package/packages/menu/src/submenu.vue +348 -348
  485. package/packages/menu-item/index.js +8 -8
  486. package/packages/menu-item-group/index.js +8 -8
  487. package/packages/message/index.js +2 -2
  488. package/packages/message/src/main.js +91 -91
  489. package/packages/message/src/main.vue +117 -117
  490. package/packages/message-box/index.js +2 -2
  491. package/packages/message-box/src/main.js +216 -216
  492. package/packages/message-box/src/main.vue +332 -332
  493. package/packages/notification/index.js +2 -2
  494. package/packages/notification/src/main.js +94 -94
  495. package/packages/notification/src/main.vue +152 -152
  496. package/packages/option/index.js +8 -8
  497. package/packages/option-group/index.js +8 -8
  498. package/packages/page-header/index.js +8 -8
  499. package/packages/page-header/src/main.vue +30 -30
  500. package/packages/pagination/index.js +8 -8
  501. package/packages/pagination/src/pager.vue +163 -163
  502. package/packages/pagination/src/pagination.js +386 -386
  503. package/packages/popconfirm/index.js +8 -8
  504. package/packages/popconfirm/src/main.vue +104 -104
  505. package/packages/popover/index.js +14 -14
  506. package/packages/popover/src/directive.js +20 -20
  507. package/packages/popover/src/main.vue +237 -237
  508. package/packages/progress/index.js +8 -8
  509. package/packages/progress/src/progress.vue +235 -235
  510. package/packages/radio/index.js +8 -8
  511. package/packages/radio/src/radio-button.vue +115 -115
  512. package/packages/radio/src/radio-group.vue +113 -113
  513. package/packages/radio/src/radio.vue +134 -134
  514. package/packages/radio-button/index.js +8 -8
  515. package/packages/radio-group/index.js +8 -8
  516. package/packages/rate/index.js +8 -8
  517. package/packages/rate/src/main.vue +348 -348
  518. package/packages/result/index.js +8 -8
  519. package/packages/result/src/icon-error.vue +13 -13
  520. package/packages/result/src/icon-info.vue +13 -13
  521. package/packages/result/src/icon-success.vue +13 -13
  522. package/packages/result/src/icon-warning.vue +13 -13
  523. package/packages/result/src/index.vue +65 -65
  524. package/packages/row/index.js +9 -9
  525. package/packages/row/src/row.js +44 -44
  526. package/packages/scrollbar/index.js +8 -8
  527. package/packages/scrollbar/src/bar.js +92 -92
  528. package/packages/scrollbar/src/main.js +130 -130
  529. package/packages/scrollbar/src/util.js +34 -34
  530. package/packages/select/index.js +8 -8
  531. package/packages/select/src/navigation-mixin.js +54 -54
  532. package/packages/select/src/option-group.vue +60 -60
  533. package/packages/select/src/option.vue +168 -168
  534. package/packages/select/src/select-dropdown.vue +74 -74
  535. package/packages/select/src/select.vue +900 -900
  536. package/packages/skeleton/index.js +8 -8
  537. package/packages/skeleton/src/img-placeholder.vue +16 -16
  538. package/packages/skeleton/src/index.vue +76 -76
  539. package/packages/skeleton/src/item.vue +22 -22
  540. package/packages/skeleton-item/index.js +8 -8
  541. package/packages/slider/index.js +8 -8
  542. package/packages/slider/src/button.vue +238 -238
  543. package/packages/slider/src/main.vue +427 -427
  544. package/packages/slider/src/marker.js +18 -18
  545. package/packages/spinner/index.js +8 -8
  546. package/packages/spinner/src/spinner.vue +27 -27
  547. package/packages/statistic/index.js +8 -0
  548. package/packages/statistic/src/main.vue +203 -0
  549. package/packages/step/index.js +8 -8
  550. package/packages/steps/README.md +69 -69
  551. package/packages/steps/index.js +8 -8
  552. package/packages/steps/src/step.vue +184 -184
  553. package/packages/steps/src/steps.vue +68 -68
  554. package/packages/submenu/index.js +8 -8
  555. package/packages/switch/index.js +9 -9
  556. package/packages/switch/src/component.vue +174 -174
  557. package/packages/tab-pane/index.js +8 -8
  558. package/packages/table/index.js +8 -8
  559. package/packages/table/src/config.js +124 -124
  560. package/packages/table/src/dropdown.js +28 -28
  561. package/packages/table/src/filter-panel.vue +194 -194
  562. package/packages/table/src/layout-observer.js +68 -68
  563. package/packages/table/src/store/current.js +76 -76
  564. package/packages/table/src/store/expand.js +65 -65
  565. package/packages/table/src/store/helper.js +41 -41
  566. package/packages/table/src/store/index.js +147 -147
  567. package/packages/table/src/store/tree.js +209 -209
  568. package/packages/table/src/store/watcher.js +381 -381
  569. package/packages/table/src/table-body.js +469 -469
  570. package/packages/table/src/table-column.js +319 -319
  571. package/packages/table/src/table-footer.js +153 -153
  572. package/packages/table/src/table-header.js +511 -511
  573. package/packages/table/src/table-layout.js +249 -249
  574. package/packages/table/src/table-row.js +101 -101
  575. package/packages/table/src/table.vue +712 -712
  576. package/packages/table/src/util.js +273 -273
  577. package/packages/table-column/index.js +8 -8
  578. package/packages/tabs/index.js +8 -8
  579. package/packages/tabs/src/tab-bar.vue +57 -57
  580. package/packages/tabs/src/tab-nav.vue +294 -294
  581. package/packages/tabs/src/tab-pane.vue +56 -56
  582. package/packages/tabs/src/tabs.vue +191 -191
  583. package/packages/tag/index.js +8 -8
  584. package/packages/tag/src/tag.vue +58 -58
  585. package/packages/theme-chalk/README.md +33 -33
  586. package/packages/theme-chalk/package.json +35 -35
  587. package/packages/theme-chalk/src/alert.scss +147 -147
  588. package/packages/theme-chalk/src/aside.scss +7 -7
  589. package/packages/theme-chalk/src/autocomplete.scss +80 -80
  590. package/packages/theme-chalk/src/avatar.scss +51 -51
  591. package/packages/theme-chalk/src/backtop.scss +22 -22
  592. package/packages/theme-chalk/src/badge.scss +57 -57
  593. package/packages/theme-chalk/src/base.scss +2 -2
  594. package/packages/theme-chalk/src/breadcrumb.scss +55 -55
  595. package/packages/theme-chalk/src/button.scss +262 -262
  596. package/packages/theme-chalk/src/calendar.scss +79 -79
  597. package/packages/theme-chalk/src/card.scss +32 -32
  598. package/packages/theme-chalk/src/carousel-item.scss +50 -50
  599. package/packages/theme-chalk/src/carousel.scss +161 -161
  600. package/packages/theme-chalk/src/cascader-panel.scss +120 -120
  601. package/packages/theme-chalk/src/cascader.scss +182 -182
  602. package/packages/theme-chalk/src/checkbox.scss +359 -359
  603. package/packages/theme-chalk/src/col.scss +156 -156
  604. package/packages/theme-chalk/src/collapse.scss +63 -63
  605. package/packages/theme-chalk/src/color-picker.scss +384 -384
  606. package/packages/theme-chalk/src/common/popup.scss +42 -42
  607. package/packages/theme-chalk/src/common/transition.scss +99 -99
  608. package/packages/theme-chalk/src/common/var.scss +1028 -1028
  609. package/packages/theme-chalk/src/container.scss +14 -14
  610. package/packages/theme-chalk/src/date-picker/date-picker.scss +97 -97
  611. package/packages/theme-chalk/src/date-picker/date-range-picker.scss +101 -101
  612. package/packages/theme-chalk/src/date-picker/date-table.scss +151 -151
  613. package/packages/theme-chalk/src/date-picker/month-table.scss +82 -82
  614. package/packages/theme-chalk/src/date-picker/picker-panel.scss +117 -117
  615. package/packages/theme-chalk/src/date-picker/picker.scss +197 -197
  616. package/packages/theme-chalk/src/date-picker/time-picker.scss +85 -85
  617. package/packages/theme-chalk/src/date-picker/time-range-picker.scss +31 -31
  618. package/packages/theme-chalk/src/date-picker/time-spinner.scss +110 -110
  619. package/packages/theme-chalk/src/date-picker/year-table.scss +51 -51
  620. package/packages/theme-chalk/src/date-picker.scss +11 -11
  621. package/packages/theme-chalk/src/descriptions-item.scss +42 -42
  622. package/packages/theme-chalk/src/descriptions.scss +111 -111
  623. package/packages/theme-chalk/src/dialog.scss +123 -123
  624. package/packages/theme-chalk/src/display.scss +12 -12
  625. package/packages/theme-chalk/src/divider.scss +47 -47
  626. package/packages/theme-chalk/src/drawer.scss +219 -219
  627. package/packages/theme-chalk/src/dropdown.scss +182 -182
  628. package/packages/theme-chalk/src/empty.scss +45 -45
  629. package/packages/theme-chalk/src/footer.scss +8 -8
  630. package/packages/theme-chalk/src/form.scss +167 -167
  631. package/packages/theme-chalk/src/header.scss +8 -8
  632. package/packages/theme-chalk/src/icon.scss +1167 -1167
  633. package/packages/theme-chalk/src/image.scss +179 -179
  634. package/packages/theme-chalk/src/index.scss +90 -89
  635. package/packages/theme-chalk/src/input-number.scss +180 -180
  636. package/packages/theme-chalk/src/input.scss +360 -360
  637. package/packages/theme-chalk/src/link.scss +81 -81
  638. package/packages/theme-chalk/src/loading.scss +96 -96
  639. package/packages/theme-chalk/src/main.scss +12 -12
  640. package/packages/theme-chalk/src/menu.scss +289 -289
  641. package/packages/theme-chalk/src/message-box.scss +226 -226
  642. package/packages/theme-chalk/src/message.scss +120 -120
  643. package/packages/theme-chalk/src/mixins/_button.scss +81 -81
  644. package/packages/theme-chalk/src/mixins/config.scss +4 -4
  645. package/packages/theme-chalk/src/mixins/function.scss +44 -44
  646. package/packages/theme-chalk/src/mixins/mixins.scss +190 -190
  647. package/packages/theme-chalk/src/mixins/utils.scss +39 -39
  648. package/packages/theme-chalk/src/notification.scss +99 -99
  649. package/packages/theme-chalk/src/option-group.scss +42 -42
  650. package/packages/theme-chalk/src/option.scss +36 -36
  651. package/packages/theme-chalk/src/page-header.scss +41 -41
  652. package/packages/theme-chalk/src/pagination.scss +295 -295
  653. package/packages/theme-chalk/src/popconfirm.scss +16 -16
  654. package/packages/theme-chalk/src/popover.scss +40 -40
  655. package/packages/theme-chalk/src/popper.scss +101 -101
  656. package/packages/theme-chalk/src/progress.scss +141 -141
  657. package/packages/theme-chalk/src/radio-button.scss +113 -113
  658. package/packages/theme-chalk/src/radio-group.scss +9 -9
  659. package/packages/theme-chalk/src/radio.scss +199 -199
  660. package/packages/theme-chalk/src/rate.scss +49 -49
  661. package/packages/theme-chalk/src/reset.scss +79 -79
  662. package/packages/theme-chalk/src/result.scss +61 -61
  663. package/packages/theme-chalk/src/row.scss +43 -43
  664. package/packages/theme-chalk/src/scrollbar.scss +72 -72
  665. package/packages/theme-chalk/src/select-dropdown.scss +62 -62
  666. package/packages/theme-chalk/src/select.scss +152 -152
  667. package/packages/theme-chalk/src/skeleton-item.scss +84 -84
  668. package/packages/theme-chalk/src/skeleton.scss +40 -40
  669. package/packages/theme-chalk/src/slider.scss +250 -250
  670. package/packages/theme-chalk/src/spinner.scss +44 -44
  671. package/packages/theme-chalk/src/statistic.scss +38 -0
  672. package/packages/theme-chalk/src/step.scss +317 -317
  673. package/packages/theme-chalk/src/steps.scss +20 -20
  674. package/packages/theme-chalk/src/switch.scss +116 -116
  675. package/packages/theme-chalk/src/table-column.scss +97 -97
  676. package/packages/theme-chalk/src/table.scss +564 -564
  677. package/packages/theme-chalk/src/tabs.scss +602 -602
  678. package/packages/theme-chalk/src/tag.scss +163 -163
  679. package/packages/theme-chalk/src/time-picker.scss +8 -8
  680. package/packages/theme-chalk/src/time-select.scss +37 -37
  681. package/packages/theme-chalk/src/timeline-item.scss +86 -86
  682. package/packages/theme-chalk/src/timeline.scss +14 -14
  683. package/packages/theme-chalk/src/tooltip.scss +141 -141
  684. package/packages/theme-chalk/src/transfer.scss +227 -227
  685. package/packages/theme-chalk/src/tree.scss +123 -123
  686. package/packages/theme-chalk/src/upload.scss +603 -603
  687. package/packages/theme-cy/README.md +38 -38
  688. package/packages/theme-cy/package.json +35 -35
  689. package/packages/theme-cy/src/index.scss +1 -1
  690. package/packages/time-picker/index.js +8 -8
  691. package/packages/time-select/index.js +8 -8
  692. package/packages/timeline/index.js +8 -8
  693. package/packages/timeline/src/item.vue +73 -73
  694. package/packages/timeline/src/main.vue +33 -33
  695. package/packages/timeline-item/index.js +8 -8
  696. package/packages/tooltip/index.js +8 -8
  697. package/packages/tooltip/src/main.js +242 -242
  698. package/packages/transfer/index.js +8 -8
  699. package/packages/transfer/src/main.vue +231 -231
  700. package/packages/transfer/src/transfer-panel.vue +251 -251
  701. package/packages/tree/index.js +8 -8
  702. package/packages/tree/src/model/node.js +484 -484
  703. package/packages/tree/src/model/tree-store.js +340 -340
  704. package/packages/tree/src/model/util.js +27 -27
  705. package/packages/tree/src/tree-node.vue +279 -279
  706. package/packages/tree/src/tree.vue +496 -496
  707. package/packages/upload/index.js +8 -8
  708. package/packages/upload/src/ajax.js +85 -85
  709. package/packages/upload/src/index.vue +338 -338
  710. package/packages/upload/src/upload-dragger.vue +70 -70
  711. package/packages/upload/src/upload-list.vue +105 -105
  712. package/packages/upload/src/upload.vue +211 -211
  713. package/src/directives/mousewheel.js +18 -18
  714. package/src/directives/repeat-click.js +26 -26
  715. package/src/index.js +4 -1
  716. package/src/locale/format.js +44 -44
  717. package/src/locale/index.js +48 -48
  718. package/src/locale/lang/af-ZA.js +123 -123
  719. package/src/locale/lang/ar.js +122 -122
  720. package/src/locale/lang/az.js +126 -126
  721. package/src/locale/lang/bg.js +123 -123
  722. package/src/locale/lang/bn.js +126 -126
  723. package/src/locale/lang/ca.js +122 -122
  724. package/src/locale/lang/cs-CZ.js +125 -125
  725. package/src/locale/lang/da.js +122 -122
  726. package/src/locale/lang/de.js +124 -124
  727. package/src/locale/lang/ee.js +123 -123
  728. package/src/locale/lang/el.js +123 -123
  729. package/src/locale/lang/en.js +123 -123
  730. package/src/locale/lang/eo.js +123 -123
  731. package/src/locale/lang/es.js +122 -122
  732. package/src/locale/lang/eu.js +123 -123
  733. package/src/locale/lang/fa.js +123 -123
  734. package/src/locale/lang/fi.js +123 -123
  735. package/src/locale/lang/fr.js +122 -122
  736. package/src/locale/lang/he.js +123 -123
  737. package/src/locale/lang/hr.js +123 -123
  738. package/src/locale/lang/hu.js +122 -122
  739. package/src/locale/lang/hy-AM.js +123 -123
  740. package/src/locale/lang/id.js +123 -123
  741. package/src/locale/lang/is.js +124 -124
  742. package/src/locale/lang/it.js +122 -122
  743. package/src/locale/lang/ja.js +123 -123
  744. package/src/locale/lang/kg.js +123 -123
  745. package/src/locale/lang/km.js +123 -123
  746. package/src/locale/lang/ko.js +123 -123
  747. package/src/locale/lang/ku.js +123 -123
  748. package/src/locale/lang/kz.js +123 -123
  749. package/src/locale/lang/lo-LA.js +126 -126
  750. package/src/locale/lang/lt.js +123 -123
  751. package/src/locale/lang/lv.js +123 -123
  752. package/src/locale/lang/mn.js +123 -123
  753. package/src/locale/lang/ms.js +122 -122
  754. package/src/locale/lang/nb-NO.js +122 -122
  755. package/src/locale/lang/nl.js +123 -123
  756. package/src/locale/lang/pl.js +123 -123
  757. package/src/locale/lang/pt-br.js +123 -123
  758. package/src/locale/lang/pt.js +123 -123
  759. package/src/locale/lang/ro.js +123 -123
  760. package/src/locale/lang/ru-RU.js +123 -123
  761. package/src/locale/lang/si.js +123 -123
  762. package/src/locale/lang/sk.js +125 -125
  763. package/src/locale/lang/sl.js +123 -123
  764. package/src/locale/lang/sr-Latn.js +123 -123
  765. package/src/locale/lang/sr.js +123 -123
  766. package/src/locale/lang/sv-SE.js +123 -123
  767. package/src/locale/lang/ta.js +122 -122
  768. package/src/locale/lang/th.js +123 -123
  769. package/src/locale/lang/tk.js +123 -123
  770. package/src/locale/lang/tr-TR.js +123 -123
  771. package/src/locale/lang/ua.js +123 -123
  772. package/src/locale/lang/ug-CN.js +123 -123
  773. package/src/locale/lang/uz-UZ.js +123 -123
  774. package/src/locale/lang/vi.js +123 -123
  775. package/src/locale/lang/zh-CN.js +123 -123
  776. package/src/locale/lang/zh-TW.js +123 -123
  777. package/src/mixins/emitter.js +33 -33
  778. package/src/mixins/focus.js +9 -9
  779. package/src/mixins/locale.js +9 -9
  780. package/src/mixins/migrating.js +54 -54
  781. package/src/transitions/collapse-transition.js +77 -77
  782. package/src/utils/after-leave.js +27 -27
  783. package/src/utils/aria-dialog.js +90 -90
  784. package/src/utils/aria-utils.js +122 -122
  785. package/src/utils/clickoutside.js +76 -76
  786. package/src/utils/date-util.js +282 -282
  787. package/src/utils/date.js +368 -2
  788. package/src/utils/dom.js +227 -227
  789. package/src/utils/lodash.js +18075 -9
  790. package/src/utils/menu/aria-menubar.js +14 -14
  791. package/src/utils/menu/aria-menuitem.js +49 -49
  792. package/src/utils/menu/aria-submenu.js +59 -59
  793. package/src/utils/merge.js +15 -15
  794. package/src/utils/popper.js +1276 -1276
  795. package/src/utils/popup/index.js +218 -218
  796. package/src/utils/popup/popup-manager.js +194 -194
  797. package/src/utils/resize-event.js +36 -36
  798. package/src/utils/scroll-into-view.js +27 -27
  799. package/src/utils/scrollbar-width.js +29 -29
  800. package/src/utils/shared.js +7 -7
  801. package/src/utils/types.js +40 -40
  802. package/src/utils/util.js +245 -245
  803. package/src/utils/vdom.js +5 -5
  804. package/src/utils/vue-popper.js +198 -198
  805. package/types/alert.d.ts +31 -31
  806. package/types/aside.d.ts +7 -7
  807. package/types/autocomplete.d.ts +78 -78
  808. package/types/avatar.d.ts +20 -20
  809. package/types/backtop.d.ts +16 -16
  810. package/types/badge.d.ts +16 -16
  811. package/types/breadcrumb-item.d.ts +10 -10
  812. package/types/breadcrumb.d.ts +10 -10
  813. package/types/button-group.d.ts +4 -4
  814. package/types/button.d.ts +37 -37
  815. package/types/calendar.d.ts +15 -15
  816. package/types/card.d.ts +26 -26
  817. package/types/carousel-item.d.ts +10 -10
  818. package/types/carousel.d.ts +57 -57
  819. package/types/cascader-panel.d.ts +72 -72
  820. package/types/cascader.d.ts +65 -65
  821. package/types/checkbox-button.d.ts +22 -22
  822. package/types/checkbox-group.d.ts +22 -22
  823. package/types/checkbox.d.ts +34 -34
  824. package/types/col.d.ts +46 -46
  825. package/types/collapse-item.d.ts +26 -26
  826. package/types/collapse.d.ts +10 -10
  827. package/types/color-picker.d.ts +21 -21
  828. package/types/component.d.ts +13 -13
  829. package/types/container.d.ts +7 -7
  830. package/types/date-picker.d.ts +124 -124
  831. package/types/descriptions-item.d.ts +37 -37
  832. package/types/descriptions.d.ts +52 -52
  833. package/types/dialog.d.ts +62 -62
  834. package/types/divider.d.ts +12 -12
  835. package/types/drawer.d.ts +63 -63
  836. package/types/dropdown-item.d.ts +16 -16
  837. package/types/dropdown-menu.d.ts +4 -4
  838. package/types/dropdown.d.ts +38 -38
  839. package/types/element-ui.d.ts +9 -9
  840. package/types/empty.d.ts +31 -31
  841. package/types/footer.d.ts +7 -7
  842. package/types/form-item.d.ts +37 -37
  843. package/types/form.d.ts +82 -82
  844. package/types/header.d.ts +7 -7
  845. package/types/icon.d.ts +7 -7
  846. package/types/image.d.ts +43 -43
  847. package/types/index.d.ts +4 -4
  848. package/types/infinite-scroll.d.ts +5 -5
  849. package/types/input-number.d.ts +47 -47
  850. package/types/input.d.ts +107 -107
  851. package/types/link.d.ts +25 -25
  852. package/types/loading.d.ts +62 -62
  853. package/types/main.d.ts +4 -4
  854. package/types/menu-item-group.d.ts +7 -7
  855. package/types/menu-item.d.ts +10 -10
  856. package/types/menu.d.ts +46 -46
  857. package/types/message-box.d.ts +176 -176
  858. package/types/message.d.ts +90 -90
  859. package/types/notification.d.ts +84 -84
  860. package/types/option-group.d.ts +10 -10
  861. package/types/option.d.ts +13 -13
  862. package/types/page-header.d.ts +10 -10
  863. package/types/pagination.d.ts +43 -43
  864. package/types/popconfirm.d.ts +29 -29
  865. package/types/popover.d.ts +71 -71
  866. package/types/progress.d.ts +37 -37
  867. package/types/radio-button.d.ts +16 -16
  868. package/types/radio-group.d.ts +18 -18
  869. package/types/radio.d.ts +19 -19
  870. package/types/rate.d.ts +64 -64
  871. package/types/result.d.ts +33 -33
  872. package/types/row.d.ts +25 -25
  873. package/types/select.d.ts +90 -90
  874. package/types/skeleton-item.d.ts +7 -7
  875. package/types/skeleton.d.ts +33 -33
  876. package/types/slider.d.ts +68 -68
  877. package/types/spinner.d.ts +16 -16
  878. package/types/statistic.d.ts +37 -0
  879. package/types/step.d.ts +34 -34
  880. package/types/steps.d.ts +28 -28
  881. package/types/submenu.d.ts +22 -22
  882. package/types/switch.d.ts +43 -43
  883. package/types/tab-pane.d.ts +19 -19
  884. package/types/table-column.d.ts +117 -117
  885. package/types/table.d.ts +177 -177
  886. package/types/tabs.d.ts +31 -31
  887. package/types/tag.d.ts +28 -28
  888. package/types/time-picker.d.ts +63 -63
  889. package/types/time-select.d.ts +56 -56
  890. package/types/timeline-item.d.ts +20 -20
  891. package/types/timeline.d.ts +6 -6
  892. package/types/tooltip.d.ts +52 -52
  893. package/types/transfer.d.ts +73 -73
  894. package/types/tree.d.ts +266 -266
  895. package/types/upload.d.ts +124 -124
  896. package/web-types.json +4195 -4195
  897. package/lib/utils/date_source.js +0 -335
  898. package/lib/utils/lodash_source.js +0 -9421
  899. package/src/utils/date_source.js +0 -352
  900. package/src/utils/lodash_source.js +0 -18090
  901. /package/packages/theme-cy/lib/{treeselect.css → treeSelect.css} +0 -0
  902. /package/packages/theme-cy/src/{treeselect.scss → treeSelect.scss} +0 -0
package/lib/loading.js CHANGED
@@ -82,305 +82,160 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 147);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 77);
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:
98
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
99
92
 
100
93
  "use strict";
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
- };
94
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
+ /* globals __VUE_SSR_CONTEXT__ */
153
96
 
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
- }();
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.
187
100
 
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
- };
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
198
114
 
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;
115
+ // render functions
116
+ if (render) {
117
+ options.render = render
118
+ options.staticRenderFns = staticRenderFns
119
+ options._compiled = true
207
120
  }
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
- }
121
+
122
+ // functional template
123
+ if (functionalTemplate) {
124
+ options.functional = true
224
125
  }
225
- if (!el.classList) {
226
- el.setAttribute('class', curClass);
126
+
127
+ // scopedId
128
+ if (scopeId) {
129
+ options._scopeId = 'data-v-' + scopeId
227
130
  }
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 + ' ', ' ');
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
+ }
243
153
  }
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;
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
+ )
266
164
  }
267
- default:
268
- return element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null;
269
- }
270
- } catch (e) {
271
- return element.style[styleName];
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];
165
+ : injectStyles
285
166
  }
286
- };
287
167
 
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]);
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)
295
178
  }
296
- }
297
- } else {
298
- styleName = camelCase(styleName);
299
- if (styleName === 'opacity' && ieVersion < 9) {
300
- element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
301
179
  } else {
302
- element.style[styleName] = value;
303
- }
304
- }
305
- }
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;
180
+ // inject component registration as beforeCreate hook
181
+ var existing = options.beforeCreate
182
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
322
183
  }
323
- parent = parent.parentNode;
324
184
  }
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();
185
+
186
+ return {
187
+ exports: scriptExports,
188
+ options: options
340
189
  }
341
- return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;
342
- };
190
+ }
191
+
192
+
193
+ /***/ }),
194
+
195
+ /***/ 14:
196
+ /***/ (function(module, exports) {
197
+
198
+ module.exports = require("element-ui/lib/utils/popup");
199
+
200
+ /***/ }),
201
+
202
+ /***/ 2:
203
+ /***/ (function(module, exports) {
204
+
205
+ module.exports = require("element-ui/lib/utils/dom");
343
206
 
344
207
  /***/ }),
345
208
 
346
- /***/ 10:
209
+ /***/ 43:
347
210
  /***/ (function(module, exports) {
348
211
 
349
- module.exports = require("core-js/modules/web.dom-collections.for-each.js");
212
+ module.exports = require("element-ui/lib/utils/after-leave");
350
213
 
351
214
  /***/ }),
352
215
 
353
- /***/ 12:
216
+ /***/ 7:
354
217
  /***/ (function(module, exports) {
355
218
 
356
- module.exports = require("core-js/modules/es.string.replace.js");
219
+ module.exports = require("vue");
357
220
 
358
221
  /***/ }),
359
222
 
360
- /***/ 147:
223
+ /***/ 77:
361
224
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
362
225
 
363
226
  "use strict";
364
227
  // ESM COMPAT FLAG
365
228
  __webpack_require__.r(__webpack_exports__);
366
229
 
367
- // EXTERNAL MODULE: external "core-js/modules/es.object.keys.js"
368
- var es_object_keys_js_ = __webpack_require__(17);
369
-
370
- // EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
371
- var es_object_to_string_js_ = __webpack_require__(3);
372
-
373
- // EXTERNAL MODULE: external "core-js/modules/web.dom-collections.for-each.js"
374
- var web_dom_collections_for_each_js_ = __webpack_require__(10);
375
-
376
230
  // EXTERNAL MODULE: external "vue"
377
- var external_vue_ = __webpack_require__(0);
231
+ var external_vue_ = __webpack_require__(7);
378
232
  var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
379
233
 
380
- // 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
381
- var render = function render() {
382
- var _vm = this,
383
- _c = _vm._self._c
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
384
239
  return _c(
385
240
  "transition",
386
241
  {
@@ -435,33 +290,54 @@ var staticRenderFns = []
435
290
  render._withStripped = true
436
291
 
437
292
 
438
- // CONCATENATED MODULE: ./packages/loading/src/loading.vue?vue&type=template&id=5fc843e5
293
+ // CONCATENATED MODULE: ./packages/loading/src/loading.vue?vue&type=template&id=897d5e8e
439
294
 
440
295
  // 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
+
441
315
  /* harmony default export */ var loadingvue_type_script_lang_js = ({
442
- data: function data() {
443
- return {
444
- text: null,
445
- spinner: null,
446
- background: null,
447
- fullscreen: true,
448
- visible: false,
449
- customClass: ''
450
- };
451
- },
452
- methods: {
453
- handleAfterLeave: function handleAfterLeave() {
454
- this.$emit('after-leave');
455
- },
456
- setText: function setText(text) {
457
- this.text = text;
458
- }
459
- }
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
+ }
460
336
  });
461
337
  // CONCATENATED MODULE: ./packages/loading/src/loading.vue?vue&type=script&lang=js
462
338
  /* harmony default export */ var src_loadingvue_type_script_lang_js = (loadingvue_type_script_lang_js);
463
339
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
464
- var componentNormalizer = __webpack_require__(2);
340
+ var componentNormalizer = __webpack_require__(0);
465
341
 
466
342
  // CONCATENATED MODULE: ./packages/loading/src/loading.vue
467
343
 
@@ -483,169 +359,145 @@ var component = Object(componentNormalizer["a" /* default */])(
483
359
  )
484
360
 
485
361
  /* harmony default export */ var loading = (component.exports);
486
- // EXTERNAL MODULE: ./src/utils/dom.js
487
- var dom = __webpack_require__(1);
488
-
489
- // EXTERNAL MODULE: ./src/utils/popup/index.js + 1 modules
490
- var popup = __webpack_require__(24);
491
-
492
- // CONCATENATED MODULE: ./src/utils/after-leave.js
493
- /**
494
- * Bind after-leave event for vue instance. Make sure after-leave is called in any browsers.
495
- *
496
- * @param {Vue} instance Vue instance.
497
- * @param {Function} callback callback of after-leave event
498
- * @param {Number} speed the speed of transition, default value is 300ms
499
- * @param {Boolean} once weather bind after-leave once. default value is false.
500
- */
501
- /* harmony default export */ var after_leave = (function (instance, callback, speed, once) {
502
- if (speed === void 0) {
503
- speed = 300;
504
- }
505
- if (once === void 0) {
506
- once = false;
507
- }
508
- if (!instance || !callback) throw new Error('instance & callback is required');
509
- var called = false;
510
- var afterLeaveCallback = function afterLeaveCallback() {
511
- if (called) return;
512
- called = true;
513
- if (callback) {
514
- callback.apply(null, arguments);
515
- }
516
- };
517
- if (once) {
518
- instance.$once('after-leave', afterLeaveCallback);
519
- } else {
520
- instance.$on('after-leave', afterLeaveCallback);
521
- }
522
- setTimeout(function () {
523
- afterLeaveCallback();
524
- }, speed + 100);
525
- });
526
- ;
527
- // CONCATENATED MODULE: ./packages/loading/src/directive.js
362
+ // EXTERNAL MODULE: external "element-ui/lib/utils/dom"
363
+ var dom_ = __webpack_require__(2);
528
364
 
365
+ // EXTERNAL MODULE: external "element-ui/lib/utils/popup"
366
+ var popup_ = __webpack_require__(14);
529
367
 
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_);
530
371
 
372
+ // CONCATENATED MODULE: ./packages/loading/src/directive.js
531
373
 
532
374
 
533
375
 
534
376
 
535
377
 
536
378
  var Mask = external_vue_default.a.extend(loading);
379
+
537
380
  var loadingDirective = {};
538
381
  loadingDirective.install = function (Vue) {
539
- if (Vue.prototype.$isServer) return;
540
- var toggleLoading = function toggleLoading(el, binding) {
541
- if (binding.value) {
542
- Vue.nextTick(function () {
543
- if (binding.modifiers.fullscreen) {
544
- el.originalPosition = Object(dom["c" /* getStyle */])(document.body, 'position');
545
- el.originalOverflow = Object(dom["c" /* getStyle */])(document.body, 'overflow');
546
- el.maskStyle.zIndex = popup["a" /* PopupManager */].nextZIndex();
547
- Object(dom["a" /* addClass */])(el.mask, 'is-fullscreen');
548
- insertDom(document.body, el, binding);
549
- } else {
550
- Object(dom["i" /* removeClass */])(el.mask, 'is-fullscreen');
551
- if (binding.modifiers.body) {
552
- el.originalPosition = Object(dom["c" /* getStyle */])(document.body, 'position');
553
- ['top', 'left'].forEach(function (property) {
554
- var scroll = property === 'top' ? 'scrollTop' : 'scrollLeft';
555
- el.maskStyle[property] = el.getBoundingClientRect()[property] + document.body[scroll] + document.documentElement[scroll] - parseInt(Object(dom["c" /* getStyle */])(document.body, "margin-" + property), 10) + 'px';
556
- });
557
- ['height', 'width'].forEach(function (property) {
558
- el.maskStyle[property] = el.getBoundingClientRect()[property] + 'px';
559
- });
560
- insertDom(document.body, el, binding);
561
- } else {
562
- el.originalPosition = Object(dom["c" /* getStyle */])(el, 'position');
563
- insertDom(el, el, binding);
564
- }
565
- }
566
- });
567
- } else {
568
- after_leave(el.instance, function (_) {
569
- if (!el.instance.hiding) return;
570
- el.domVisible = false;
571
- var target = binding.modifiers.fullscreen || binding.modifiers.body ? document.body : el;
572
- Object(dom["i" /* removeClass */])(target, 'el-loading-parent--relative');
573
- Object(dom["i" /* removeClass */])(target, 'el-loading-parent--hidden');
574
- el.instance.hiding = false;
575
- }, 300, true);
576
- el.instance.visible = false;
577
- el.instance.hiding = true;
578
- }
579
- };
580
- var insertDom = function insertDom(parent, el, binding) {
581
- if (!el.domVisible && Object(dom["c" /* getStyle */])(el, 'display') !== 'none' && Object(dom["c" /* getStyle */])(el, 'visibility') !== 'hidden') {
582
- Object.keys(el.maskStyle).forEach(function (property) {
583
- el.mask.style[property] = el.maskStyle[property];
584
- });
585
- if (el.originalPosition !== 'absolute' && el.originalPosition !== 'fixed' && el.originalPosition !== 'sticky') {
586
- Object(dom["a" /* addClass */])(parent, 'el-loading-parent--relative');
587
- }
588
- if (binding.modifiers.fullscreen && binding.modifiers.lock) {
589
- Object(dom["a" /* addClass */])(parent, 'el-loading-parent--hidden');
590
- }
591
- el.domVisible = true;
592
- parent.appendChild(el.mask);
593
- Vue.nextTick(function () {
594
- if (el.instance.hiding) {
595
- el.instance.$emit('after-leave');
596
- } else {
597
- el.instance.visible = true;
598
- }
599
- });
600
- el.domInserted = true;
601
- } else if (el.domVisible && el.instance.hiding === true) {
602
- el.instance.visible = true;
603
- el.instance.hiding = false;
604
- }
605
- };
606
- Vue.directive('loading', {
607
- bind: function bind(el, binding, vnode) {
608
- var textExr = el.getAttribute('element-loading-text');
609
- var spinnerExr = el.getAttribute('element-loading-spinner');
610
- var backgroundExr = el.getAttribute('element-loading-background');
611
- var customClassExr = el.getAttribute('element-loading-custom-class');
612
- var vm = vnode.context;
613
- var mask = new Mask({
614
- el: document.createElement('div'),
615
- data: {
616
- text: vm && vm[textExr] || textExr,
617
- spinner: vm && vm[spinnerExr] || spinnerExr,
618
- background: vm && vm[backgroundExr] || backgroundExr,
619
- customClass: vm && vm[customClassExr] || customClassExr,
620
- fullscreen: !!binding.modifiers.fullscreen
621
- }
622
- });
623
- el.instance = mask;
624
- el.mask = mask.$el;
625
- el.maskStyle = {};
626
- binding.value && toggleLoading(el, binding);
627
- },
628
- update: function update(el, binding) {
629
- el.instance.setText(el.getAttribute('element-loading-text'));
630
- if (binding.oldValue !== binding.value) {
631
- toggleLoading(el, binding);
632
- }
633
- },
634
- unbind: function unbind(el, binding) {
635
- if (el.domInserted) {
636
- el.mask && el.mask.parentNode && el.mask.parentNode.removeChild(el.mask);
637
- toggleLoading(el, {
638
- value: false,
639
- modifiers: binding.modifiers
640
- });
641
- }
642
- el.instance && el.instance.$destroy();
643
- }
644
- });
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
+ });
645
495
  };
496
+
646
497
  /* harmony default export */ var directive = (loadingDirective);
647
- // EXTERNAL MODULE: ./src/utils/merge.js
648
- var merge = __webpack_require__(15);
498
+ // EXTERNAL MODULE: external "element-ui/lib/utils/merge"
499
+ var merge_ = __webpack_require__(9);
500
+ var merge_default = /*#__PURE__*/__webpack_require__.n(merge_);
649
501
 
650
502
  // CONCATENATED MODULE: ./packages/loading/src/index.js
651
503
 
@@ -655,743 +507,124 @@ var merge = __webpack_require__(15);
655
507
 
656
508
 
657
509
 
658
-
659
-
660
510
  var LoadingConstructor = external_vue_default.a.extend(loading);
511
+
661
512
  var defaults = {
662
- text: null,
663
- fullscreen: true,
664
- body: false,
665
- lock: false,
666
- customClass: ''
513
+ text: null,
514
+ fullscreen: true,
515
+ body: false,
516
+ lock: false,
517
+ customClass: ''
667
518
  };
668
- var fullscreenLoading;
519
+
520
+ var fullscreenLoading = void 0;
521
+
669
522
  LoadingConstructor.prototype.originalPosition = '';
670
523
  LoadingConstructor.prototype.originalOverflow = '';
524
+
671
525
  LoadingConstructor.prototype.close = function () {
672
- var _this = this;
673
- if (this.fullscreen) {
674
- fullscreenLoading = undefined;
675
- }
676
- after_leave(this, function (_) {
677
- var target = _this.fullscreen || _this.body ? document.body : _this.target;
678
- Object(dom["i" /* removeClass */])(target, 'el-loading-parent--relative');
679
- Object(dom["i" /* removeClass */])(target, 'el-loading-parent--hidden');
680
- if (_this.$el && _this.$el.parentNode) {
681
- _this.$el.parentNode.removeChild(_this.$el);
682
- }
683
- _this.$destroy();
684
- }, 300);
685
- this.visible = false;
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;
686
541
  };
542
+
687
543
  var src_addStyle = function addStyle(options, parent, instance) {
688
- var maskStyle = {};
689
- if (options.fullscreen) {
690
- instance.originalPosition = Object(dom["c" /* getStyle */])(document.body, 'position');
691
- instance.originalOverflow = Object(dom["c" /* getStyle */])(document.body, 'overflow');
692
- maskStyle.zIndex = popup["a" /* PopupManager */].nextZIndex();
693
- } else if (options.body) {
694
- instance.originalPosition = Object(dom["c" /* getStyle */])(document.body, 'position');
695
- ['top', 'left'].forEach(function (property) {
696
- var scroll = property === 'top' ? 'scrollTop' : 'scrollLeft';
697
- maskStyle[property] = options.target.getBoundingClientRect()[property] + document.body[scroll] + document.documentElement[scroll] + 'px';
698
- });
699
- ['height', 'width'].forEach(function (property) {
700
- maskStyle[property] = options.target.getBoundingClientRect()[property] + 'px';
701
- });
702
- } else {
703
- instance.originalPosition = Object(dom["c" /* getStyle */])(parent, 'position');
704
- }
705
- Object.keys(maskStyle).forEach(function (property) {
706
- instance.$el.style[property] = maskStyle[property];
707
- });
708
- };
709
- var src_Loading = function Loading(options) {
710
- if (options === void 0) {
711
- options = {};
712
- }
713
- if (external_vue_default.a.prototype.$isServer) return;
714
- options = Object(merge["a" /* default */])({}, defaults, options);
715
- if (typeof options.target === 'string') {
716
- options.target = document.querySelector(options.target);
717
- }
718
- options.target = options.target || document.body;
719
- if (options.target !== document.body) {
720
- options.fullscreen = false;
721
- } else {
722
- options.body = true;
723
- }
724
- if (options.fullscreen && fullscreenLoading) {
725
- return fullscreenLoading;
726
- }
727
- var parent = options.body ? document.body : options.target;
728
- var instance = new LoadingConstructor({
729
- el: document.createElement('div'),
730
- data: options
731
- });
732
- src_addStyle(options, parent, instance);
733
- if (instance.originalPosition !== 'absolute' && instance.originalPosition !== 'fixed' && instance.originalPosition !== 'sticky') {
734
- Object(dom["a" /* addClass */])(parent, 'el-loading-parent--relative');
735
- }
736
- if (options.fullscreen && options.lock) {
737
- Object(dom["a" /* addClass */])(parent, 'el-loading-parent--hidden');
738
- }
739
- parent.appendChild(instance.$el);
740
- external_vue_default.a.nextTick(function () {
741
- instance.visible = true;
742
- });
743
- if (options.fullscreen) {
744
- fullscreenLoading = instance;
745
- }
746
- return 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
+ });
747
564
  };
748
- /* harmony default export */ var src = (src_Loading);
749
- // CONCATENATED MODULE: ./packages/loading/index.js
750
-
751
-
752
- /* harmony default export */ var packages_loading = __webpack_exports__["default"] = ({
753
- install: function install(Vue) {
754
- Vue.use(directive);
755
- Vue.prototype.$loading = src;
756
- },
757
- directive: directive,
758
- service: src
759
- });
760
-
761
- /***/ }),
762
-
763
- /***/ 15:
764
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
765
-
766
- "use strict";
767
- /* harmony default export */ __webpack_exports__["a"] = (function (target) {
768
- for (var i = 1, j = arguments.length; i < j; i++) {
769
- var source = arguments[i] || {};
770
- for (var prop in source) {
771
- if (source.hasOwnProperty(prop)) {
772
- var value = source[prop];
773
- if (value !== undefined) {
774
- target[prop] = value;
775
- }
776
- }
777
- }
778
- }
779
- return target;
780
- });
781
- ;
782
-
783
- /***/ }),
784
-
785
- /***/ 16:
786
- /***/ (function(module, exports) {
787
-
788
- module.exports = require("core-js/modules/es.string.match.js");
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) {
801
-
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
565
 
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;
945
- });
946
- ;
947
-
948
- /***/ }),
949
-
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__(56);
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
- }
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;
1151
605
  };
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
606
 
607
+ /* harmony default export */ var src = (src_Loading);
608
+ // CONCATENATED MODULE: ./packages/loading/index.js
1170
609
 
1171
610
 
1172
611
 
612
+ /* harmony default export */ var packages_loading = __webpack_exports__["default"] = ({
613
+ install: function install(Vue) {
614
+ Vue.use(directive);
615
+ Vue.prototype.$loading = src;
616
+ },
1173
617
 
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
- }
618
+ directive: directive,
619
+ service: src
1351
620
  });
1352
621
 
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
622
  /***/ }),
1369
623
 
1370
- /***/ 56:
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:
624
+ /***/ 9:
1392
625
  /***/ (function(module, exports) {
1393
626
 
1394
- module.exports = require("core-js/modules/es.regexp.exec.js");
627
+ module.exports = require("element-ui/lib/utils/merge");
1395
628
 
1396
629
  /***/ })
1397
630