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/tooltip.js CHANGED
@@ -82,3241 +82,344 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 96);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 145);
86
86
  /******/ })
87
87
  /************************************************************************/
88
- /******/ ([
89
- /* 0 */
90
- /***/ (function(module, exports) {
91
-
92
- module.exports = require("vue");
93
-
94
- /***/ }),
95
- /* 1 */
96
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
97
-
98
- "use strict";
99
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return on; });
100
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return off; });
101
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return once; });
102
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return hasClass; });
103
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addClass; });
104
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return removeClass; });
105
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getStyle; });
106
- /* unused harmony export setStyle */
107
- /* unused harmony export isScroll */
108
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getScrollContainer; });
109
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isInContainer; });
110
- /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18);
111
- /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0__);
112
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53);
113
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_1__);
114
- /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
115
- /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__);
116
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
117
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
118
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
119
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__);
120
- /* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(16);
121
- /* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_5__);
122
- /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(12);
123
- /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6__);
124
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(0);
125
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_7__);
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
- /* istanbul ignore next */
134
-
135
-
136
- var isServer = vue__WEBPACK_IMPORTED_MODULE_7___default.a.prototype.$isServer;
137
- var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
138
- var MOZ_HACK_REGEXP = /^moz([A-Z])/;
139
- var ieVersion = isServer ? 0 : Number(document.documentMode);
140
-
141
- /* istanbul ignore next */
142
- var trim = function trim(string) {
143
- return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
144
- };
145
- /* istanbul ignore next */
146
- var camelCase = function camelCase(name) {
147
- return name.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
148
- return offset ? letter.toUpperCase() : letter;
149
- }).replace(MOZ_HACK_REGEXP, 'Moz$1');
150
- };
151
-
152
- /* istanbul ignore next */
153
- var on = function () {
154
- if (!isServer && document.addEventListener) {
155
- return function (element, event, handler) {
156
- if (element && event && handler) {
157
- element.addEventListener(event, handler, false);
158
- }
159
- };
160
- } else {
161
- return function (element, event, handler) {
162
- if (element && event && handler) {
163
- element.attachEvent('on' + event, handler);
164
- }
165
- };
166
- }
167
- }();
168
-
169
- /* istanbul ignore next */
170
- var off = function () {
171
- if (!isServer && document.removeEventListener) {
172
- return function (element, event, handler) {
173
- if (element && event) {
174
- element.removeEventListener(event, handler, false);
175
- }
176
- };
177
- } else {
178
- return function (element, event, handler) {
179
- if (element && event) {
180
- element.detachEvent('on' + event, handler);
181
- }
182
- };
183
- }
184
- }();
185
-
186
- /* istanbul ignore next */
187
- var once = function once(el, event, fn) {
188
- var _listener = function listener() {
189
- if (fn) {
190
- fn.apply(this, arguments);
191
- }
192
- off(el, event, _listener);
193
- };
194
- on(el, event, _listener);
195
- };
196
-
197
- /* istanbul ignore next */
198
- function hasClass(el, cls) {
199
- if (!el || !cls) return false;
200
- if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
201
- if (el.classList) {
202
- return el.classList.contains(cls);
203
- } else {
204
- return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
205
- }
206
- }
207
- ;
208
-
209
- /* istanbul ignore next */
210
- function addClass(el, cls) {
211
- if (!el) return;
212
- var curClass = el.className;
213
- var classes = (cls || '').split(' ');
214
- for (var i = 0, j = classes.length; i < j; i++) {
215
- var clsName = classes[i];
216
- if (!clsName) continue;
217
- if (el.classList) {
218
- el.classList.add(clsName);
219
- } else if (!hasClass(el, clsName)) {
220
- curClass += ' ' + clsName;
221
- }
222
- }
223
- if (!el.classList) {
224
- el.setAttribute('class', curClass);
225
- }
226
- }
227
- ;
228
-
229
- /* istanbul ignore next */
230
- function removeClass(el, cls) {
231
- if (!el || !cls) return;
232
- var classes = cls.split(' ');
233
- var curClass = ' ' + el.className + ' ';
234
- for (var i = 0, j = classes.length; i < j; i++) {
235
- var clsName = classes[i];
236
- if (!clsName) continue;
237
- if (el.classList) {
238
- el.classList.remove(clsName);
239
- } else if (hasClass(el, clsName)) {
240
- curClass = curClass.replace(' ' + clsName + ' ', ' ');
241
- }
242
- }
243
- if (!el.classList) {
244
- el.setAttribute('class', trim(curClass));
245
- }
246
- }
247
- ;
248
-
249
- /* istanbul ignore next */
250
- var getStyle = ieVersion < 9 ? function (element, styleName) {
251
- if (isServer) return;
252
- if (!element || !styleName) return null;
253
- styleName = camelCase(styleName);
254
- if (styleName === 'float') {
255
- styleName = 'styleFloat';
256
- }
257
- try {
258
- switch (styleName) {
259
- case 'opacity':
260
- try {
261
- return element.filters.item('alpha').opacity / 100;
262
- } catch (e) {
263
- return 1.0;
264
- }
265
- default:
266
- return element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null;
267
- }
268
- } catch (e) {
269
- return element.style[styleName];
270
- }
271
- } : function (element, styleName) {
272
- if (isServer) return;
273
- if (!element || !styleName) return null;
274
- styleName = camelCase(styleName);
275
- if (styleName === 'float') {
276
- styleName = 'cssFloat';
277
- }
278
- try {
279
- var computed = document.defaultView.getComputedStyle(element, '');
280
- return element.style[styleName] || computed ? computed[styleName] : null;
281
- } catch (e) {
282
- return element.style[styleName];
283
- }
284
- };
285
-
286
- /* istanbul ignore next */
287
- function setStyle(element, styleName, value) {
288
- if (!element || !styleName) return;
289
- if (typeof styleName === 'object') {
290
- for (var prop in styleName) {
291
- if (styleName.hasOwnProperty(prop)) {
292
- setStyle(element, prop, styleName[prop]);
293
- }
294
- }
295
- } else {
296
- styleName = camelCase(styleName);
297
- if (styleName === 'opacity' && ieVersion < 9) {
298
- element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
299
- } else {
300
- element.style[styleName] = value;
301
- }
302
- }
303
- }
304
- ;
305
- var isScroll = function isScroll(el, vertical) {
306
- if (isServer) return;
307
- var determinedDirection = vertical !== null && vertical !== undefined;
308
- var overflow = determinedDirection ? vertical ? getStyle(el, 'overflow-y') : getStyle(el, 'overflow-x') : getStyle(el, 'overflow');
309
- return overflow.match(/(scroll|auto|overlay)/);
310
- };
311
- var getScrollContainer = function getScrollContainer(el, vertical) {
312
- if (isServer) return;
313
- var parent = el;
314
- while (parent) {
315
- if ([window, document, document.documentElement].includes(parent)) {
316
- return window;
317
- }
318
- if (isScroll(parent, vertical)) {
319
- return parent;
320
- }
321
- parent = parent.parentNode;
322
- }
323
- return parent;
324
- };
325
- var isInContainer = function isInContainer(el, container) {
326
- if (isServer || !el || !container) return false;
327
- var elRect = el.getBoundingClientRect();
328
- var containerRect;
329
- if ([window, document, document.documentElement, null, undefined].includes(container)) {
330
- containerRect = {
331
- top: 0,
332
- right: window.innerWidth,
333
- bottom: window.innerHeight,
334
- left: 0
335
- };
336
- } else {
337
- containerRect = container.getBoundingClientRect();
338
- }
339
- return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;
340
- };
341
-
342
- /***/ }),
343
- /* 2 */,
344
- /* 3 */
345
- /***/ (function(module, exports) {
346
-
347
- module.exports = require("core-js/modules/es.object.to-string.js");
348
-
349
- /***/ }),
350
- /* 4 */
351
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
352
-
353
- "use strict";
354
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return noop; });
355
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hasOwn; });
356
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return toObject; });
357
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getValueByPath; });
358
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getPropByPath; });
359
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return generateId; });
360
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return valueEquals; });
361
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return escapeRegexpString; });
362
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; });
363
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; });
364
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return coerceTruthyValueToArray; });
365
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return isIE; });
366
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return isEdge; });
367
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return isFirefox; });
368
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return autoprefixer; });
369
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return kebabCase; });
370
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return capitalize; });
371
- /* unused harmony export looseEqual */
372
- /* unused harmony export arrayEquals */
373
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return isEqual; });
374
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return isEmpty; });
375
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return rafThrottle; });
376
- /* unused harmony export objToArray */
377
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return isMac; });
378
- /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13);
379
- /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_0__);
380
- /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
381
- /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
382
- /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17);
383
- /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_2__);
384
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
385
- /* 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__);
386
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
387
- /* 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__);
388
- /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(11);
389
- /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_5__);
390
- /* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(16);
391
- /* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_6__);
392
- /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(12);
393
- /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__);
394
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(0);
395
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_8__);
396
- /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(8);
397
-
398
-
399
-
400
-
401
-
402
-
403
-
404
-
405
-
406
-
407
- var hasOwnProperty = Object.prototype.hasOwnProperty;
408
- function noop() {}
409
- ;
410
- function hasOwn(obj, key) {
411
- return hasOwnProperty.call(obj, key);
412
- }
413
- ;
414
- function extend(to, _from) {
415
- for (var key in _from) {
416
- to[key] = _from[key];
417
- }
418
- return to;
419
- }
420
- ;
421
- function toObject(arr) {
422
- var res = {};
423
- for (var i = 0; i < arr.length; i++) {
424
- if (arr[i]) {
425
- extend(res, arr[i]);
426
- }
427
- }
428
- return res;
429
- }
430
- ;
431
- var getValueByPath = function getValueByPath(object, prop) {
432
- prop = prop || '';
433
- var paths = prop.split('.');
434
- var current = object;
435
- var result = null;
436
- for (var i = 0, j = paths.length; i < j; i++) {
437
- var path = paths[i];
438
- if (!current) break;
439
- if (i === j - 1) {
440
- result = current[path];
441
- break;
442
- }
443
- current = current[path];
444
- }
445
- return result;
446
- };
447
- function getPropByPath(obj, path, strict) {
448
- var tempObj = obj;
449
- path = path.replace(/\[(\w+)\]/g, '.$1');
450
- path = path.replace(/^\./, '');
451
- var keyArr = path.split('.');
452
- var i = 0;
453
- for (var len = keyArr.length; i < len - 1; ++i) {
454
- if (!tempObj && !strict) break;
455
- var key = keyArr[i];
456
- if (key in tempObj) {
457
- tempObj = tempObj[key];
458
- } else {
459
- if (strict) {
460
- throw new Error('please transfer a valid prop path to form item!');
461
- }
462
- break;
463
- }
464
- }
465
- return {
466
- o: tempObj,
467
- k: keyArr[i],
468
- v: tempObj ? tempObj[keyArr[i]] : null
469
- };
470
- }
471
- ;
472
- var generateId = function generateId() {
473
- return Math.floor(Math.random() * 10000);
474
- };
475
- var valueEquals = function valueEquals(a, b) {
476
- // see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
477
- if (a === b) return true;
478
- if (!(a instanceof Array)) return false;
479
- if (!(b instanceof Array)) return false;
480
- if (a.length !== b.length) return false;
481
- for (var i = 0; i !== a.length; ++i) {
482
- if (a[i] !== b[i]) return false;
483
- }
484
- return true;
485
- };
486
- var escapeRegexpString = function escapeRegexpString(value) {
487
- if (value === void 0) {
488
- value = '';
489
- }
490
- return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
491
- };
492
-
493
- // TODO: use native Array.find, Array.findIndex when IE support is dropped
494
- var arrayFindIndex = function arrayFindIndex(arr, pred) {
495
- for (var i = 0; i !== arr.length; ++i) {
496
- if (pred(arr[i])) {
497
- return i;
498
- }
499
- }
500
- return -1;
501
- };
502
- var arrayFind = function arrayFind(arr, pred) {
503
- var idx = arrayFindIndex(arr, pred);
504
- return idx !== -1 ? arr[idx] : undefined;
505
- };
506
-
507
- // coerce truthy value to array
508
- var coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
509
- if (Array.isArray(val)) {
510
- return val;
511
- } else if (val) {
512
- return [val];
513
- } else {
514
- return [];
515
- }
516
- };
517
- var isIE = function isIE() {
518
- return !vue__WEBPACK_IMPORTED_MODULE_8___default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
519
- };
520
- var isEdge = function isEdge() {
521
- return !vue__WEBPACK_IMPORTED_MODULE_8___default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
522
- };
523
- var isFirefox = function isFirefox() {
524
- return !vue__WEBPACK_IMPORTED_MODULE_8___default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
525
- };
526
- var autoprefixer = function autoprefixer(style) {
527
- if (typeof style !== 'object') return style;
528
- var rules = ['transform', 'transition', 'animation'];
529
- var prefixes = ['ms-', 'webkit-'];
530
- rules.forEach(function (rule) {
531
- var value = style[rule];
532
- if (rule && value) {
533
- prefixes.forEach(function (prefix) {
534
- style[prefix + rule] = value;
535
- });
536
- }
537
- });
538
- return style;
539
- };
540
- var kebabCase = function kebabCase(str) {
541
- var hyphenateRE = /([^-])([A-Z])/g;
542
- return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
543
- };
544
- var capitalize = function capitalize(str) {
545
- if (!Object(_types__WEBPACK_IMPORTED_MODULE_9__[/* isString */ "e"])(str)) return str;
546
- return str.charAt(0).toUpperCase() + str.slice(1);
547
- };
548
- var looseEqual = function looseEqual(a, b) {
549
- var isObjectA = Object(_types__WEBPACK_IMPORTED_MODULE_9__[/* isObject */ "d"])(a);
550
- var isObjectB = Object(_types__WEBPACK_IMPORTED_MODULE_9__[/* isObject */ "d"])(b);
551
- if (isObjectA && isObjectB) {
552
- return JSON.stringify(a) === JSON.stringify(b);
553
- } else if (!isObjectA && !isObjectB) {
554
- return String(a) === String(b);
555
- } else {
556
- return false;
557
- }
558
- };
559
- var arrayEquals = function arrayEquals(arrayA, arrayB) {
560
- arrayA = arrayA || [];
561
- arrayB = arrayB || [];
562
- if (arrayA.length !== arrayB.length) {
563
- return false;
564
- }
565
- for (var i = 0; i < arrayA.length; i++) {
566
- if (!looseEqual(arrayA[i], arrayB[i])) {
567
- return false;
568
- }
569
- }
570
- return true;
571
- };
572
- var isEqual = function isEqual(value1, value2) {
573
- if (Array.isArray(value1) && Array.isArray(value2)) {
574
- return arrayEquals(value1, value2);
575
- }
576
- return looseEqual(value1, value2);
577
- };
578
- var isEmpty = function isEmpty(val) {
579
- // null or undefined
580
- if (val == null) return true;
581
- if (typeof val === 'boolean') return false;
582
- if (typeof val === 'number') return !val;
583
- if (val instanceof Error) return val.message === '';
584
- switch (Object.prototype.toString.call(val)) {
585
- // String or Array
586
- case '[object String]':
587
- case '[object Array]':
588
- return !val.length;
589
-
590
- // Map or Set or File
591
- case '[object File]':
592
- case '[object Map]':
593
- case '[object Set]':
594
- {
595
- return !val.size;
596
- }
597
- // Plain Object
598
- case '[object Object]':
599
- {
600
- return !Object.keys(val).length;
601
- }
602
- }
603
- return false;
604
- };
605
- function rafThrottle(fn) {
606
- var locked = false;
607
- return function () {
608
- var _this = this;
609
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
610
- args[_key] = arguments[_key];
611
- }
612
- if (locked) return;
613
- locked = true;
614
- window.requestAnimationFrame(function (_) {
615
- fn.apply(_this, args);
616
- locked = false;
617
- });
618
- };
619
- }
620
- function objToArray(obj) {
621
- if (Array.isArray(obj)) {
622
- return obj;
623
- }
624
- return isEmpty(obj) ? [] : [obj];
625
- }
626
- var isMac = function isMac() {
627
- return !vue__WEBPACK_IMPORTED_MODULE_8___default.a.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);
628
- };
629
-
630
- /***/ }),
631
- /* 5 */
632
- /***/ (function(module, exports) {
633
-
634
- module.exports = require("core-js/modules/es.function.name.js");
635
-
636
- /***/ }),
637
- /* 6 */
638
- /***/ (function(module, exports) {
639
-
640
- module.exports = require("core-js/modules/es.number.constructor.js");
641
-
642
- /***/ }),
643
- /* 7 */
644
- /***/ (function(module, exports) {
645
-
646
- module.exports = require("core-js/modules/es.regexp.exec.js");
88
+ /******/ ({
647
89
 
648
- /***/ }),
649
- /* 8 */
90
+ /***/ 145:
650
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
651
92
 
652
93
  "use strict";
653
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
654
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
655
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
656
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
657
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
658
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
659
- /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19);
660
- /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__);
661
- /* harmony import */ var core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(25);
662
- /* harmony import */ var core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
663
- /* harmony import */ var core_js_modules_es_array_buffer_slice_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26);
664
- /* harmony import */ var core_js_modules_es_array_buffer_slice_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_buffer_slice_js__WEBPACK_IMPORTED_MODULE_2__);
665
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
666
- /* 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__);
667
- /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(11);
668
- /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4__);
669
- /* harmony import */ var core_js_modules_es_typed_array_int8_array_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(27);
670
- /* harmony import */ var core_js_modules_es_typed_array_int8_array_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_int8_array_js__WEBPACK_IMPORTED_MODULE_5__);
671
- /* harmony import */ var core_js_modules_es_typed_array_copy_within_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(28);
672
- /* harmony import */ var core_js_modules_es_typed_array_copy_within_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_copy_within_js__WEBPACK_IMPORTED_MODULE_6__);
673
- /* harmony import */ var core_js_modules_es_typed_array_every_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(29);
674
- /* harmony import */ var core_js_modules_es_typed_array_every_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_every_js__WEBPACK_IMPORTED_MODULE_7__);
675
- /* harmony import */ var core_js_modules_es_typed_array_fill_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(30);
676
- /* harmony import */ var core_js_modules_es_typed_array_fill_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_fill_js__WEBPACK_IMPORTED_MODULE_8__);
677
- /* harmony import */ var core_js_modules_es_typed_array_filter_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(31);
678
- /* harmony import */ var core_js_modules_es_typed_array_filter_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_filter_js__WEBPACK_IMPORTED_MODULE_9__);
679
- /* harmony import */ var core_js_modules_es_typed_array_find_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(32);
680
- /* harmony import */ var core_js_modules_es_typed_array_find_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_find_js__WEBPACK_IMPORTED_MODULE_10__);
681
- /* harmony import */ var core_js_modules_es_typed_array_find_index_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(33);
682
- /* harmony import */ var core_js_modules_es_typed_array_find_index_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_find_index_js__WEBPACK_IMPORTED_MODULE_11__);
683
- /* harmony import */ var core_js_modules_es_typed_array_for_each_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(34);
684
- /* harmony import */ var core_js_modules_es_typed_array_for_each_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_for_each_js__WEBPACK_IMPORTED_MODULE_12__);
685
- /* harmony import */ var core_js_modules_es_typed_array_includes_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(35);
686
- /* harmony import */ var core_js_modules_es_typed_array_includes_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_includes_js__WEBPACK_IMPORTED_MODULE_13__);
687
- /* harmony import */ var core_js_modules_es_typed_array_index_of_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(36);
688
- /* harmony import */ var core_js_modules_es_typed_array_index_of_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_index_of_js__WEBPACK_IMPORTED_MODULE_14__);
689
- /* harmony import */ var core_js_modules_es_typed_array_iterator_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(37);
690
- /* harmony import */ var core_js_modules_es_typed_array_iterator_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_iterator_js__WEBPACK_IMPORTED_MODULE_15__);
691
- /* harmony import */ var core_js_modules_es_typed_array_join_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(38);
692
- /* harmony import */ var core_js_modules_es_typed_array_join_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_join_js__WEBPACK_IMPORTED_MODULE_16__);
693
- /* harmony import */ var core_js_modules_es_typed_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(39);
694
- /* harmony import */ var core_js_modules_es_typed_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_17__);
695
- /* harmony import */ var core_js_modules_es_typed_array_map_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(40);
696
- /* harmony import */ var core_js_modules_es_typed_array_map_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_map_js__WEBPACK_IMPORTED_MODULE_18__);
697
- /* harmony import */ var core_js_modules_es_typed_array_reduce_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(41);
698
- /* harmony import */ var core_js_modules_es_typed_array_reduce_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_reduce_js__WEBPACK_IMPORTED_MODULE_19__);
699
- /* harmony import */ var core_js_modules_es_typed_array_reduce_right_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(42);
700
- /* harmony import */ var core_js_modules_es_typed_array_reduce_right_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_reduce_right_js__WEBPACK_IMPORTED_MODULE_20__);
701
- /* harmony import */ var core_js_modules_es_typed_array_reverse_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(43);
702
- /* harmony import */ var core_js_modules_es_typed_array_reverse_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_reverse_js__WEBPACK_IMPORTED_MODULE_21__);
703
- /* harmony import */ var core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(44);
704
- /* harmony import */ var core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_22__);
705
- /* harmony import */ var core_js_modules_es_typed_array_slice_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(45);
706
- /* harmony import */ var core_js_modules_es_typed_array_slice_js__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_slice_js__WEBPACK_IMPORTED_MODULE_23__);
707
- /* harmony import */ var core_js_modules_es_typed_array_some_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(46);
708
- /* harmony import */ var core_js_modules_es_typed_array_some_js__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_some_js__WEBPACK_IMPORTED_MODULE_24__);
709
- /* harmony import */ var core_js_modules_es_typed_array_sort_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(47);
710
- /* harmony import */ var core_js_modules_es_typed_array_sort_js__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_sort_js__WEBPACK_IMPORTED_MODULE_25__);
711
- /* harmony import */ var core_js_modules_es_typed_array_subarray_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(48);
712
- /* harmony import */ var core_js_modules_es_typed_array_subarray_js__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_subarray_js__WEBPACK_IMPORTED_MODULE_26__);
713
- /* harmony import */ var core_js_modules_es_typed_array_to_locale_string_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(49);
714
- /* harmony import */ var core_js_modules_es_typed_array_to_locale_string_js__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_to_locale_string_js__WEBPACK_IMPORTED_MODULE_27__);
715
- /* harmony import */ var core_js_modules_es_typed_array_to_string_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(50);
716
- /* harmony import */ var core_js_modules_es_typed_array_to_string_js__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_to_string_js__WEBPACK_IMPORTED_MODULE_28__);
717
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(0);
718
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_29__);
719
-
720
-
721
-
722
-
723
-
724
-
725
-
726
-
727
-
728
-
729
-
730
-
731
-
732
-
733
-
734
-
735
-
736
-
737
-
738
-
739
-
740
-
741
-
742
-
743
-
744
-
745
-
746
-
747
-
748
-
749
- function isString(obj) {
750
- return Object.prototype.toString.call(obj) === '[object String]';
751
- }
752
- function isObject(obj) {
753
- return Object.prototype.toString.call(obj) === '[object Object]';
754
- }
755
- function isHtmlElement(node) {
756
- return node && node.nodeType === Node.ELEMENT_NODE;
757
- }
758
-
759
- /**
760
- * - Inspired:
761
- * https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
762
- */
763
- var isFunction = function isFunction(functionToCheck) {
764
- var getType = {};
765
- return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
766
- };
767
- if ( true && typeof Int8Array !== 'object' && (vue__WEBPACK_IMPORTED_MODULE_29___default.a.prototype.$isServer || typeof document.childNodes !== 'function')) {
768
- isFunction = function isFunction(obj) {
769
- return typeof obj === 'function' || false;
770
- };
771
- }
772
-
773
- var isUndefined = function isUndefined(val) {
774
- return val === void 0;
775
- };
776
- var isDefined = function isDefined(val) {
777
- return val !== undefined && val !== null;
778
- };
779
-
780
- /***/ }),
781
- /* 9 */,
782
- /* 10 */
783
- /***/ (function(module, exports) {
784
-
785
- module.exports = require("core-js/modules/web.dom-collections.for-each.js");
786
-
787
- /***/ }),
788
- /* 11 */
789
- /***/ (function(module, exports) {
790
-
791
- module.exports = require("core-js/modules/es.regexp.to-string.js");
792
-
793
- /***/ }),
794
- /* 12 */
795
- /***/ (function(module, exports) {
796
-
797
- module.exports = require("core-js/modules/es.string.replace.js");
798
-
799
- /***/ }),
800
- /* 13 */
801
- /***/ (function(module, exports) {
802
-
803
- module.exports = require("core-js/modules/es.array.slice.js");
804
-
805
- /***/ }),
806
- /* 14 */,
807
- /* 15 */
808
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
809
-
810
- "use strict";
811
- /* harmony default export */ __webpack_exports__["a"] = (function (target) {
812
- for (var i = 1, j = arguments.length; i < j; i++) {
813
- var source = arguments[i] || {};
814
- for (var prop in source) {
815
- if (source.hasOwnProperty(prop)) {
816
- var value = source[prop];
817
- if (value !== undefined) {
818
- target[prop] = value;
819
- }
820
- }
821
- }
822
- }
823
- return target;
824
- });
825
- ;
826
-
827
- /***/ }),
828
- /* 16 */
829
- /***/ (function(module, exports) {
830
-
831
- module.exports = require("core-js/modules/es.string.match.js");
832
-
833
- /***/ }),
834
- /* 17 */
835
- /***/ (function(module, exports) {
836
-
837
- module.exports = require("core-js/modules/es.object.keys.js");
838
-
839
- /***/ }),
840
- /* 18 */
841
- /***/ (function(module, exports) {
842
-
843
- module.exports = require("core-js/modules/es.array.filter.js");
844
-
845
- /***/ }),
846
- /* 19 */
847
- /***/ (function(module, exports) {
848
-
849
- module.exports = require("core-js/modules/es.array.iterator.js");
850
-
851
- /***/ }),
852
- /* 20 */
853
- /***/ (function(module, exports) {
854
-
855
- module.exports = require("core-js/modules/es.array.map.js");
856
-
857
- /***/ }),
858
- /* 21 */,
859
- /* 22 */
860
- /***/ (function(module, exports) {
861
-
862
- module.exports = require("core-js/modules/es.array.splice.js");
863
-
864
- /***/ }),
865
- /* 23 */
866
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
867
-
868
- "use strict";
869
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
870
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
871
-
872
- var scrollBarWidth;
873
- /* harmony default export */ __webpack_exports__["a"] = (function () {
874
- if (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer) return 0;
875
- if (scrollBarWidth !== undefined) return scrollBarWidth;
876
- var outer = document.createElement('div');
877
- outer.className = 'el-scrollbar__wrap';
878
- outer.style.visibility = 'hidden';
879
- outer.style.width = '100px';
880
- outer.style.position = 'absolute';
881
- outer.style.top = '-9999px';
882
- document.body.appendChild(outer);
883
- var widthNoScroll = outer.offsetWidth;
884
- outer.style.overflow = 'scroll';
885
- var inner = document.createElement('div');
886
- inner.style.width = '100%';
887
- outer.appendChild(inner);
888
- var widthWithScroll = inner.offsetWidth;
889
- outer.parentNode.removeChild(outer);
890
- scrollBarWidth = widthNoScroll - widthWithScroll;
891
- return scrollBarWidth;
892
- });
893
- ;
94
+ // ESM COMPAT FLAG
95
+ __webpack_require__.r(__webpack_exports__);
894
96
 
