cy-element-ui 1.1.23 → 1.1.26

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 (663) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +629 -494
  3. package/lib/Alert.js +420 -0
  4. package/lib/Aside.js +277 -0
  5. package/lib/Autocomplete.js +2051 -0
  6. package/lib/Avatar.js +363 -0
  7. package/lib/Backtop.js +404 -0
  8. package/lib/Badge.js +334 -0
  9. package/lib/Breadcrumb.js +293 -0
  10. package/lib/BreadcrumbItem.js +322 -0
  11. package/lib/Button.js +357 -0
  12. package/lib/ButtonGroup.js +262 -0
  13. package/lib/Calendar.js +1146 -0
  14. package/lib/Card.js +297 -0
  15. package/lib/Carousel.js +707 -0
  16. package/lib/CarouselItem.js +434 -0
  17. package/lib/Cascader.js +4641 -0
  18. package/lib/CascaderPanel.js +2602 -0
  19. package/lib/Checkbox.js +627 -0
  20. package/lib/CheckboxButton.js +583 -0
  21. package/lib/CheckboxGroup.js +313 -0
  22. package/lib/Col.js +177 -0
  23. package/lib/Collapse.js +329 -0
  24. package/lib/CollapseItem.js +497 -0
  25. package/lib/ColorPicker.js +2885 -0
  26. package/lib/Container.js +288 -0
  27. package/lib/CySelectDisplayInput.js +367 -0
  28. package/lib/CySubTitle.js +295 -0
  29. package/lib/CyTabDialog.js +1184 -0
  30. package/lib/CyTreeSelect.js +4422 -0
  31. package/lib/DatePicker.js +7574 -0
  32. package/lib/Descriptions.js +457 -0
  33. package/lib/DescriptionsItem.js +140 -0
  34. package/lib/Dialog.js +598 -0
  35. package/lib/Divider.js +313 -0
  36. package/lib/Drawer.js +592 -0
  37. package/lib/Dropdown.js +856 -0
  38. package/lib/DropdownItem.js +316 -0
  39. package/lib/DropdownMenu.js +351 -0
  40. package/lib/Empty.js +730 -0
  41. package/lib/Footer.js +277 -0
  42. package/lib/Form.js +466 -0
  43. package/lib/FormItem.js +826 -0
  44. package/lib/Header.js +277 -0
  45. package/lib/Icon.js +265 -0
  46. package/lib/Image.js +1138 -0
  47. package/lib/InfiniteScroll.js +301 -0
  48. package/lib/Input.js +999 -0
  49. package/lib/InputNumber.js +1552 -0
  50. package/lib/Link.js +332 -0
  51. package/lib/Loading.js +631 -0
  52. package/lib/Main.js +264 -0
  53. package/lib/Menu.js +865 -0
  54. package/lib/MenuItem.js +818 -0
  55. package/lib/MenuItemGroup.js +308 -0
  56. package/lib/Message.js +548 -0
  57. package/lib/MessageBox.js +2134 -0
  58. package/lib/Notification.js +615 -0
  59. package/lib/Option.js +474 -0
  60. package/lib/OptionGroup.js +344 -0
  61. package/lib/PageHeader.js +319 -0
  62. package/lib/Pagination.js +4123 -0
  63. package/lib/Popconfirm.js +1025 -0
  64. package/lib/Popover.js +617 -0
  65. package/lib/Progress.js +595 -0
  66. package/lib/Radio.js +497 -0
  67. package/lib/RadioButton.js +463 -0
  68. package/lib/RadioGroup.js +391 -0
  69. package/lib/Rate.js +670 -0
  70. package/lib/Result.js +578 -0
  71. package/lib/Row.js +149 -0
  72. package/lib/Scrollbar.js +423 -0
  73. package/lib/Select.js +3368 -0
  74. package/lib/Skeleton.js +372 -0
  75. package/lib/SkeletonItem.js +342 -0
  76. package/lib/Slider.js +2854 -0
  77. package/lib/Spinner.js +301 -0
  78. package/lib/Statistic.js +533 -0
  79. package/lib/Step.js +522 -0
  80. package/lib/Steps.js +342 -0
  81. package/lib/Submenu.js +700 -0
  82. package/lib/Switch.js +554 -0
  83. package/lib/TabPane.js +332 -0
  84. package/lib/Table.js +6125 -0
  85. package/lib/TableColumn.js +1481 -0
  86. package/lib/Tabs.js +920 -0
  87. package/lib/Tag.js +304 -0
  88. package/lib/TimePicker.js +4059 -0
  89. package/lib/TimeSelect.js +2871 -0
  90. package/lib/Timeline.js +275 -0
  91. package/lib/TimelineItem.js +371 -0
  92. package/lib/Tooltip.js +425 -0
  93. package/lib/Transfer.js +2557 -0
  94. package/lib/Tree.js +2680 -0
  95. package/lib/Upload.js +1782 -0
  96. package/lib/directives/mousewheel.js +26 -0
  97. package/lib/directives/repeat-click.js +33 -0
  98. package/lib/element-ui.common.js +44768 -0
  99. package/lib/index.js +23 -1
  100. package/lib/locale/format.js +55 -0
  101. package/lib/locale/index.js +63 -0
  102. package/lib/locale/lang/zh-CN.js +126 -0
  103. package/lib/mixins/emitter.js +36 -0
  104. package/lib/mixins/focus.js +15 -0
  105. package/lib/mixins/locale.js +17 -0
  106. package/lib/mixins/migrating.js +69 -0
  107. package/lib/theme-chalk/alert.css +1 -1
  108. package/lib/theme-chalk/button.css +1 -1
  109. package/lib/theme-chalk/calendar.css +1 -1
  110. package/lib/theme-chalk/cascader-panel.css +1 -1
  111. package/lib/theme-chalk/cascader.css +1 -1
  112. package/lib/theme-chalk/checkbox.css +1 -1
  113. package/lib/theme-chalk/color-picker.css +1 -1
  114. package/lib/theme-chalk/date-picker.css +1 -1
  115. package/lib/theme-chalk/dropdown.css +1 -1
  116. package/lib/theme-chalk/icon.css +1 -1
  117. package/lib/theme-chalk/link.css +1 -1
  118. package/lib/theme-chalk/menu.css +1 -1
  119. package/lib/theme-chalk/message-box.css +1 -1
  120. package/lib/theme-chalk/message.css +1 -1
  121. package/lib/theme-chalk/pagination.css +1 -1
  122. package/lib/theme-chalk/reset.css +1 -1
  123. package/lib/theme-chalk/select-dropdown.css +1 -1
  124. package/lib/theme-chalk/select.css +1 -1
  125. package/lib/theme-chalk/table-column.css +1 -1
  126. package/lib/theme-chalk/table.css +1 -1
  127. package/lib/theme-chalk/tag.css +1 -1
  128. package/lib/theme-chalk/time-picker.css +1 -1
  129. package/lib/theme-chalk/transfer.css +1 -1
  130. package/lib/theme-chalk/tree.css +1 -1
  131. package/lib/transitions/collapse-transition.js +91 -0
  132. package/lib/umd/locale/zh-CN.js +142 -0
  133. package/lib/utils/after-leave.js +35 -0
  134. package/lib/utils/aria-dialog.js +104 -0
  135. package/lib/utils/aria-utils.js +126 -0
  136. package/lib/utils/clickoutside.js +79 -0
  137. package/lib/utils/date-util.js +310 -0
  138. package/lib/utils/date.js +369 -0
  139. package/lib/utils/dom.js +234 -0
  140. package/lib/utils/lodash.js +9421 -0
  141. package/lib/utils/menu/aria-menubar.js +24 -0
  142. package/lib/utils/menu/aria-menuitem.js +62 -0
  143. package/lib/utils/menu/aria-submenu.js +69 -0
  144. package/lib/utils/merge.js +21 -0
  145. package/lib/utils/popper.js +1261 -0
  146. package/lib/utils/popup/index.js +233 -0
  147. package/lib/utils/popup/popup-manager.js +205 -0
  148. package/lib/utils/resize-event.js +59 -0
  149. package/lib/utils/scroll-into-view.js +38 -0
  150. package/lib/utils/scrollbar-width.js +39 -0
  151. package/lib/utils/shared.js +12 -0
  152. package/lib/utils/types.js +52 -0
  153. package/lib/utils/util.js +272 -0
  154. package/lib/utils/vdom.js +13 -0
  155. package/lib/utils/vue-popper.js +202 -0
  156. package/package.json +135 -135
  157. package/packages/alert/index.js +8 -8
  158. package/packages/alert/src/main.vue +94 -94
  159. package/packages/aside/index.js +8 -8
  160. package/packages/aside/src/main.vue +20 -20
  161. package/packages/autocomplete/index.js +8 -8
  162. package/packages/autocomplete/src/autocomplete-suggestions.vue +76 -76
  163. package/packages/autocomplete/src/autocomplete.vue +285 -285
  164. package/packages/avatar/index.js +8 -8
  165. package/packages/avatar/src/main.vue +107 -107
  166. package/packages/backtop/index.js +8 -8
  167. package/packages/backtop/src/main.vue +110 -110
  168. package/packages/badge/index.js +8 -8
  169. package/packages/badge/src/main.vue +53 -53
  170. package/packages/breadcrumb/index.js +8 -8
  171. package/packages/breadcrumb/src/breadcrumb-item.vue +41 -41
  172. package/packages/breadcrumb/src/breadcrumb.vue +34 -34
  173. package/packages/breadcrumb-item/index.js +8 -8
  174. package/packages/button/index.js +8 -8
  175. package/packages/button/src/button-group.vue +10 -10
  176. package/packages/button/src/button.vue +78 -78
  177. package/packages/button-group/index.js +8 -8
  178. package/packages/calendar/index.js +8 -8
  179. package/packages/calendar/src/date-table.vue +200 -200
  180. package/packages/calendar/src/main.vue +280 -280
  181. package/packages/card/index.js +8 -8
  182. package/packages/card/src/main.vue +23 -23
  183. package/packages/carousel/index.js +8 -8
  184. package/packages/carousel/src/item.vue +138 -138
  185. package/packages/carousel/src/main.vue +315 -315
  186. package/packages/carousel-item/index.js +8 -8
  187. package/packages/cascader/index.js +8 -8
  188. package/packages/cascader/src/cascader.vue +663 -663
  189. package/packages/cascader-panel/index.js +8 -8
  190. package/packages/cascader-panel/src/cascader-menu.vue +138 -138
  191. package/packages/cascader-panel/src/cascader-node.vue +246 -246
  192. package/packages/cascader-panel/src/cascader-panel.vue +391 -391
  193. package/packages/cascader-panel/src/node.js +165 -165
  194. package/packages/cascader-panel/src/store.js +57 -57
  195. package/packages/checkbox/index.js +8 -8
  196. package/packages/checkbox/src/checkbox-button.vue +199 -199
  197. package/packages/checkbox/src/checkbox-group.vue +48 -48
  198. package/packages/checkbox/src/checkbox.vue +222 -222
  199. package/packages/checkbox-button/index.js +8 -8
  200. package/packages/checkbox-group/index.js +8 -8
  201. package/packages/col/index.js +9 -9
  202. package/packages/col/src/col.js +71 -71
  203. package/packages/collapse/index.js +9 -9
  204. package/packages/collapse/src/collapse-item.vue +114 -114
  205. package/packages/collapse/src/collapse.vue +73 -73
  206. package/packages/collapse-item/index.js +8 -8
  207. package/packages/color-picker/index.js +8 -8
  208. package/packages/color-picker/src/color.js +317 -317
  209. package/packages/color-picker/src/components/alpha-slider.vue +132 -132
  210. package/packages/color-picker/src/components/hue-slider.vue +123 -123
  211. package/packages/color-picker/src/components/picker-dropdown.vue +121 -121
  212. package/packages/color-picker/src/components/predefine.vue +61 -61
  213. package/packages/color-picker/src/components/sv-panel.vue +100 -100
  214. package/packages/color-picker/src/draggable.js +36 -36
  215. package/packages/color-picker/src/main.vue +188 -188
  216. package/packages/container/index.js +8 -8
  217. package/packages/container/src/main.vue +33 -33
  218. package/packages/cy/selectDisplayInput/index.js +8 -8
  219. package/packages/cy/selectDisplayInput/src/main.vue +75 -75
  220. package/packages/cy/subTitle/index.js +7 -7
  221. package/packages/cy/subTitle/src/main.vue +36 -36
  222. package/packages/cy/tabDialog/index.js +23 -23
  223. package/packages/cy/tabDialog/src/dialog/drag.js +63 -63
  224. package/packages/cy/tabDialog/src/dialog/dragHeight.js +34 -34
  225. package/packages/cy/tabDialog/src/dialog/dragWidth.js +30 -30
  226. package/packages/cy/tabDialog/src/main.vue +277 -277
  227. package/packages/cy/treeSelect/index.js +7 -7
  228. package/packages/cy/treeSelect/src/main.vue +290 -290
  229. package/packages/date-picker/index.js +8 -8
  230. package/packages/date-picker/src/basic/date-table.vue +441 -441
  231. package/packages/date-picker/src/basic/month-table.vue +268 -268
  232. package/packages/date-picker/src/basic/time-spinner.vue +304 -304
  233. package/packages/date-picker/src/basic/year-table.vue +111 -111
  234. package/packages/date-picker/src/panel/date-range.vue +680 -680
  235. package/packages/date-picker/src/panel/date.vue +609 -609
  236. package/packages/date-picker/src/panel/month-range.vue +289 -289
  237. package/packages/date-picker/src/panel/time-range.vue +248 -248
  238. package/packages/date-picker/src/panel/time-select.vue +178 -178
  239. package/packages/date-picker/src/panel/time.vue +186 -186
  240. package/packages/date-picker/src/picker/date-picker.js +43 -43
  241. package/packages/date-picker/src/picker/time-picker.js +39 -39
  242. package/packages/date-picker/src/picker/time-select.js +21 -21
  243. package/packages/date-picker/src/picker.vue +956 -956
  244. package/packages/descriptions/index.js +8 -8
  245. package/packages/descriptions/src/descriptions-item.js +30 -30
  246. package/packages/descriptions/src/descriptions-row.js +116 -116
  247. package/packages/descriptions/src/index.js +180 -180
  248. package/packages/descriptions-item/index.js +8 -8
  249. package/packages/dialog/index.js +8 -8
  250. package/packages/dialog/src/component.vue +212 -212
  251. package/packages/divider/index.js +8 -8
  252. package/packages/divider/src/main.vue +37 -37
  253. package/packages/drawer/index.js +8 -8
  254. package/packages/drawer/src/main.vue +205 -205
  255. package/packages/dropdown/index.js +8 -8
  256. package/packages/dropdown/src/dropdown-item.vue +37 -37
  257. package/packages/dropdown/src/dropdown-menu.vue +63 -63
  258. package/packages/dropdown/src/dropdown.vue +293 -293
  259. package/packages/dropdown-item/index.js +8 -8
  260. package/packages/dropdown-menu/index.js +8 -8
  261. package/packages/empty/index.js +7 -7
  262. package/packages/empty/src/img-empty.vue +132 -132
  263. package/packages/empty/src/index.vue +50 -50
  264. package/packages/footer/index.js +8 -8
  265. package/packages/footer/src/main.vue +20 -20
  266. package/packages/form/index.js +8 -8
  267. package/packages/form/src/form-item.vue +324 -324
  268. package/packages/form/src/form.vue +182 -182
  269. package/packages/form/src/label-wrap.vue +78 -78
  270. package/packages/form-item/index.js +8 -8
  271. package/packages/header/index.js +8 -8
  272. package/packages/header/src/main.vue +20 -20
  273. package/packages/icon/index.js +8 -8
  274. package/packages/icon/src/icon.vue +13 -13
  275. package/packages/image/index.js +8 -8
  276. package/packages/image/src/image-viewer.vue +330 -330
  277. package/packages/image/src/main.vue +249 -249
  278. package/packages/infinite-scroll/index.js +8 -8
  279. package/packages/infinite-scroll/src/main.js +149 -149
  280. package/packages/input/index.js +8 -8
  281. package/packages/input/src/calcTextareaHeight.js +104 -104
  282. package/packages/input/src/input.vue +440 -440
  283. package/packages/input-number/index.js +8 -8
  284. package/packages/input-number/src/input-number.vue +286 -286
  285. package/packages/link/index.js +8 -8
  286. package/packages/link/src/main.vue +53 -53
  287. package/packages/loading/index.js +11 -11
  288. package/packages/loading/src/directive.js +133 -133
  289. package/packages/loading/src/index.js +106 -106
  290. package/packages/loading/src/loading.vue +41 -41
  291. package/packages/main/index.js +8 -8
  292. package/packages/main/src/main.vue +12 -12
  293. package/packages/menu/index.js +8 -8
  294. package/packages/menu/src/menu-item-group.vue +45 -45
  295. package/packages/menu/src/menu-item.vue +112 -112
  296. package/packages/menu/src/menu-mixin.js +44 -44
  297. package/packages/menu/src/menu.vue +325 -325
  298. package/packages/menu/src/submenu.vue +348 -348
  299. package/packages/menu-item/index.js +8 -8
  300. package/packages/menu-item-group/index.js +8 -8
  301. package/packages/message/index.js +2 -2
  302. package/packages/message/src/main.js +91 -91
  303. package/packages/message/src/main.vue +117 -117
  304. package/packages/message-box/index.js +2 -2
  305. package/packages/message-box/src/main.js +216 -216
  306. package/packages/message-box/src/main.vue +332 -332
  307. package/packages/notification/index.js +2 -2
  308. package/packages/notification/src/main.js +94 -94
  309. package/packages/notification/src/main.vue +152 -152
  310. package/packages/option/index.js +8 -8
  311. package/packages/option-group/index.js +8 -8
  312. package/packages/page-header/index.js +8 -8
  313. package/packages/page-header/src/main.vue +30 -30
  314. package/packages/pagination/index.js +8 -8
  315. package/packages/pagination/src/pager.vue +163 -163
  316. package/packages/pagination/src/pagination.js +386 -386
  317. package/packages/popconfirm/index.js +8 -8
  318. package/packages/popconfirm/src/main.vue +104 -104
  319. package/packages/popover/index.js +14 -14
  320. package/packages/popover/src/directive.js +20 -20
  321. package/packages/popover/src/main.vue +237 -237
  322. package/packages/progress/index.js +8 -8
  323. package/packages/progress/src/progress.vue +235 -235
  324. package/packages/radio/index.js +8 -8
  325. package/packages/radio/src/radio-button.vue +115 -115
  326. package/packages/radio/src/radio-group.vue +113 -113
  327. package/packages/radio/src/radio.vue +134 -134
  328. package/packages/radio-button/index.js +8 -8
  329. package/packages/radio-group/index.js +8 -8
  330. package/packages/rate/index.js +8 -8
  331. package/packages/rate/src/main.vue +348 -348
  332. package/packages/result/index.js +8 -8
  333. package/packages/result/src/icon-error.vue +13 -13
  334. package/packages/result/src/icon-info.vue +13 -13
  335. package/packages/result/src/icon-success.vue +13 -13
  336. package/packages/result/src/icon-warning.vue +13 -13
  337. package/packages/result/src/index.vue +65 -65
  338. package/packages/row/index.js +9 -9
  339. package/packages/row/src/row.js +44 -44
  340. package/packages/scrollbar/index.js +8 -8
  341. package/packages/scrollbar/src/bar.js +92 -92
  342. package/packages/scrollbar/src/main.js +130 -130
  343. package/packages/scrollbar/src/util.js +34 -34
  344. package/packages/select/index.js +8 -8
  345. package/packages/select/src/navigation-mixin.js +54 -54
  346. package/packages/select/src/option-group.vue +60 -60
  347. package/packages/select/src/option.vue +168 -168
  348. package/packages/select/src/select-dropdown.vue +74 -74
  349. package/packages/select/src/select.vue +900 -900
  350. package/packages/skeleton/index.js +8 -8
  351. package/packages/skeleton/src/img-placeholder.vue +16 -16
  352. package/packages/skeleton/src/index.vue +76 -76
  353. package/packages/skeleton/src/item.vue +22 -22
  354. package/packages/skeleton-item/index.js +8 -8
  355. package/packages/slider/index.js +8 -8
  356. package/packages/slider/src/button.vue +238 -238
  357. package/packages/slider/src/main.vue +427 -427
  358. package/packages/slider/src/marker.js +18 -18
  359. package/packages/spinner/index.js +8 -8
  360. package/packages/spinner/src/spinner.vue +27 -27
  361. package/packages/statistic/index.js +8 -8
  362. package/packages/statistic/src/main.vue +203 -203
  363. package/packages/step/index.js +8 -8
  364. package/packages/steps/README.md +69 -69
  365. package/packages/steps/index.js +8 -8
  366. package/packages/steps/src/step.vue +184 -184
  367. package/packages/steps/src/steps.vue +68 -68
  368. package/packages/submenu/index.js +8 -8
  369. package/packages/switch/index.js +9 -9
  370. package/packages/switch/src/component.vue +174 -174
  371. package/packages/tab-pane/index.js +8 -8
  372. package/packages/table/index.js +8 -8
  373. package/packages/table/src/config.js +124 -124
  374. package/packages/table/src/dropdown.js +28 -28
  375. package/packages/table/src/filter-panel.vue +194 -194
  376. package/packages/table/src/layout-observer.js +68 -68
  377. package/packages/table/src/store/current.js +76 -76
  378. package/packages/table/src/store/expand.js +65 -65
  379. package/packages/table/src/store/helper.js +41 -41
  380. package/packages/table/src/store/index.js +147 -147
  381. package/packages/table/src/store/tree.js +209 -209
  382. package/packages/table/src/store/watcher.js +381 -381
  383. package/packages/table/src/table-body.js +469 -469
  384. package/packages/table/src/table-column.js +319 -319
  385. package/packages/table/src/table-footer.js +153 -153
  386. package/packages/table/src/table-header.js +511 -511
  387. package/packages/table/src/table-layout.js +249 -249
  388. package/packages/table/src/table-row.js +101 -101
  389. package/packages/table/src/table.vue +712 -712
  390. package/packages/table/src/util.js +273 -273
  391. package/packages/table-column/index.js +8 -8
  392. package/packages/tabs/index.js +8 -8
  393. package/packages/tabs/src/tab-bar.vue +57 -57
  394. package/packages/tabs/src/tab-nav.vue +294 -294
  395. package/packages/tabs/src/tab-pane.vue +56 -56
  396. package/packages/tabs/src/tabs.vue +191 -191
  397. package/packages/tag/index.js +8 -8
  398. package/packages/tag/src/tag.vue +58 -58
  399. package/packages/theme-chalk/README.md +33 -33
  400. package/packages/theme-chalk/gulpfile.js +24 -24
  401. package/packages/theme-chalk/package.json +35 -35
  402. package/packages/theme-chalk/src/alert.scss +147 -147
  403. package/packages/theme-chalk/src/aside.scss +7 -7
  404. package/packages/theme-chalk/src/autocomplete.scss +80 -80
  405. package/packages/theme-chalk/src/avatar.scss +51 -51
  406. package/packages/theme-chalk/src/backtop.scss +22 -22
  407. package/packages/theme-chalk/src/badge.scss +57 -57
  408. package/packages/theme-chalk/src/base.scss +2 -2
  409. package/packages/theme-chalk/src/breadcrumb.scss +55 -55
  410. package/packages/theme-chalk/src/button.scss +262 -262
  411. package/packages/theme-chalk/src/calendar.scss +79 -79
  412. package/packages/theme-chalk/src/card.scss +32 -32
  413. package/packages/theme-chalk/src/carousel-item.scss +49 -49
  414. package/packages/theme-chalk/src/carousel.scss +161 -161
  415. package/packages/theme-chalk/src/cascader-panel.scss +120 -120
  416. package/packages/theme-chalk/src/cascader.scss +182 -182
  417. package/packages/theme-chalk/src/checkbox.scss +359 -359
  418. package/packages/theme-chalk/src/col.scss +155 -155
  419. package/packages/theme-chalk/src/collapse.scss +63 -63
  420. package/packages/theme-chalk/src/color-picker.scss +384 -384
  421. package/packages/theme-chalk/src/common/popup.scss +42 -42
  422. package/packages/theme-chalk/src/common/transition.scss +98 -98
  423. package/packages/theme-chalk/src/common/var.scss +1028 -1028
  424. package/packages/theme-chalk/src/container.scss +14 -14
  425. package/packages/theme-chalk/src/cy/base.scss +3 -3
  426. package/packages/theme-chalk/src/cy/index.scss +5 -5
  427. package/packages/theme-chalk/src/cy/selectDisplayInput.scss +75 -75
  428. package/packages/theme-chalk/src/cy/subTitle.scss +26 -26
  429. package/packages/theme-chalk/src/cy/tabDialog.scss +43 -43
  430. package/packages/theme-chalk/src/cy/treeSelect.scss +131 -131
  431. package/packages/theme-chalk/src/date-picker/date-picker.scss +97 -97
  432. package/packages/theme-chalk/src/date-picker/date-range-picker.scss +101 -101
  433. package/packages/theme-chalk/src/date-picker/date-table.scss +151 -151
  434. package/packages/theme-chalk/src/date-picker/month-table.scss +82 -82
  435. package/packages/theme-chalk/src/date-picker/picker-panel.scss +117 -117
  436. package/packages/theme-chalk/src/date-picker/picker.scss +197 -197
  437. package/packages/theme-chalk/src/date-picker/time-picker.scss +85 -85
  438. package/packages/theme-chalk/src/date-picker/time-range-picker.scss +31 -31
  439. package/packages/theme-chalk/src/date-picker/time-spinner.scss +110 -110
  440. package/packages/theme-chalk/src/date-picker/year-table.scss +51 -51
  441. package/packages/theme-chalk/src/date-picker.scss +11 -11
  442. package/packages/theme-chalk/src/descriptions-item.scss +42 -42
  443. package/packages/theme-chalk/src/descriptions.scss +111 -111
  444. package/packages/theme-chalk/src/dialog.scss +123 -123
  445. package/packages/theme-chalk/src/display.scss +12 -12
  446. package/packages/theme-chalk/src/divider.scss +46 -46
  447. package/packages/theme-chalk/src/drawer.scss +219 -219
  448. package/packages/theme-chalk/src/dropdown.scss +182 -182
  449. package/packages/theme-chalk/src/empty.scss +45 -45
  450. package/packages/theme-chalk/src/footer.scss +8 -8
  451. package/packages/theme-chalk/src/form.scss +167 -167
  452. package/packages/theme-chalk/src/header.scss +8 -8
  453. package/packages/theme-chalk/src/icon.scss +1167 -1167
  454. package/packages/theme-chalk/src/image.scss +179 -179
  455. package/packages/theme-chalk/src/input-number.scss +261 -261
  456. package/packages/theme-chalk/src/input.scss +360 -360
  457. package/packages/theme-chalk/src/link.scss +81 -81
  458. package/packages/theme-chalk/src/loading.scss +96 -96
  459. package/packages/theme-chalk/src/main.scss +12 -12
  460. package/packages/theme-chalk/src/menu.scss +289 -289
  461. package/packages/theme-chalk/src/message-box.scss +226 -226
  462. package/packages/theme-chalk/src/message.scss +120 -120
  463. package/packages/theme-chalk/src/mixins/_button.scss +81 -81
  464. package/packages/theme-chalk/src/mixins/config.scss +4 -4
  465. package/packages/theme-chalk/src/mixins/function.scss +44 -44
  466. package/packages/theme-chalk/src/mixins/mixins.scss +191 -191
  467. package/packages/theme-chalk/src/mixins/utils.scss +38 -38
  468. package/packages/theme-chalk/src/notification.scss +99 -99
  469. package/packages/theme-chalk/src/option-group.scss +42 -42
  470. package/packages/theme-chalk/src/option.scss +36 -36
  471. package/packages/theme-chalk/src/page-header.scss +41 -41
  472. package/packages/theme-chalk/src/pagination.scss +295 -295
  473. package/packages/theme-chalk/src/popconfirm.scss +16 -16
  474. package/packages/theme-chalk/src/popover.scss +40 -40
  475. package/packages/theme-chalk/src/popper.scss +100 -100
  476. package/packages/theme-chalk/src/progress.scss +141 -141
  477. package/packages/theme-chalk/src/radio-button.scss +113 -113
  478. package/packages/theme-chalk/src/radio-group.scss +9 -9
  479. package/packages/theme-chalk/src/radio.scss +199 -199
  480. package/packages/theme-chalk/src/rate.scss +49 -49
  481. package/packages/theme-chalk/src/reset.scss +79 -79
  482. package/packages/theme-chalk/src/result.scss +61 -61
  483. package/packages/theme-chalk/src/row.scss +43 -43
  484. package/packages/theme-chalk/src/scrollbar.scss +72 -72
  485. package/packages/theme-chalk/src/select-dropdown.scss +62 -62
  486. package/packages/theme-chalk/src/select.scss +152 -152
  487. package/packages/theme-chalk/src/skeleton-item.scss +84 -84
  488. package/packages/theme-chalk/src/skeleton.scss +40 -40
  489. package/packages/theme-chalk/src/slider.scss +250 -250
  490. package/packages/theme-chalk/src/spinner.scss +44 -44
  491. package/packages/theme-chalk/src/statistic.scss +38 -38
  492. package/packages/theme-chalk/src/step.scss +317 -317
  493. package/packages/theme-chalk/src/steps.scss +20 -20
  494. package/packages/theme-chalk/src/switch.scss +116 -116
  495. package/packages/theme-chalk/src/table-column.scss +96 -96
  496. package/packages/theme-chalk/src/table.scss +564 -564
  497. package/packages/theme-chalk/src/tabs.scss +602 -602
  498. package/packages/theme-chalk/src/tag.scss +163 -163
  499. package/packages/theme-chalk/src/time-picker.scss +8 -8
  500. package/packages/theme-chalk/src/time-select.scss +37 -37
  501. package/packages/theme-chalk/src/timeline-item.scss +86 -86
  502. package/packages/theme-chalk/src/timeline.scss +14 -14
  503. package/packages/theme-chalk/src/tooltip.scss +141 -141
  504. package/packages/theme-chalk/src/transfer.scss +227 -227
  505. package/packages/theme-chalk/src/tree.scss +123 -123
  506. package/packages/theme-chalk/src/upload.scss +603 -603
  507. package/packages/time-picker/index.js +8 -8
  508. package/packages/time-select/index.js +8 -8
  509. package/packages/timeline/index.js +8 -8
  510. package/packages/timeline/src/item.vue +73 -73
  511. package/packages/timeline/src/main.vue +33 -33
  512. package/packages/timeline-item/index.js +8 -8
  513. package/packages/tooltip/index.js +8 -8
  514. package/packages/tooltip/src/main.js +242 -242
  515. package/packages/transfer/index.js +8 -8
  516. package/packages/transfer/src/main.vue +231 -231
  517. package/packages/transfer/src/transfer-panel.vue +251 -251
  518. package/packages/tree/index.js +8 -8
  519. package/packages/tree/src/model/node.js +484 -484
  520. package/packages/tree/src/model/tree-store.js +340 -340
  521. package/packages/tree/src/model/util.js +27 -27
  522. package/packages/tree/src/tree-node.vue +279 -279
  523. package/packages/tree/src/tree.vue +496 -496
  524. package/packages/upload/index.js +8 -8
  525. package/packages/upload/src/ajax.js +85 -85
  526. package/packages/upload/src/index.vue +338 -338
  527. package/packages/upload/src/upload-dragger.vue +70 -70
  528. package/packages/upload/src/upload-list.vue +105 -105
  529. package/packages/upload/src/upload.vue +211 -211
  530. package/src/directives/mousewheel.js +18 -18
  531. package/src/directives/repeat-click.js +26 -26
  532. package/src/index.js +1 -1
  533. package/src/locale/format.js +45 -45
  534. package/src/locale/index.js +48 -48
  535. package/src/locale/lang/zh-CN.js +123 -123
  536. package/src/mixins/emitter.js +33 -33
  537. package/src/mixins/focus.js +9 -9
  538. package/src/mixins/locale.js +9 -9
  539. package/src/mixins/migrating.js +54 -54
  540. package/src/transitions/collapse-transition.js +77 -77
  541. package/src/utils/after-leave.js +27 -27
  542. package/src/utils/aria-dialog.js +90 -90
  543. package/src/utils/aria-utils.js +122 -122
  544. package/src/utils/clickoutside.js +76 -76
  545. package/src/utils/date-util.js +282 -282
  546. package/src/utils/date.js +368 -368
  547. package/src/utils/dom.js +227 -227
  548. package/src/utils/lodash.js +18075 -18075
  549. package/src/utils/menu/aria-menubar.js +14 -14
  550. package/src/utils/menu/aria-menuitem.js +49 -49
  551. package/src/utils/menu/aria-submenu.js +59 -59
  552. package/src/utils/merge.js +15 -15
  553. package/src/utils/popper.js +1276 -1276
  554. package/src/utils/popup/index.js +218 -218
  555. package/src/utils/popup/popup-manager.js +194 -194
  556. package/src/utils/resize-event.js +36 -36
  557. package/src/utils/scroll-into-view.js +27 -27
  558. package/src/utils/scrollbar-width.js +29 -29
  559. package/src/utils/shared.js +7 -7
  560. package/src/utils/types.js +40 -40
  561. package/src/utils/util.js +245 -245
  562. package/src/utils/vdom.js +5 -5
  563. package/src/utils/vue-popper.js +198 -198
  564. package/types/alert.d.ts +31 -31
  565. package/types/aside.d.ts +7 -7
  566. package/types/autocomplete.d.ts +78 -78
  567. package/types/avatar.d.ts +20 -20
  568. package/types/backtop.d.ts +16 -16
  569. package/types/badge.d.ts +16 -16
  570. package/types/breadcrumb-item.d.ts +10 -10
  571. package/types/breadcrumb.d.ts +10 -10
  572. package/types/button-group.d.ts +4 -4
  573. package/types/button.d.ts +37 -37
  574. package/types/calendar.d.ts +15 -15
  575. package/types/card.d.ts +26 -26
  576. package/types/carousel-item.d.ts +10 -10
  577. package/types/carousel.d.ts +57 -57
  578. package/types/cascader-panel.d.ts +72 -72
  579. package/types/cascader.d.ts +65 -65
  580. package/types/checkbox-button.d.ts +22 -22
  581. package/types/checkbox-group.d.ts +22 -22
  582. package/types/checkbox.d.ts +34 -34
  583. package/types/col.d.ts +46 -46
  584. package/types/collapse-item.d.ts +26 -26
  585. package/types/collapse.d.ts +10 -10
  586. package/types/color-picker.d.ts +21 -21
  587. package/types/component.d.ts +13 -13
  588. package/types/container.d.ts +7 -7
  589. package/types/cy/cy-element-ui.d.ts +4 -4
  590. package/types/cy/select-display-input.d.ts +4 -16
  591. package/types/cy/sub-title.d.ts +4 -7
  592. package/types/cy/tab-dialog.d.ts +5 -49
  593. package/types/cy/tree-select.d.ts +7 -44
  594. package/types/date-picker.d.ts +124 -124
  595. package/types/descriptions-item.d.ts +37 -37
  596. package/types/descriptions.d.ts +52 -52
  597. package/types/dialog.d.ts +62 -62
  598. package/types/divider.d.ts +12 -12
  599. package/types/drawer.d.ts +63 -63
  600. package/types/dropdown-item.d.ts +16 -16
  601. package/types/dropdown-menu.d.ts +4 -4
  602. package/types/dropdown.d.ts +38 -38
  603. package/types/empty.d.ts +31 -31
  604. package/types/footer.d.ts +7 -7
  605. package/types/form-item.d.ts +37 -37
  606. package/types/form.d.ts +82 -82
  607. package/types/header.d.ts +7 -7
  608. package/types/icon.d.ts +7 -7
  609. package/types/image.d.ts +43 -43
  610. package/types/index.d.ts +5 -5
  611. package/types/infinite-scroll.d.ts +5 -5
  612. package/types/input-number.d.ts +47 -47
  613. package/types/input.d.ts +107 -107
  614. package/types/link.d.ts +25 -25
  615. package/types/loading.d.ts +62 -62
  616. package/types/main.d.ts +4 -4
  617. package/types/menu-item-group.d.ts +7 -7
  618. package/types/menu-item.d.ts +10 -10
  619. package/types/menu.d.ts +46 -46
  620. package/types/message-box.d.ts +176 -176
  621. package/types/message.d.ts +90 -90
  622. package/types/notification.d.ts +84 -84
  623. package/types/option-group.d.ts +10 -10
  624. package/types/option.d.ts +13 -13
  625. package/types/page-header.d.ts +10 -10
  626. package/types/pagination.d.ts +43 -43
  627. package/types/popconfirm.d.ts +29 -29
  628. package/types/popover.d.ts +71 -71
  629. package/types/progress.d.ts +37 -37
  630. package/types/radio-button.d.ts +16 -16
  631. package/types/radio-group.d.ts +18 -18
  632. package/types/radio.d.ts +19 -19
  633. package/types/rate.d.ts +64 -64
  634. package/types/result.d.ts +33 -33
  635. package/types/row.d.ts +25 -25
  636. package/types/select.d.ts +90 -90
  637. package/types/skeleton-item.d.ts +7 -7
  638. package/types/skeleton.d.ts +33 -33
  639. package/types/slider.d.ts +68 -68
  640. package/types/spinner.d.ts +16 -16
  641. package/types/statistic.d.ts +37 -37
  642. package/types/step.d.ts +34 -34
  643. package/types/steps.d.ts +28 -28
  644. package/types/submenu.d.ts +22 -22
  645. package/types/switch.d.ts +43 -43
  646. package/types/tab-pane.d.ts +19 -19
  647. package/types/table-column.d.ts +117 -117
  648. package/types/table.d.ts +177 -177
  649. package/types/tabs.d.ts +31 -31
  650. package/types/tag.d.ts +28 -28
  651. package/types/time-picker.d.ts +63 -63
  652. package/types/time-select.d.ts +56 -56
  653. package/types/timeline-item.d.ts +20 -20
  654. package/types/timeline.d.ts +6 -6
  655. package/types/tooltip.d.ts +52 -52
  656. package/types/transfer.d.ts +73 -73
  657. package/types/tree.d.ts +266 -266
  658. package/types/upload.d.ts +124 -124
  659. package/web-types.json +4195 -4195
  660. package/types/cy/cy-select-display-input.d.ts +0 -7
  661. package/types/cy/cy-sub-title.d.ts +0 -7
  662. package/types/cy/cy-tab-dialog.d.ts +0 -7
  663. package/types/cy/cy-tree-select.d.ts +0 -7
