cy-element-ui 1.0.26 → 1.0.28

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