895
- /***/ }),
896
- /* 24 */
897
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
97
+ // EXTERNAL MODULE: external "element-ui/lib/utils/vue-popper"
98
+ var vue_popper_ = __webpack_require__(5);
99
+ var vue_popper_default = /*#__PURE__*/__webpack_require__.n(vue_popper_);
898
100
 
899
- "use strict";
101
+ // EXTERNAL MODULE: external "throttle-debounce/debounce"
102
+ var debounce_ = __webpack_require__(19);
103
+ var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce_);
900
104
 
901
- // EXPORTS
902
- __webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ popup_manager; });
105
+ // EXTERNAL MODULE: external "element-ui/lib/utils/dom"
106
+ var dom_ = __webpack_require__(2);
903
107
 
904
- // EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
905
- var es_number_constructor_js_ = __webpack_require__(6);
108
+ // EXTERNAL MODULE: external "element-ui/lib/utils/util"
109
+ var util_ = __webpack_require__(3);
906
110
 
907
111
  // EXTERNAL MODULE: external "vue"
908
- var external_vue_ = __webpack_require__(0);
112
+ var external_vue_ = __webpack_require__(7);
909
113
  var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
910
114
 
911
- // EXTERNAL MODULE: ./src/utils/merge.js
912
- var merge = __webpack_require__(15);
913
-
914
- // EXTERNAL MODULE: external "core-js/modules/es.array.splice.js"
915
- var es_array_splice_js_ = __webpack_require__(22);
916
-
917
- // EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
918
- var es_object_to_string_js_ = __webpack_require__(3);
919
-
920
- // EXTERNAL MODULE: external "core-js/modules/es.regexp.exec.js"
921
- var es_regexp_exec_js_ = __webpack_require__(7);
922
-
923
- // EXTERNAL MODULE: external "core-js/modules/es.string.split.js"
924
- var es_string_split_js_ = __webpack_require__(59);
925
-
926
- // EXTERNAL MODULE: external "core-js/modules/es.string.trim.js"
927
- var es_string_trim_js_ = __webpack_require__(56);
928
-
929
- // EXTERNAL MODULE: external "core-js/modules/web.dom-collections.for-each.js"
930
- var web_dom_collections_for_each_js_ = __webpack_require__(10);
931
-
932
- // EXTERNAL MODULE: ./src/utils/dom.js
933
- var utils_dom = __webpack_require__(1);
934
-
935
- // CONCATENATED MODULE: ./src/utils/popup/popup-manager.js
936
-
937
-
938
-
939
-
940
-
941
-
115
+ // CONCATENATED MODULE: ./packages/tooltip/src/main.js
942
116
 
943
117
 
