cy-element-ui 1.0.27 → 1.0.29

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