@@ -0,0 +1,2885 @@
1
+ module.exports =
2
+ /******/ (function(modules) { // webpackBootstrap
3
+ /******/ // The module cache
4
+ /******/ var installedModules = {};
5
+ /******/
6
+ /******/ // The require function
7
+ /******/ function __webpack_require__(moduleId) {
8
+ /******/
9
+ /******/ // Check if module is in cache
10
+ /******/ if(installedModules[moduleId]) {
11
+ /******/ return installedModules[moduleId].exports;
12
+ /******/ }
13
+ /******/ // Create a new module (and put it into the cache)
14
+ /******/ var module = installedModules[moduleId] = {
15
+ /******/ i: moduleId,
16
+ /******/ l: false,
17
+ /******/ exports: {}
18
+ /******/ };
19
+ /******/
20
+ /******/ // Execute the module function
21
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
+ /******/
23
+ /******/ // Flag the module as loaded
24
+ /******/ module.l = true;
25
+ /******/
26
+ /******/ // Return the exports of the module
27
+ /******/ return module.exports;
28
+ /******/ }
29
+ /******/
30
+ /******/
31
+ /******/ // expose the modules object (__webpack_modules__)
32
+ /******/ __webpack_require__.m = modules;
33
+ /******/
34
+ /******/ // expose the module cache
35
+ /******/ __webpack_require__.c = installedModules;
36
+ /******/
37
+ /******/ // define getter function for harmony exports
38
+ /******/ __webpack_require__.d = function(exports, name, getter) {
39
+ /******/ if(!__webpack_require__.o(exports, name)) {
40
+ /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
+ /******/ }
42
+ /******/ };
43
+ /******/
44
+ /******/ // define __esModule on exports
45
+ /******/ __webpack_require__.r = function(exports) {
46
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
+ /******/ }
49
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
+ /******/ };
51
+ /******/
52
+ /******/ // create a fake namespace object
53
+ /******/ // mode & 1: value is a module id, require it
54
+ /******/ // mode & 2: merge all properties of value into the ns
55
+ /******/ // mode & 4: return value when already ns object
56
+ /******/ // mode & 8|1: behave like require
57
+ /******/ __webpack_require__.t = function(value, mode) {
58
+ /******/ if(mode & 1) value = __webpack_require__(value);
59
+ /******/ if(mode & 8) return value;
60
+ /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
+ /******/ var ns = Object.create(null);
62
+ /******/ __webpack_require__.r(ns);
63
+ /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
+ /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
+ /******/ return ns;
66
+ /******/ };
67
+ /******/
68
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
69
+ /******/ __webpack_require__.n = function(module) {
70
+ /******/ var getter = module && module.__esModule ?
71
+ /******/ function getDefault() { return module['default']; } :
72
+ /******/ function getModuleExports() { return module; };
73
+ /******/ __webpack_require__.d(getter, 'a', getter);
74
+ /******/ return getter;
75
+ /******/ };
76
+ /******/
77
+ /******/ // Object.prototype.hasOwnProperty.call
78
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
+ /******/
80
+ /******/ // __webpack_public_path__
81
+ /******/ __webpack_require__.p = "/dist/";
82
+ /******/
83
+ /******/
84
+ /******/ // Load entry module and return exports
85
+ /******/ return __webpack_require__(__webpack_require__.s = 56);
86
+ /******/ })
87
+ /************************************************************************/
88
+ /******/ ({
89
+
90
+ /***/ 0:
91
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
+
93
+ "use strict";
94
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
+ /* globals __VUE_SSR_CONTEXT__ */
96
+
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.
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
114
+
115
+ // render functions
116
+ if (render) {
117
+ options.render = render
118
+ options.staticRenderFns = staticRenderFns
119
+ options._compiled = true
120
+ }
121
+
122
+ // functional template
123
+ if (functionalTemplate) {
124
+ options.functional = true
125
+ }
126
+
127
+ // scopedId
128
+ if (scopeId) {
129
+ options._scopeId = 'data-v-' + scopeId
130
+ }
131
+
132
+ var hook
133
+ if (moduleIdentifier) {
134
+ // server build
135
+ hook = function (context) {
136
+ // 2.3 injection
137
+ context =
138
+ context || // cached call
139
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
140
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
141
+ // 2.2 with runInNewContext: true
142
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
143
+ context = __VUE_SSR_CONTEXT__
144
+ }
145
+ // inject component styles
146
+ if (injectStyles) {
147
+ injectStyles.call(this, context)
148
+ }
149
+ // register component module identifier for async chunk inferrence
150
+ if (context && context._registeredComponents) {
151
+ context._registeredComponents.add(moduleIdentifier)
152
+ }
153
+ }
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
166
+ }
167
+
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
+ }
179
+ } else {
180
+ // inject component registration as beforeCreate hook
181
+ var existing = options.beforeCreate
182
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
183
+ }
184
+ }
185
+
186
+ return {
187
+ exports: scriptExports,
188
+ options: options
189
+ }
190
+ }
191
+
192
+
193
+ /***/ }),
194
+
195
+ /***/ 11:
196
+ /***/ (function(module, exports) {
197
+
198
+ module.exports = require("element-ui/lib/utils/shared");
199
+
200
+ /***/ }),
201
+
202
+ /***/ 13:
203
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
204
+
205
+ "use strict";
206
+ // ESM COMPAT FLAG
207
+ __webpack_require__.r(__webpack_exports__);
208
+
209
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=template&id=048a9cde
210
+ var render = function () {
211
+ var _vm = this
212
+ var _h = _vm.$createElement
213
+ var _c = _vm._self._c || _h
214
+ return _c(
215
+ "div",
216
+ {
217
+ class: [
218
+ _vm.type === "textarea" ? "el-textarea" : "el-input",
219
+ _vm.inputSize ? "el-input--" + _vm.inputSize : "",
220
+ {
221
+ "is-disabled": _vm.inputDisabled,
222
+ "is-exceed": _vm.inputExceed,
223
+ "el-input-group": _vm.$slots.prepend || _vm.$slots.append,
224
+ "el-input-group--append": _vm.$slots.append,
225
+ "el-input-group--prepend": _vm.$slots.prepend,
226
+ "el-input--prefix": _vm.$slots.prefix || _vm.prefixIcon,
227
+ "el-input--suffix":
228
+ _vm.$slots.suffix ||
229
+ _vm.suffixIcon ||
230
+ _vm.clearable ||
231
+ _vm.showPassword,
232
+ },
233
+ ],
234
+ on: {
235
+ mouseenter: function ($event) {
236
+ _vm.hovering = true
237
+ },
238
+ mouseleave: function ($event) {
239
+ _vm.hovering = false
240
+ },
241
+ },
242
+ },
243
+ [
244
+ _vm.type !== "textarea"
245
+ ? [
246
+ _vm.$slots.prepend
247
+ ? _c(
248
+ "div",
249
+ { staticClass: "el-input-group__prepend" },
250
+ [_vm._t("prepend")],
251
+ 2
252
+ )
253
+ : _vm._e(),
254
+ _vm.type !== "textarea"
255
+ ? _c(
256
+ "input",
257
+ _vm._b(
258
+ {
259
+ ref: "input",
260
+ staticClass: "el-input__inner",
261
+ attrs: {
262
+ tabindex: _vm.tabindex,
263
+ type: _vm.showPassword
264
+ ? _vm.passwordVisible
265
+ ? "text"
266
+ : "password"
267
+ : _vm.type,
268
+ disabled: _vm.inputDisabled,
269
+ readonly: _vm.readonly,
270
+ autocomplete: _vm.autoComplete || _vm.autocomplete,
271
+ "aria-label": _vm.label,
272
+ },
273
+ on: {
274
+ compositionstart: _vm.handleCompositionStart,
275
+ compositionupdate: _vm.handleCompositionUpdate,
276
+ compositionend: _vm.handleCompositionEnd,
277
+ input: _vm.handleInput,
278
+ focus: _vm.handleFocus,
279
+ blur: _vm.handleBlur,
280
+ change: _vm.handleChange,
281
+ },
282
+ },
283
+ "input",
284
+ _vm.$attrs,
285
+ false
286
+ )
287
+ )
288
+ : _vm._e(),
289
+ _vm.$slots.prefix || _vm.prefixIcon
290
+ ? _c(
291
+ "span",
292
+ { staticClass: "el-input__prefix" },
293
+ [
294
+ _vm._t("prefix"),
295
+ _vm.prefixIcon
296
+ ? _c("i", {
297
+ staticClass: "el-input__icon",
298
+ class: _vm.prefixIcon,
299
+ })
300
+ : _vm._e(),
301
+ ],
302
+ 2
303
+ )
304
+ : _vm._e(),
305
+ _vm.getSuffixVisible()
306
+ ? _c("span", { staticClass: "el-input__suffix" }, [
307
+ _c(
308
+ "span",
309
+ { staticClass: "el-input__suffix-inner" },
310
+ [
311
+ !_vm.showClear ||
312
+ !_vm.showPwdVisible ||
313
+ !_vm.isWordLimitVisible
314
+ ? [
315
+ _vm._t("suffix"),
316
+ _vm.suffixIcon
317
+ ? _c("i", {
318
+ staticClass: "el-input__icon",
319
+ class: _vm.suffixIcon,
320
+ })
321
+ : _vm._e(),
322
+ ]
323
+ : _vm._e(),
324
+ _vm.showClear
325
+ ? _c("i", {
326
+ staticClass:
327
+ "el-input__icon el-icon-circle-close el-input__clear",
328
+ on: {
329
+ mousedown: function ($event) {
330
+ $event.preventDefault()
331
+ },
332
+ click: _vm.clear,
333
+ },
334
+ })
335
+ : _vm._e(),
336
+ _vm.showPwdVisible
337
+ ? _c("i", {
338
+ staticClass:
339
+ "el-input__icon el-icon-view el-input__clear",
340
+ on: { click: _vm.handlePasswordVisible },
341
+ })
342
+ : _vm._e(),
343
+ _vm.isWordLimitVisible
344
+ ? _c("span", { staticClass: "el-input__count" }, [
345
+ _c(
346
+ "span",
347
+ { staticClass: "el-input__count-inner" },
348
+ [
349
+ _vm._v(
350
+ "\n\t\t\t\t\t\t\t" +
351
+ _vm._s(_vm.textLength) +
352
+ "/" +
353
+ _vm._s(_vm.upperLimit) +
354
+ "\n\t\t\t\t\t\t"
355
+ ),
356
+ ]
357
+ ),
358
+ ])
359
+ : _vm._e(),
360
+ ],
361
+ 2
362
+ ),
363
+ _vm.validateState
364
+ ? _c("i", {
365
+ staticClass: "el-input__icon",
366
+ class: ["el-input__validateIcon", _vm.validateIcon],
367
+ })
368
+ : _vm._e(),
369
+ ])
370
+ : _vm._e(),
371
+ _vm.$slots.append
372
+ ? _c(
373
+ "div",
374
+ { staticClass: "el-input-group__append" },
375
+ [_vm._t("append")],
376
+ 2
377
+ )
378
+ : _vm._e(),
379
+ ]
380
+ : _c(
381
+ "textarea",
382
+ _vm._b(
383
+ {
384
+ ref: "textarea",
385
+ staticClass: "el-textarea__inner",
386
+ style: _vm.textareaStyle,
387
+ attrs: {
388
+ tabindex: _vm.tabindex,
389
+ disabled: _vm.inputDisabled,
390
+ readonly: _vm.readonly,
391
+ autocomplete: _vm.autoComplete || _vm.autocomplete,
392
+ "aria-label": _vm.label,
393
+ },
394
+ on: {
395
+ compositionstart: _vm.handleCompositionStart,
396
+ compositionupdate: _vm.handleCompositionUpdate,
397
+ compositionend: _vm.handleCompositionEnd,
398
+ input: _vm.handleInput,
399
+ focus: _vm.handleFocus,
400
+ blur: _vm.handleBlur,
401
+ change: _vm.handleChange,
402
+ },
403
+ },
404
+ "textarea",
405
+ _vm.$attrs,
406
+ false
407
+ )
408
+ ),
409
+ _vm.isWordLimitVisible && _vm.type === "textarea"
410
+ ? _c("span", { staticClass: "el-input__count" }, [
411
+ _vm._v(_vm._s(_vm.textLength) + "/" + _vm._s(_vm.upperLimit)),
412
+ ])
413
+ : _vm._e(),
414
+ ],
415
+ 2
416
+ )
417
+ }
418
+ var staticRenderFns = []
419
+ render._withStripped = true
420
+
421
+
422
+ // CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=template&id=048a9cde
423
+
424
+ // EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
425
+ var emitter_ = __webpack_require__(4);
426
+ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
427
+
428
+ // EXTERNAL MODULE: external "element-ui/lib/mixins/migrating"
429
+ var migrating_ = __webpack_require__(7);
430
+ var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
431
+
432
+ // CONCATENATED MODULE: ./packages/input/src/calcTextareaHeight.js
433
+ var hiddenTextarea = void 0;
434
+
435
+ var HIDDEN_STYLE = '\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n';
436
+
437
+ var CONTEXT_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing'];
438
+
439
+ function calculateNodeStyling(targetElement) {
440
+ var style = window.getComputedStyle(targetElement);
441
+
442
+ var boxSizing = style.getPropertyValue('box-sizing');
443
+
444
+ var paddingSize = parseFloat(style.getPropertyValue('padding-bottom')) + parseFloat(style.getPropertyValue('padding-top'));
445
+
446
+ var borderSize = parseFloat(style.getPropertyValue('border-bottom-width')) + parseFloat(style.getPropertyValue('border-top-width'));
447
+
448
+ var contextStyle = CONTEXT_STYLE.map(function (name) {
449
+ return name + ':' + style.getPropertyValue(name);
450
+ }).join(';');
451
+
452
+ return { contextStyle: contextStyle, paddingSize: paddingSize, borderSize: borderSize, boxSizing: boxSizing };
453
+ }
454
+
455
+ function calcTextareaHeight(targetElement) {
456
+ var minRows = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
457
+ var maxRows = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
458
+
459
+ if (!hiddenTextarea) {
460
+ hiddenTextarea = document.createElement('textarea');
461
+ document.body.appendChild(hiddenTextarea);
462
+ }
463
+
464
+ var _calculateNodeStyling = calculateNodeStyling(targetElement),
465
+ paddingSize = _calculateNodeStyling.paddingSize,
466
+ borderSize = _calculateNodeStyling.borderSize,
467
+ boxSizing = _calculateNodeStyling.boxSizing,
468
+ contextStyle = _calculateNodeStyling.contextStyle;
469
+
470
+ hiddenTextarea.setAttribute('style', contextStyle + ';' + HIDDEN_STYLE);
471
+ hiddenTextarea.value = targetElement.value || targetElement.placeholder || '';
472
+
473
+ var height = hiddenTextarea.scrollHeight;
474
+ var result = {};
475
+
476
+ if (boxSizing === 'border-box') {
477
+ height = height + borderSize;
478
+ } else if (boxSizing === 'content-box') {
479
+ height = height - paddingSize;
480
+ }
481
+
482
+ hiddenTextarea.value = '';
483
+ var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
484
+
485
+ if (minRows !== null) {
486
+ var minHeight = singleRowHeight * minRows;
487
+ if (boxSizing === 'border-box') {
488
+ minHeight = minHeight + paddingSize + borderSize;
489
+ }
490
+ height = Math.max(minHeight, height);
491
+ result.minHeight = minHeight + 'px';
492
+ }
493
+ if (maxRows !== null) {
494
+ var maxHeight = singleRowHeight * maxRows;
495
+ if (boxSizing === 'border-box') {
496
+ maxHeight = maxHeight + paddingSize + borderSize;
497
+ }
498
+ height = Math.min(maxHeight, height);
499
+ }
500
+ result.height = height + 'px';
501
+ hiddenTextarea.parentNode && hiddenTextarea.parentNode.removeChild(hiddenTextarea);
502
+ hiddenTextarea = null;
503
+ return result;
504
+ };
505
+ // EXTERNAL MODULE: external "element-ui/lib/utils/merge"
506
+ var merge_ = __webpack_require__(6);
507
+ var merge_default = /*#__PURE__*/__webpack_require__.n(merge_);
508
+
509
+ // EXTERNAL MODULE: external "element-ui/lib/utils/shared"
510
+ var shared_ = __webpack_require__(11);
511
+
512
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=script&lang=js
513
+ //
514
+ //
515
+ //
516
+ //
517
+ //
518
+ //
519
+ //
520
+ //
521
+ //
522
+ //
523
+ //
524
+ //
525
+ //
526
+ //
527
+ //
528
+ //
529
+ //
530
+ //
531
+ //
532
+ //
533
+ //
534
+ //
535
+ //
536
+ //
537
+ //
538
+ //
539
+ //
540
+ //
541
+ //
542
+ //
543
+ //
544
+ //
545
+ //
546
+ //
547
+ //
548
+ //
549
+ //
550
+ //
551
+ //
552
+ //
553
+ //
554
+ //
555
+ //
556
+ //
557
+ //
558
+ //
559
+ //
560
+ //
561
+ //
562
+ //
563
+ //
564
+ //
565
+ //
566
+ //
567
+ //
568
+ //
569
+ //
570
+ //
571
+ //
572
+ //
573
+ //
574
+ //
575
+ //
576
+ //
577
+ //
578
+ //
579
+ //
580
+ //
581
+ //
582
+ //
583
+ //
584
+ //
585
+ //
586
+ //
587
+ //
588
+ //
589
+ //
590
+ //
591
+ //
592
+ //
593
+ //
594
+ //
595
+ //
596
+ //
597
+ //
598
+ //
599
+ //
600
+ //
601
+ //
602
+ //
603
+ //
604
+ //
605
+ //
606
+ //
607
+ //
608
+ //
609
+ //
610
+ //
611
+ //
612
+ //
613
+ //
614
+ //
615
+ //
616
+ //
617
+ //
618
+ //
619
+ //
620
+ //
621
+ //
622
+
623
+
624
+
625
+
626
+
627
+
628
+
629
+ /* harmony default export */ var inputvue_type_script_lang_js = ({
630
+ name: 'ElInput',
631
+
632
+ componentName: 'ElInput',
633
+
634
+ mixins: [emitter_default.a, migrating_default.a],
635
+
636
+ inheritAttrs: false,
637
+
638
+ inject: {
639
+ elForm: {
640
+ default: ''
641
+ },
642
+ elFormItem: {
643
+ default: ''
644
+ }
645
+ },
646
+
647
+ data: function data() {
648
+ return {
649
+ textareaCalcStyle: {},
650
+ hovering: false,
651
+ focused: false,
652
+ isComposing: false,
653
+ passwordVisible: false
654
+ };
655
+ },
656
+
657
+
658
+ props: {
659
+ value: [String, Number],
660
+ size: String,
661
+ resize: String,
662
+ form: String,
663
+ disabled: Boolean,
664
+ readonly: Boolean,
665
+ type: {
666
+ type: String,
667
+ default: 'text'
668
+ },
669
+ autosize: {
670
+ type: [Boolean, Object],
671
+ default: false
672
+ },
673
+ autocomplete: {
674
+ type: String,
675
+ default: 'off'
676
+ },
677
+ /** @Deprecated in next major version */
678
+ autoComplete: {
679
+ type: String,
680
+ validator: function validator(val) {
681
+ false && false;
682
+ return true;
683
+ }
684
+ },
685
+ validateEvent: {
686
+ type: Boolean,
687
+ default: true
688
+ },
689
+ suffixIcon: String,
690
+ prefixIcon: String,
691
+ label: String,
692
+ clearable: {
693
+ type: Boolean,
694
+ default: false
695
+ },
696
+ showPassword: {
697
+ type: Boolean,
698
+ default: false
699
+ },
700
+ showWordLimit: {
701
+ type: Boolean,
702
+ default: false
703
+ },
704
+ tabindex: String
705
+ },
706
+
707
+ computed: {
708
+ _elFormItemSize: function _elFormItemSize() {
709
+ return (this.elFormItem || {}).elFormItemSize;
710
+ },
711
+ validateState: function validateState() {
712
+ return this.elFormItem ? this.elFormItem.validateState : '';
713
+ },
714
+ needStatusIcon: function needStatusIcon() {
715
+ return this.elForm ? this.elForm.statusIcon : false;
716
+ },
717
+ validateIcon: function validateIcon() {
718
+ return {
719
+ validating: 'el-icon-loading',
720
+ success: 'el-icon-circle-check',
721
+ error: 'el-icon-circle-close'
722
+ }[this.validateState];
723
+ },
724
+ textareaStyle: function textareaStyle() {
725
+ return merge_default()({}, this.textareaCalcStyle, { resize: this.resize });
726
+ },
727
+ inputSize: function inputSize() {
728
+ return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
729
+ },
730
+ inputDisabled: function inputDisabled() {
731
+ return this.disabled || (this.elForm || {}).disabled;
732
+ },
733
+ nativeInputValue: function nativeInputValue() {
734
+ return this.value === null || this.value === undefined ? '' : String(this.value);
735
+ },
736
+ showClear: function showClear() {
737
+ return this.clearable && !this.inputDisabled && !this.readonly && this.nativeInputValue && (this.focused || this.hovering);
738
+ },
739
+ showPwdVisible: function showPwdVisible() {
740
+ return this.showPassword && !this.inputDisabled && !this.readonly && (!!this.nativeInputValue || this.focused);
741
+ },
742
+ isWordLimitVisible: function isWordLimitVisible() {
743
+ return this.showWordLimit && this.$attrs.maxlength && (this.type === 'text' || this.type === 'textarea') && !this.inputDisabled && !this.readonly && !this.showPassword;
744
+ },
745
+ upperLimit: function upperLimit() {
746
+ return this.$attrs.maxlength;
747
+ },
748
+ textLength: function textLength() {
749
+ if (typeof this.value === 'number') {
750
+ return String(this.value).length;
751
+ }
752
+
753
+ return (this.value || '').length;
754
+ },
755
+ inputExceed: function inputExceed() {
756
+ // show exceed style if length of initial value greater then maxlength
757
+ return this.isWordLimitVisible && this.textLength > this.upperLimit;
758
+ }
759
+ },
760
+
761
+ watch: {
762
+ value: function value(val) {
763
+ this.$nextTick(this.resizeTextarea);
764
+ if (this.validateEvent) {
765
+ this.dispatch('ElFormItem', 'el.form.change', [val]);
766
+ }
767
+ },
768
+
769
+ // native input value is set explicitly
770
+ // do not use v-model / :value in template
771
+ // see: https://github.com/ElemeFE/element/issues/14521
772
+ nativeInputValue: function nativeInputValue() {
773
+ this.setNativeInputValue();
774
+ },
775
+
776
+ // when change between <input> and <textarea>,
777
+ // update DOM dependent value and styles
778
+ // https://github.com/ElemeFE/element/issues/14857
779
+ type: function type() {
780
+ var _this = this;
781
+
782
+ this.$nextTick(function () {
783
+ _this.setNativeInputValue();
784
+ _this.resizeTextarea();
785
+ _this.updateIconOffset();
786
+ });
787
+ }
788
+ },
789
+
790
+ methods: {
791
+ focus: function focus() {
792
+ this.getInput().focus();
793
+ },
794
+ blur: function blur() {
795
+ this.getInput().blur();
796
+ },
797
+ getMigratingConfig: function getMigratingConfig() {
798
+ return {
799
+ props: {
800
+ 'icon': 'icon is removed, use suffix-icon / prefix-icon instead.',
801
+ 'on-icon-click': 'on-icon-click is removed.'
802
+ },
803
+ events: {
804
+ 'click': 'click is removed.'
805
+ }
806
+ };
807
+ },
808
+ handleBlur: function handleBlur(event) {
809
+ this.focused = false;
810
+ this.$emit('blur', event);
811
+ if (this.validateEvent) {
812
+ this.dispatch('ElFormItem', 'el.form.blur', [this.value]);
813
+ }
814
+ },
815
+ select: function select() {
816
+ this.getInput().select();
817
+ },
818
+ resizeTextarea: function resizeTextarea() {
819
+ if (this.$isServer) return;
820
+ var autosize = this.autosize,
821
+ type = this.type;
822
+
823
+ if (type !== 'textarea') return;
824
+ if (!autosize) {
825
+ this.textareaCalcStyle = {
826
+ minHeight: calcTextareaHeight(this.$refs.textarea).minHeight
827
+ };
828
+ return;
829
+ }
830
+ var minRows = autosize.minRows;
831
+ var maxRows = autosize.maxRows;
832
+
833
+ this.textareaCalcStyle = calcTextareaHeight(this.$refs.textarea, minRows, maxRows);
834
+ },
835
+ setNativeInputValue: function setNativeInputValue() {
836
+ var input = this.getInput();
837
+ if (!input) return;
838
+ if (input.value === this.nativeInputValue) return;
839
+ input.value = this.nativeInputValue;
840
+ },
841
+ handleFocus: function handleFocus(event) {
842
+ this.focused = true;
843
+ this.$emit('focus', event);
844
+ },
845
+ handleCompositionStart: function handleCompositionStart(event) {
846
+ this.$emit('compositionstart', event);
847
+ this.isComposing = true;
848
+ },
849
+ handleCompositionUpdate: function handleCompositionUpdate(event) {
850
+ this.$emit('compositionupdate', event);
851
+ var text = event.target.value;
852
+ var lastCharacter = text[text.length - 1] || '';
853
+ this.isComposing = !Object(shared_["isKorean"])(lastCharacter);
854
+ },
855
+ handleCompositionEnd: function handleCompositionEnd(event) {
856
+ this.$emit('compositionend', event);
857
+ if (this.isComposing) {
858
+ this.isComposing = false;
859
+ this.handleInput(event);
860
+ }
861
+ },
862
+ handleInput: function handleInput(event) {
863
+ // should not emit input during composition
864
+ // see: https://github.com/ElemeFE/element/issues/10516
865
+ if (this.isComposing) return;
866
+
867
+ // hack for https://github.com/ElemeFE/element/issues/8548
868
+ // should remove the following line when we don't support IE
869
+ if (event.target.value === this.nativeInputValue) return;
870
+
871
+ this.$emit('input', event.target.value);
872
+
873
+ // ensure native input value is controlled
874
+ // see: https://github.com/ElemeFE/element/issues/12850
875
+ this.$nextTick(this.setNativeInputValue);
876
+ },
877
+ handleChange: function handleChange(event) {
878
+ this.$emit('change', event.target.value);
879
+ },
880
+ calcIconOffset: function calcIconOffset(place) {
881
+ var elList = [].slice.call(this.$el.querySelectorAll('.el-input__' + place) || []);
882
+ if (!elList.length) return;
883
+ var el = null;
884
+ for (var i = 0; i < elList.length; i++) {
885
+ if (elList[i].parentNode === this.$el) {
886
+ el = elList[i];
887
+ break;
888
+ }
889
+ }
890
+ if (!el) return;
891
+ var pendantMap = {
892
+ suffix: 'append',
893
+ prefix: 'prepend'
894
+ };
895
+
896
+ var pendant = pendantMap[place];
897
+ if (this.$slots[pendant]) {
898
+ el.style.transform = 'translateX(' + (place === 'suffix' ? '-' : '') + this.$el.querySelector('.el-input-group__' + pendant).offsetWidth + 'px)';
899
+ } else {
900
+ el.removeAttribute('style');
901
+ }
902
+ },
903
+ updateIconOffset: function updateIconOffset() {
904
+ this.calcIconOffset('prefix');
905
+ this.calcIconOffset('suffix');
906
+ },
907
+ clear: function clear() {
908
+ this.$emit('input', '');
909
+ this.$emit('change', '');
910
+ this.$emit('clear');
911
+ },
912
+ handlePasswordVisible: function handlePasswordVisible() {
913
+ var _this2 = this;
914
+
915
+ this.passwordVisible = !this.passwordVisible;
916
+ this.$nextTick(function () {
917
+ _this2.focus();
918
+ });
919
+ },
920
+ getInput: function getInput() {
921
+ return this.$refs.input || this.$refs.textarea;
922
+ },
923
+ getSuffixVisible: function getSuffixVisible() {
924
+ return this.$slots.suffix || this.suffixIcon || this.showClear || this.showPassword || this.isWordLimitVisible || this.validateState && this.needStatusIcon;
925
+ }
926
+ },
927
+
928
+ created: function created() {
929
+ this.$on('inputSelect', this.select);
930
+ },
931
+ mounted: function mounted() {
932
+ this.setNativeInputValue();
933
+ this.resizeTextarea();
934
+ this.updateIconOffset();
935
+ },
936
+ updated: function updated() {
937
+ this.$nextTick(this.updateIconOffset);
938
+ }
939
+ });
940
+ // CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=script&lang=js
941
+ /* harmony default export */ var src_inputvue_type_script_lang_js = (inputvue_type_script_lang_js);
942
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
943
+ var componentNormalizer = __webpack_require__(0);
944
+
945
+ // CONCATENATED MODULE: ./packages/input/src/input.vue
946
+
947
+
948
+
949
+
950
+
951
+ /* normalize component */
952
+
953
+ var component = Object(componentNormalizer["a" /* default */])(
954
+ src_inputvue_type_script_lang_js,
955
+ render,
956
+ staticRenderFns,
957
+ false,
958
+ null,
959
+ null,
960
+ null
961
+
962
+ )
963
+
964
+ /* harmony default export */ var input = (component.exports);
965
+ // CONCATENATED MODULE: ./packages/input/index.js
966
+
967
+
968
+ /* istanbul ignore next */
969
+ input.install = function (Vue) {
970
+ Vue.component(input.name, input);
971
+ };
972
+
973
+ /* harmony default export */ var packages_input = __webpack_exports__["default"] = (input);
974
+
975
+ /***/ }),
976
+
977
+ /***/ 14:
978
+ /***/ (function(module, exports) {
979
+
980
+ module.exports = require("element-ui/lib/utils/clickoutside");
981
+
982
+ /***/ }),
983
+
984
+ /***/ 20:
985
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
986
+
987
+ "use strict";
988
+ // ESM COMPAT FLAG
989
+ __webpack_require__.r(__webpack_exports__);
990
+
991
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button.vue?vue&type=template&id=595a2866
992
+ var render = function () {
993
+ var _vm = this
994
+ var _h = _vm.$createElement
995
+ var _c = _vm._self._c || _h
996
+ return _c(
997
+ "button",
998
+ {
999
+ staticClass: "el-button",
1000
+ class: [
1001
+ _vm.type ? "el-button--" + _vm.type : "",
1002
+ _vm.buttonSize ? "el-button--" + _vm.buttonSize : "",
1003
+ {
1004
+ "is-disabled": _vm.buttonDisabled,
1005
+ "is-loading": _vm.loading,
1006
+ "is-plain": _vm.plain,
1007
+ "is-round": _vm.round,
1008
+ "is-circle": _vm.circle,
1009
+ },
1010
+ ],
1011
+ attrs: {
1012
+ disabled: _vm.buttonDisabled || _vm.loading,
1013
+ autofocus: _vm.autofocus,
1014
+ type: _vm.nativeType,
1015
+ },
1016
+ on: { click: _vm.handleClick },
1017
+ },
1018
+ [
1019
+ _vm.loading ? _c("i", { staticClass: "el-icon-loading" }) : _vm._e(),
1020
+ _vm.icon && !_vm.loading ? _c("i", { class: _vm.icon }) : _vm._e(),
1021
+ _vm.$slots.default ? _c("span", [_vm._t("default")], 2) : _vm._e(),
1022
+ ]
1023
+ )
1024
+ }
1025
+ var staticRenderFns = []
1026
+ render._withStripped = true
1027
+
1028
+
1029
+ // CONCATENATED MODULE: ./packages/button/src/button.vue?vue&type=template&id=595a2866
1030
+
1031
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button.vue?vue&type=script&lang=js
1032
+ //
1033
+ //
1034
+ //
1035
+ //
1036
+ //
1037
+ //
1038
+ //
1039
+ //
1040
+ //
1041
+ //
1042
+ //
1043
+ //
1044
+ //
1045
+ //
1046
+ //
1047
+ //
1048
+ //
1049
+ //
1050
+ //
1051
+ //
1052
+ //
1053
+ //
1054
+ //
1055
+ //
1056
+
1057
+ /* harmony default export */ var buttonvue_type_script_lang_js = ({
1058
+ name: 'ElButton',
1059
+
1060
+ inject: {
1061
+ elForm: {
1062
+ default: ''
1063
+ },
1064
+ elFormItem: {
1065
+ default: ''
1066
+ }
1067
+ },
1068
+
1069
+ props: {
1070
+ type: {
1071
+ type: String,
1072
+ default: 'default'
1073
+ },
1074
+ size: String,
1075
+ icon: {
1076
+ type: String,
1077
+ default: ''
1078
+ },
1079
+ nativeType: {
1080
+ type: String,
1081
+ default: 'button'
1082
+ },
1083
+ loading: Boolean,
1084
+ disabled: Boolean,
1085
+ plain: Boolean,
1086
+ autofocus: Boolean,
1087
+ round: Boolean,
1088
+ circle: Boolean
1089
+ },
1090
+
1091
+ computed: {
1092
+ _elFormItemSize: function _elFormItemSize() {
1093
+ return (this.elFormItem || {}).elFormItemSize;
1094
+ },
1095
+ buttonSize: function buttonSize() {
1096
+ return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
1097
+ },
1098
+ buttonDisabled: function buttonDisabled() {
1099
+ return this.$options.propsData.hasOwnProperty('disabled') ? this.disabled : (this.elForm || {}).disabled;
1100
+ }
1101
+ },
1102
+
1103
+ methods: {
1104
+ handleClick: function handleClick(evt) {
1105
+ this.$emit('click', evt);
1106
+ }
1107
+ }
1108
+ });
1109
+ // CONCATENATED MODULE: ./packages/button/src/button.vue?vue&type=script&lang=js
1110
+ /* harmony default export */ var src_buttonvue_type_script_lang_js = (buttonvue_type_script_lang_js);
1111
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
1112
+ var componentNormalizer = __webpack_require__(0);
1113
+
1114
+ // CONCATENATED MODULE: ./packages/button/src/button.vue
1115
+
1116
+
1117
+
1118
+
1119
+
1120
+ /* normalize component */
1121
+
1122
+ var component = Object(componentNormalizer["a" /* default */])(
1123
+ src_buttonvue_type_script_lang_js,
1124
+ render,
1125
+ staticRenderFns,
1126
+ false,
1127
+ null,
1128
+ null,
1129
+ null
1130
+
1131
+ )
1132
+
1133
+ /* harmony default export */ var src_button = (component.exports);
1134
+ // CONCATENATED MODULE: ./packages/button/index.js
1135
+
1136
+
1137
+ /* istanbul ignore next */
1138
+ src_button.install = function (Vue) {
1139
+ Vue.component(src_button.name, src_button);
1140
+ };
1141
+
1142
+ /* harmony default export */ var packages_button = __webpack_exports__["default"] = (src_button);
1143
+
1144
+ /***/ }),
1145
+
1146
+ /***/ 4:
1147
+ /***/ (function(module, exports) {
1148
+
1149
+ module.exports = require("element-ui/lib/mixins/emitter");
1150
+
1151
+ /***/ }),
1152
+
1153
+ /***/ 5:
1154
+ /***/ (function(module, exports) {
1155
+
1156
+ module.exports = require("element-ui/lib/utils/vue-popper");
1157
+
1158
+ /***/ }),
1159
+
1160
+ /***/ 56:
1161
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1162
+
1163
+ "use strict";
1164
+ // ESM COMPAT FLAG
1165
+ __webpack_require__.r(__webpack_exports__);
1166
+
1167
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/color-picker/src/main.vue?vue&type=template&id=f1645126
1168
+ var render = function () {
1169
+ var _vm = this
1170
+ var _h = _vm.$createElement
1171
+ var _c = _vm._self._c || _h
1172
+ return _c(
1173
+ "div",
1174
+ {
1175
+ directives: [
1176
+ {
1177
+ name: "clickoutside",
1178
+ rawName: "v-clickoutside",
1179
+ value: _vm.hide,
1180
+ expression: "hide",
1181
+ },
1182
+ ],
1183
+ class: [
1184
+ "el-color-picker",
1185
+ _vm.colorDisabled ? "is-disabled" : "",
1186
+ _vm.colorSize ? "el-color-picker--" + _vm.colorSize : "",
1187
+ ],
1188
+ },
1189
+ [
1190
+ _vm.colorDisabled
1191
+ ? _c("div", { staticClass: "el-color-picker__mask" })
1192
+ : _vm._e(),
1193
+ _c(
1194
+ "div",
1195
+ {
1196
+ staticClass: "el-color-picker__trigger",
1197
+ on: { click: _vm.handleTrigger },
1198
+ },
1199
+ [
1200
+ _c(
1201
+ "span",
1202
+ {
1203
+ staticClass: "el-color-picker__color",
1204
+ class: { "is-alpha": _vm.showAlpha },
1205
+ },
1206
+ [
1207
+ _c("span", {
1208
+ staticClass: "el-color-picker__color-inner",
1209
+ style: {
1210
+ backgroundColor: _vm.displayedColor,
1211
+ },
1212
+ }),
1213
+ !_vm.value && !_vm.showPanelColor
1214
+ ? _c("span", {
1215
+ staticClass: "el-color-picker__empty el-icon-close",
1216
+ })
1217
+ : _vm._e(),
1218
+ ]
1219
+ ),
1220
+ _c("span", {
1221
+ directives: [
1222
+ {
1223
+ name: "show",
1224
+ rawName: "v-show",
1225
+ value: _vm.value || _vm.showPanelColor,
1226
+ expression: "value || showPanelColor",
1227
+ },
1228
+ ],
1229
+ staticClass: "el-color-picker__icon el-icon-arrow-down",
1230
+ }),
1231
+ ]
1232
+ ),
1233
+ _c("picker-dropdown", {
1234
+ ref: "dropdown",
1235
+ class: ["el-color-picker__panel", _vm.popperClass || ""],
1236
+ attrs: {
1237
+ color: _vm.color,
1238
+ "show-alpha": _vm.showAlpha,
1239
+ predefine: _vm.predefine,
1240
+ },
1241
+ on: { pick: _vm.confirmValue, clear: _vm.clearValue },
1242
+ model: {
1243
+ value: _vm.showPicker,
1244
+ callback: function ($$v) {
1245
+ _vm.showPicker = $$v
1246
+ },
1247
+ expression: "showPicker",
1248
+ },
1249
+ }),
1250
+ ],
1251
+ 1
1252
+ )
1253
+ }
1254
+ var staticRenderFns = []
1255
+ render._withStripped = true
1256
+
1257
+
1258
+ // CONCATENATED MODULE: ./packages/color-picker/src/main.vue?vue&type=template&id=f1645126
1259
+
1260
+ // CONCATENATED MODULE: ./packages/color-picker/src/color.js
1261
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
1262
+
1263
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1264
+
1265
+ var hsv2hsl = function hsv2hsl(hue, sat, val) {
1266
+ return [hue, sat * val / ((hue = (2 - sat) * val) < 1 ? hue : 2 - hue) || 0, hue / 2];
1267
+ };
1268
+
1269
+ // Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1
1270
+ // <http://stackoverflow.com/questions/7422072/javascript-how-to-detect-number-as-a-decimal-including-1-0>
1271
+ var isOnePointZero = function isOnePointZero(n) {
1272
+ return typeof n === 'string' && n.indexOf('.') !== -1 && parseFloat(n) === 1;
1273
+ };
1274
+
1275
+ var isPercentage = function isPercentage(n) {
1276
+ return typeof n === 'string' && n.indexOf('%') !== -1;
1277
+ };
1278
+
1279
+ // Take input from [0, n] and return it as [0, 1]
1280
+ var bound01 = function bound01(value, max) {
1281
+ if (isOnePointZero(value)) value = '100%';
1282
+
1283
+ var processPercent = isPercentage(value);
1284
+ value = Math.min(max, Math.max(0, parseFloat(value)));
1285
+
1286
+ // Automatically convert percentage into number
1287
+ if (processPercent) {
1288
+ value = parseInt(value * max, 10) / 100;
1289
+ }
1290
+
1291
+ // Handle floating point rounding errors
1292
+ if (Math.abs(value - max) < 0.000001) {
1293
+ return 1;
1294
+ }
1295
+
1296
+ // Convert into [0, 1] range if it isn't already
1297
+ return value % max / parseFloat(max);
1298
+ };
1299
+
1300
+ var INT_HEX_MAP = { 10: 'A', 11: 'B', 12: 'C', 13: 'D', 14: 'E', 15: 'F' };
1301
+
1302
+ var toHex = function toHex(_ref) {
1303
+ var r = _ref.r,
1304
+ g = _ref.g,
1305
+ b = _ref.b;
1306
+
1307
+ var hexOne = function hexOne(value) {
1308
+ value = Math.min(Math.round(value), 255);
1309
+ var high = Math.floor(value / 16);
1310
+ var low = value % 16;
1311
+ return '' + (INT_HEX_MAP[high] || high) + (INT_HEX_MAP[low] || low);
1312
+ };
1313
+
1314
+ if (isNaN(r) || isNaN(g) || isNaN(b)) return '';
1315
+
1316
+ return '#' + hexOne(r) + hexOne(g) + hexOne(b);
1317
+ };
1318
+
1319
+ var HEX_INT_MAP = { A: 10, B: 11, C: 12, D: 13, E: 14, F: 15 };
1320
+
1321
+ var parseHexChannel = function parseHexChannel(hex) {
1322
+ if (hex.length === 2) {
1323
+ return (HEX_INT_MAP[hex[0].toUpperCase()] || +hex[0]) * 16 + (HEX_INT_MAP[hex[1].toUpperCase()] || +hex[1]);
1324
+ }
1325
+
1326
+ return HEX_INT_MAP[hex[1].toUpperCase()] || +hex[1];
1327
+ };
1328
+
1329
+ var hsl2hsv = function hsl2hsv(hue, sat, light) {
1330
+ sat = sat / 100;
1331
+ light = light / 100;
1332
+ var smin = sat;
1333
+ var lmin = Math.max(light, 0.01);
1334
+ var sv = void 0;
1335
+ var v = void 0;
1336
+
1337
+ light *= 2;
1338
+ sat *= light <= 1 ? light : 2 - light;
1339
+ smin *= lmin <= 1 ? lmin : 2 - lmin;
1340
+ v = (light + sat) / 2;
1341
+ sv = light === 0 ? 2 * smin / (lmin + smin) : 2 * sat / (light + sat);
1342
+
1343
+ return {
1344
+ h: hue,
1345
+ s: sv * 100,
1346
+ v: v * 100
1347
+ };
1348
+ };
1349
+
1350
+ // `rgbToHsv`
1351
+ // Converts an RGB color value to HSV
1352
+ // *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1]
1353
+ // *Returns:* { h, s, v } in [0,1]
1354
+ var rgb2hsv = function rgb2hsv(r, g, b) {
1355
+ r = bound01(r, 255);
1356
+ g = bound01(g, 255);
1357
+ b = bound01(b, 255);
1358
+
1359
+ var max = Math.max(r, g, b);
1360
+ var min = Math.min(r, g, b);
1361
+ var h = void 0,
1362
+ s = void 0;
1363
+ var v = max;
1364
+
1365
+ var d = max - min;
1366
+ s = max === 0 ? 0 : d / max;
1367
+
1368
+ if (max === min) {
1369
+ h = 0; // achromatic
1370
+ } else {
1371
+ switch (max) {
1372
+ case r:
1373
+ h = (g - b) / d + (g < b ? 6 : 0);
1374
+ break;
1375
+ case g:
1376
+ h = (b - r) / d + 2;
1377
+ break;
1378
+ case b:
1379
+ h = (r - g) / d + 4;
1380
+ break;
1381
+ }
1382
+ h /= 6;
1383
+ }
1384
+
1385
+ return { h: h * 360, s: s * 100, v: v * 100 };
1386
+ };
1387
+
1388
+ // `hsvToRgb`
1389
+ // Converts an HSV color value to RGB.
1390
+ // *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100]
1391
+ // *Returns:* { r, g, b } in the set [0, 255]
1392
+ var hsv2rgb = function hsv2rgb(h, s, v) {
1393
+ h = bound01(h, 360) * 6;
1394
+ s = bound01(s, 100);
1395
+ v = bound01(v, 100);
1396
+
1397
+ var i = Math.floor(h);
1398
+ var f = h - i;
1399
+ var p = v * (1 - s);
1400
+ var q = v * (1 - f * s);
1401
+ var t = v * (1 - (1 - f) * s);
1402
+ var mod = i % 6;
1403
+ var r = [v, q, p, p, t, v][mod];
1404
+ var g = [t, v, v, q, p, p][mod];
1405
+ var b = [p, p, t, v, v, q][mod];
1406
+
1407
+ return {
1408
+ r: Math.round(r * 255),
1409
+ g: Math.round(g * 255),
1410
+ b: Math.round(b * 255)
1411
+ };
1412
+ };
1413
+
1414
+ var Color = function () {
1415
+ function Color(options) {
1416
+ _classCallCheck(this, Color);
1417
+
1418
+ this._hue = 0;
1419
+ this._saturation = 100;
1420
+ this._value = 100;
1421
+ this._alpha = 100;
1422
+
1423
+ this.enableAlpha = false;
1424
+ this.format = 'hex';
1425
+ this.value = '';
1426
+
1427
+ options = options || {};
1428
+
1429
+ for (var option in options) {
1430
+ if (options.hasOwnProperty(option)) {
1431
+ this[option] = options[option];
1432
+ }
1433
+ }
1434
+
1435
+ this.doOnChange();
1436
+ }
1437
+
1438
+ Color.prototype.set = function set(prop, value) {
1439
+ if (arguments.length === 1 && (typeof prop === 'undefined' ? 'undefined' : _typeof(prop)) === 'object') {
1440
+ for (var p in prop) {
1441
+ if (prop.hasOwnProperty(p)) {
1442
+ this.set(p, prop[p]);
1443
+ }
1444
+ }
1445
+
1446
+ return;
1447
+ }
1448
+
1449
+ this['_' + prop] = value;
1450
+ this.doOnChange();
1451
+ };
1452
+
1453
+ Color.prototype.get = function get(prop) {
1454
+ return this['_' + prop];
1455
+ };
1456
+
1457
+ Color.prototype.toRgb = function toRgb() {
1458
+ return hsv2rgb(this._hue, this._saturation, this._value);
1459
+ };
1460
+
1461
+ Color.prototype.fromString = function fromString(value) {
1462
+ var _this = this;
1463
+
1464
+ if (!value) {
1465
+ this._hue = 0;
1466
+ this._saturation = 100;
1467
+ this._value = 100;
1468
+
1469
+ this.doOnChange();
1470
+ return;
1471
+ }
1472
+
1473
+ var fromHSV = function fromHSV(h, s, v) {
1474
+ _this._hue = Math.max(0, Math.min(360, h));
1475
+ _this._saturation = Math.max(0, Math.min(100, s));
1476
+ _this._value = Math.max(0, Math.min(100, v));
1477
+
1478
+ _this.doOnChange();
1479
+ };
1480
+
1481
+ if (value.indexOf('hsl') !== -1) {
1482
+ var parts = value.replace(/hsla|hsl|\(|\)/gm, '').split(/\s|,/g).filter(function (val) {
1483
+ return val !== '';
1484
+ }).map(function (val, index) {
1485
+ return index > 2 ? parseFloat(val) : parseInt(val, 10);
1486
+ });
1487
+
1488
+ if (parts.length === 4) {
1489
+ this._alpha = Math.floor(parseFloat(parts[3]) * 100);
1490
+ } else if (parts.length === 3) {
1491
+ this._alpha = 100;
1492
+ }
1493
+ if (parts.length >= 3) {
1494
+ var _hsl2hsv = hsl2hsv(parts[0], parts[1], parts[2]),
1495
+ h = _hsl2hsv.h,
1496
+ s = _hsl2hsv.s,
1497
+ v = _hsl2hsv.v;
1498
+
1499
+ fromHSV(h, s, v);
1500
+ }
1501
+ } else if (value.indexOf('hsv') !== -1) {
1502
+ var _parts = value.replace(/hsva|hsv|\(|\)/gm, '').split(/\s|,/g).filter(function (val) {
1503
+ return val !== '';
1504
+ }).map(function (val, index) {
1505
+ return index > 2 ? parseFloat(val) : parseInt(val, 10);
1506
+ });
1507
+
1508
+ if (_parts.length === 4) {
1509
+ this._alpha = Math.floor(parseFloat(_parts[3]) * 100);
1510
+ } else if (_parts.length === 3) {
1511
+ this._alpha = 100;
1512
+ }
1513
+ if (_parts.length >= 3) {
1514
+ fromHSV(_parts[0], _parts[1], _parts[2]);
1515
+ }
1516
+ } else if (value.indexOf('rgb') !== -1) {
1517
+ var _parts2 = value.replace(/rgba|rgb|\(|\)/gm, '').split(/\s|,/g).filter(function (val) {
1518
+ return val !== '';
1519
+ }).map(function (val, index) {
1520
+ return index > 2 ? parseFloat(val) : parseInt(val, 10);
1521
+ });
1522
+
1523
+ if (_parts2.length === 4) {
1524
+ this._alpha = Math.floor(parseFloat(_parts2[3]) * 100);
1525
+ } else if (_parts2.length === 3) {
1526
+ this._alpha = 100;
1527
+ }
1528
+ if (_parts2.length >= 3) {
1529
+ var _rgb2hsv = rgb2hsv(_parts2[0], _parts2[1], _parts2[2]),
1530
+ _h = _rgb2hsv.h,
1531
+ _s = _rgb2hsv.s,
1532
+ _v = _rgb2hsv.v;
1533
+
1534
+ fromHSV(_h, _s, _v);
1535
+ }
1536
+ } else if (value.indexOf('#') !== -1) {
1537
+ var hex = value.replace('#', '').trim();
1538
+ if (!/^(?:[0-9a-fA-F]{3}){1,2}|[0-9a-fA-F]{8}$/.test(hex)) return;
1539
+ var r = void 0,
1540
+ g = void 0,
1541
+ b = void 0;
1542
+
1543
+ if (hex.length === 3) {
1544
+ r = parseHexChannel(hex[0] + hex[0]);
1545
+ g = parseHexChannel(hex[1] + hex[1]);
1546
+ b = parseHexChannel(hex[2] + hex[2]);
1547
+ } else if (hex.length === 6 || hex.length === 8) {
1548
+ r = parseHexChannel(hex.substring(0, 2));
1549
+ g = parseHexChannel(hex.substring(2, 4));
1550
+ b = parseHexChannel(hex.substring(4, 6));
1551
+ }
1552
+
1553
+ if (hex.length === 8) {
1554
+ this._alpha = Math.floor(parseHexChannel(hex.substring(6)) / 255 * 100);
1555
+ } else if (hex.length === 3 || hex.length === 6) {
1556
+ this._alpha = 100;
1557
+ }
1558
+
1559
+ var _rgb2hsv2 = rgb2hsv(r, g, b),
1560
+ _h2 = _rgb2hsv2.h,
1561
+ _s2 = _rgb2hsv2.s,
1562
+ _v2 = _rgb2hsv2.v;
1563
+
1564
+ fromHSV(_h2, _s2, _v2);
1565
+ }
1566
+ };
1567
+
1568
+ Color.prototype.compare = function compare(color) {
1569
+ return Math.abs(color._hue - this._hue) < 2 && Math.abs(color._saturation - this._saturation) < 1 && Math.abs(color._value - this._value) < 1 && Math.abs(color._alpha - this._alpha) < 1;
1570
+ };
1571
+
1572
+ Color.prototype.doOnChange = function doOnChange() {
1573
+ var _hue = this._hue,
1574
+ _saturation = this._saturation,
1575
+ _value = this._value,
1576
+ _alpha = this._alpha,
1577
+ format = this.format;
1578
+
1579
+
1580
+ if (this.enableAlpha) {
1581
+ switch (format) {
1582
+ case 'hsl':
1583
+ var hsl = hsv2hsl(_hue, _saturation / 100, _value / 100);
1584
+ this.value = 'hsla(' + _hue + ', ' + Math.round(hsl[1] * 100) + '%, ' + Math.round(hsl[2] * 100) + '%, ' + _alpha / 100 + ')';
1585
+ break;
1586
+ case 'hsv':
1587
+ this.value = 'hsva(' + _hue + ', ' + Math.round(_saturation) + '%, ' + Math.round(_value) + '%, ' + _alpha / 100 + ')';
1588
+ break;
1589
+ default:
1590
+ var _hsv2rgb = hsv2rgb(_hue, _saturation, _value),
1591
+ r = _hsv2rgb.r,
1592
+ g = _hsv2rgb.g,
1593
+ b = _hsv2rgb.b;
1594
+
1595
+ this.value = 'rgba(' + r + ', ' + g + ', ' + b + ', ' + _alpha / 100 + ')';
1596
+ }
1597
+ } else {
1598
+ switch (format) {
1599
+ case 'hsl':
1600
+ var _hsl = hsv2hsl(_hue, _saturation / 100, _value / 100);
1601
+ this.value = 'hsl(' + _hue + ', ' + Math.round(_hsl[1] * 100) + '%, ' + Math.round(_hsl[2] * 100) + '%)';
1602
+ break;
1603
+ case 'hsv':
1604
+ this.value = 'hsv(' + _hue + ', ' + Math.round(_saturation) + '%, ' + Math.round(_value) + '%)';
1605
+ break;
1606
+ case 'rgb':
1607
+ var _hsv2rgb2 = hsv2rgb(_hue, _saturation, _value),
1608
+ _r = _hsv2rgb2.r,
1609
+ _g = _hsv2rgb2.g,
1610
+ _b = _hsv2rgb2.b;
1611
+
1612
+ this.value = 'rgb(' + _r + ', ' + _g + ', ' + _b + ')';
1613
+ break;
1614
+ default:
1615
+ this.value = toHex(hsv2rgb(_hue, _saturation, _value));
1616
+ }
1617
+ }
1618
+ };
1619
+
1620
+ return Color;
1621
+ }();
1622
+
1623
+ /* harmony default export */ var src_color = (Color);
1624
+ ;
1625
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/color-picker/src/components/picker-dropdown.vue?vue&type=template&id=c6df3248
1626
+ var picker_dropdownvue_type_template_id_c6df3248_render = function () {
1627
+ var _vm = this
1628
+ var _h = _vm.$createElement
1629
+ var _c = _vm._self._c || _h
1630
+ return _c(
1631
+ "transition",
1632
+ { attrs: { name: "el-zoom-in-top" }, on: { "after-leave": _vm.doDestroy } },
1633
+ [
1634
+ _c(
1635
+ "div",
1636
+ {
1637
+ directives: [
1638
+ {
1639
+ name: "show",
1640
+ rawName: "v-show",
1641
+ value: _vm.showPopper,
1642
+ expression: "showPopper",
1643
+ },
1644
+ ],
1645
+ staticClass: "el-color-dropdown",
1646
+ },
1647
+ [
1648
+ _c(
1649
+ "div",
1650
+ { staticClass: "el-color-dropdown__main-wrapper" },
1651
+ [
1652
+ _c("hue-slider", {
1653
+ ref: "hue",
1654
+ staticStyle: { float: "right" },
1655
+ attrs: { color: _vm.color, vertical: "" },
1656
+ }),
1657
+ _c("sv-panel", { ref: "sl", attrs: { color: _vm.color } }),
1658
+ ],
1659
+ 1
1660
+ ),
1661
+ _vm.showAlpha
1662
+ ? _c("alpha-slider", { ref: "alpha", attrs: { color: _vm.color } })
1663
+ : _vm._e(),
1664
+ _vm.predefine
1665
+ ? _c("predefine", {
1666
+ attrs: { color: _vm.color, colors: _vm.predefine },
1667
+ })
1668
+ : _vm._e(),
1669
+ _c(
1670
+ "div",
1671
+ { staticClass: "el-color-dropdown__btns" },
1672
+ [
1673
+ _c(
1674
+ "span",
1675
+ { staticClass: "el-color-dropdown__value" },
1676
+ [
1677
+ _c("el-input", {
1678
+ attrs: { "validate-event": false, size: "mini" },
1679
+ on: { blur: _vm.handleConfirm },
1680
+ nativeOn: {
1681
+ keyup: function ($event) {
1682
+ if (
1683
+ !("button" in $event) &&
1684
+ _vm._k(
1685
+ $event.keyCode,
1686
+ "enter",
1687
+ 13,
1688
+ $event.key,
1689
+ "Enter"
1690
+ )
1691
+ ) {
1692
+ return null
1693
+ }
1694
+ return _vm.handleConfirm($event)
1695
+ },
1696
+ },
1697
+ model: {
1698
+ value: _vm.customInput,
1699
+ callback: function ($$v) {
1700
+ _vm.customInput = $$v
1701
+ },
1702
+ expression: "customInput",
1703
+ },
1704
+ }),
1705
+ ],
1706
+ 1
1707
+ ),
1708
+ _c(
1709
+ "el-button",
1710
+ {
1711
+ staticClass: "el-color-dropdown__link-btn",
1712
+ attrs: { size: "mini", type: "text" },
1713
+ on: {
1714
+ click: function ($event) {
1715
+ _vm.$emit("clear")
1716
+ },
1717
+ },
1718
+ },
1719
+ [
1720
+ _vm._v(
1721
+ "\n\t\t\t\t" +
1722
+ _vm._s(_vm.t("el.colorpicker.clear")) +
1723
+ "\n\t\t\t"
1724
+ ),
1725
+ ]
1726
+ ),
1727
+ _c(
1728
+ "el-button",
1729
+ {
1730
+ staticClass: "el-color-dropdown__btn",
1731
+ attrs: { plain: "", size: "mini" },
1732
+ on: { click: _vm.confirmValue },
1733
+ },
1734
+ [
1735
+ _vm._v(
1736
+ "\n\t\t\t\t" +
1737
+ _vm._s(_vm.t("el.colorpicker.confirm")) +
1738
+ "\n\t\t\t"
1739
+ ),
1740
+ ]
1741
+ ),
1742
+ ],
1743
+ 1
1744
+ ),
1745
+ ],
1746
+ 1
1747
+ ),
1748
+ ]
1749
+ )
1750
+ }
1751
+ var picker_dropdownvue_type_template_id_c6df3248_staticRenderFns = []
1752
+ picker_dropdownvue_type_template_id_c6df3248_render._withStripped = true
1753
+
1754
+
1755
+ // CONCATENATED MODULE: ./packages/color-picker/src/components/picker-dropdown.vue?vue&type=template&id=c6df3248
1756
+
1757
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/color-picker/src/components/sv-panel.vue?vue&type=template&id=e6a4e1f4
1758
+ var sv_panelvue_type_template_id_e6a4e1f4_render = function () {
1759
+ var _vm = this
1760
+ var _h = _vm.$createElement
1761
+ var _c = _vm._self._c || _h
1762
+ return _c(
1763
+ "div",
1764
+ {
1765
+ staticClass: "el-color-svpanel",
1766
+ style: {
1767
+ backgroundColor: _vm.background,
1768
+ },
1769
+ },
1770
+ [
1771
+ _c("div", { staticClass: "el-color-svpanel__white" }),
1772
+ _c("div", { staticClass: "el-color-svpanel__black" }),
1773
+ _c(
1774
+ "div",
1775
+ {
1776
+ staticClass: "el-color-svpanel__cursor",
1777
+ style: {
1778
+ top: _vm.cursorTop + "px",
1779
+ left: _vm.cursorLeft + "px",
1780
+ },
1781
+ },
1782
+ [_c("div")]
1783
+ ),
1784
+ ]
1785
+ )
1786
+ }
1787
+ var sv_panelvue_type_template_id_e6a4e1f4_staticRenderFns = []
1788
+ sv_panelvue_type_template_id_e6a4e1f4_render._withStripped = true
1789
+
1790
+
1791
+ // CONCATENATED MODULE: ./packages/color-picker/src/components/sv-panel.vue?vue&type=template&id=e6a4e1f4
1792
+
1793
+ // EXTERNAL MODULE: external "vue"
1794
+ var external_vue_ = __webpack_require__(8);
1795
+ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
1796
+
1797
+ // CONCATENATED MODULE: ./packages/color-picker/src/draggable.js
1798
+
1799
+ var isDragging = false;
1800
+
1801
+ /* harmony default export */ var draggable = (function (element, options) {
1802
+ if (external_vue_default.a.prototype.$isServer) return;
1803
+ var moveFn = function moveFn(event) {
1804
+ if (options.drag) {
1805
+ options.drag(event);
1806
+ }
1807
+ };
1808
+ var upFn = function upFn(event) {
1809
+ document.removeEventListener('mousemove', moveFn);
1810
+ document.removeEventListener('mouseup', upFn);
1811
+ document.onselectstart = null;
1812
+ document.ondragstart = null;
1813
+
1814
+ isDragging = false;
1815
+
1816
+ if (options.end) {
1817
+ options.end(event);
1818
+ }
1819
+ };
1820
+ element.addEventListener('mousedown', function (event) {
1821
+ if (isDragging) return;
1822
+ document.onselectstart = function () {
1823
+ return false;
1824
+ };
1825
+ document.ondragstart = function () {
1826
+ return false;
1827
+ };
1828
+
1829
+ document.addEventListener('mousemove', moveFn);
1830
+ document.addEventListener('mouseup', upFn);
1831
+ isDragging = true;
1832
+
1833
+ if (options.start) {
1834
+ options.start(event);
1835
+ }
1836
+ });
1837
+ });
1838
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/color-picker/src/components/sv-panel.vue?vue&type=script&lang=js
1839
+ //
1840
+ //
1841
+ //
1842
+ //
1843
+ //
1844
+ //
1845
+ //
1846
+ //
1847
+ //
1848
+ //
1849
+ //
1850
+ //
1851
+ //
1852
+ //
1853
+ //
1854
+ //
1855
+ //
1856
+
1857
+
1858
+
1859
+ /* harmony default export */ var sv_panelvue_type_script_lang_js = ({
1860
+ name: 'ElSlPanel',
1861
+
1862
+ props: {
1863
+ color: {
1864
+ required: true
1865
+ }
1866
+ },
1867
+
1868
+ computed: {
1869
+ colorValue: function colorValue() {
1870
+ var hue = this.color.get('hue');
1871
+ var value = this.color.get('value');
1872
+ return { hue: hue, value: value };
1873
+ }
1874
+ },
1875
+
1876
+ watch: {
1877
+ colorValue: function colorValue() {
1878
+ this.update();
1879
+ }
1880
+ },
1881
+
1882
+ methods: {
1883
+ update: function update() {
1884
+ var saturation = this.color.get('saturation');
1885
+ var value = this.color.get('value');
1886
+
1887
+ var el = this.$el;
1888
+ var width = el.clientWidth,
1889
+ height = el.clientHeight;
1890
+
1891
+
1892
+ this.cursorLeft = saturation * width / 100;
1893
+ this.cursorTop = (100 - value) * height / 100;
1894
+
1895
+ this.background = 'hsl(' + this.color.get('hue') + ', 100%, 50%)';
1896
+ },
1897
+ handleDrag: function handleDrag(event) {
1898
+ var el = this.$el;
1899
+ var rect = el.getBoundingClientRect();
1900
+
1901
+ var left = event.clientX - rect.left;
1902
+ var top = event.clientY - rect.top;
1903
+ left = Math.max(0, left);
1904
+ left = Math.min(left, rect.width);
1905
+
1906
+ top = Math.max(0, top);
1907
+ top = Math.min(top, rect.height);
1908
+
1909
+ this.cursorLeft = left;
1910
+ this.cursorTop = top;
1911
+ this.color.set({
1912
+ saturation: left / rect.width * 100,
1913
+ value: 100 - top / rect.height * 100
1914
+ });
1915
+ }
1916
+ },
1917
+
1918
+ mounted: function mounted() {
1919
+ var _this = this;
1920
+
1921
+ draggable(this.$el, {
1922
+ drag: function drag(event) {
1923
+ _this.handleDrag(event);
1924
+ },
1925
+ end: function end(event) {
1926
+ _this.handleDrag(event);
1927
+ }
1928
+ });
1929
+
1930
+ this.update();
1931
+ },
1932
+ data: function data() {
1933
+ return {
1934
+ cursorTop: 0,
1935
+ cursorLeft: 0,
1936
+ background: 'hsl(0, 100%, 50%)'
1937
+ };
1938
+ }
1939
+ });
1940
+ // CONCATENATED MODULE: ./packages/color-picker/src/components/sv-panel.vue?vue&type=script&lang=js
1941
+ /* harmony default export */ var components_sv_panelvue_type_script_lang_js = (sv_panelvue_type_script_lang_js);
1942
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
1943
+ var componentNormalizer = __webpack_require__(0);
1944
+
1945
+ // CONCATENATED MODULE: ./packages/color-picker/src/components/sv-panel.vue
1946
+
1947
+
1948
+
1949
+
1950
+
1951
+ /* normalize component */
1952
+
1953
+ var component = Object(componentNormalizer["a" /* default */])(
1954
+ components_sv_panelvue_type_script_lang_js,
1955
+ sv_panelvue_type_template_id_e6a4e1f4_render,
1956
+ sv_panelvue_type_template_id_e6a4e1f4_staticRenderFns,
1957
+ false,
1958
+ null,
1959
+ null,
1960
+ null
1961
+
1962
+ )
1963
+
1964
+ /* harmony default export */ var sv_panel = (component.exports);
1965
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/color-picker/src/components/hue-slider.vue?vue&type=template&id=33e577b6
1966
+ var hue_slidervue_type_template_id_33e577b6_render = function () {
1967
+ var _vm = this
1968
+ var _h = _vm.$createElement
1969
+ var _c = _vm._self._c || _h
1970
+ return _c(
1971
+ "div",
1972
+ {
1973
+ staticClass: "el-color-hue-slider",
1974
+ class: { "is-vertical": _vm.vertical },
1975
+ },
1976
+ [
1977
+ _c("div", {
1978
+ ref: "bar",
1979
+ staticClass: "el-color-hue-slider__bar",
1980
+ on: { click: _vm.handleClick },
1981
+ }),
1982
+ _c("div", {
1983
+ ref: "thumb",
1984
+ staticClass: "el-color-hue-slider__thumb",
1985
+ style: {
1986
+ left: _vm.thumbLeft + "px",
1987
+ top: _vm.thumbTop + "px",
1988
+ },
1989
+ }),
1990
+ ]
1991
+ )
1992
+ }
1993
+ var hue_slidervue_type_template_id_33e577b6_staticRenderFns = []
1994
+ hue_slidervue_type_template_id_33e577b6_render._withStripped = true
1995
+
1996
+
1997
+ // CONCATENATED MODULE: ./packages/color-picker/src/components/hue-slider.vue?vue&type=template&id=33e577b6
1998
+
1999
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/color-picker/src/components/hue-slider.vue?vue&type=script&lang=js
2000
+ //
2001
+ //
2002
+ //
2003
+ //
2004
+ //
2005
+ //
2006
+ //
2007
+ //
2008
+ //
2009
+ //
2010
+ //
2011
+ //
2012
+ //
2013
+
2014
+
2015
+
2016
+ /* harmony default export */ var hue_slidervue_type_script_lang_js = ({
2017
+ name: 'ElColorHueSlider',
2018
+
2019
+ props: {
2020
+ color: {
2021
+ required: true
2022
+ },
2023
+
2024
+ vertical: Boolean
2025
+ },
2026
+
2027
+ data: function data() {
2028
+ return {
2029
+ thumbLeft: 0,
2030
+ thumbTop: 0
2031
+ };
2032
+ },
2033
+
2034
+
2035
+ computed: {
2036
+ hueValue: function hueValue() {
2037
+ var hue = this.color.get('hue');
2038
+ return hue;
2039
+ }
2040
+ },
2041
+
2042
+ watch: {
2043
+ hueValue: function hueValue() {
2044
+ this.update();
2045
+ }
2046
+ },
2047
+
2048
+ methods: {
2049
+ handleClick: function handleClick(event) {
2050
+ var thumb = this.$refs.thumb;
2051
+ var target = event.target;
2052
+
2053
+ if (target !== thumb) {
2054
+ this.handleDrag(event);
2055
+ }
2056
+ },
2057
+ handleDrag: function handleDrag(event) {
2058
+ var rect = this.$el.getBoundingClientRect();
2059
+ var thumb = this.$refs.thumb;
2060
+
2061
+ var hue = void 0;
2062
+
2063
+ if (!this.vertical) {
2064
+ var left = event.clientX - rect.left;
2065
+ left = Math.min(left, rect.width - thumb.offsetWidth / 2);
2066
+ left = Math.max(thumb.offsetWidth / 2, left);
2067
+
2068
+ hue = Math.round((left - thumb.offsetWidth / 2) / (rect.width - thumb.offsetWidth) * 360);
2069
+ } else {
2070
+ var top = event.clientY - rect.top;
2071
+ top = Math.min(top, rect.height - thumb.offsetHeight / 2);
2072
+ top = Math.max(thumb.offsetHeight / 2, top);
2073
+
2074
+ hue = Math.round((top - thumb.offsetHeight / 2) / (rect.height - thumb.offsetHeight) * 360);
2075
+ }
2076
+
2077
+ this.color.set('hue', hue);
2078
+ },
2079
+ getThumbLeft: function getThumbLeft() {
2080
+ if (this.vertical) return 0;
2081
+ var el = this.$el;
2082
+ var hue = this.color.get('hue');
2083
+
2084
+ if (!el) return 0;
2085
+ var thumb = this.$refs.thumb;
2086
+ return Math.round(hue * (el.offsetWidth - thumb.offsetWidth / 2) / 360);
2087
+ },
2088
+ getThumbTop: function getThumbTop() {
2089
+ if (!this.vertical) return 0;
2090
+ var el = this.$el;
2091
+ var hue = this.color.get('hue');
2092
+
2093
+ if (!el) return 0;
2094
+ var thumb = this.$refs.thumb;
2095
+ return Math.round(hue * (el.offsetHeight - thumb.offsetHeight / 2) / 360);
2096
+ },
2097
+ update: function update() {
2098
+ this.thumbLeft = this.getThumbLeft();
2099
+ this.thumbTop = this.getThumbTop();
2100
+ }
2101
+ },
2102
+
2103
+ mounted: function mounted() {
2104
+ var _this = this;
2105
+
2106
+ var _$refs = this.$refs,
2107
+ bar = _$refs.bar,
2108
+ thumb = _$refs.thumb;
2109
+
2110
+
2111
+ var dragConfig = {
2112
+ drag: function drag(event) {
2113
+ _this.handleDrag(event);
2114
+ },
2115
+ end: function end(event) {
2116
+ _this.handleDrag(event);
2117
+ }
2118
+ };
2119
+
2120
+ draggable(bar, dragConfig);
2121
+ draggable(thumb, dragConfig);
2122
+ this.update();
2123
+ }
2124
+ });
2125
+ // CONCATENATED MODULE: ./packages/color-picker/src/components/hue-slider.vue?vue&type=script&lang=js
2126
+ /* harmony default export */ var components_hue_slidervue_type_script_lang_js = (hue_slidervue_type_script_lang_js);
2127
+ // CONCATENATED MODULE: ./packages/color-picker/src/components/hue-slider.vue
2128
+
2129
+
2130
+
2131
+
2132
+
2133
+ /* normalize component */
2134
+
2135
+ var hue_slider_component = Object(componentNormalizer["a" /* default */])(
2136
+ components_hue_slidervue_type_script_lang_js,
2137
+ hue_slidervue_type_template_id_33e577b6_render,
2138
+ hue_slidervue_type_template_id_33e577b6_staticRenderFns,
2139
+ false,
2140
+ null,
2141
+ null,
2142
+ null
2143
+
2144
+ )
2145
+
2146
+ /* harmony default export */ var hue_slider = (hue_slider_component.exports);
2147
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/color-picker/src/components/alpha-slider.vue?vue&type=template&id=d346b334
2148
+ var alpha_slidervue_type_template_id_d346b334_render = function () {
2149
+ var _vm = this
2150
+ var _h = _vm.$createElement
2151
+ var _c = _vm._self._c || _h
2152
+ return _c(
2153
+ "div",
2154
+ {
2155
+ staticClass: "el-color-alpha-slider",
2156
+ class: { "is-vertical": _vm.vertical },
2157
+ },
2158
+ [
2159
+ _c("div", {
2160
+ ref: "bar",
2161
+ staticClass: "el-color-alpha-slider__bar",
2162
+ style: {
2163
+ background: _vm.background,
2164
+ },
2165
+ on: { click: _vm.handleClick },
2166
+ }),
2167
+ _c("div", {
2168
+ ref: "thumb",
2169
+ staticClass: "el-color-alpha-slider__thumb",
2170
+ style: {
2171
+ left: _vm.thumbLeft + "px",
2172
+ top: _vm.thumbTop + "px",
2173
+ },
2174
+ }),
2175
+ ]
2176
+ )
2177
+ }
2178
+ var alpha_slidervue_type_template_id_d346b334_staticRenderFns = []
2179
+ alpha_slidervue_type_template_id_d346b334_render._withStripped = true
2180
+
2181
+
2182
+ // CONCATENATED MODULE: ./packages/color-picker/src/components/alpha-slider.vue?vue&type=template&id=d346b334
2183
+
2184
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/color-picker/src/components/alpha-slider.vue?vue&type=script&lang=js
2185
+ //
2186
+ //
2187
+ //
2188
+ //
2189
+ //
2190
+ //
2191
+ //
2192
+ //
2193
+ //
2194
+ //
2195
+ //
2196
+ //
2197
+ //
2198
+ //
2199
+ //
2200
+ //
2201
+ //
2202
+ //
2203
+ //
2204
+
2205
+
2206
+
2207
+ /* harmony default export */ var alpha_slidervue_type_script_lang_js = ({
2208
+ name: 'ElColorAlphaSlider',
2209
+
2210
+ props: {
2211
+ color: {
2212
+ required: true
2213
+ },
2214
+ vertical: Boolean
2215
+ },
2216
+
2217
+ watch: {
2218
+ 'color._alpha': function color_alpha() {
2219
+ this.update();
2220
+ },
2221
+ 'color.value': function colorValue() {
2222
+ this.update();
2223
+ }
2224
+ },
2225
+
2226
+ methods: {
2227
+ handleClick: function handleClick(event) {
2228
+ var thumb = this.$refs.thumb;
2229
+ var target = event.target;
2230
+
2231
+ if (target !== thumb) {
2232
+ this.handleDrag(event);
2233
+ }
2234
+ },
2235
+ handleDrag: function handleDrag(event) {
2236
+ var rect = this.$el.getBoundingClientRect();
2237
+ var thumb = this.$refs.thumb;
2238
+
2239
+
2240
+ if (!this.vertical) {
2241
+ var left = event.clientX - rect.left;
2242
+ left = Math.max(thumb.offsetWidth / 2, left);
2243
+ left = Math.min(left, rect.width - thumb.offsetWidth / 2);
2244
+
2245
+ this.color.set('alpha', Math.round((left - thumb.offsetWidth / 2) / (rect.width - thumb.offsetWidth) * 100));
2246
+ } else {
2247
+ var top = event.clientY - rect.top;
2248
+ top = Math.max(thumb.offsetHeight / 2, top);
2249
+ top = Math.min(top, rect.height - thumb.offsetHeight / 2);
2250
+
2251
+ this.color.set('alpha', Math.round((top - thumb.offsetHeight / 2) / (rect.height - thumb.offsetHeight) * 100));
2252
+ }
2253
+ },
2254
+ getThumbLeft: function getThumbLeft() {
2255
+ if (this.vertical) return 0;
2256
+ var el = this.$el;
2257
+ var alpha = this.color._alpha;
2258
+
2259
+ if (!el) return 0;
2260
+ var thumb = this.$refs.thumb;
2261
+ return Math.round(alpha * (el.offsetWidth - thumb.offsetWidth / 2) / 100);
2262
+ },
2263
+ getThumbTop: function getThumbTop() {
2264
+ if (!this.vertical) return 0;
2265
+ var el = this.$el;
2266
+ var alpha = this.color._alpha;
2267
+
2268
+ if (!el) return 0;
2269
+ var thumb = this.$refs.thumb;
2270
+ return Math.round(alpha * (el.offsetHeight - thumb.offsetHeight / 2) / 100);
2271
+ },
2272
+ getBackground: function getBackground() {
2273
+ if (this.color && this.color.value) {
2274
+ var _color$toRgb = this.color.toRgb(),
2275
+ r = _color$toRgb.r,
2276
+ g = _color$toRgb.g,
2277
+ b = _color$toRgb.b;
2278
+
2279
+ return 'linear-gradient(to right, rgba(' + r + ', ' + g + ', ' + b + ', 0) 0%, rgba(' + r + ', ' + g + ', ' + b + ', 1) 100%)';
2280
+ }
2281
+ return null;
2282
+ },
2283
+ update: function update() {
2284
+ this.thumbLeft = this.getThumbLeft();
2285
+ this.thumbTop = this.getThumbTop();
2286
+ this.background = this.getBackground();
2287
+ }
2288
+ },
2289
+
2290
+ data: function data() {
2291
+ return {
2292
+ thumbLeft: 0,
2293
+ thumbTop: 0,
2294
+ background: null
2295
+ };
2296
+ },
2297
+ mounted: function mounted() {
2298
+ var _this = this;
2299
+
2300
+ var _$refs = this.$refs,
2301
+ bar = _$refs.bar,
2302
+ thumb = _$refs.thumb;
2303
+
2304
+
2305
+ var dragConfig = {
2306
+ drag: function drag(event) {
2307
+ _this.handleDrag(event);
2308
+ },
2309
+ end: function end(event) {
2310
+ _this.handleDrag(event);
2311
+ }
2312
+ };
2313
+
2314
+ draggable(bar, dragConfig);
2315
+ draggable(thumb, dragConfig);
2316
+ this.update();
2317
+ }
2318
+ });
2319
+ // CONCATENATED MODULE: ./packages/color-picker/src/components/alpha-slider.vue?vue&type=script&lang=js
2320
+ /* harmony default export */ var components_alpha_slidervue_type_script_lang_js = (alpha_slidervue_type_script_lang_js);
2321
+ // CONCATENATED MODULE: ./packages/color-picker/src/components/alpha-slider.vue
2322
+
2323
+
2324
+
2325
+
2326
+
2327
+ /* normalize component */
2328
+
2329
+ var alpha_slider_component = Object(componentNormalizer["a" /* default */])(
2330
+ components_alpha_slidervue_type_script_lang_js,
2331
+ alpha_slidervue_type_template_id_d346b334_render,
2332
+ alpha_slidervue_type_template_id_d346b334_staticRenderFns,
2333
+ false,
2334
+ null,
2335
+ null,
2336
+ null
2337
+
2338
+ )
2339
+
2340
+ /* harmony default export */ var alpha_slider = (alpha_slider_component.exports);
2341
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/color-picker/src/components/predefine.vue?vue&type=template&id=3b333c8a
2342
+ var predefinevue_type_template_id_3b333c8a_render = function () {
2343
+ var _vm = this
2344
+ var _h = _vm.$createElement
2345
+ var _c = _vm._self._c || _h
2346
+ return _c("div", { staticClass: "el-color-predefine" }, [
2347
+ _c(
2348
+ "div",
2349
+ { staticClass: "el-color-predefine__colors" },
2350
+ _vm._l(_vm.rgbaColors, function (item, index) {
2351
+ return _c(
2352
+ "div",
2353
+ {
2354
+ key: _vm.colors[index],
2355
+ staticClass: "el-color-predefine__color-selector",
2356
+ class: { selected: item.selected, "is-alpha": item._alpha < 100 },
2357
+ on: {
2358
+ click: function ($event) {
2359
+ _vm.handleSelect(index)
2360
+ },
2361
+ },
2362
+ },
2363
+ [_c("div", { style: { "background-color": item.value } })]
2364
+ )
2365
+ }),
2366
+ 0
2367
+ ),
2368
+ ])
2369
+ }
2370
+ var predefinevue_type_template_id_3b333c8a_staticRenderFns = []
2371
+ predefinevue_type_template_id_3b333c8a_render._withStripped = true
2372
+
2373
+
2374
+ // CONCATENATED MODULE: ./packages/color-picker/src/components/predefine.vue?vue&type=template&id=3b333c8a
2375
+
2376
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/color-picker/src/components/predefine.vue?vue&type=script&lang=js
2377
+ //
2378
+ //
2379
+ //
2380
+ //
2381
+ //
2382
+ //
2383
+ //
2384
+ //
2385
+ //
2386
+ //
2387
+ //
2388
+ //
2389
+ //
2390
+ //
2391
+ //
2392
+
2393
+
2394
+
2395
+ /* harmony default export */ var predefinevue_type_script_lang_js = ({
2396
+ props: {
2397
+ colors: { type: Array, required: true },
2398
+ color: { required: true }
2399
+ },
2400
+ data: function data() {
2401
+ return {
2402
+ rgbaColors: this.parseColors(this.colors, this.color)
2403
+ };
2404
+ },
2405
+
2406
+ methods: {
2407
+ handleSelect: function handleSelect(index) {
2408
+ this.color.fromString(this.colors[index]);
2409
+ },
2410
+ parseColors: function parseColors(colors, color) {
2411
+ return colors.map(function (value) {
2412
+ var c = new src_color();
2413
+ c.enableAlpha = true;
2414
+ c.format = 'rgba';
2415
+ c.fromString(value);
2416
+ c.selected = c.value === color.value;
2417
+ return c;
2418
+ });
2419
+ }
2420
+ },
2421
+ watch: {
2422
+ '$parent.currentColor': function $parentCurrentColor(val) {
2423
+ var color = new src_color();
2424
+ color.fromString(val);
2425
+
2426
+ this.rgbaColors.forEach(function (item) {
2427
+ item.selected = color.compare(item);
2428
+ });
2429
+ },
2430
+ colors: function colors(newVal) {
2431
+ this.rgbaColors = this.parseColors(newVal, this.color);
2432
+ },
2433
+ color: function color(newVal) {
2434
+ this.rgbaColors = this.parseColors(this.colors, newVal);
2435
+ }
2436
+ }
2437
+ });
2438
+ // CONCATENATED MODULE: ./packages/color-picker/src/components/predefine.vue?vue&type=script&lang=js
2439
+ /* harmony default export */ var components_predefinevue_type_script_lang_js = (predefinevue_type_script_lang_js);
2440
+ // CONCATENATED MODULE: ./packages/color-picker/src/components/predefine.vue
2441
+
2442
+
2443
+
2444
+
2445
+
2446
+ /* normalize component */
2447
+
2448
+ var predefine_component = Object(componentNormalizer["a" /* default */])(
2449
+ components_predefinevue_type_script_lang_js,
2450
+ predefinevue_type_template_id_3b333c8a_render,
2451
+ predefinevue_type_template_id_3b333c8a_staticRenderFns,
2452
+ false,
2453
+ null,
2454
+ null,
2455
+ null
2456
+
2457
+ )
2458
+
2459
+ /* harmony default export */ var predefine = (predefine_component.exports);
2460
+ // EXTERNAL MODULE: external "element-ui/lib/utils/vue-popper"
2461
+ var vue_popper_ = __webpack_require__(5);
2462
+ var vue_popper_default = /*#__PURE__*/__webpack_require__.n(vue_popper_);
2463
+
2464
+ // EXTERNAL MODULE: external "element-ui/lib/mixins/locale"
2465
+ var locale_ = __webpack_require__(9);
2466
+ var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
2467
+
2468
+ // EXTERNAL MODULE: ./packages/input/index.js + 6 modules
2469
+ var input = __webpack_require__(13);
2470
+
2471
+ // EXTERNAL MODULE: ./packages/button/index.js + 5 modules
2472
+ var packages_button = __webpack_require__(20);
2473
+
2474
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/color-picker/src/components/picker-dropdown.vue?vue&type=script&lang=js
2475
+ //
2476
+ //
2477
+ //
2478
+ //
2479
+ //
2480
+ //
2481
+ //
2482
+ //
2483
+ //
2484
+ //
2485
+ //
2486
+ //
2487
+ //
2488
+ //
2489
+ //
2490
+ //
2491
+ //
2492
+ //
2493
+ //
2494
+ //
2495
+ //
2496
+ //
2497
+ //
2498
+ //
2499
+ //
2500
+ //
2501
+ //
2502
+ //
2503
+ //
2504
+ //
2505
+ //
2506
+ //
2507
+ //
2508
+ //
2509
+ //
2510
+ //
2511
+ //
2512
+ //
2513
+ //
2514
+ //
2515
+
2516
+
2517
+
2518
+
2519
+
2520
+
2521
+
2522
+
2523
+
2524
+
2525
+ /* harmony default export */ var picker_dropdownvue_type_script_lang_js = ({
2526
+ name: 'ElColorPickerDropdown',
2527
+
2528
+ mixins: [vue_popper_default.a, locale_default.a],
2529
+
2530
+ components: {
2531
+ SvPanel: sv_panel,
2532
+ HueSlider: hue_slider,
2533
+ AlphaSlider: alpha_slider,
2534
+ ElInput: input["default"],
2535
+ ElButton: packages_button["default"],
2536
+ Predefine: predefine
2537
+ },
2538
+
2539
+ props: {
2540
+ color: {
2541
+ required: true
2542
+ },
2543
+ showAlpha: Boolean,
2544
+ predefine: Array
2545
+ },
2546
+
2547
+ data: function data() {
2548
+ return {
2549
+ customInput: ''
2550
+ };
2551
+ },
2552
+
2553
+
2554
+ computed: {
2555
+ currentColor: function currentColor() {
2556
+ var parent = this.$parent;
2557
+ return !parent.value && !parent.showPanelColor ? '' : parent.color.value;
2558
+ }
2559
+ },
2560
+
2561
+ methods: {
2562
+ confirmValue: function confirmValue() {
2563
+ this.$emit('pick');
2564
+ },
2565
+ handleConfirm: function handleConfirm() {
2566
+ this.color.fromString(this.customInput);
2567
+ }
2568
+ },
2569
+
2570
+ mounted: function mounted() {
2571
+ this.$parent.popperElm = this.popperElm = this.$el;
2572
+ this.referenceElm = this.$parent.$el;
2573
+ },
2574
+
2575
+
2576
+ watch: {
2577
+ showPopper: function showPopper(val) {
2578
+ var _this = this;
2579
+
2580
+ if (val === true) {
2581
+ this.$nextTick(function () {
2582
+ var _$refs = _this.$refs,
2583
+ sl = _$refs.sl,
2584
+ hue = _$refs.hue,
2585
+ alpha = _$refs.alpha;
2586
+
2587
+ sl && sl.update();
2588
+ hue && hue.update();
2589
+ alpha && alpha.update();
2590
+ });
2591
+ }
2592
+ },
2593
+
2594
+
2595
+ currentColor: {
2596
+ immediate: true,
2597
+ handler: function handler(val) {
2598
+ this.customInput = val;
2599
+ }
2600
+ }
2601
+ }
2602
+ });
2603
+ // CONCATENATED MODULE: ./packages/color-picker/src/components/picker-dropdown.vue?vue&type=script&lang=js
2604
+ /* harmony default export */ var components_picker_dropdownvue_type_script_lang_js = (picker_dropdownvue_type_script_lang_js);
2605
+ // CONCATENATED MODULE: ./packages/color-picker/src/components/picker-dropdown.vue
2606
+
2607
+
2608
+
2609
+
2610
+
2611
+ /* normalize component */
2612
+
2613
+ var picker_dropdown_component = Object(componentNormalizer["a" /* default */])(
2614
+ components_picker_dropdownvue_type_script_lang_js,
2615
+ picker_dropdownvue_type_template_id_c6df3248_render,
2616
+ picker_dropdownvue_type_template_id_c6df3248_staticRenderFns,
2617
+ false,
2618
+ null,
2619
+ null,
2620
+ null
2621
+
2622
+ )
2623
+
2624
+ /* harmony default export */ var picker_dropdown = (picker_dropdown_component.exports);
2625
+ // EXTERNAL MODULE: external "element-ui/lib/utils/clickoutside"
2626
+ var clickoutside_ = __webpack_require__(14);
2627
+ var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
2628
+
2629
+ // EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
2630
+ var emitter_ = __webpack_require__(4);
2631
+ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
2632
+
2633
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/color-picker/src/main.vue?vue&type=script&lang=js
2634
+ //
2635
+ //
2636
+ //
2637
+ //
2638
+ //
2639
+ //
2640
+ //
2641
+ //
2642
+ //
2643
+ //
2644
+ //
2645
+ //
2646
+ //
2647
+ //
2648
+ //
2649
+ //
2650
+ //
2651
+ //
2652
+ //
2653
+ //
2654
+ //
2655
+ //
2656
+ //
2657
+ //
2658
+ //
2659
+ //
2660
+ //
2661
+ //
2662
+ //
2663
+ //
2664
+ //
2665
+ //
2666
+
2667
+
2668
+
2669
+
2670
+
2671
+
2672
+ /* harmony default export */ var mainvue_type_script_lang_js = ({
2673
+ name: 'ElColorPicker',
2674
+
2675
+ mixins: [emitter_default.a],
2676
+
2677
+ props: {
2678
+ value: String,
2679
+ showAlpha: Boolean,
2680
+ colorFormat: String,
2681
+ disabled: Boolean,
2682
+ size: String,
2683
+ popperClass: String,
2684
+ predefine: Array
2685
+ },
2686
+
2687
+ inject: {
2688
+ elForm: {
2689
+ default: ''
2690
+ },
2691
+ elFormItem: {
2692
+ default: ''
2693
+ }
2694
+ },
2695
+
2696
+ directives: { Clickoutside: clickoutside_default.a },
2697
+
2698
+ computed: {
2699
+ displayedColor: function displayedColor() {
2700
+ if (!this.value && !this.showPanelColor) {
2701
+ return 'transparent';
2702
+ }
2703
+
2704
+ return this.displayedRgb(this.color, this.showAlpha);
2705
+ },
2706
+ _elFormItemSize: function _elFormItemSize() {
2707
+ return (this.elFormItem || {}).elFormItemSize;
2708
+ },
2709
+ colorSize: function colorSize() {
2710
+ return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
2711
+ },
2712
+ colorDisabled: function colorDisabled() {
2713
+ return this.disabled || (this.elForm || {}).disabled;
2714
+ }
2715
+ },
2716
+
2717
+ watch: {
2718
+ value: function value(val) {
2719
+ if (!val) {
2720
+ this.showPanelColor = false;
2721
+ } else if (val && val !== this.color.value) {
2722
+ this.color.fromString(val);
2723
+ }
2724
+ },
2725
+
2726
+ color: {
2727
+ deep: true,
2728
+ handler: function handler() {
2729
+ this.showPanelColor = true;
2730
+ }
2731
+ },
2732
+ displayedColor: function displayedColor(val) {
2733
+ if (!this.showPicker) return;
2734
+ var currentValueColor = new src_color({
2735
+ enableAlpha: this.showAlpha,
2736
+ format: this.colorFormat
2737
+ });
2738
+ currentValueColor.fromString(this.value);
2739
+
2740
+ var currentValueColorRgb = this.displayedRgb(currentValueColor, this.showAlpha);
2741
+ if (val !== currentValueColorRgb) {
2742
+ this.$emit('active-change', val);
2743
+ }
2744
+ }
2745
+ },
2746
+
2747
+ methods: {
2748
+ handleTrigger: function handleTrigger() {
2749
+ if (this.colorDisabled) return;
2750
+ this.showPicker = !this.showPicker;
2751
+ },
2752
+ confirmValue: function confirmValue() {
2753
+ var value = this.color.value;
2754
+ this.$emit('input', value);
2755
+ this.$emit('change', value);
2756
+ this.dispatch('ElFormItem', 'el.form.change', value);
2757
+ this.showPicker = false;
2758
+ },
2759
+ clearValue: function clearValue() {
2760
+ this.$emit('input', null);
2761
+ this.$emit('change', null);
2762
+ if (this.value !== null) {
2763
+ this.dispatch('ElFormItem', 'el.form.change', null);
2764
+ }
2765
+ this.showPanelColor = false;
2766
+ this.showPicker = false;
2767
+ this.resetColor();
2768
+ },
2769
+ hide: function hide() {
2770
+ this.showPicker = false;
2771
+ this.resetColor();
2772
+ },
2773
+ resetColor: function resetColor() {
2774
+ var _this = this;
2775
+
2776
+ this.$nextTick(function (_) {
2777
+ if (_this.value) {
2778
+ _this.color.fromString(_this.value);
2779
+ } else {
2780
+ _this.showPanelColor = false;
2781
+ }
2782
+ });
2783
+ },
2784
+ displayedRgb: function displayedRgb(color, showAlpha) {
2785
+ if (!(color instanceof src_color)) {
2786
+ throw Error('color should be instance of Color Class');
2787
+ }
2788
+
2789
+ var _color$toRgb = color.toRgb(),
2790
+ r = _color$toRgb.r,
2791
+ g = _color$toRgb.g,
2792
+ b = _color$toRgb.b;
2793
+
2794
+ return showAlpha ? 'rgba(' + r + ', ' + g + ', ' + b + ', ' + color.get('alpha') / 100 + ')' : 'rgb(' + r + ', ' + g + ', ' + b + ')';
2795
+ }
2796
+ },
2797
+
2798
+ mounted: function mounted() {
2799
+ var value = this.value;
2800
+ if (value) {
2801
+ this.color.fromString(value);
2802
+ }
2803
+ this.popperElm = this.$refs.dropdown.$el;
2804
+ },
2805
+ data: function data() {
2806
+ var color = new src_color({
2807
+ enableAlpha: this.showAlpha,
2808
+ format: this.colorFormat
2809
+ });
2810
+
2811
+ return {
2812
+ color: color,
2813
+ showPicker: false,
2814
+ showPanelColor: false
2815
+ };
2816
+ },
2817
+
2818
+
2819
+ components: {
2820
+ PickerDropdown: picker_dropdown
2821
+ }
2822
+ });
2823
+ // CONCATENATED MODULE: ./packages/color-picker/src/main.vue?vue&type=script&lang=js
2824
+ /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
2825
+ // CONCATENATED MODULE: ./packages/color-picker/src/main.vue
2826
+
2827
+
2828
+
2829
+
2830
+
2831
+ /* normalize component */
2832
+
2833
+ var main_component = Object(componentNormalizer["a" /* default */])(
2834
+ src_mainvue_type_script_lang_js,
2835
+ render,
2836
+ staticRenderFns,
2837
+ false,
2838
+ null,
2839
+ null,
2840
+ null
2841
+
2842
+ )
2843
+
2844
+ /* harmony default export */ var main = (main_component.exports);
2845
+ // CONCATENATED MODULE: ./packages/color-picker/index.js
2846
+
2847
+
2848
+ /* istanbul ignore next */
2849
+ main.install = function (Vue) {
2850
+ Vue.component(main.name, main);
2851
+ };
2852
+
2853
+ /* harmony default export */ var color_picker = __webpack_exports__["default"] = (main);
2854
+
2855
+ /***/ }),
2856
+
2857
+ /***/ 6:
2858
+ /***/ (function(module, exports) {
2859
+
2860
+ module.exports = require("element-ui/lib/utils/merge");
2861
+
2862
+ /***/ }),
2863
+
2864
+ /***/ 7:
2865
+ /***/ (function(module, exports) {
2866
+
2867
+ module.exports = require("element-ui/lib/mixins/migrating");
2868
+
2869
+ /***/ }),
2870
+
2871
+ /***/ 8:
2872
+ /***/ (function(module, exports) {
2873
+
2874
+ module.exports = require("vue");
2875
+
2876
+ /***/ }),
2877
+
2878
+ /***/ 9:
2879
+ /***/ (function(module, exports) {
2880
+
2881
+ module.exports = require("element-ui/lib/mixins/locale");
2882
+
2883
+ /***/ })
2884
+
2885
+ /******/ });