944
- var hasModal = false;
945
- var hasInitZIndex = false;
946
- var popup_manager_zIndex;
947
- var popup_manager_getModal = function getModal() {
948
- if (external_vue_default.a.prototype.$isServer) return;
949
- var modalDom = PopupManager.modalDom;
950
- if (modalDom) {
951
- hasModal = true;
952
- } else {
953
- hasModal = false;
954
- modalDom = document.createElement('div');
955
- PopupManager.modalDom = modalDom;
956
- modalDom.addEventListener('touchmove', function (event) {
957
- event.preventDefault();
958
- event.stopPropagation();
959
- });
960
- modalDom.addEventListener('click', function () {
961
- PopupManager.doOnModalClick && PopupManager.doOnModalClick();
962
- });
963
- }
964
- return modalDom;
965
- };
966
- var instances = {};
967
- var PopupManager = {
968
- modalFade: true,
969
- getInstance: function getInstance(id) {
970
- return instances[id];
971
- },
972
- register: function register(id, instance) {
973
- if (id && instance) {
974
- instances[id] = instance;
975
- }
976
- },
977
- deregister: function deregister(id) {
978
- if (id) {
979
- instances[id] = null;
980
- delete instances[id];
981
- }
982
- },
983
- nextZIndex: function nextZIndex() {
984
- return PopupManager.zIndex++;
985
- },
986
- modalStack: [],
987
- doOnModalClick: function doOnModalClick() {
988
- var topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1];
989
- if (!topItem) return;
990
- var instance = PopupManager.getInstance(topItem.id);
991
- if (instance && instance.closeOnClickModal) {
992
- instance.close();
993
- }
994
- },
995
- openModal: function openModal(id, zIndex, dom, modalClass, modalFade) {
996
- if (external_vue_default.a.prototype.$isServer) return;
997
- if (!id || zIndex === undefined) return;
998
- this.modalFade = modalFade;
999
- var modalStack = this.modalStack;
1000
- for (var i = 0, j = modalStack.length; i < j; i++) {
1001
- var item = modalStack[i];
1002
- if (item.id === id) {
1003
- return;
1004
- }
1005
- }
1006
- var modalDom = popup_manager_getModal();
1007
- Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal');
1008
- if (this.modalFade && !hasModal) {
1009
- Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-enter');
1010
- }
1011
- if (modalClass) {
1012
- var classArr = modalClass.trim().split(/\s+/);
1013
- classArr.forEach(function (item) {
1014
- return Object(utils_dom["a" /* addClass */])(modalDom, item);
1015
- });
1016
- }
1017
- setTimeout(function () {
1018
- Object(utils_dom["i" /* removeClass */])(modalDom, 'v-modal-enter');
1019
- }, 200);
1020
- if (dom && dom.parentNode && dom.parentNode.nodeType !== 11) {
1021
- dom.parentNode.appendChild(modalDom);
1022
- } else {
1023
- document.body.appendChild(modalDom);
1024
- }
1025
- if (zIndex) {
1026
- modalDom.style.zIndex = zIndex;
1027
- }
1028
- modalDom.tabIndex = 0;
1029
- modalDom.style.display = '';
1030
- this.modalStack.push({
1031
- id: id,
1032
- zIndex: zIndex,
1033
- modalClass: modalClass
1034
- });
1035
- },
1036
- closeModal: function closeModal(id) {
1037
- var modalStack = this.modalStack;
1038
- var modalDom = popup_manager_getModal();
1039
- if (modalStack.length > 0) {
1040
- var topItem = modalStack[modalStack.length - 1];
1041
- if (topItem.id === id) {
1042
- if (topItem.modalClass) {
1043
- var classArr = topItem.modalClass.trim().split(/\s+/);
1044
- classArr.forEach(function (item) {
1045
- return Object(utils_dom["i" /* removeClass */])(modalDom, item);
1046
- });
1047
- }
1048
- modalStack.pop();
1049
- if (modalStack.length > 0) {
1050
- modalDom.style.zIndex = modalStack[modalStack.length - 1].zIndex;
1051
- }
1052
- } else {
1053
- for (var i = modalStack.length - 1; i >= 0; i--) {
1054
- if (modalStack[i].id === id) {
1055
- modalStack.splice(i, 1);
1056
- break;
1057
- }
1058
- }
1059
- }
1060
- }
1061
- if (modalStack.length === 0) {
1062
- if (this.modalFade) {
1063
- Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-leave');
1064
- }
1065
- setTimeout(function () {
1066
- if (modalStack.length === 0) {
1067
- if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom);
1068
- modalDom.style.display = 'none';
1069
- PopupManager.modalDom = undefined;
1070
- }
1071
- Object(utils_dom["i" /* removeClass */])(modalDom, 'v-modal-leave');
1072
- }, 200);
1073
- }
1074
- }
1075
- };
1076
- Object.defineProperty(PopupManager, 'zIndex', {
1077
- configurable: true,
1078
- get: function get() {
1079
- if (!hasInitZIndex) {
1080
- popup_manager_zIndex = popup_manager_zIndex || (external_vue_default.a.prototype.$ELEMENT || {}).zIndex || 2000;
1081
- hasInitZIndex = true;
1082
- }
1083
- return popup_manager_zIndex;
1084
- },
1085
- set: function set(value) {
1086
- popup_manager_zIndex = value;
1087
- }
1088
- });
1089
- var popup_manager_getTopPopup = function getTopPopup() {
1090
- if (external_vue_default.a.prototype.$isServer) return;
1091
- if (PopupManager.modalStack.length > 0) {
1092
- var topPopup = PopupManager.modalStack[PopupManager.modalStack.length - 1];
1093
- if (!topPopup) return;
1094
- var instance = PopupManager.getInstance(topPopup.id);
1095
- return instance;
1096
- }
1097
- };
1098
- if (!external_vue_default.a.prototype.$isServer) {
1099
- // handle `esc` key when the popup is shown
1100
- window.addEventListener('keydown', function (event) {
1101
- if (event.keyCode === 27) {
1102
- var topPopup = popup_manager_getTopPopup();
1103
- if (topPopup && topPopup.closeOnPressEscape) {
1104
- topPopup.handleClose ? topPopup.handleClose() : topPopup.handleAction ? topPopup.handleAction('cancel') : topPopup.close();
1105
- }
1106
- }
1107
- });
1108
- }
1109
- /* harmony default export */ var popup_manager = (PopupManager);
1110
- // EXTERNAL MODULE: ./src/utils/scrollbar-width.js
1111
- var scrollbar_width = __webpack_require__(23);
1112
118
 
1113
- // CONCATENATED MODULE: ./src/utils/popup/index.js
1114
119
 
1115
120
 
1116
121
 
122
+ /* harmony default export */ var main = ({
123
+ name: 'ElTooltip',
124
+
125
+ mixins: [vue_popper_default.a],
126
+
127
+ props: {
128
+ openDelay: {
129
+ type: Number,
130
+ default: 0
131
+ },
132
+ disabled: Boolean,
133
+ manual: Boolean,
134
+ effect: {
135
+ type: String,
136
+ default: 'dark'
137
+ },
138
+ arrowOffset: {
139
+ type: Number,
140
+ default: 0
141
+ },
142
+ popperClass: String,
143
+ content: String,
144
+ visibleArrow: {
145
+ default: true
146
+ },
147
+ transition: {
148
+ type: String,
149
+ default: 'el-fade-in-linear'
150
+ },
151
+ popperOptions: {
152
+ default: function _default() {
153
+ return {
154
+ boundariesPadding: 10,
155
+ gpuAcceleration: false
156
+ };
157
+ }
158
+ },
159
+ enterable: {
160
+ type: Boolean,
161
+ default: true
162
+ },
163
+ hideAfter: {
164
+ type: Number,
165
+ default: 0
166
+ },
167
+ tabindex: {
168
+ type: Number,
169
+ default: 0
170
+ }
171
+ },
172
+
173
+ data: function data() {
174
+ return {
175
+ tooltipId: 'el-tooltip-' + Object(util_["generateId"])(),
176
+ timeoutPending: null,
177
+ focusing: false
178
+ };
179
+ },
180
+ beforeCreate: function beforeCreate() {
181
+ var _this = this;
182
+
183
+ if (this.$isServer) return;
184
+
185
+ this.popperVM = new external_vue_default.a({
186
+ data: { node: '' },
187
+ render: function render(h) {
188
+ return this.node;
189
+ }
190
+ }).$mount();
1117
191
 
192
+ this.debounceClose = debounce_default()(200, function () {
193
+ return _this.handleClosePopper();
194
+ });
195
+ },
196
+ render: function render(h) {
197
+ var _this2 = this;
198
+
199
+ if (this.popperVM) {
200
+ this.popperVM.node = h(
201
+ 'transition',
202
+ {
203
+ attrs: {
204
+ name: this.transition
205
+ },
206
+ on: {
207
+ 'afterLeave': this.doDestroy
208
+ }
209
+ },
210
+ [h(
211
+ 'div',
212
+ {
213
+ on: {
214
+ 'mouseleave': function mouseleave() {
215
+ _this2.setExpectedState(false);_this2.debounceClose();
216
+ },
217
+ 'mouseenter': function mouseenter() {
218
+ _this2.setExpectedState(true);
219
+ }
220
+ },
221
+
222
+ ref: 'popper',
223
+ attrs: { role: 'tooltip',
224
+ id: this.tooltipId,
225
+ 'aria-hidden': this.disabled || !this.showPopper ? 'true' : 'false'
226
+ },
227
+ directives: [{
228
+ name: 'show',
229
+ value: !this.disabled && this.showPopper
230
+ }],
231
+
232
+ 'class': ['el-tooltip__popper', 'is-' + this.effect, this.popperClass] },
233
+ [this.$slots.content || this.content]
234
+ )]
235
+ );
236
+ }
237
+
238
+ var firstElement = this.getFirstElement();
239
+ if (!firstElement) return null;
240
+
241
+ var data = firstElement.data = firstElement.data || {};
242
+ data.staticClass = this.addTooltipClass(data.staticClass);
243
+
244
+ return firstElement;
245
+ },
246
+ mounted: function mounted() {
247
+ var _this3 = this;
248
+
249
+ this.referenceElm = this.$el;
250
+ if (this.$el.nodeType === 1) {
251
+ this.$el.setAttribute('aria-describedby', this.tooltipId);
252
+ this.$el.setAttribute('tabindex', this.tabindex);
253
+ Object(dom_["on"])(this.referenceElm, 'mouseenter', this.show);
254
+ Object(dom_["on"])(this.referenceElm, 'mouseleave', this.hide);
255
+ Object(dom_["on"])(this.referenceElm, 'focus', function () {
256
+ if (!_this3.$slots.default || !_this3.$slots.default.length) {
257
+ _this3.handleFocus();
258
+ return;
259
+ }
260
+ var instance = _this3.$slots.default[0].componentInstance;
261
+ if (instance && instance.focus) {
262
+ instance.focus();
263
+ } else {
264
+ _this3.handleFocus();
265
+ }
266
+ });
267
+ Object(dom_["on"])(this.referenceElm, 'blur', this.handleBlur);
268
+ Object(dom_["on"])(this.referenceElm, 'click', this.removeFocusing);
269
+ }
270
+ // fix issue https://github.com/ElemeFE/element/issues/14424
271
+ if (this.value && this.popperVM) {
272
+ this.popperVM.$nextTick(function () {
273
+ if (_this3.value) {
274
+ _this3.updatePopper();
275
+ }
276
+ });
277
+ }
278
+ },
279
+
280
+ watch: {
281
+ focusing: function focusing(val) {
282
+ if (val) {
283
+ Object(dom_["addClass"])(this.referenceElm, 'focusing');
284
+ } else {
285
+ Object(dom_["removeClass"])(this.referenceElm, 'focusing');
286
+ }
287
+ }
288
+ },
289
+ methods: {
290
+ show: function show() {
291
+ this.setExpectedState(true);
292
+ this.handleShowPopper();
293
+ },
294
+ hide: function hide() {
295
+ this.setExpectedState(false);
296
+ this.debounceClose();
297
+ },
298
+ handleFocus: function handleFocus() {
299
+ this.focusing = true;
300
+ this.show();
301
+ },
302
+ handleBlur: function handleBlur() {
303
+ this.focusing = false;
304
+ this.hide();
305
+ },
306
+ removeFocusing: function removeFocusing() {
307
+ this.focusing = false;
308
+ },
309
+ addTooltipClass: function addTooltipClass(prev) {
310
+ if (!prev) {
311
+ return 'el-tooltip';
312
+ } else {
313
+ return 'el-tooltip ' + prev.replace('el-tooltip', '');
314
+ }
315
+ },
316
+ handleShowPopper: function handleShowPopper() {
317
+ var _this4 = this;
318
+
319
+ if (!this.expectedState || this.manual) return;
320
+ clearTimeout(this.timeout);
321
+ this.timeout = setTimeout(function () {
322
+ _this4.showPopper = true;
323
+ }, this.openDelay);
324
+
325
+ if (this.hideAfter > 0) {
326
+ this.timeoutPending = setTimeout(function () {
327
+ _this4.showPopper = false;
328
+ }, this.hideAfter);
329
+ }
330
+ },
331
+ handleClosePopper: function handleClosePopper() {
332
+ if (this.enterable && this.expectedState || this.manual) return;
333
+ clearTimeout(this.timeout);
1118
334
 
335
+ if (this.timeoutPending) {
336
+ clearTimeout(this.timeoutPending);
337
+ }
338
+ this.showPopper = false;
1119
339
 
1120
- var idSeed = 1;
1121
- var scrollBarWidth;
1122
- /* harmony default export */ var popup = __webpack_exports__["b"] = ({
1123
- props: {
1124
- visible: {
1125
- type: Boolean,
1126
- default: false
1127
- },
1128
- openDelay: {},
1129
- closeDelay: {},
1130
- zIndex: {},
1131
- modal: {
1132
- type: Boolean,
1133
- default: false
1134
- },
1135
- modalFade: {
1136
- type: Boolean,
1137
- default: true
1138
- },
1139
- modalClass: {},
1140
- modalAppendToBody: {
1141
- type: Boolean,
1142
- default: false
1143
- },
1144
- lockScroll: {
1145
- type: Boolean,
1146
- default: true
1147
- },
1148
- closeOnPressEscape: {
1149
- type: Boolean,
1150
- default: false
1151
- },
1152
- closeOnClickModal: {
1153
- type: Boolean,
1154
- default: false
1155
- }
1156
- },
1157
- beforeMount: function beforeMount() {
1158
- this._popupId = 'popup-' + idSeed++;
1159
- popup_manager.register(this._popupId, this);
1160
- },
1161
- beforeDestroy: function beforeDestroy() {
1162
- popup_manager.deregister(this._popupId);
1163
- popup_manager.closeModal(this._popupId);
1164
- this.restoreBodyStyle();
1165
- },
1166
- data: function data() {
1167
- return {
1168
- opened: false,
1169
- bodyPaddingRight: null,
1170
- computedBodyPaddingRight: 0,
1171
- withoutHiddenClass: true,
1172
- rendered: false
1173
- };
1174
- },
1175
- watch: {
1176
- visible: function visible(val) {
1177
- var _this = this;
1178
- if (val) {
1179
- if (this._opening) return;
1180
- if (!this.rendered) {
1181
- this.rendered = true;
1182
- external_vue_default.a.nextTick(function () {
1183
- _this.open();
1184
- });
1185
- } else {
1186
- this.open();
1187
- }
1188
- } else {
1189
- this.close();
1190
- }
1191
- }
1192
- },
1193
- methods: {
1194
- open: function open(options) {
1195
- var _this2 = this;
1196
- if (!this.rendered) {
1197
- this.rendered = true;
1198
- }
1199
- var props = Object(merge["a" /* default */])({}, this.$props || this, options);
1200
- if (this._closeTimer) {
1201
- clearTimeout(this._closeTimer);
1202
- this._closeTimer = null;
1203
- }
1204
- clearTimeout(this._openTimer);
1205
- var openDelay = Number(props.openDelay);
1206
- if (openDelay > 0) {
1207
- this._openTimer = setTimeout(function () {
1208
- _this2._openTimer = null;
1209
- _this2.doOpen(props);
1210
- }, openDelay);
1211
- } else {
1212
- this.doOpen(props);
1213
- }
1214
- },
1215
- doOpen: function doOpen(props) {
1216
- if (this.$isServer) return;
1217
- if (this.willOpen && !this.willOpen()) return;
1218
- if (this.opened) return;
1219
- this._opening = true;
1220
- var dom = this.$el;
1221
- var modal = props.modal;
1222
- var zIndex = props.zIndex;
1223
- if (zIndex) {
1224
- popup_manager.zIndex = zIndex;
1225
- }
1226
- if (modal) {
1227
- if (this._closing) {
1228
- popup_manager.closeModal(this._popupId);
1229
- this._closing = false;
1230
- }
1231
- popup_manager.openModal(this._popupId, popup_manager.nextZIndex(), this.modalAppendToBody ? undefined : dom, props.modalClass, props.modalFade);
1232
- if (props.lockScroll) {
1233
- this.withoutHiddenClass = !Object(utils_dom["d" /* hasClass */])(document.body, 'el-popup-parent--hidden');
1234
- if (this.withoutHiddenClass) {
1235
- this.bodyPaddingRight = document.body.style.paddingRight;
1236
- this.computedBodyPaddingRight = parseInt(Object(utils_dom["c" /* getStyle */])(document.body, 'paddingRight'), 10);
1237
- }
1238
- scrollBarWidth = Object(scrollbar_width["a" /* default */])();
1239
- var bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
1240
- var bodyOverflowY = Object(utils_dom["c" /* getStyle */])(document.body, 'overflowY');
1241
- if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === 'scroll') && this.withoutHiddenClass) {
1242
- document.body.style.paddingRight = this.computedBodyPaddingRight + scrollBarWidth + 'px';
1243
- }
1244
- Object(utils_dom["a" /* addClass */])(document.body, 'el-popup-parent--hidden');
1245
- }
1246
- }
1247
- if (getComputedStyle(dom).position === 'static') {
1248
- dom.style.position = 'absolute';
1249
- }
1250
- dom.style.zIndex = popup_manager.nextZIndex();
1251
- this.opened = true;
1252
- this.onOpen && this.onOpen();
1253
- this.doAfterOpen();
1254
- },
1255
- doAfterOpen: function doAfterOpen() {
1256
- this._opening = false;
1257
- },
1258
- close: function close() {
1259
- var _this3 = this;
1260
- if (this.willClose && !this.willClose()) return;
1261
- if (this._openTimer !== null) {
1262
- clearTimeout(this._openTimer);
1263
- this._openTimer = null;
1264
- }
1265
- clearTimeout(this._closeTimer);
1266
- var closeDelay = Number(this.closeDelay);
1267
- if (closeDelay > 0) {
1268
- this._closeTimer = setTimeout(function () {
1269
- _this3._closeTimer = null;
1270
- _this3.doClose();
1271
- }, closeDelay);
1272
- } else {
1273
- this.doClose();
1274
- }
1275
- },
1276
- doClose: function doClose() {
1277
- this._closing = true;
1278
- this.onClose && this.onClose();
1279
- if (this.lockScroll) {
1280
- setTimeout(this.restoreBodyStyle, 200);
1281
- }
1282
- this.opened = false;
1283
- this.doAfterClose();
1284
- },
1285
- doAfterClose: function doAfterClose() {
1286
- popup_manager.closeModal(this._popupId);
1287
- this._closing = false;
1288
- },
1289
- restoreBodyStyle: function restoreBodyStyle() {
1290
- if (this.modal && this.withoutHiddenClass) {
1291
- document.body.style.paddingRight = this.bodyPaddingRight;
1292
- Object(utils_dom["i" /* removeClass */])(document.body, 'el-popup-parent--hidden');
1293
- }
1294
- this.withoutHiddenClass = true;
1295
- }
1296
- }
340
+ if (this.disabled) {
341
+ this.doDestroy();
342
+ }
343
+ },
344
+ setExpectedState: function setExpectedState(expectedState) {
345
+ if (expectedState === false) {
346
+ clearTimeout(this.timeoutPending);
347
+ }
348
+ this.expectedState = expectedState;
349
+ },
350
+ getFirstElement: function getFirstElement() {
351
+ var slots = this.$slots.default;
352
+ if (!Array.isArray(slots)) return null;
353
+ var element = null;
354
+ for (var index = 0; index < slots.length; index++) {
355
+ if (slots[index] && slots[index].tag) {
356
+ element = slots[index];
357
+ break;
358
+ };
359
+ }
360
+ return element;
361
+ }
362
+ },
363
+
364
+ beforeDestroy: function beforeDestroy() {
365
+ this.popperVM && this.popperVM.$destroy();
366
+ },
367
+ destroyed: function destroyed() {
368
+ var reference = this.referenceElm;
369
+ if (reference.nodeType === 1) {
370
+ Object(dom_["off"])(reference, 'mouseenter', this.show);
371
+ Object(dom_["off"])(reference, 'mouseleave', this.hide);
372
+ Object(dom_["off"])(reference, 'focus', this.handleFocus);
373
+ Object(dom_["off"])(reference, 'blur', this.handleBlur);
374
+ Object(dom_["off"])(reference, 'click', this.removeFocusing);
375
+ }
376
+ }
1297
377
  });
