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