378
+ // CONCATENATED MODULE: ./packages/tooltip/index.js
1298
379
 
1299
380
 
1300
- /***/ }),
1301
- /* 25 */
1302
- /***/ (function(module, exports) {
1303
-
1304
- module.exports = require("core-js/modules/es.array-buffer.constructor.js");
1305
-
1306
- /***/ }),
1307
- /* 26 */
1308
- /***/ (function(module, exports) {
1309
-
1310
- module.exports = require("core-js/modules/es.array-buffer.slice.js");
1311
-
1312
- /***/ }),
1313
- /* 27 */
1314
- /***/ (function(module, exports) {
1315
-
1316
- module.exports = require("core-js/modules/es.typed-array.int8-array.js");
1317
-
1318
- /***/ }),
1319
- /* 28 */
1320
- /***/ (function(module, exports) {
1321
-
1322
- module.exports = require("core-js/modules/es.typed-array.copy-within.js");
1323
-
1324
- /***/ }),
1325
- /* 29 */
1326
- /***/ (function(module, exports) {
1327
-
1328
- module.exports = require("core-js/modules/es.typed-array.every.js");
1329
-
1330
- /***/ }),
1331
- /* 30 */
1332
- /***/ (function(module, exports) {
1333
-
1334
- module.exports = require("core-js/modules/es.typed-array.fill.js");
1335
-
1336
- /***/ }),
1337
- /* 31 */
1338
- /***/ (function(module, exports) {
1339
-
1340
- module.exports = require("core-js/modules/es.typed-array.filter.js");
1341
-
1342
- /***/ }),
1343
- /* 32 */
1344
- /***/ (function(module, exports) {
1345
-
1346
- module.exports = require("core-js/modules/es.typed-array.find.js");
1347
-
1348
- /***/ }),
1349
- /* 33 */
1350
- /***/ (function(module, exports) {
1351
-
1352
- module.exports = require("core-js/modules/es.typed-array.find-index.js");
1353
-
1354
- /***/ }),
1355
- /* 34 */
1356
- /***/ (function(module, exports) {
1357
-
1358
- module.exports = require("core-js/modules/es.typed-array.for-each.js");
1359
-
1360
- /***/ }),
1361
- /* 35 */
1362
- /***/ (function(module, exports) {
1363
-
1364
- module.exports = require("core-js/modules/es.typed-array.includes.js");
1365
-
1366
- /***/ }),
1367
- /* 36 */
1368
- /***/ (function(module, exports) {
1369
-
1370
- module.exports = require("core-js/modules/es.typed-array.index-of.js");
1371
-
1372
- /***/ }),
1373
- /* 37 */
1374
- /***/ (function(module, exports) {
1375
-
1376
- module.exports = require("core-js/modules/es.typed-array.iterator.js");
1377
-
1378
- /***/ }),
1379
- /* 38 */
1380
- /***/ (function(module, exports) {
1381
-
1382
- module.exports = require("core-js/modules/es.typed-array.join.js");
1383
-
1384
- /***/ }),
1385
- /* 39 */
1386
- /***/ (function(module, exports) {
1387
-
1388
- module.exports = require("core-js/modules/es.typed-array.last-index-of.js");
1389
-
1390
- /***/ }),
1391
- /* 40 */
1392
- /***/ (function(module, exports) {
1393
-
1394
- module.exports = require("core-js/modules/es.typed-array.map.js");
1395
-
1396
- /***/ }),
1397
- /* 41 */
1398
- /***/ (function(module, exports) {
1399
-
1400
- module.exports = require("core-js/modules/es.typed-array.reduce.js");
1401
-
1402
- /***/ }),
1403
- /* 42 */
1404
- /***/ (function(module, exports) {
1405
-
1406
- module.exports = require("core-js/modules/es.typed-array.reduce-right.js");
1407
-
1408
- /***/ }),
1409
- /* 43 */
1410
- /***/ (function(module, exports) {
1411
-
1412
- module.exports = require("core-js/modules/es.typed-array.reverse.js");
1413
-
1414
- /***/ }),
1415
- /* 44 */
1416
- /***/ (function(module, exports) {
1417
-
1418
- module.exports = require("core-js/modules/es.typed-array.set.js");
1419
-
1420
- /***/ }),
1421
- /* 45 */
1422
- /***/ (function(module, exports) {
1423
-
1424
- module.exports = require("core-js/modules/es.typed-array.slice.js");
1425
-
1426
- /***/ }),
1427
- /* 46 */
1428
- /***/ (function(module, exports) {
1429
-
1430
- module.exports = require("core-js/modules/es.typed-array.some.js");
1431
-
1432
- /***/ }),
1433
- /* 47 */
1434
- /***/ (function(module, exports) {
1435
-
1436
- module.exports = require("core-js/modules/es.typed-array.sort.js");
1437
-
1438
- /***/ }),
1439
- /* 48 */
1440
- /***/ (function(module, exports) {
1441
-
1442
- module.exports = require("core-js/modules/es.typed-array.subarray.js");
1443
-
1444
- /***/ }),
1445
- /* 49 */
1446
- /***/ (function(module, exports) {
1447
-
1448
- module.exports = require("core-js/modules/es.typed-array.to-locale-string.js");
1449
-
1450
- /***/ }),
1451
- /* 50 */
1452
- /***/ (function(module, exports) {
1453
-
1454
- module.exports = require("core-js/modules/es.typed-array.to-string.js");
1455
-
1456
- /***/ }),
1457
- /* 51 */
1458
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1459
-
1460
- "use strict";
1461
- /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
1462
- /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0__);
1463
- /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
1464
- /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
1465
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7);
1466
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__);
1467
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(0);
1468
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_3__);
1469
- /* harmony import */ var _popup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(24);
1470
-
1471
-
1472
-
1473
-
1474
-
1475
- var PopperJS = vue__WEBPACK_IMPORTED_MODULE_3___default.a.prototype.$isServer ? function () {} : __webpack_require__(71);
1476
- var stop = function stop(e) {
1477
- return e.stopPropagation();
381
+ /* istanbul ignore next */
382
+ main.install = function (Vue) {
383
+ Vue.component(main.name, main);
1478
384
  };
1479
385
 
1480
- /**
1481
- * @param {HTMLElement} [reference=$refs.reference] - The reference element used to position the popper.
1482
- * @param {HTMLElement} [popper=$refs.popper] - The HTML element used as popper, or a configuration used to generate the popper.
1483
- * @param {String} [placement=button] - Placement of the popper accepted values: top(-start, -end), right(-start, -end), bottom(-start, -end), left(-start, -end)
1484
- * @param {Number} [offset=0] - Amount of pixels the popper will be shifted (can be negative).
1485
- * @param {Boolean} [visible=false] Visibility of the popup element.
1486
- * @param {Boolean} [visible-arrow=false] Visibility of the arrow, no style.
1487
- */
1488
- /* harmony default export */ __webpack_exports__["a"] = ({
1489
- props: {
1490
- transformOrigin: {
1491
- type: [Boolean, String],
1492
- default: true
1493
- },
1494
- placement: {
1495
- type: String,
1496
- default: 'bottom'
1497
- },
1498
- boundariesPadding: {
1499
- type: Number,
1500
- default: 5
1501
- },
1502
- reference: {},
1503
- popper: {},
1504
- offset: {
1505
- default: 0
1506
- },
1507
- value: Boolean,
1508
- visibleArrow: Boolean,
1509
- arrowOffset: {
1510
- type: Number,
1511
- default: 35
1512
- },
1513
- appendToBody: {
1514
- type: Boolean,
1515
- default: true
1516
- },
1517
- popperOptions: {
1518
- type: Object,
1519
- default: function _default() {
1520
- return {
1521
- gpuAcceleration: false
1522
- };
1523
- }
1524
- }
1525
- },
1526
- data: function data() {
1527
- return {
1528
- showPopper: false,
1529
- currentPlacement: ''
1530
- };
1531
- },
1532
- watch: {
1533
- value: {
1534
- immediate: true,
1535
- handler: function handler(val) {
1536
- this.showPopper = val;
1537
- this.$emit('input', val);
1538
- }
1539
- },
1540
- showPopper: function showPopper(val) {
1541
- if (this.disabled) return;
1542
- val ? this.updatePopper() : this.destroyPopper();
1543
- this.$emit('input', val);
1544
- }
1545
- },
1546
- methods: {
1547
- createPopper: function createPopper() {
1548
- var _this = this;
1549
- if (this.$isServer) return;
1550
- this.currentPlacement = this.currentPlacement || this.placement;
1551
- if (!/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement)) {
1552
- return;
1553
- }
1554
- var options = this.popperOptions;
1555
- var popper = this.popperElm = this.popperElm || this.popper || this.$refs.popper;
1556
- var reference = this.referenceElm = this.referenceElm || this.reference || this.$refs.reference;
1557
- if (!reference && this.$slots.reference && this.$slots.reference[0]) {
1558
- reference = this.referenceElm = this.$slots.reference[0].elm;
1559
- }
1560
- if (!popper || !reference) return;
1561
- if (this.visibleArrow) this.appendArrow(popper);
1562
- if (this.appendToBody) document.body.appendChild(this.popperElm);
1563
- if (this.popperJS && this.popperJS.destroy) {
1564
- this.popperJS.destroy();
1565
- }
1566
- options.placement = this.currentPlacement;
1567
- options.offset = this.offset;
1568
- options.arrowOffset = this.arrowOffset;
1569
- this.popperJS = new PopperJS(reference, popper, options);
1570
- this.popperJS.onCreate(function (_) {
1571
- _this.$emit('created', _this);
1572
- _this.resetTransformOrigin();
1573
- _this.$nextTick(_this.updatePopper);
1574
- });
1575
- if (typeof options.onUpdate === 'function') {
1576
- this.popperJS.onUpdate(options.onUpdate);
1577
- }
1578
- this.popperJS._popper.style.zIndex = _popup__WEBPACK_IMPORTED_MODULE_4__[/* PopupManager */ "a"].nextZIndex();
1579
- this.popperElm.addEventListener('click', stop);
1580
- },
1581
- updatePopper: function updatePopper() {
1582
- var popperJS = this.popperJS;
1583
- if (popperJS) {
1584
- popperJS.update();
1585
- if (popperJS._popper) {
1586
- popperJS._popper.style.zIndex = _popup__WEBPACK_IMPORTED_MODULE_4__[/* PopupManager */ "a"].nextZIndex();
1587
- }
1588
- } else {
1589
- this.createPopper();
1590
- }
1591
- },
1592
- doDestroy: function doDestroy(forceDestroy) {
1593
- /* istanbul ignore if */
1594
- if (!this.popperJS || this.showPopper && !forceDestroy) return;
1595
- this.popperJS.destroy();
1596
- this.popperJS = null;
1597
- },
1598
- destroyPopper: function destroyPopper() {
1599
- if (this.popperJS) {
1600
- this.resetTransformOrigin();
1601
- }
1602
- },
1603
- resetTransformOrigin: function resetTransformOrigin() {
1604
- if (!this.transformOrigin) return;
1605
- var placementMap = {
1606
- top: 'bottom',
1607
- bottom: 'top',
1608
- left: 'right',
1609
- right: 'left'
1610
- };
1611
- var placement = this.popperJS._popper.getAttribute('x-placement').split('-')[0];
1612
- var origin = placementMap[placement];
1613
- this.popperJS._popper.style.transformOrigin = typeof this.transformOrigin === 'string' ? this.transformOrigin : ['top', 'bottom'].indexOf(placement) > -1 ? "center " + origin : origin + " center";
1614
- },
1615
- appendArrow: function appendArrow(element) {
1616
- var hash;
1617
- if (this.appended) {
1618
- return;
1619
- }
1620
- this.appended = true;
1621
- for (var item in element.attributes) {
1622
- if (/^_v-/.test(element.attributes[item].name)) {
1623
- hash = element.attributes[item].name;
1624
- break;
1625
- }
1626
- }
1627
- var arrow = document.createElement('div');
1628
- if (hash) {
1629
- arrow.setAttribute(hash, '');
1630
- }
1631
- arrow.setAttribute('x-arrow', '');
1632
- arrow.className = 'popper__arrow';
1633
- element.appendChild(arrow);
1634
- }
1635
- },
1636
- beforeDestroy: function beforeDestroy() {
1637
- this.doDestroy(true);
1638
- if (this.popperElm && this.popperElm.parentNode === document.body) {
1639
- this.popperElm.removeEventListener('click', stop);
1640
- document.body.removeChild(this.popperElm);
1641
- }
1642
- },
1643
- // call destroy in keep-alive mode
1644
- deactivated: function deactivated() {
1645
- this.$options.beforeDestroy[0].call(this);
1646
- }
1647
- });
386
+ /* harmony default export */ var tooltip = __webpack_exports__["default"] = (main);
1648
387
 
1649
388
  /***/ }),
1650
- /* 52 */,
1651
- /* 53 */
1652
- /***/ (function(module, exports) {
1653
-
1654
- module.exports = require("core-js/modules/es.array.includes.js");
1655
389
 
1656
- /***/ }),
1657
- /* 54 */,
1658
- /* 55 */,
1659
- /* 56 */
390
+ /***/ 19:
1660
391
  /***/ (function(module, exports) {
1661
392
 
1662
- module.exports = require("core-js/modules/es.string.trim.js");
393
+ module.exports = require("throttle-debounce/debounce");
1663
394
 
1664
395
  /***/ }),
1665
- /* 57 */,
1666
- /* 58 */,
1667
- /* 59 */
1668
- /***/ (function(module, exports) {
1669
-
1670
- module.exports = require("core-js/modules/es.string.split.js");
1671
396
 
1672
- /***/ }),
1673
- /* 60 */
397
+ /***/ 2:
1674
398
  /***/ (function(module, exports) {
1675
399
 
1676
- module.exports = require("core-js/modules/es.object.assign.js");
400
+ module.exports = require("element-ui/lib/utils/dom");
1677
401
 
1678
402
  /***/ }),
1679
- /* 61 */,
1680
- /* 62 */,
1681
- /* 63 */,
1682
- /* 64 */,
1683
- /* 65 */,
1684
- /* 66 */,
1685
- /* 67 */,
1686
- /* 68 */,
1687
- /* 69 */,
1688
- /* 70 */
1689
- /***/ (function(module, exports) {
1690
-
1691
- module.exports = require("throttle-debounce/debounce");
1692
-
1693
- /***/ }),
1694
- /* 71 */
1695
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1696
-
1697
- "use strict";
1698
- __webpack_require__.r(__webpack_exports__);
1699
- /* WEBPACK VAR INJECTION */(function(module) {/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18);
1700
- /* 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__);
1701
- /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20);
1702
- /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_1__);
1703
- /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(13);
1704
- /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_2__);
1705
- /* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(60);
1706
- /* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_3__);
1707
- /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(73);
1708
- /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_4__);
1709
- /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(17);
1710
- /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_5__);
1711
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3);
1712
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__);
1713
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(7);
1714
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_7__);
1715
- /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(11);
1716
- /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8__);
1717
- /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(12);
1718
- /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_9__);
1719
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(10);
1720
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_10__);
1721
-
1722
-
1723
-
1724
-
1725
-
1726
-
1727
-
1728
-
1729
-
1730
-
1731
-
1732
- /**
1733
- * @fileOverview Kickass library to create and place poppers near their reference elements.
1734
- * @version {{version}}
1735
- * @license
1736
- * Copyright (c) 2016 Federico Zivolo and contributors
1737
- *
1738
- * Permission is hereby granted, free of charge, to any person obtaining a copy
1739
- * of this software and associated documentation files (the "Software"), to deal
1740
- * in the Software without restriction, including without limitation the rights
1741
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1742
- * copies of the Software, and to permit persons to whom the Software is
1743
- * furnished to do so, subject to the following conditions:
1744
- *
1745
- * The above copyright notice and this permission notice shall be included in all
1746
- * copies or substantial portions of the Software.
1747
- *
1748
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1749
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1750
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1751
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1752
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1753
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1754
- * SOFTWARE.
1755
- */
1756
-
1757
- //
1758
- // Cross module loader
1759
- // Supported: Node, AMD, Browser globals
1760
- //
1761
- ;
1762
- (function (root, factory) {
1763
- if (typeof define === 'function' && __webpack_require__(74)) {
1764
- // AMD. Register as an anonymous module.
1765
- define(factory);
1766
- } else if ( true && module.exports) {
1767
- // Node. Does not work with strict CommonJS, but
1768
- // only CommonJS-like environments that support module.exports,
1769
- // like Node.
1770
- module.exports = factory();
1771
- } else {
1772
- // Browser globals (root is window)
1773
- root.Popper = factory();
1774
- }
1775
- })(undefined, function () {
1776
- 'use strict';
1777
-
1778
- var root = window;
1779
-
1780
- // default options
1781
- var DEFAULTS = {
1782
- // placement of the popper
1783
- placement: 'bottom',
1784
- gpuAcceleration: true,
1785
- // shift popper from its origin by the given amount of pixels (can be negative)
1786
- offset: 0,
1787
- // the element which will act as boundary of the popper
1788
- boundariesElement: 'viewport',
1789
- // amount of pixel used to define a minimum distance between the boundaries and the popper
1790
- boundariesPadding: 5,
1791
- // popper will try to prevent overflow following this order,
1792
- // by default, then, it could overflow on the left and on top of the boundariesElement
1793
- preventOverflowOrder: ['left', 'right', 'top', 'bottom'],
1794
- // the behavior used by flip to change the placement of the popper
1795
- flipBehavior: 'flip',
1796
- arrowElement: '[x-arrow]',
1797
- arrowOffset: 0,
1798
- // list of functions used to modify the offsets before they are applied to the popper
1799
- modifiers: ['shift', 'offset', 'preventOverflow', 'keepTogether', 'arrow', 'flip', 'applyStyle'],
1800
- modifiersIgnored: [],
1801
- forceAbsolute: false
1802
- };
1803
-
1804
- /**
1805
- * Create a new Popper.js instance
1806
- * @constructor Popper
1807
- * @param {HTMLElement} reference - The reference element used to position the popper
1808
- * @param {HTMLElement|Object} popper
1809
- * The HTML element used as popper, or a configuration used to generate the popper.
1810
- * @param {String} [popper.tagName='div'] The tag name of the generated popper.
1811
- * @param {Array} [popper.classNames=['popper']] Array of classes to apply to the generated popper.
1812
- * @param {Array} [popper.attributes] Array of attributes to apply, specify `attr:value` to assign a value to it.
1813
- * @param {HTMLElement|String} [popper.parent=window.document.body] The parent element, given as HTMLElement or as query string.
1814
- * @param {String} [popper.content=''] The content of the popper, it can be text, html, or node; if it is not text, set `contentType` to `html` or `node`.
1815
- * @param {String} [popper.contentType='text'] If `html`, the `content` will be parsed as HTML. If `node`, it will be appended as-is.
1816
- * @param {String} [popper.arrowTagName='div'] Same as `popper.tagName` but for the arrow element.
1817
- * @param {Array} [popper.arrowClassNames='popper__arrow'] Same as `popper.classNames` but for the arrow element.
1818
- * @param {String} [popper.arrowAttributes=['x-arrow']] Same as `popper.attributes` but for the arrow element.
1819
- * @param {Object} options
1820
- * @param {String} [options.placement=bottom]
1821
- * Placement of the popper accepted values: `top(-start, -end), right(-start, -end), bottom(-start, -right),
1822
- * left(-start, -end)`
1823
- *
1824
- * @param {HTMLElement|String} [options.arrowElement='[x-arrow]']
1825
- * The DOM Node used as arrow for the popper, or a CSS selector used to get the DOM node. It must be child of
1826
- * its parent Popper. Popper.js will apply to the given element the style required to align the arrow with its
1827
- * reference element.
1828
- * By default, it will look for a child node of the popper with the `x-arrow` attribute.
1829
- *
1830
- * @param {Boolean} [options.gpuAcceleration=true]
1831
- * When this property is set to true, the popper position will be applied using CSS3 translate3d, allowing the
1832
- * browser to use the GPU to accelerate the rendering.
1833
- * If set to false, the popper will be placed using `top` and `left` properties, not using the GPU.
1834
- *
1835
- * @param {Number} [options.offset=0]
1836
- * Amount of pixels the popper will be shifted (can be negative).
1837
- *
1838
- * @param {String|Element} [options.boundariesElement='viewport']
1839
- * The element which will define the boundaries of the popper position, the popper will never be placed outside
1840
- * of the defined boundaries (except if `keepTogether` is enabled)
1841
- *
1842
- * @param {Number} [options.boundariesPadding=5]
1843
- * Additional padding for the boundaries
1844
- *
1845
- * @param {Array} [options.preventOverflowOrder=['left', 'right', 'top', 'bottom']]
1846
- * Order used when Popper.js tries to avoid overflows from the boundaries, they will be checked in order,
1847
- * this means that the last ones will never overflow
1848
- *
1849
- * @param {String|Array} [options.flipBehavior='flip']
1850
- * The behavior used by the `flip` modifier to change the placement of the popper when the latter is trying to
1851
- * overlap its reference element. Defining `flip` as value, the placement will be flipped on
1852
- * its axis (`right - left`, `top - bottom`).
1853
- * You can even pass an array of placements (eg: `['right', 'left', 'top']` ) to manually specify
1854
- * how alter the placement when a flip is needed. (eg. in the above example, it would first flip from right to left,
1855
- * then, if even in its new placement, the popper is overlapping its reference element, it will be moved to top)
1856
- *
1857
- * @param {Array} [options.modifiers=[ 'shift', 'offset', 'preventOverflow', 'keepTogether', 'arrow', 'flip', 'applyStyle']]
1858
- * List of functions used to modify the data before they are applied to the popper, add your custom functions
1859
- * to this array to edit the offsets and placement.
1860
- * The function should reflect the @params and @returns of preventOverflow
1861
- *
1862
- * @param {Array} [options.modifiersIgnored=[]]
1863
- * Put here any built-in modifier name you want to exclude from the modifiers list
1864
- * The function should reflect the @params and @returns of preventOverflow
1865
- *
1866
- * @param {Boolean} [options.removeOnDestroy=false]
1867
- * Set to true if you want to automatically remove the popper when you call the `destroy` method.
1868
- */
1869
- function Popper(reference, popper, options) {
1870
- this._reference = reference.jquery ? reference[0] : reference;
1871
- this.state = {};
1872
-
1873
- // if the popper variable is a configuration object, parse it to generate an HTMLElement
1874
- // generate a default popper if is not defined
1875
- var isNotDefined = typeof popper === 'undefined' || popper === null;
1876
- var isConfig = popper && Object.prototype.toString.call(popper) === '[object Object]';
1877
- if (isNotDefined || isConfig) {
1878
- this._popper = this.parse(isConfig ? popper : {});
1879
- }
1880
- // otherwise, use the given HTMLElement as popper
1881
- else {
1882
- this._popper = popper.jquery ? popper[0] : popper;
1883
- }
1884
-
1885
- // with {} we create a new object with the options inside it
1886
- this._options = Object.assign({}, DEFAULTS, options);
1887
-
1888
- // refactoring modifiers' list
1889
- this._options.modifiers = this._options.modifiers.map(function (modifier) {
1890
- // remove ignored modifiers
1891
- if (this._options.modifiersIgnored.indexOf(modifier) !== -1) return;
1892
-
1893
- // set the x-placement attribute before everything else because it could be used to add margins to the popper
1894
- // margins needs to be calculated to get the correct popper offsets
1895
- if (modifier === 'applyStyle') {
1896
- this._popper.setAttribute('x-placement', this._options.placement);
1897
- }
1898
-
1899
- // return predefined modifier identified by string or keep the custom one
1900
- return this.modifiers[modifier] || modifier;
1901
- }.bind(this));
1902
-
1903
- // make sure to apply the popper position before any computation
1904
- this.state.position = this._getPosition(this._popper, this._reference);
1905
- setStyle(this._popper, {
1906
- position: this.state.position,
1907
- top: 0
1908
- });
1909
-
1910
- // fire the first update to position the popper in the right place
1911
- this.update();
1912
-
1913
- // setup event listeners, they will take care of update the position in specific situations
1914
- this._setupEventListeners();
1915
- return this;
1916
- }
1917
-
1918
- //
1919
- // Methods
1920
- //
1921
- /**
1922
- * Destroy the popper
1923
- * @method
1924
- * @memberof Popper
1925
- */
1926
- Popper.prototype.destroy = function () {
1927
- this._popper.removeAttribute('x-placement');
1928
- this._popper.style.left = '';
1929
- this._popper.style.position = '';
1930
- this._popper.style.top = '';
1931
- this._popper.style[getSupportedPropertyName('transform')] = '';
1932
- this._removeEventListeners();
1933
-
1934
- // remove the popper if user explicity asked for the deletion on destroy
1935
- if (this._options.removeOnDestroy) {
1936
- this._popper.remove();
1937
- }
1938
- return this;
1939
- };
1940
403
 
1941
- /**
1942
- * Updates the position of the popper, computing the new offsets and applying the new style
1943
- * @method
1944
- * @memberof Popper
1945
- */
1946
- Popper.prototype.update = function () {
1947
- var data = {
1948
- instance: this,
1949
- styles: {}
1950
- };
1951
-
1952
- // store placement inside the data object, modifiers will be able to edit `placement` if needed
1953
- // and refer to _originalPlacement to know the original value
1954
- data.placement = this._options.placement;
1955
- data._originalPlacement = this._options.placement;
1956
-
1957
- // compute the popper and reference offsets and put them inside data.offsets
1958
- data.offsets = this._getOffsets(this._popper, this._reference, data.placement);
1959
-
1960
- // get boundaries
1961
- data.boundaries = this._getBoundaries(data, this._options.boundariesPadding, this._options.boundariesElement);
1962
- data = this.runModifiers(data, this._options.modifiers);
1963
- if (typeof this.state.updateCallback === 'function') {
1964
- this.state.updateCallback(data);
1965
- }
1966
- };
1967
-
1968
- /**
1969
- * If a function is passed, it will be executed after the initialization of popper with as first argument the Popper instance.
1970
- * @method
1971
- * @memberof Popper
1972
- * @param {Function} callback
1973
- */
1974
- Popper.prototype.onCreate = function (callback) {
1975
- // the createCallbacks return as first argument the popper instance
1976
- callback(this);
1977
- return this;
1978
- };
1979
-
1980
- /**
1981
- * If a function is passed, it will be executed after each update of popper with as first argument the set of coordinates and informations
1982
- * used to style popper and its arrow.
1983
- * NOTE: it doesn't get fired on the first call of the `Popper.update()` method inside the `Popper` constructor!
1984
- * @method
1985
- * @memberof Popper
1986
- * @param {Function} callback
1987
- */
1988
- Popper.prototype.onUpdate = function (callback) {
1989
- this.state.updateCallback = callback;
1990
- return this;
1991
- };
1992
-
1993
- /**
1994
- * Helper used to generate poppers from a configuration file
1995
- * @method
1996
- * @memberof Popper
1997
- * @param config {Object} configuration
1998
- * @returns {HTMLElement} popper
1999
- */
2000
- Popper.prototype.parse = function (config) {
2001
- var defaultConfig = {
2002
- tagName: 'div',
2003
- classNames: ['popper'],
2004
- attributes: [],
2005
- parent: root.document.body,
2006
- content: '',
2007
- contentType: 'text',
2008
- arrowTagName: 'div',
2009
- arrowClassNames: ['popper__arrow'],
2010
- arrowAttributes: ['x-arrow']
2011
- };
2012
- config = Object.assign({}, defaultConfig, config);
2013
- var d = root.document;
2014
- var popper = d.createElement(config.tagName);
2015
- addClassNames(popper, config.classNames);
2016
- addAttributes(popper, config.attributes);
2017
- if (config.contentType === 'node') {
2018
- popper.appendChild(config.content.jquery ? config.content[0] : config.content);
2019
- } else if (config.contentType === 'html') {
2020
- popper.innerHTML = config.content;
2021
- } else {
2022
- popper.textContent = config.content;
2023
- }
2024
- if (config.arrowTagName) {
2025
- var arrow = d.createElement(config.arrowTagName);
2026
- addClassNames(arrow, config.arrowClassNames);
2027
- addAttributes(arrow, config.arrowAttributes);
2028
- popper.appendChild(arrow);
2029
- }
2030
- var parent = config.parent.jquery ? config.parent[0] : config.parent;
2031
-
2032
- // if the given parent is a string, use it to match an element
2033
- // if more than one element is matched, the first one will be used as parent
2034
- // if no elements are matched, the script will throw an error
2035
- if (typeof parent === 'string') {
2036
- parent = d.querySelectorAll(config.parent);
2037
- if (parent.length > 1) {
2038
- console.warn('WARNING: the given `parent` query(' + config.parent + ') matched more than one element, the first one will be used');
2039
- }
2040
- if (parent.length === 0) {
2041
- throw 'ERROR: the given `parent` doesn\'t exists!';
2042
- }
2043
- parent = parent[0];
2044
- }
2045
- // if the given parent is a DOM nodes list or an array of nodes with more than one element,
2046
- // the first one will be used as parent
2047
- if (parent.length > 1 && parent instanceof Element === false) {
2048
- console.warn('WARNING: you have passed as parent a list of elements, the first one will be used');
2049
- parent = parent[0];
2050
- }
2051
-
2052
- // append the generated popper to its parent
2053
- parent.appendChild(popper);
2054
- return popper;
2055
-
2056
- /**
2057
- * Adds class names to the given element
2058
- * @function
2059
- * @ignore
2060
- * @param {HTMLElement} target
2061
- * @param {Array} classes
2062
- */
2063
- function addClassNames(element, classNames) {
2064
- classNames.forEach(function (className) {
2065
- element.classList.add(className);
2066
- });
2067
- }
2068
-
2069
- /**
2070
- * Adds attributes to the given element
2071
- * @function
2072
- * @ignore
2073
- * @param {HTMLElement} target
2074
- * @param {Array} attributes
2075
- * @example
2076
- * addAttributes(element, [ 'data-info:foobar' ]);
2077
- */
2078
- function addAttributes(element, attributes) {
2079
- attributes.forEach(function (attribute) {
2080
- element.setAttribute(attribute.split(':')[0], attribute.split(':')[1] || '');
2081
- });
2082
- }
2083
- };
2084
-
2085
- /**
2086
- * Helper used to get the position which will be applied to the popper
2087
- * @method
2088
- * @memberof Popper
2089
- * @param config {HTMLElement} popper element
2090
- * @param reference {HTMLElement} reference element
2091
- * @returns {String} position
2092
- */
2093
- Popper.prototype._getPosition = function (popper, reference) {
2094
- var container = getOffsetParent(reference);
2095
- if (this._options.forceAbsolute) {
2096
- return 'absolute';
2097
- }
2098
-
2099
- // Decide if the popper will be fixed
2100
- // If the reference element is inside a fixed context, the popper will be fixed as well to allow them to scroll together
2101
- var isParentFixed = isFixed(reference, container);
2102
- return isParentFixed ? 'fixed' : 'absolute';
2103
- };
2104
-
2105
- /**
2106
- * Get offsets to the popper
2107
- * @method
2108
- * @memberof Popper
2109
- * @access private
2110
- * @param {Element} popper - the popper element
2111
- * @param {Element} reference - the reference element (the popper will be relative to this)
2112
- * @returns {Object} An object containing the offsets which will be applied to the popper
2113
- */
2114
- Popper.prototype._getOffsets = function (popper, reference, placement) {
2115
- placement = placement.split('-')[0];
2116
- var popperOffsets = {};
2117
- popperOffsets.position = this.state.position;
2118
- var isParentFixed = popperOffsets.position === 'fixed';
2119
-
2120
- //
2121
- // Get reference element position
2122
- //
2123
- var referenceOffsets = getOffsetRectRelativeToCustomParent(reference, getOffsetParent(popper), isParentFixed);
2124
-
2125
- //
2126
- // Get popper sizes
2127
- //
2128
- var popperRect = getOuterSizes(popper);
2129
-
2130
- //
2131
- // Compute offsets of popper
2132
- //
2133
-
2134
- // depending by the popper placement we have to compute its offsets slightly differently
2135
- if (['right', 'left'].indexOf(placement) !== -1) {
2136
- popperOffsets.top = referenceOffsets.top + referenceOffsets.height / 2 - popperRect.height / 2;
2137
- if (placement === 'left') {
2138
- popperOffsets.left = referenceOffsets.left - popperRect.width;
2139
- } else {
2140
- popperOffsets.left = referenceOffsets.right;
2141
- }
2142
- } else {
2143
- popperOffsets.left = referenceOffsets.left + referenceOffsets.width / 2 - popperRect.width / 2;
2144
- if (placement === 'top') {
2145
- popperOffsets.top = referenceOffsets.top - popperRect.height;
2146
- } else {
2147
- popperOffsets.top = referenceOffsets.bottom;
2148
- }
2149
- }
2150
-
2151
- // Add width and height to our offsets object
2152
- popperOffsets.width = popperRect.width;
2153
- popperOffsets.height = popperRect.height;
2154
- return {
2155
- popper: popperOffsets,
2156
- reference: referenceOffsets
2157
- };
2158
- };
2159
-
2160
- /**
2161
- * Setup needed event listeners used to update the popper position
2162
- * @method
2163
- * @memberof Popper
2164
- * @access private
2165
- */
2166
- Popper.prototype._setupEventListeners = function () {
2167
- // NOTE: 1 DOM access here
2168
- this.state.updateBound = this.update.bind(this);
2169
- root.addEventListener('resize', this.state.updateBound);
2170
- // if the boundariesElement is window we don't need to listen for the scroll event
2171
- if (this._options.boundariesElement !== 'window') {
2172
- var target = getScrollParent(this._reference);
2173
- // here it could be both `body` or `documentElement` thanks to Firefox, we then check both
2174
- if (target === root.document.body || target === root.document.documentElement) {
2175
- target = root;
2176
- }
2177
- target.addEventListener('scroll', this.state.updateBound);
2178
- this.state.scrollTarget = target;
2179
- }
2180
- };
2181
-
2182
- /**
2183
- * Remove event listeners used to update the popper position
2184
- * @method
2185
- * @memberof Popper
2186
- * @access private
2187
- */
2188
- Popper.prototype._removeEventListeners = function () {
2189
- // NOTE: 1 DOM access here
2190
- root.removeEventListener('resize', this.state.updateBound);
2191
- if (this._options.boundariesElement !== 'window' && this.state.scrollTarget) {
2192
- this.state.scrollTarget.removeEventListener('scroll', this.state.updateBound);
2193
- this.state.scrollTarget = null;
2194
- }
2195
- this.state.updateBound = null;
2196
- };
2197
-
2198
- /**
2199
- * Computed the boundaries limits and return them
2200
- * @method
2201
- * @memberof Popper
2202
- * @access private
2203
- * @param {Object} data - Object containing the property "offsets" generated by `_getOffsets`
2204
- * @param {Number} padding - Boundaries padding
2205
- * @param {Element} boundariesElement - Element used to define the boundaries
2206
- * @returns {Object} Coordinates of the boundaries
2207
- */
2208
- Popper.prototype._getBoundaries = function (data, padding, boundariesElement) {
2209
- // NOTE: 1 DOM access here
2210
- var boundaries = {};
2211
- var width, height;
2212
- if (boundariesElement === 'window') {
2213
- var body = root.document.body,
2214
- html = root.document.documentElement;
2215
- height = Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight);
2216
- width = Math.max(body.scrollWidth, body.offsetWidth, html.clientWidth, html.scrollWidth, html.offsetWidth);
2217
- boundaries = {
2218
- top: 0,
2219
- right: width,
2220
- bottom: height,
2221
- left: 0
2222
- };
2223
- } else if (boundariesElement === 'viewport') {
2224
- var offsetParent = getOffsetParent(this._popper);
2225
- var scrollParent = getScrollParent(this._popper);
2226
- var offsetParentRect = getOffsetRect(offsetParent);
2227
-
2228
- // Thanks the fucking native API, `document.body.scrollTop` & `document.documentElement.scrollTop`
2229
- var getScrollTopValue = function getScrollTopValue(element) {
2230
- return element == document.body ? Math.max(document.documentElement.scrollTop, document.body.scrollTop) : element.scrollTop;
2231
- };
2232
- var getScrollLeftValue = function getScrollLeftValue(element) {
2233
- return element == document.body ? Math.max(document.documentElement.scrollLeft, document.body.scrollLeft) : element.scrollLeft;
2234
- };
2235
-
2236
- // if the popper is fixed we don't have to substract scrolling from the boundaries
2237
- var scrollTop = data.offsets.popper.position === 'fixed' ? 0 : getScrollTopValue(scrollParent);
2238
- var scrollLeft = data.offsets.popper.position === 'fixed' ? 0 : getScrollLeftValue(scrollParent);
2239
- boundaries = {
2240
- top: 0 - (offsetParentRect.top - scrollTop),
2241
- right: root.document.documentElement.clientWidth - (offsetParentRect.left - scrollLeft),
2242
- bottom: root.document.documentElement.clientHeight - (offsetParentRect.top - scrollTop),
2243
- left: 0 - (offsetParentRect.left - scrollLeft)
2244
- };
2245
- } else {
2246
- if (getOffsetParent(this._popper) === boundariesElement) {
2247
- boundaries = {
2248
- top: 0,
2249
- left: 0,
2250
- right: boundariesElement.clientWidth,
2251
- bottom: boundariesElement.clientHeight
2252
- };
2253
- } else {
2254
- boundaries = getOffsetRect(boundariesElement);
2255
- }
2256
- }
2257
- boundaries.left += padding;
2258
- boundaries.right -= padding;
2259
- boundaries.top = boundaries.top + padding;
2260
- boundaries.bottom = boundaries.bottom - padding;
2261
- return boundaries;
2262
- };
2263
-
2264
- /**
2265
- * Loop trough the list of modifiers and run them in order, each of them will then edit the data object
2266
- * @method
2267
- * @memberof Popper
2268
- * @access public
2269
- * @param {Object} data
2270
- * @param {Array} modifiers
2271
- * @param {Function} ends
2272
- */
2273
- Popper.prototype.runModifiers = function (data, modifiers, ends) {
2274
- var modifiersToRun = modifiers.slice();
2275
- if (ends !== undefined) {
2276
- modifiersToRun = this._options.modifiers.slice(0, getArrayKeyIndex(this._options.modifiers, ends));
2277
- }
2278
- modifiersToRun.forEach(function (modifier) {
2279
- if (isFunction(modifier)) {
2280
- data = modifier.call(this, data);
2281
- }
2282
- }.bind(this));
2283
- return data;
2284
- };
2285
-
2286
- /**
2287
- * Helper used to know if the given modifier depends from another one.
2288
- * @method
2289
- * @memberof Popper
2290
- * @param {String} requesting - name of requesting modifier
2291
- * @param {String} requested - name of requested modifier
2292
- * @returns {Boolean}
2293
- */
2294
- Popper.prototype.isModifierRequired = function (requesting, requested) {
2295
- var index = getArrayKeyIndex(this._options.modifiers, requesting);
2296
- return !!this._options.modifiers.slice(0, index).filter(function (modifier) {
2297
- return modifier === requested;
2298
- }).length;
2299
- };
2300
-
2301
- //
2302
- // Modifiers
2303
- //
2304
-
2305
- /**
2306
- * Modifiers list
2307
- * @namespace Popper.modifiers
2308
- * @memberof Popper
2309
- * @type {Object}
2310
- */
2311
- Popper.prototype.modifiers = {};
2312
-
2313
- /**
2314
- * Apply the computed styles to the popper element
2315
- * @method
2316
- * @memberof Popper.modifiers
2317
- * @argument {Object} data - The data object generated by `update` method
2318
- * @returns {Object} The same data object
2319
- */
2320
- Popper.prototype.modifiers.applyStyle = function (data) {
2321
- // apply the final offsets to the popper
2322
- // NOTE: 1 DOM access here
2323
- var styles = {
2324
- position: data.offsets.popper.position
2325
- };
2326
-
2327
- // round top and left to avoid blurry text
2328
- var left = Math.round(data.offsets.popper.left);
2329
- var top = Math.round(data.offsets.popper.top);
2330
-
2331
- // if gpuAcceleration is set to true and transform is supported, we use `translate3d` to apply the position to the popper
2332
- // we automatically use the supported prefixed version if needed
2333
- var prefixedProperty;
2334
- if (this._options.gpuAcceleration && (prefixedProperty = getSupportedPropertyName('transform'))) {
2335
- styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)';
2336
- styles.top = 0;
2337
- styles.left = 0;
2338
- }
2339
- // othwerise, we use the standard `left` and `top` properties
2340
- else {
2341
- styles.left = left;
2342
- styles.top = top;
2343
- }
2344
-
2345
- // any property present in `data.styles` will be applied to the popper,
2346
- // in this way we can make the 3rd party modifiers add custom styles to it
2347
- // Be aware, modifiers could override the properties defined in the previous
2348
- // lines of this modifier!
2349
- Object.assign(styles, data.styles);
2350
- setStyle(this._popper, styles);
2351
-
2352
- // set an attribute which will be useful to style the tooltip (use it to properly position its arrow)
2353
- // NOTE: 1 DOM access here
2354
- this._popper.setAttribute('x-placement', data.placement);
2355
-
2356
- // if the arrow modifier is required and the arrow style has been computed, apply the arrow style
2357
- if (this.isModifierRequired(this.modifiers.applyStyle, this.modifiers.arrow) && data.offsets.arrow) {
2358
- setStyle(data.arrowElement, data.offsets.arrow);
2359
- }
2360
- return data;
2361
- };
2362
-
2363
- /**
2364
- * Modifier used to shift the popper on the start or end of its reference element side
2365
- * @method
2366
- * @memberof Popper.modifiers
2367
- * @argument {Object} data - The data object generated by `update` method
2368
- * @returns {Object} The data object, properly modified
2369
- */
2370
- Popper.prototype.modifiers.shift = function (data) {
2371
- var placement = data.placement;
2372
- var basePlacement = placement.split('-')[0];
2373
- var shiftVariation = placement.split('-')[1];
2374
-
2375
- // if shift shiftVariation is specified, run the modifier
2376
- if (shiftVariation) {
2377
- var reference = data.offsets.reference;
2378
- var popper = getPopperClientRect(data.offsets.popper);
2379
- var shiftOffsets = {
2380
- y: {
2381
- start: {
2382
- top: reference.top
2383
- },
2384
- end: {
2385
- top: reference.top + reference.height - popper.height
2386
- }
2387
- },
2388
- x: {
2389
- start: {
2390
- left: reference.left
2391
- },
2392
- end: {
2393
- left: reference.left + reference.width - popper.width
2394
- }
2395
- }
2396
- };
2397
- var axis = ['bottom', 'top'].indexOf(basePlacement) !== -1 ? 'x' : 'y';
2398
- data.offsets.popper = Object.assign(popper, shiftOffsets[axis][shiftVariation]);
2399
- }
2400
- return data;
2401
- };
2402
-
2403
- /**
2404
- * Modifier used to make sure the popper does not overflows from it's boundaries
2405
- * @method
2406
- * @memberof Popper.modifiers
2407
- * @argument {Object} data - The data object generated by `update` method
2408
- * @returns {Object} The data object, properly modified
2409
- */
2410
- Popper.prototype.modifiers.preventOverflow = function (data) {
2411
- var order = this._options.preventOverflowOrder;
2412
- var popper = getPopperClientRect(data.offsets.popper);
2413
- var check = {
2414
- left: function left() {
2415
- var left = popper.left;
2416
- if (popper.left < data.boundaries.left) {
2417
- left = Math.max(popper.left, data.boundaries.left);
2418
- }
2419
- return {
2420
- left: left
2421
- };
2422
- },
2423
- right: function right() {
2424
- var left = popper.left;
2425
- if (popper.right > data.boundaries.right) {
2426
- left = Math.min(popper.left, data.boundaries.right - popper.width);
2427
- }
2428
- return {
2429
- left: left
2430
- };
2431
- },
2432
- top: function top() {
2433
- var top = popper.top;
2434
- if (popper.top < data.boundaries.top) {
2435
- top = Math.max(popper.top, data.boundaries.top);
2436
- }
2437
- return {
2438
- top: top
2439
- };
2440
- },
2441
- bottom: function bottom() {
2442
- var top = popper.top;
2443
- if (popper.bottom > data.boundaries.bottom) {
2444
- top = Math.min(popper.top, data.boundaries.bottom - popper.height);
2445
- }
2446
- return {
2447
- top: top
2448
- };
2449
- }
2450
- };
2451
- order.forEach(function (direction) {
2452
- data.offsets.popper = Object.assign(popper, check[direction]());
2453
- });
2454
- return data;
2455
- };
2456
-
2457
- /**
2458
- * Modifier used to make sure the popper is always near its reference
2459
- * @method
2460
- * @memberof Popper.modifiers
2461
- * @argument {Object} data - The data object generated by _update method
2462
- * @returns {Object} The data object, properly modified
2463
- */
2464
- Popper.prototype.modifiers.keepTogether = function (data) {
2465
- var popper = getPopperClientRect(data.offsets.popper);
2466
- var reference = data.offsets.reference;
2467
- var f = Math.floor;
2468
- if (popper.right < f(reference.left)) {
2469
- data.offsets.popper.left = f(reference.left) - popper.width;
2470
- }
2471
- if (popper.left > f(reference.right)) {
2472
- data.offsets.popper.left = f(reference.right);
2473
- }
2474
- if (popper.bottom < f(reference.top)) {
2475
- data.offsets.popper.top = f(reference.top) - popper.height;
2476
- }
2477
- if (popper.top > f(reference.bottom)) {
2478
- data.offsets.popper.top = f(reference.bottom);
2479
- }
2480
- return data;
2481
- };
2482
-
2483
- /**
2484
- * Modifier used to flip the placement of the popper when the latter is starting overlapping its reference element.
2485
- * Requires the `preventOverflow` modifier before it in order to work.
2486
- * **NOTE:** This modifier will run all its previous modifiers everytime it tries to flip the popper!
2487
- * @method
2488
- * @memberof Popper.modifiers
2489
- * @argument {Object} data - The data object generated by _update method
2490
- * @returns {Object} The data object, properly modified
2491
- */
2492
- Popper.prototype.modifiers.flip = function (data) {
2493
- // check if preventOverflow is in the list of modifiers before the flip modifier.
2494
- // otherwise flip would not work as expected.
2495
- if (!this.isModifierRequired(this.modifiers.flip, this.modifiers.preventOverflow)) {
2496
- console.warn('WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!');
2497
- return data;
2498
- }
2499
- if (data.flipped && data.placement === data._originalPlacement) {
2500
- // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides
2501
- return data;
2502
- }
2503
- var placement = data.placement.split('-')[0];
2504
- var placementOpposite = getOppositePlacement(placement);
2505
- var variation = data.placement.split('-')[1] || '';
2506
- var flipOrder = [];
2507
- if (this._options.flipBehavior === 'flip') {
2508
- flipOrder = [placement, placementOpposite];
2509
- } else {
2510
- flipOrder = this._options.flipBehavior;
2511
- }
2512
- flipOrder.forEach(function (step, index) {
2513
- if (placement !== step || flipOrder.length === index + 1) {
2514
- return;
2515
- }
2516
- placement = data.placement.split('-')[0];
2517
- placementOpposite = getOppositePlacement(placement);
2518
- var popperOffsets = getPopperClientRect(data.offsets.popper);
2519
-
2520
- // this boolean is used to distinguish right and bottom from top and left
2521
- // they need different computations to get flipped
2522
- var a = ['right', 'bottom'].indexOf(placement) !== -1;
2523
-
2524
- // using Math.floor because the reference offsets may contain decimals we are not going to consider here
2525
- if (a && Math.floor(data.offsets.reference[placement]) > Math.floor(popperOffsets[placementOpposite]) || !a && Math.floor(data.offsets.reference[placement]) < Math.floor(popperOffsets[placementOpposite])) {
2526
- // we'll use this boolean to detect any flip loop
2527
- data.flipped = true;
2528
- data.placement = flipOrder[index + 1];
2529
- if (variation) {
2530
- data.placement += '-' + variation;
2531
- }
2532
- data.offsets.popper = this._getOffsets(this._popper, this._reference, data.placement).popper;
2533
- data = this.runModifiers(data, this._options.modifiers, this._flip);
2534
- }
2535
- }.bind(this));
2536
- return data;
2537
- };
2538
-
2539
- /**
2540
- * Modifier used to add an offset to the popper, useful if you more granularity positioning your popper.
2541
- * The offsets will shift the popper on the side of its reference element.
2542
- * @method
2543
- * @memberof Popper.modifiers
2544
- * @argument {Object} data - The data object generated by _update method
2545
- * @returns {Object} The data object, properly modified
2546
- */
2547
- Popper.prototype.modifiers.offset = function (data) {
2548
- var offset = this._options.offset;
2549
- var popper = data.offsets.popper;
2550
- if (data.placement.indexOf('left') !== -1) {
2551
- popper.top -= offset;
2552
- } else if (data.placement.indexOf('right') !== -1) {
2553
- popper.top += offset;
2554
- } else if (data.placement.indexOf('top') !== -1) {
2555
- popper.left -= offset;
2556
- } else if (data.placement.indexOf('bottom') !== -1) {
2557
- popper.left += offset;
2558
- }
2559
- return data;
2560
- };
2561
-
2562
- /**
2563
- * Modifier used to move the arrows on the edge of the popper to make sure them are always between the popper and the reference element
2564
- * It will use the CSS outer size of the arrow element to know how many pixels of conjuction are needed
2565
- * @method
2566
- * @memberof Popper.modifiers
2567
- * @argument {Object} data - The data object generated by _update method
2568
- * @returns {Object} The data object, properly modified
2569
- */
2570
- Popper.prototype.modifiers.arrow = function (data) {
2571
- var arrow = this._options.arrowElement;
2572
- var arrowOffset = this._options.arrowOffset;
2573
-
2574
- // if the arrowElement is a string, suppose it's a CSS selector
2575
- if (typeof arrow === 'string') {
2576
- arrow = this._popper.querySelector(arrow);
2577
- }
2578
-
2579
- // if arrow element is not found, don't run the modifier
2580
- if (!arrow) {
2581
- return data;
2582
- }
2583
-
2584
- // the arrow element must be child of its popper
2585
- if (!this._popper.contains(arrow)) {
2586
- console.warn('WARNING: `arrowElement` must be child of its popper element!');
2587
- return data;
2588
- }
2589
-
2590
- // arrow depends on keepTogether in order to work
2591
- if (!this.isModifierRequired(this.modifiers.arrow, this.modifiers.keepTogether)) {
2592
- console.warn('WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!');
2593
- return data;
2594
- }
2595
- var arrowStyle = {};
2596
- var placement = data.placement.split('-')[0];
2597
- var popper = getPopperClientRect(data.offsets.popper);
2598
- var reference = data.offsets.reference;
2599
- var isVertical = ['left', 'right'].indexOf(placement) !== -1;
2600
- var len = isVertical ? 'height' : 'width';
2601
- var side = isVertical ? 'top' : 'left';
2602
- var translate = isVertical ? 'translateY' : 'translateX';
2603
- var altSide = isVertical ? 'left' : 'top';
2604
- var opSide = isVertical ? 'bottom' : 'right';
2605
- var arrowSize = getOuterSizes(arrow)[len];
2606
-
2607
- //
2608
- // extends keepTogether behavior making sure the popper and its reference have enough pixels in conjuction
2609
- //
2610
-
2611
- // top/left side
2612
- if (reference[opSide] - arrowSize < popper[side]) {
2613
- data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowSize);
2614
- }
2615
- // bottom/right side
2616
- if (reference[side] + arrowSize > popper[opSide]) {
2617
- data.offsets.popper[side] += reference[side] + arrowSize - popper[opSide];
2618
- }
2619
-
2620
- // compute center of the popper
2621
- var center = reference[side] + (arrowOffset || reference[len] / 2 - arrowSize / 2);
2622
- var sideValue = center - popper[side];
2623
-
2624
- // prevent arrow from being placed not contiguously to its popper
2625
- sideValue = Math.max(Math.min(popper[len] - arrowSize - 8, sideValue), 8);
2626
- arrowStyle[side] = sideValue;
2627
- arrowStyle[altSide] = ''; // make sure to remove any old style from the arrow
2628
-
2629
- data.offsets.arrow = arrowStyle;
2630
- data.arrowElement = arrow;
2631
- return data;
2632
- };
2633
-
2634
- //
2635
- // Helpers
2636
- //
2637
-
2638
- /**
2639
- * Get the outer sizes of the given element (offset size + margins)
2640
- * @function
2641
- * @ignore
2642
- * @argument {Element} element
2643
- * @returns {Object} object containing width and height properties
2644
- */
2645
- function getOuterSizes(element) {
2646
- // NOTE: 1 DOM access here
2647
- var _display = element.style.display,
2648
- _visibility = element.style.visibility;
2649
- element.style.display = 'block';
2650
- element.style.visibility = 'hidden';
2651
- var calcWidthToForceRepaint = element.offsetWidth;
2652
-
2653
- // original method
2654
- var styles = root.getComputedStyle(element);
2655
- var x = parseFloat(styles.marginTop) + parseFloat(styles.marginBottom);
2656
- var y = parseFloat(styles.marginLeft) + parseFloat(styles.marginRight);
2657
- var result = {
2658
- width: element.offsetWidth + y,
2659
- height: element.offsetHeight + x
2660
- };
2661
-
2662
- // reset element styles
2663
- element.style.display = _display;
2664
- element.style.visibility = _visibility;
2665
- return result;
2666
- }
2667
-
2668
- /**
2669
- * Get the opposite placement of the given one/
2670
- * @function
2671
- * @ignore
2672
- * @argument {String} placement
2673
- * @returns {String} flipped placement
2674
- */
2675
- function getOppositePlacement(placement) {
2676
- var hash = {
2677
- left: 'right',
2678
- right: 'left',
2679
- bottom: 'top',
2680
- top: 'bottom'
2681
- };
2682
- return placement.replace(/left|right|bottom|top/g, function (matched) {
2683
- return hash[matched];
2684
- });
2685
- }
2686
-
2687
- /**
2688
- * Given the popper offsets, generate an output similar to getBoundingClientRect
2689
- * @function
2690
- * @ignore
2691
- * @argument {Object} popperOffsets
2692
- * @returns {Object} ClientRect like output
2693
- */
2694
- function getPopperClientRect(popperOffsets) {
2695
- var offsets = Object.assign({}, popperOffsets);
2696
- offsets.right = offsets.left + offsets.width;
2697
- offsets.bottom = offsets.top + offsets.height;
2698
- return offsets;
2699
- }
2700
-
2701
- /**
2702
- * Given an array and the key to find, returns its index
2703
- * @function
2704
- * @ignore
2705
- * @argument {Array} arr
2706
- * @argument keyToFind
2707
- * @returns index or null
2708
- */
2709
- function getArrayKeyIndex(arr, keyToFind) {
2710
- var i = 0,
2711
- key;
2712
- for (key in arr) {
2713
- if (arr[key] === keyToFind) {
2714
- return i;
2715
- }
2716
- i++;
2717
- }
2718
- return null;
2719
- }
2720
-
2721
- /**
2722
- * Get CSS computed property of the given element
2723
- * @function
2724
- * @ignore
2725
- * @argument {Eement} element
2726
- * @argument {String} property
2727
- */
2728
- function getStyleComputedProperty(element, property) {
2729
- // NOTE: 1 DOM access here
2730
- var css = root.getComputedStyle(element, null);
2731
- return css[property];
2732
- }
2733
-
2734
- /**
2735
- * Returns the offset parent of the given element
2736
- * @function
2737
- * @ignore
2738
- * @argument {Element} element
2739
- * @returns {Element} offset parent
2740
- */
2741
- function getOffsetParent(element) {
2742
- // NOTE: 1 DOM access here
2743
- var offsetParent = element.offsetParent;
2744
- return offsetParent === root.document.body || !offsetParent ? root.document.documentElement : offsetParent;
2745
- }
2746
-
2747
- /**
2748
- * Returns the scrolling parent of the given element
2749
- * @function
2750
- * @ignore
2751
- * @argument {Element} element
2752
- * @returns {Element} offset parent
2753
- */
2754
- function getScrollParent(element) {
2755
- var parent = element.parentNode;
2756
- if (!parent) {
2757
- return element;
2758
- }
2759
- if (parent === root.document) {
2760
- // Firefox puts the scrollTOp value on `documentElement` instead of `body`, we then check which of them is
2761
- // greater than 0 and return the proper element
2762
- if (root.document.body.scrollTop || root.document.body.scrollLeft) {
2763
- return root.document.body;
2764
- } else {
2765
- return root.document.documentElement;
2766
- }
2767
- }
2768
-
2769
- // Firefox want us to check `-x` and `-y` variations as well
2770
- if (['scroll', 'auto'].indexOf(getStyleComputedProperty(parent, 'overflow')) !== -1 || ['scroll', 'auto'].indexOf(getStyleComputedProperty(parent, 'overflow-x')) !== -1 || ['scroll', 'auto'].indexOf(getStyleComputedProperty(parent, 'overflow-y')) !== -1) {
2771
- // If the detected scrollParent is body, we perform an additional check on its parentNode
2772
- // in this way we'll get body if the browser is Chrome-ish, or documentElement otherwise
2773
- // fixes issue #65
2774
- return parent;
2775
- }
2776
- return getScrollParent(element.parentNode);
2777
- }
2778
-
2779
- /**
2780
- * Check if the given element is fixed or is inside a fixed parent
2781
- * @function
2782
- * @ignore
2783
- * @argument {Element} element
2784
- * @argument {Element} customContainer
2785
- * @returns {Boolean} answer to "isFixed?"
2786
- */
2787
- function isFixed(element) {
2788
- if (element === root.document.body) {
2789
- return false;
2790
- }
2791
- if (getStyleComputedProperty(element, 'position') === 'fixed') {
2792
- return true;
2793
- }
2794
- return element.parentNode ? isFixed(element.parentNode) : element;
2795
- }
2796
-
2797
- /**
2798
- * Set the style to the given popper
2799
- * @function
2800
- * @ignore
2801
- * @argument {Element} element - Element to apply the style to
2802
- * @argument {Object} styles - Object with a list of properties and values which will be applied to the element
2803
- */
2804
- function setStyle(element, styles) {
2805
- function is_numeric(n) {
2806
- return n !== '' && !isNaN(parseFloat(n)) && isFinite(n);
2807
- }
2808
- Object.keys(styles).forEach(function (prop) {
2809
- var unit = '';
2810
- // add unit if the value is numeric and is one of the following
2811
- if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && is_numeric(styles[prop])) {
2812
- unit = 'px';
2813
- }
2814
- element.style[prop] = styles[prop] + unit;
2815
- });
2816
- }
2817
-
2818
- /**
2819
- * Check if the given variable is a function
2820
- * @function
2821
- * @ignore
2822
- * @argument {*} functionToCheck - variable to check
2823
- * @returns {Boolean} answer to: is a function?
2824
- */
2825
- function isFunction(functionToCheck) {
2826
- var getType = {};
2827
- return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
2828
- }
2829
-
2830
- /**
2831
- * Get the position of the given element, relative to its offset parent
2832
- * @function
2833
- * @ignore
2834
- * @param {Element} element
2835
- * @return {Object} position - Coordinates of the element and its `scrollTop`
2836
- */
2837
- function getOffsetRect(element) {
2838
- var elementRect = {
2839
- width: element.offsetWidth,
2840
- height: element.offsetHeight,
2841
- left: element.offsetLeft,
2842
- top: element.offsetTop
2843
- };
2844
- elementRect.right = elementRect.left + elementRect.width;
2845
- elementRect.bottom = elementRect.top + elementRect.height;
2846
-
2847
- // position
2848
- return elementRect;
2849
- }
2850
-
2851
- /**
2852
- * Get bounding client rect of given element
2853
- * @function
2854
- * @ignore
2855
- * @param {HTMLElement} element
2856
- * @return {Object} client rect
2857
- */
2858
- function getBoundingClientRect(element) {
2859
- var rect = element.getBoundingClientRect();
2860
-
2861
- // whether the IE version is lower than 11
2862
- var isIE = navigator.userAgent.indexOf("MSIE") != -1;
2863
-
2864
- // fix ie document bounding top always 0 bug
2865
- var rectTop = isIE && element.tagName === 'HTML' ? -element.scrollTop : rect.top;
2866
- return {
2867
- left: rect.left,
2868
- top: rectTop,
2869
- right: rect.right,
2870
- bottom: rect.bottom,
2871
- width: rect.right - rect.left,
2872
- height: rect.bottom - rectTop
2873
- };
2874
- }
2875
-
2876
- /**
2877
- * Given an element and one of its parents, return the offset
2878
- * @function
2879
- * @ignore
2880
- * @param {HTMLElement} element
2881
- * @param {HTMLElement} parent
2882
- * @return {Object} rect
2883
- */
2884
- function getOffsetRectRelativeToCustomParent(element, parent, fixed) {
2885
- var elementRect = getBoundingClientRect(element);
2886
- var parentRect = getBoundingClientRect(parent);
2887
- if (fixed) {
2888
- var scrollParent = getScrollParent(parent);
2889
- parentRect.top += scrollParent.scrollTop;
2890
- parentRect.bottom += scrollParent.scrollTop;
2891
- parentRect.left += scrollParent.scrollLeft;
2892
- parentRect.right += scrollParent.scrollLeft;
2893
- }
2894
- var rect = {
2895
- top: elementRect.top - parentRect.top,
2896
- left: elementRect.left - parentRect.left,
2897
- bottom: elementRect.top - parentRect.top + elementRect.height,
2898
- right: elementRect.left - parentRect.left + elementRect.width,
2899
- width: elementRect.width,
2900
- height: elementRect.height
2901
- };
2902
- return rect;
2903
- }
2904
-
2905
- /**
2906
- * Get the prefixed supported property name
2907
- * @function
2908
- * @ignore
2909
- * @argument {String} property (camelCase)
2910
- * @returns {String} prefixed property (camelCase)
2911
- */
2912
- function getSupportedPropertyName(property) {
2913
- var prefixes = ['', 'ms', 'webkit', 'moz', 'o'];
2914
- for (var i = 0; i < prefixes.length; i++) {
2915
- var toCheck = prefixes[i] ? prefixes[i] + property.charAt(0).toUpperCase() + property.slice(1) : property;
2916
- if (typeof root.document.body.style[toCheck] !== 'undefined') {
2917
- return toCheck;
2918
- }
2919
- }
2920
- return null;
2921
- }
2922
-
2923
- /**
2924
- * The Object.assign() method is used to copy the values of all enumerable own properties from one or more source
2925
- * objects to a target object. It will return the target object.
2926
- * This polyfill doesn't support symbol properties, since ES5 doesn't have symbols anyway
2927
- * Source: https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
2928
- * @function
2929
- * @ignore
2930
- */
2931
- if (!Object.assign) {
2932
- Object.defineProperty(Object, 'assign', {
2933
- enumerable: false,
2934
- configurable: true,
2935
- writable: true,
2936
- value: function value(target) {
2937
- if (target === undefined || target === null) {
2938
- throw new TypeError('Cannot convert first argument to object');
2939
- }
2940
- var to = Object(target);
2941
- for (var i = 1; i < arguments.length; i++) {
2942
- var nextSource = arguments[i];
2943
- if (nextSource === undefined || nextSource === null) {
2944
- continue;
2945
- }
2946
- nextSource = Object(nextSource);
2947
- var keysArray = Object.keys(nextSource);
2948
- for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex++) {
2949
- var nextKey = keysArray[nextIndex];
2950
- var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);
2951
- if (desc !== undefined && desc.enumerable) {
2952
- to[nextKey] = nextSource[nextKey];
2953
- }
2954
- }
2955
- }
2956
- return to;
2957
- }
2958
- });
2959
- }
2960
- return Popper;
2961
- });
2962
- /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(72)(module)))
2963
-
2964
- /***/ }),
2965
- /* 72 */
404
+ /***/ 3:
2966
405
  /***/ (function(module, exports) {
2967
406
 
2968
- module.exports = function(originalModule) {
2969
- if (!originalModule.webpackPolyfill) {
2970
- var module = Object.create(originalModule);
2971
- // module.parent = undefined by default
2972
- if (!module.children) module.children = [];
2973
- Object.defineProperty(module, "loaded", {
2974
- enumerable: true,
2975
- get: function() {
2976
- return module.l;
2977
- }
2978
- });
2979
- Object.defineProperty(module, "id", {
2980
- enumerable: true,
2981
- get: function() {
2982
- return module.i;
2983
- }
2984
- });
2985
- Object.defineProperty(module, "exports", {
2986
- enumerable: true
2987
- });
2988
- module.webpackPolyfill = 1;
2989
- }
2990
- return module;
2991
- };
2992
-
407
+ module.exports = require("element-ui/lib/utils/util");
2993
408
 
2994
409
  /***/ }),
2995
- /* 73 */
2996
- /***/ (function(module, exports) {
2997
-
2998
- module.exports = require("core-js/modules/es.object.get-own-property-descriptor.js");
2999
410
 
3000
- /***/ }),
3001
- /* 74 */
411
+ /***/ 5:
3002
412
  /***/ (function(module, exports) {
3003
413
 
3004
- /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {/* globals __webpack_amd_options__ */
3005
- module.exports = __webpack_amd_options__;
3006
-
3007
- /* WEBPACK VAR INJECTION */}.call(this, {}))
414
+ module.exports = require("element-ui/lib/utils/vue-popper");
3008
415
 
3009
416
  /***/ }),
3010
- /* 75 */,
3011
- /* 76 */,
3012
- /* 77 */,
3013
- /* 78 */,
3014
- /* 79 */,
3015
- /* 80 */,
3016
- /* 81 */,
3017
- /* 82 */,
3018
- /* 83 */,
3019
- /* 84 */,
3020
- /* 85 */,
3021
- /* 86 */,
3022
- /* 87 */,
3023
- /* 88 */,
3024
- /* 89 */,
3025
- /* 90 */,
3026
- /* 91 */,
3027
- /* 92 */,
3028
- /* 93 */,
3029
- /* 94 */,
3030
- /* 95 */,
3031
- /* 96 */
3032
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3033
-
3034
- "use strict";
3035
- // ESM COMPAT FLAG
3036
- __webpack_require__.r(__webpack_exports__);
3037
-
3038
- // EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
3039
- var es_function_name_js_ = __webpack_require__(5);
3040
-
3041
- // EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
3042
- var es_number_constructor_js_ = __webpack_require__(6);
3043
-
3044
- // EXTERNAL MODULE: external "core-js/modules/es.regexp.exec.js"
3045
- var es_regexp_exec_js_ = __webpack_require__(7);
3046
-
3047
- // EXTERNAL MODULE: external "core-js/modules/es.string.replace.js"
3048
- var es_string_replace_js_ = __webpack_require__(12);
3049
-
3050
- // EXTERNAL MODULE: ./src/utils/vue-popper.js
3051
- var vue_popper = __webpack_require__(51);
3052
-
3053
- // EXTERNAL MODULE: external "throttle-debounce/debounce"
3054
- var debounce_ = __webpack_require__(70);
3055
- var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce_);
3056
-
3057
- // EXTERNAL MODULE: ./src/utils/dom.js
3058
- var dom = __webpack_require__(1);
3059
-
3060
- // EXTERNAL MODULE: ./src/utils/util.js
3061
- var util = __webpack_require__(4);
3062
-
3063
- // EXTERNAL MODULE: external "vue"
3064
- var external_vue_ = __webpack_require__(0);
3065
- var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
3066
-
3067
- // CONCATENATED MODULE: ./packages/tooltip/src/main.js
3068
-
3069
-
3070
-
3071
-
3072
-
3073
-
3074
-
3075
-
3076
- /* harmony default export */ var main = ({
3077
- name: 'ElTooltip',
3078
- mixins: [vue_popper["a" /* default */]],
3079
- props: {
3080
- openDelay: {
3081
- type: Number,
3082
- default: 0
3083
- },
3084
- disabled: Boolean,
3085
- manual: Boolean,
3086
- effect: {
3087
- type: String,
3088
- default: 'dark'
3089
- },
3090
- arrowOffset: {
3091
- type: Number,
3092
- default: 0
3093
- },
3094
- popperClass: String,
3095
- content: String,
3096
- visibleArrow: {
3097
- default: true
3098
- },
3099
- transition: {
3100
- type: String,
3101
- default: 'el-fade-in-linear'
3102
- },
3103
- popperOptions: {
3104
- default: function _default() {
3105
- return {
3106
- boundariesPadding: 10,
3107
- gpuAcceleration: false
3108
- };
3109
- }
3110
- },
3111
- enterable: {
3112
- type: Boolean,
3113
- default: true
3114
- },
3115
- hideAfter: {
3116
- type: Number,
3117
- default: 0
3118
- },
3119
- tabindex: {
3120
- type: Number,
3121
- default: 0
3122
- }
3123
- },
3124
- data: function data() {
3125
- return {
3126
- tooltipId: "el-tooltip-" + Object(util["g" /* generateId */])(),
3127
- timeoutPending: null,
3128
- focusing: false
3129
- };
3130
- },
3131
- beforeCreate: function beforeCreate() {
3132
- var _this = this;
3133
- if (this.$isServer) return;
3134
- this.popperVM = new external_vue_default.a({
3135
- data: {
3136
- node: ''
3137
- },
3138
- render: function render(h) {
3139
- return this.node;
3140
- }
3141
- }).$mount();
3142
- this.debounceClose = debounce_default()(200, function () {
3143
- return _this.handleClosePopper();
3144
- });
3145
- },
3146
- render: function render(h) {
3147
- var _this2 = this;
3148
- if (this.popperVM) {
3149
- this.popperVM.node = h("transition", {
3150
- "attrs": {
3151
- "name": this.transition
3152
- },
3153
- "on": {
3154
- "afterLeave": this.doDestroy
3155
- }
3156
- }, [h("div", {
3157
- "on": {
3158
- "mouseleave": function mouseleave() {
3159
- _this2.setExpectedState(false);
3160
- _this2.debounceClose();
3161
- },
3162
- "mouseenter": function mouseenter() {
3163
- _this2.setExpectedState(true);
3164
- }
3165
- },
3166
- "ref": "popper",
3167
- "attrs": {
3168
- "role": "tooltip",
3169
- "id": this.tooltipId,
3170
- "aria-hidden": this.disabled || !this.showPopper ? 'true' : 'false'
3171
- },
3172
- "directives": [{
3173
- name: "show",
3174
- value: !this.disabled && this.showPopper
3175
- }],
3176
- "class": ['el-tooltip__popper', 'is-' + this.effect, this.popperClass]
3177
- }, [this.$slots.content || this.content])]);
3178
- }
3179
- var firstElement = this.getFirstElement();
3180
- if (!firstElement) return null;
3181
- var data = firstElement.data = firstElement.data || {};
3182
- data.staticClass = this.addTooltipClass(data.staticClass);
3183
- return firstElement;
3184
- },
3185
- mounted: function mounted() {
3186
- var _this3 = this;
3187
- this.referenceElm = this.$el;
3188
- if (this.$el.nodeType === 1) {
3189
- this.$el.setAttribute('aria-describedby', this.tooltipId);
3190
- this.$el.setAttribute('tabindex', this.tabindex);
3191
- Object(dom["g" /* on */])(this.referenceElm, 'mouseenter', this.show);
3192
- Object(dom["g" /* on */])(this.referenceElm, 'mouseleave', this.hide);
3193
- Object(dom["g" /* on */])(this.referenceElm, 'focus', function () {
3194
- if (!_this3.$slots.default || !_this3.$slots.default.length) {
3195
- _this3.handleFocus();
3196
- return;
3197
- }
3198
- var instance = _this3.$slots.default[0].componentInstance;
3199
- if (instance && instance.focus) {
3200
- instance.focus();
3201
- } else {
3202
- _this3.handleFocus();
3203
- }
3204
- });
3205
- Object(dom["g" /* on */])(this.referenceElm, 'blur', this.handleBlur);
3206
- Object(dom["g" /* on */])(this.referenceElm, 'click', this.removeFocusing);
3207
- }
3208
- // fix issue https://github.com/ElemeFE/element/issues/14424
3209
- if (this.value && this.popperVM) {
3210
- this.popperVM.$nextTick(function () {
3211
- if (_this3.value) {
3212
- _this3.updatePopper();
3213
- }
3214
- });
3215
- }
3216
- },
3217
- watch: {
3218
- focusing: function focusing(val) {
3219
- if (val) {
3220
- Object(dom["a" /* addClass */])(this.referenceElm, 'focusing');
3221
- } else {
3222
- Object(dom["i" /* removeClass */])(this.referenceElm, 'focusing');
3223
- }
3224
- }
3225
- },
3226
- methods: {
3227
- show: function show() {
3228
- this.setExpectedState(true);
3229
- this.handleShowPopper();
3230
- },
3231
- hide: function hide() {
3232
- this.setExpectedState(false);
3233
- this.debounceClose();
3234
- },
3235
- handleFocus: function handleFocus() {
3236
- this.focusing = true;
3237
- this.show();
3238
- },
3239
- handleBlur: function handleBlur() {
3240
- this.focusing = false;
3241
- this.hide();
3242
- },
3243
- removeFocusing: function removeFocusing() {
3244
- this.focusing = false;
3245
- },
3246
- addTooltipClass: function addTooltipClass(prev) {
3247
- if (!prev) {
3248
- return 'el-tooltip';
3249
- } else {
3250
- return 'el-tooltip ' + prev.replace('el-tooltip', '');
3251
- }
3252
- },
3253
- handleShowPopper: function handleShowPopper() {
3254
- var _this4 = this;
3255
- if (!this.expectedState || this.manual) return;
3256
- clearTimeout(this.timeout);
3257
- this.timeout = setTimeout(function () {
3258
- _this4.showPopper = true;
3259
- }, this.openDelay);
3260
- if (this.hideAfter > 0) {
3261
- this.timeoutPending = setTimeout(function () {
3262
- _this4.showPopper = false;
3263
- }, this.hideAfter);
3264
- }
3265
- },
3266
- handleClosePopper: function handleClosePopper() {
3267
- if (this.enterable && this.expectedState || this.manual) return;
3268
- clearTimeout(this.timeout);
3269
- if (this.timeoutPending) {
3270
- clearTimeout(this.timeoutPending);
3271
- }
3272
- this.showPopper = false;
3273
- if (this.disabled) {
3274
- this.doDestroy();
3275
- }
3276
- },
3277
- setExpectedState: function setExpectedState(expectedState) {
3278
- if (expectedState === false) {
3279
- clearTimeout(this.timeoutPending);
3280
- }
3281
- this.expectedState = expectedState;
3282
- },
3283
- getFirstElement: function getFirstElement() {
3284
- var slots = this.$slots.default;
3285
- if (!Array.isArray(slots)) return null;
3286
- var element = null;
3287
- for (var index = 0; index < slots.length; index++) {
3288
- if (slots[index] && slots[index].tag) {
3289
- element = slots[index];
3290
- break;
3291
- }
3292
- ;
3293
- }
3294
- return element;
3295
- }
3296
- },
3297
- beforeDestroy: function beforeDestroy() {
3298
- this.popperVM && this.popperVM.$destroy();
3299
- },
3300
- destroyed: function destroyed() {
3301
- var reference = this.referenceElm;
3302
- if (reference.nodeType === 1) {
3303
- Object(dom["f" /* off */])(reference, 'mouseenter', this.show);
3304
- Object(dom["f" /* off */])(reference, 'mouseleave', this.hide);
3305
- Object(dom["f" /* off */])(reference, 'focus', this.handleFocus);
3306
- Object(dom["f" /* off */])(reference, 'blur', this.handleBlur);
3307
- Object(dom["f" /* off */])(reference, 'click', this.removeFocusing);
3308
- }
3309
- }
3310
- });
3311
- // CONCATENATED MODULE: ./packages/tooltip/index.js
3312
-
3313
417
 
418
+ /***/ 7:
419
+ /***/ (function(module, exports) {
3314
420
 
3315
- /* istanbul ignore next */
3316
- main.install = function (Vue) {
3317
- Vue.component(main.name, main);
3318
- };
3319
- /* harmony default export */ var tooltip = __webpack_exports__["default"] = (main);
421
+ module.exports = require("vue");
3320
422
 
3321
423
  /***/ })
3322
- /******/ ]);
424
+
425
+ /******/ });