mazey-element-ui 2.0.1 → 2.15.16
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.
- package/LICENSE +2 -2
- package/README.md +71 -68
- package/lib/alert.js +271 -262
- package/lib/aside.js +134 -200
- package/lib/autocomplete.js +500 -443
- package/lib/avatar.js +284 -0
- package/lib/backtop.js +336 -0
- package/lib/badge.js +188 -221
- package/lib/breadcrumb-item.js +176 -226
- package/lib/breadcrumb.js +150 -213
- package/lib/button-group.js +121 -190
- package/lib/button.js +213 -268
- package/lib/calendar.js +801 -0
- package/lib/card.js +156 -203
- package/lib/carousel-item.js +242 -264
- package/lib/carousel.js +386 -284
- package/lib/cascader-panel.js +1323 -0
- package/lib/cascader.js +1000 -1116
- package/lib/checkbox-button.js +388 -327
- package/lib/checkbox-group.js +168 -233
- package/lib/checkbox.js +422 -350
- package/lib/col.js +58 -112
- package/lib/collapse-item.js +335 -327
- package/lib/collapse.js +177 -246
- package/lib/color-picker.js +1128 -1231
- package/lib/container.js +144 -211
- package/lib/date-picker.js +4316 -2745
- package/lib/descriptions-item.js +88 -0
- package/lib/descriptions.js +342 -0
- package/lib/dialog.js +359 -337
- package/lib/directives/mousewheel.js +6 -12
- package/lib/directives/repeat-click.js +10 -10
- package/lib/divider.js +251 -0
- package/lib/drawer.js +523 -0
- package/lib/dropdown-item.js +175 -228
- package/lib/dropdown-menu.js +203 -253
- package/lib/dropdown.js +286 -384
- package/lib/element-ui.common.js +34136 -25458
- package/lib/empty.js +657 -0
- package/lib/footer.js +134 -200
- package/lib/form-item.js +401 -304
- package/lib/form.js +278 -297
- package/lib/header.js +134 -200
- package/lib/icon.js +123 -193
- package/lib/image.js +1005 -0
- package/lib/index.js +1 -1
- package/lib/infinite-scroll.js +219 -0
- package/lib/input-number.js +442 -386
- package/lib/input.js +682 -512
- package/lib/link.js +267 -0
- package/lib/loading.js +278 -377
- package/lib/locale/format.js +14 -25
- package/lib/locale/index.js +19 -33
- package/lib/locale/lang/af-ZA.js +29 -8
- package/lib/locale/lang/ar.js +29 -14
- package/lib/locale/lang/az.js +127 -0
- package/lib/locale/lang/bg.js +35 -11
- package/lib/locale/lang/bn.js +126 -0
- package/lib/locale/lang/ca.js +24 -9
- package/lib/locale/lang/cs-CZ.js +19 -3
- package/lib/locale/lang/da.js +19 -3
- package/lib/locale/lang/de.js +19 -3
- package/lib/locale/lang/ee.js +24 -8
- package/lib/locale/lang/el.js +20 -4
- package/lib/locale/lang/en.js +25 -7
- package/lib/locale/lang/eo.js +128 -0
- package/lib/locale/lang/es.js +22 -7
- package/lib/locale/lang/eu.js +131 -0
- package/lib/locale/lang/fa.js +24 -8
- package/lib/locale/lang/fi.js +40 -24
- package/lib/locale/lang/fr.js +21 -4
- package/lib/locale/lang/he.js +29 -8
- package/lib/locale/lang/hr.js +131 -0
- package/lib/locale/lang/hu.js +20 -4
- package/lib/locale/lang/hy-AM.js +128 -0
- package/lib/locale/lang/id.js +23 -8
- package/lib/locale/lang/is.js +127 -0
- package/lib/locale/lang/it.js +21 -6
- package/lib/locale/lang/ja.js +19 -3
- package/lib/locale/lang/kg.js +128 -0
- package/lib/locale/lang/km.js +21 -6
- package/lib/locale/lang/ko.js +19 -3
- package/lib/locale/lang/ku.js +19 -3
- package/lib/locale/lang/kz.js +19 -3
- package/lib/locale/lang/lt.js +19 -3
- package/lib/locale/lang/lv.js +26 -10
- package/lib/locale/lang/mn.js +19 -3
- package/lib/locale/lang/ms.js +126 -0
- package/lib/locale/lang/nb-NO.js +28 -13
- package/lib/locale/lang/nl.js +19 -3
- package/lib/locale/lang/pl.js +19 -3
- package/lib/locale/lang/pt-br.js +18 -3
- package/lib/locale/lang/pt.js +35 -11
- package/lib/locale/lang/ro.js +19 -3
- package/lib/locale/lang/ru-RU.js +20 -5
- package/lib/locale/lang/si.js +130 -0
- package/lib/locale/lang/sk.js +23 -8
- package/lib/locale/lang/sl.js +26 -10
- package/lib/locale/lang/sr-Latn.js +127 -0
- package/lib/locale/lang/sr.js +131 -0
- package/lib/locale/lang/sv-SE.js +34 -15
- package/lib/locale/lang/sw.js +130 -0
- package/lib/locale/lang/ta.js +31 -9
- package/lib/locale/lang/th.js +30 -12
- package/lib/locale/lang/tk.js +27 -7
- package/lib/locale/lang/tr-TR.js +20 -4
- package/lib/locale/lang/ua.js +20 -5
- package/lib/locale/lang/ug-CN.js +22 -7
- package/lib/locale/lang/uz-UZ.js +127 -0
- package/lib/locale/lang/vi.js +23 -8
- package/lib/locale/lang/zh-CN.js +18 -3
- package/lib/locale/lang/zh-TW.js +25 -6
- package/lib/main.js +123 -192
- package/lib/menu-item-group.js +164 -225
- package/lib/menu-item.js +300 -333
- package/lib/menu.js +401 -576
- package/lib/message-box.js +730 -614
- package/lib/message.js +289 -327
- package/lib/mixins/emitter.js +2 -4
- package/lib/mixins/focus.js +3 -4
- package/lib/mixins/locale.js +5 -7
- package/lib/mixins/migrating.js +19 -21
- package/lib/notification.js +366 -394
- package/lib/option-group.js +198 -250
- package/lib/option.js +247 -291
- package/lib/page-header.js +248 -0
- package/lib/pagination.js +485 -635
- package/lib/popconfirm.js +381 -0
- package/lib/popover.js +361 -396
- package/lib/progress.js +387 -261
- package/lib/radio-button.js +319 -309
- package/lib/radio-group.js +224 -282
- package/lib/radio.js +347 -328
- package/lib/rate.js +286 -305
- package/lib/result.js +513 -0
- package/lib/row.js +59 -110
- package/lib/scrollbar.js +234 -344
- package/lib/select.js +1041 -806
- package/lib/skeleton-item.js +278 -0
- package/lib/skeleton.js +308 -0
- package/lib/slider.js +608 -467
- package/lib/spinner.js +160 -207
- package/lib/statistic.js +462 -0
- package/lib/step.js +270 -262
- package/lib/steps.js +198 -261
- package/lib/submenu.js +318 -420
- package/lib/switch.js +311 -281
- package/lib/tab-pane.js +185 -245
- package/lib/table-column.js +667 -414
- package/lib/table.js +3388 -2770
- package/lib/tabs.js +577 -648
- package/lib/tag.js +160 -227
- package/lib/theme-chalk/alert.css +1 -1
- package/lib/theme-chalk/aside.css +1 -1
- package/lib/theme-chalk/autocomplete.css +1 -1
- package/lib/theme-chalk/avatar.css +1 -0
- package/lib/theme-chalk/backtop.css +1 -0
- package/lib/theme-chalk/badge.css +1 -1
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/breadcrumb.css +1 -1
- package/lib/theme-chalk/button.css +1 -1
- package/lib/theme-chalk/calendar.css +1 -0
- package/lib/theme-chalk/card.css +1 -1
- package/lib/theme-chalk/carousel-item.css +1 -1
- package/lib/theme-chalk/carousel.css +1 -1
- package/lib/theme-chalk/cascader-panel.css +1 -0
- package/lib/theme-chalk/cascader.css +1 -1
- package/lib/theme-chalk/checkbox.css +1 -1
- package/lib/theme-chalk/col.css +1 -1
- package/lib/theme-chalk/collapse.css +1 -1
- package/lib/theme-chalk/color-picker.css +1 -1
- package/lib/theme-chalk/container.css +1 -1
- package/lib/theme-chalk/date-picker.css +1 -1
- package/lib/theme-chalk/descriptions-item.css +1 -0
- package/lib/theme-chalk/descriptions.css +1 -0
- package/lib/theme-chalk/dialog.css +1 -1
- package/lib/theme-chalk/display.css +1 -1
- package/lib/theme-chalk/divider.css +1 -0
- package/lib/theme-chalk/drawer.css +1 -0
- package/lib/theme-chalk/dropdown.css +1 -1
- package/lib/theme-chalk/empty.css +1 -0
- package/lib/theme-chalk/fonts/element-icons.ttf +0 -0
- package/lib/theme-chalk/fonts/element-icons.woff +0 -0
- package/lib/theme-chalk/footer.css +1 -1
- package/lib/theme-chalk/form.css +1 -1
- package/lib/theme-chalk/header.css +1 -1
- package/lib/theme-chalk/icon.css +1 -1
- package/lib/theme-chalk/image.css +1 -0
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/input-number.css +1 -1
- package/lib/theme-chalk/input.css +1 -1
- package/lib/theme-chalk/link.css +1 -0
- package/lib/theme-chalk/loading.css +1 -1
- package/lib/theme-chalk/main.css +1 -1
- package/lib/theme-chalk/menu.css +1 -1
- package/lib/theme-chalk/message-box.css +1 -1
- package/lib/theme-chalk/message.css +1 -1
- package/lib/theme-chalk/notification.css +1 -1
- package/lib/theme-chalk/option-group.css +1 -1
- package/lib/theme-chalk/option.css +1 -1
- package/lib/theme-chalk/page-header.css +1 -0
- package/lib/theme-chalk/pagination.css +1 -1
- package/lib/theme-chalk/popconfirm.css +1 -0
- package/lib/theme-chalk/popover.css +1 -1
- package/lib/theme-chalk/popper.css +1 -1
- package/lib/theme-chalk/progress.css +1 -1
- package/lib/theme-chalk/radio-button.css +1 -1
- package/lib/theme-chalk/radio.css +1 -1
- package/lib/theme-chalk/rate.css +1 -1
- package/lib/theme-chalk/reset.css +1 -1
- package/lib/theme-chalk/result.css +1 -0
- package/lib/theme-chalk/row.css +1 -1
- package/lib/theme-chalk/scrollbar.css +1 -1
- package/lib/theme-chalk/select-dropdown.css +1 -1
- package/lib/theme-chalk/select.css +1 -1
- package/lib/theme-chalk/skeleton-item.css +1 -0
- package/lib/theme-chalk/skeleton.css +1 -0
- package/lib/theme-chalk/slider.css +1 -1
- package/lib/theme-chalk/spinner.css +1 -1
- package/lib/theme-chalk/statistic.css +1 -0
- package/lib/theme-chalk/step.css +1 -1
- package/lib/theme-chalk/steps.css +1 -1
- package/lib/theme-chalk/switch.css +1 -1
- package/lib/theme-chalk/table-column.css +1 -1
- package/lib/theme-chalk/table.css +1 -1
- package/lib/theme-chalk/tabs.css +1 -1
- package/lib/theme-chalk/tag.css +1 -1
- package/lib/theme-chalk/time-picker.css +1 -1
- package/lib/theme-chalk/time-select.css +1 -1
- package/lib/theme-chalk/timeline-item.css +1 -0
- package/lib/theme-chalk/timeline.css +1 -0
- package/lib/theme-chalk/tooltip.css +1 -1
- package/lib/theme-chalk/transfer.css +1 -1
- package/lib/theme-chalk/tree.css +1 -1
- package/lib/theme-chalk/upload.css +1 -1
- package/lib/time-picker.js +1548 -1348
- package/lib/time-select.js +633 -853
- package/lib/timeline-item.js +301 -0
- package/lib/timeline.js +207 -0
- package/lib/tooltip.js +166 -240
- package/lib/transfer.js +731 -639
- package/lib/transitions/collapse-transition.js +13 -31
- package/lib/tree.js +1769 -1883
- package/lib/umd/locale/af-ZA.js +35 -14
- package/lib/umd/locale/ar.js +35 -20
- package/lib/umd/locale/az.js +143 -0
- package/lib/umd/locale/bg.js +41 -17
- package/lib/umd/locale/bn.js +142 -0
- package/lib/umd/locale/ca.js +30 -15
- package/lib/umd/locale/cs-CZ.js +25 -9
- package/lib/umd/locale/da.js +25 -9
- package/lib/umd/locale/de.js +25 -9
- package/lib/umd/locale/ee.js +30 -14
- package/lib/umd/locale/el.js +26 -10
- package/lib/umd/locale/en.js +31 -13
- package/lib/umd/locale/eo.js +144 -0
- package/lib/umd/locale/es.js +28 -13
- package/lib/umd/locale/eu.js +147 -0
- package/lib/umd/locale/fa.js +30 -14
- package/lib/umd/locale/fi.js +46 -30
- package/lib/umd/locale/fr.js +27 -10
- package/lib/umd/locale/he.js +35 -14
- package/lib/umd/locale/hr.js +147 -0
- package/lib/umd/locale/hu.js +26 -10
- package/lib/umd/locale/hy-AM.js +144 -0
- package/lib/umd/locale/id.js +29 -14
- package/lib/umd/locale/is.js +143 -0
- package/lib/umd/locale/it.js +27 -12
- package/lib/umd/locale/ja.js +25 -9
- package/lib/umd/locale/kg.js +144 -0
- package/lib/umd/locale/km.js +27 -12
- package/lib/umd/locale/ko.js +25 -9
- package/lib/umd/locale/ku.js +25 -9
- package/lib/umd/locale/kz.js +25 -9
- package/lib/umd/locale/lt.js +25 -9
- package/lib/umd/locale/lv.js +32 -16
- package/lib/umd/locale/mn.js +25 -9
- package/lib/umd/locale/ms.js +142 -0
- package/lib/umd/locale/nb-NO.js +34 -19
- package/lib/umd/locale/nl.js +25 -9
- package/lib/umd/locale/pl.js +25 -9
- package/lib/umd/locale/pt-br.js +24 -9
- package/lib/umd/locale/pt.js +41 -17
- package/lib/umd/locale/ro.js +25 -9
- package/lib/umd/locale/ru-RU.js +26 -11
- package/lib/umd/locale/si.js +146 -0
- package/lib/umd/locale/sk.js +29 -14
- package/lib/umd/locale/sl.js +32 -16
- package/lib/umd/locale/sr-Latn.js +143 -0
- package/lib/umd/locale/sr.js +147 -0
- package/lib/umd/locale/sv-SE.js +40 -21
- package/lib/umd/locale/sw.js +146 -0
- package/lib/umd/locale/ta.js +37 -15
- package/lib/umd/locale/th.js +36 -18
- package/lib/umd/locale/tk.js +33 -13
- package/lib/umd/locale/tr-TR.js +26 -10
- package/lib/umd/locale/ua.js +26 -11
- package/lib/umd/locale/ug-CN.js +28 -13
- package/lib/umd/locale/uz-UZ.js +143 -0
- package/lib/umd/locale/vi.js +29 -14
- package/lib/umd/locale/zh-CN.js +24 -9
- package/lib/umd/locale/zh-TW.js +31 -12
- package/lib/upload.js +1093 -1338
- package/lib/utils/after-leave.js +19 -16
- package/lib/utils/aria-dialog.js +11 -29
- package/lib/utils/aria-utils.js +7 -15
- package/lib/utils/clickoutside.js +16 -24
- package/lib/utils/date-util.js +267 -0
- package/lib/utils/date.js +56 -52
- package/lib/utils/dom.js +57 -27
- package/lib/utils/lodash.js +9421 -0
- package/lib/utils/menu/aria-menubar.js +6 -11
- package/lib/utils/menu/aria-menuitem.js +11 -22
- package/lib/utils/menu/aria-submenu.js +7 -16
- package/lib/utils/merge.js +9 -16
- package/lib/utils/popper.js +1141 -1170
- package/lib/utils/popup/index.js +24 -76
- package/lib/utils/popup/popup-manager.js +17 -49
- package/lib/utils/resize-event.js +11 -24
- package/lib/utils/scroll-into-view.js +4 -12
- package/lib/utils/scrollbar-width.js +8 -19
- package/lib/utils/types.js +38 -0
- package/lib/utils/util.js +165 -18
- package/lib/utils/vdom.js +5 -16
- package/lib/utils/vue-popper.js +10 -31
- package/package.json +131 -139
- package/packages/alert/src/main.vue +15 -8
- package/packages/autocomplete/src/autocomplete-suggestions.vue +4 -4
- package/packages/autocomplete/src/autocomplete.vue +45 -14
- package/packages/avatar/index.js +8 -0
- package/packages/avatar/src/main.vue +107 -0
- package/packages/backtop/index.js +8 -0
- package/packages/backtop/src/main.vue +110 -0
- package/packages/badge/src/main.vue +15 -3
- package/packages/button/src/button.vue +2 -1
- package/packages/calendar/index.js +8 -0
- package/packages/calendar/src/date-table.vue +200 -0
- package/packages/calendar/src/main.vue +280 -0
- package/packages/carousel/src/item.vue +36 -12
- package/packages/carousel/src/main.vue +83 -22
- package/packages/cascader/index.js +1 -1
- package/packages/cascader/src/cascader.vue +663 -0
- package/packages/cascader-panel/index.js +8 -0
- package/packages/cascader-panel/src/cascader-menu.vue +138 -0
- package/packages/cascader-panel/src/cascader-node.vue +246 -0
- package/packages/cascader-panel/src/cascader-panel.vue +391 -0
- package/packages/cascader-panel/src/node.js +166 -0
- package/packages/cascader-panel/src/store.js +58 -0
- package/packages/checkbox/src/checkbox-button.vue +11 -3
- package/packages/checkbox/src/checkbox-group.vue +1 -1
- package/packages/checkbox/src/checkbox.vue +15 -8
- package/packages/collapse/src/collapse-item.vue +12 -11
- package/packages/color-picker/src/color.js +1 -0
- package/packages/color-picker/src/components/picker-dropdown.vue +10 -6
- package/packages/color-picker/src/components/sv-panel.vue +1 -3
- package/packages/color-picker/src/main.vue +13 -4
- package/packages/date-picker/src/basic/date-table.vue +104 -168
- package/packages/date-picker/src/basic/month-table.vue +223 -58
- package/packages/date-picker/src/basic/time-spinner.vue +31 -15
- package/packages/date-picker/src/basic/year-table.vue +16 -5
- package/packages/date-picker/src/panel/date-range.vue +105 -48
- package/packages/date-picker/src/panel/date.vue +82 -39
- package/packages/date-picker/src/panel/month-range.vue +289 -0
- package/packages/date-picker/src/panel/time-range.vue +2 -2
- package/packages/date-picker/src/panel/time-select.vue +3 -2
- package/packages/date-picker/src/panel/time.vue +2 -2
- package/packages/date-picker/src/picker/date-picker.js +3 -0
- package/packages/date-picker/src/picker.vue +87 -43
- package/packages/descriptions/index.js +8 -0
- package/packages/descriptions/src/descriptions-item.js +30 -0
- package/packages/descriptions/src/descriptions-row.js +116 -0
- package/packages/descriptions/src/index.js +180 -0
- package/packages/descriptions-item/index.js +8 -0
- package/packages/dialog/src/component.vue +35 -12
- package/packages/divider/index.js +8 -0
- package/packages/divider/src/main.vue +37 -0
- package/packages/drawer/index.js +8 -0
- package/packages/drawer/src/main.vue +205 -0
- package/packages/dropdown/src/dropdown-item.vue +4 -2
- package/packages/dropdown/src/dropdown-menu.vue +6 -3
- package/packages/dropdown/src/dropdown.vue +55 -35
- package/packages/empty/index.js +7 -0
- package/packages/empty/src/img-empty.vue +132 -0
- package/packages/empty/src/index.vue +50 -0
- package/packages/form/src/form-item.vue +76 -44
- package/packages/form/src/form.vue +59 -11
- package/packages/form/src/label-wrap.vue +78 -0
- package/packages/image/index.js +8 -0
- package/packages/image/src/image-viewer.vue +330 -0
- package/packages/image/src/main.vue +249 -0
- package/packages/infinite-scroll/index.js +8 -0
- package/packages/infinite-scroll/src/main.js +150 -0
- package/packages/input/src/input.vue +186 -75
- package/packages/input-number/src/input-number.vue +52 -25
- package/packages/link/index.js +8 -0
- package/packages/link/src/main.vue +53 -0
- package/packages/loading/src/directive.js +9 -4
- package/packages/loading/src/index.js +5 -5
- package/packages/menu/src/menu-item.vue +4 -4
- package/packages/menu/src/menu.vue +24 -10
- package/packages/menu/src/submenu.vue +26 -12
- package/packages/message/src/main.js +35 -16
- package/packages/message/src/main.vue +12 -15
- package/packages/message-box/src/main.js +6 -4
- package/packages/message-box/src/main.vue +32 -24
- package/packages/notification/src/main.js +9 -8
- package/packages/page-header/index.js +8 -0
- package/packages/page-header/src/main.vue +30 -0
- package/packages/pagination/src/pagination.js +36 -77
- package/packages/popconfirm/index.js +8 -0
- package/packages/popconfirm/src/main.vue +104 -0
- package/packages/popover/src/directive.js +5 -1
- package/packages/popover/src/main.vue +49 -31
- package/packages/progress/src/progress.vue +118 -21
- package/packages/radio/index.js +1 -1
- package/packages/radio/src/radio-button.vue +7 -3
- package/packages/radio/src/radio-group.vue +9 -3
- package/packages/radio/src/radio.vue +6 -3
- package/packages/rate/src/main.vue +36 -37
- package/packages/result/index.js +8 -0
- package/packages/result/src/icon-error.vue +13 -0
- package/packages/result/src/icon-info.vue +13 -0
- package/packages/result/src/icon-success.vue +13 -0
- package/packages/result/src/icon-warning.vue +13 -0
- package/packages/result/src/index.vue +65 -0
- package/packages/row/src/row.js +2 -5
- package/packages/scrollbar/src/bar.js +5 -1
- package/packages/scrollbar/src/main.js +3 -3
- package/packages/select/src/option-group.vue +1 -1
- package/packages/select/src/option.vue +22 -9
- package/packages/select/src/select-dropdown.vue +1 -1
- package/packages/select/src/select.vue +126 -105
- package/packages/skeleton/index.js +8 -0
- package/packages/skeleton/src/img-placeholder.vue +16 -0
- package/packages/skeleton/src/index.vue +76 -0
- package/packages/skeleton/src/item.vue +22 -0
- package/packages/skeleton-item/index.js +8 -0
- package/packages/slider/src/button.vue +6 -9
- package/packages/slider/src/main.vue +60 -32
- package/packages/slider/src/marker.js +18 -0
- package/packages/spinner/src/spinner.vue +1 -1
- package/packages/statistic/index.js +8 -0
- package/packages/statistic/src/main.vue +204 -0
- package/packages/steps/src/step.vue +5 -1
- package/packages/steps/src/steps.vue +1 -1
- package/packages/switch/src/component.vue +18 -7
- package/packages/table/src/config.js +124 -0
- package/packages/table/src/filter-panel.vue +9 -18
- package/packages/table/src/layout-observer.js +2 -2
- package/packages/table/src/store/current.js +76 -0
- package/packages/table/src/store/expand.js +65 -0
- package/packages/table/src/store/helper.js +41 -0
- package/packages/table/src/store/index.js +147 -0
- package/packages/table/src/store/tree.js +209 -0
- package/packages/table/src/store/watcher.js +381 -0
- package/packages/table/src/table-body.js +221 -166
- package/packages/table/src/table-column.js +203 -308
- package/packages/table/src/table-footer.js +75 -65
- package/packages/table/src/table-header.js +68 -77
- package/packages/table/src/table-layout.js +43 -25
- package/packages/table/src/table-row.js +101 -0
- package/packages/table/src/table.vue +155 -99
- package/packages/table/src/util.js +164 -1
- package/packages/tabs/src/tab-bar.vue +7 -7
- package/packages/tabs/src/tab-nav.vue +35 -14
- package/packages/tabs/src/tab-pane.vue +10 -18
- package/packages/tabs/src/tabs.vue +45 -22
- package/packages/tag/src/tag.vue +35 -18
- package/packages/theme-chalk/gulpfile.js +33 -0
- package/packages/theme-chalk/package.json +36 -0
- package/packages/theme-chalk/src/alert.scss +57 -15
- package/packages/theme-chalk/src/autocomplete.scss +3 -4
- package/packages/theme-chalk/src/avatar.scss +51 -0
- package/packages/theme-chalk/src/backtop.scss +22 -0
- package/packages/theme-chalk/src/badge.scss +17 -1
- package/packages/theme-chalk/src/button.scss +40 -20
- package/packages/theme-chalk/src/calendar.scss +79 -0
- package/packages/theme-chalk/src/carousel.scss +33 -6
- package/packages/theme-chalk/src/cascader-panel.scss +120 -0
- package/packages/theme-chalk/src/cascader.scss +118 -112
- package/packages/theme-chalk/src/checkbox.scss +18 -17
- package/packages/theme-chalk/src/collapse.scss +16 -9
- package/packages/theme-chalk/src/common/popup.scss +3 -2
- package/packages/theme-chalk/src/common/var.scss +500 -184
- package/packages/theme-chalk/src/date-picker/date-picker.scss +1 -1
- package/packages/theme-chalk/src/date-picker/date-range-picker.scss +4 -7
- package/packages/theme-chalk/src/date-picker/date-table.scss +11 -11
- package/packages/theme-chalk/src/date-picker/month-table.scss +48 -6
- package/packages/theme-chalk/src/date-picker/picker-panel.scss +3 -3
- package/packages/theme-chalk/src/date-picker/picker.scss +7 -0
- package/packages/theme-chalk/src/date-picker/time-picker.scss +1 -0
- package/packages/theme-chalk/src/date-picker/year-table.scss +9 -2
- package/packages/theme-chalk/src/descriptions-item.scss +42 -0
- package/packages/theme-chalk/src/descriptions.scss +111 -0
- package/packages/theme-chalk/src/dialog.scss +5 -4
- package/packages/theme-chalk/src/divider.scss +47 -0
- package/packages/theme-chalk/src/drawer.scss +219 -0
- package/packages/theme-chalk/src/dropdown.scss +14 -1
- package/packages/theme-chalk/src/empty.scss +45 -0
- package/packages/theme-chalk/src/fonts/element-icons.ttf +0 -0
- package/packages/theme-chalk/src/fonts/element-icons.woff +0 -0
- package/packages/theme-chalk/src/form.scss +18 -23
- package/packages/theme-chalk/src/icon.scss +1052 -71
- package/packages/theme-chalk/src/image.scss +179 -0
- package/packages/theme-chalk/src/index.scss +20 -0
- package/packages/theme-chalk/src/input.scss +56 -5
- package/packages/theme-chalk/src/link.scss +81 -0
- package/packages/theme-chalk/src/main.scss +2 -0
- package/packages/theme-chalk/src/menu.scss +11 -8
- package/packages/theme-chalk/src/message-box.scss +14 -11
- package/packages/theme-chalk/src/message.scss +10 -10
- package/packages/theme-chalk/src/notification.scss +8 -7
- package/packages/theme-chalk/src/option.scss +1 -5
- package/packages/theme-chalk/src/page-header.scss +41 -0
- package/packages/theme-chalk/src/pagination.scss +9 -10
- package/packages/theme-chalk/src/popconfirm.scss +16 -0
- package/packages/theme-chalk/src/popover.scss +3 -2
- package/packages/theme-chalk/src/popper.scss +4 -4
- package/packages/theme-chalk/src/progress.scss +13 -1
- package/packages/theme-chalk/src/radio-button.scss +8 -8
- package/packages/theme-chalk/src/radio.scss +7 -6
- package/packages/theme-chalk/src/result.scss +61 -0
- package/packages/theme-chalk/src/row.scss +4 -0
- package/packages/theme-chalk/src/scrollbar.scss +1 -0
- package/packages/theme-chalk/src/select-dropdown.scss +5 -2
- package/packages/theme-chalk/src/select.scss +14 -6
- package/packages/theme-chalk/src/skeleton-item.scss +84 -0
- package/packages/theme-chalk/src/skeleton.scss +40 -0
- package/packages/theme-chalk/src/slider.scss +22 -0
- package/packages/theme-chalk/src/statistic.scss +38 -0
- package/packages/theme-chalk/src/switch.scss +0 -3
- package/packages/theme-chalk/src/table.scss +67 -60
- package/packages/theme-chalk/src/tabs.scss +58 -32
- package/packages/theme-chalk/src/tag.scss +85 -68
- package/packages/theme-chalk/src/timeline-item.scss +86 -0
- package/packages/theme-chalk/src/timeline.scss +14 -0
- package/packages/theme-chalk/src/tooltip.scss +1 -0
- package/packages/theme-chalk/src/transfer.scss +2 -2
- package/packages/theme-chalk/src/tree.scss +8 -5
- package/packages/theme-chalk/src/upload.scss +1 -0
- package/packages/timeline/index.js +8 -0
- package/packages/timeline/src/item.vue +73 -0
- package/packages/timeline/src/main.vue +33 -0
- package/packages/timeline-item/index.js +8 -0
- package/packages/tooltip/src/main.js +52 -26
- package/packages/transfer/src/main.vue +15 -7
- package/packages/transfer/src/transfer-panel.vue +4 -4
- package/packages/tree/src/model/node.js +27 -21
- package/packages/tree/src/model/tree-store.js +22 -16
- package/packages/tree/src/tree-node.vue +16 -10
- package/packages/tree/src/tree.vue +41 -27
- package/packages/upload/src/index.vue +42 -13
- package/packages/upload/src/upload-list.vue +46 -41
- package/src/directives/repeat-click.js +6 -4
- package/src/index.js +66 -8
- package/src/locale/format.js +1 -1
- package/src/locale/index.js +1 -1
- package/src/locale/lang/af-ZA.js +15 -1
- package/src/locale/lang/ar.js +26 -12
- package/src/locale/lang/az.js +126 -0
- package/src/locale/lang/bg.js +15 -1
- package/src/locale/lang/bn.js +126 -0
- package/src/locale/lang/ca.js +21 -7
- package/src/locale/lang/cs-CZ.js +15 -1
- package/src/locale/lang/da.js +15 -1
- package/src/locale/lang/de.js +15 -1
- package/src/locale/lang/ee.js +20 -6
- package/src/locale/lang/el.js +16 -2
- package/src/locale/lang/en.js +16 -2
- package/src/locale/lang/eo.js +123 -0
- package/src/locale/lang/es.js +19 -5
- package/src/locale/lang/eu.js +123 -0
- package/src/locale/lang/fa.js +20 -6
- package/src/locale/lang/fi.js +36 -22
- package/src/locale/lang/fr.js +15 -1
- package/src/locale/lang/he.js +15 -1
- package/src/locale/lang/hr.js +123 -0
- package/src/locale/lang/hu.js +16 -2
- package/src/locale/lang/hy-AM.js +123 -0
- package/src/locale/lang/id.js +20 -6
- package/src/locale/lang/is.js +124 -0
- package/src/locale/lang/it.js +18 -4
- package/src/locale/lang/ja.js +15 -1
- package/src/locale/lang/kg.js +123 -0
- package/src/locale/lang/km.js +18 -4
- package/src/locale/lang/ko.js +15 -1
- package/src/locale/lang/ku.js +15 -1
- package/src/locale/lang/kz.js +15 -1
- package/src/locale/lang/lt.js +15 -1
- package/src/locale/lang/lv.js +22 -8
- package/src/locale/lang/mn.js +15 -1
- package/src/locale/lang/ms.js +122 -0
- package/src/locale/lang/nb-NO.js +25 -11
- package/src/locale/lang/nl.js +15 -1
- package/src/locale/lang/pl.js +15 -1
- package/src/locale/lang/pt-br.js +15 -1
- package/src/locale/lang/pt.js +15 -1
- package/src/locale/lang/ro.js +15 -1
- package/src/locale/lang/ru-RU.js +17 -3
- package/src/locale/lang/si.js +123 -0
- package/src/locale/lang/sk.js +20 -6
- package/src/locale/lang/sl.js +21 -7
- package/src/locale/lang/sr-Latn.js +123 -0
- package/src/locale/lang/sr.js +123 -0
- package/src/locale/lang/sv-SE.js +23 -9
- package/src/locale/lang/sw.js +123 -0
- package/src/locale/lang/ta.js +15 -1
- package/src/locale/lang/th.js +22 -8
- package/src/locale/lang/tk.js +15 -1
- package/src/locale/lang/tr-TR.js +16 -2
- package/src/locale/lang/ua.js +17 -3
- package/src/locale/lang/ug-CN.js +19 -5
- package/src/locale/lang/uz-UZ.js +123 -0
- package/src/locale/lang/vi.js +20 -6
- package/src/locale/lang/zh-CN.js +15 -1
- package/src/locale/lang/zh-TW.js +15 -1
- package/src/mixins/locale.js +1 -1
- package/src/mixins/migrating.js +6 -3
- package/src/transitions/collapse-transition.js +1 -1
- package/src/utils/aria-utils.js +2 -1
- package/src/utils/clickoutside.js +1 -1
- package/{packages/date-picker/src/util/index.js → src/utils/date-util.js} +69 -27
- package/src/utils/date.js +54 -30
- package/src/utils/dom.js +55 -2
- package/src/utils/lodash.js +18075 -0
- package/src/utils/merge.js +3 -13
- package/src/utils/popup/index.js +3 -11
- package/src/utils/popup/popup-manager.js +3 -3
- package/src/utils/resize-event.js +2 -1
- package/src/utils/types.js +38 -0
- package/src/utils/util.js +161 -0
- package/src/utils/vdom.js +1 -5
- package/src/utils/vue-popper.js +2 -1
- package/types/alert.d.ts +4 -0
- package/types/autocomplete.d.ts +6 -3
- package/types/avatar.d.ts +20 -0
- package/types/backtop.d.ts +16 -0
- package/types/calendar.d.ts +15 -0
- package/types/carousel.d.ts +4 -0
- package/types/cascader-panel.d.ts +72 -0
- package/types/cascader.d.ts +29 -21
- package/types/collapse-item.d.ts +3 -0
- package/types/descriptions-item.d.ts +37 -0
- package/types/descriptions.d.ts +52 -0
- package/types/dialog.d.ts +3 -0
- package/types/divider.d.ts +12 -0
- package/types/drawer.d.ts +63 -0
- package/types/dropdown-item.d.ts +3 -0
- package/types/dropdown.d.ts +12 -0
- package/types/element-ui.d.ts +91 -3
- package/types/empty.d.ts +31 -0
- package/types/form.d.ts +6 -6
- package/types/icon.d.ts +7 -0
- package/types/image.d.ts +43 -0
- package/types/infinite-scroll.d.ts +6 -0
- package/types/input-number.d.ts +4 -1
- package/types/input.d.ts +16 -1
- package/types/link.d.ts +25 -0
- package/types/loading.d.ts +3 -1
- package/types/message-box.d.ts +14 -4
- package/types/message.d.ts +17 -2
- package/types/page-header.d.ts +10 -0
- package/types/pagination.d.ts +3 -0
- package/types/popconfirm.d.ts +29 -0
- package/types/popover.d.ts +7 -1
- package/types/progress.d.ts +7 -1
- package/types/rate.d.ts +16 -4
- package/types/result.d.ts +33 -0
- package/types/select.d.ts +9 -0
- package/types/skeleton-item.d.ts +7 -0
- package/types/skeleton.d.ts +33 -0
- package/types/slider.d.ts +6 -0
- package/types/spinner.d.ts +16 -0
- package/types/statistic.d.ts +37 -0
- package/types/submenu.d.ts +1 -1
- package/types/switch.d.ts +3 -0
- package/types/table-column.d.ts +1 -1
- package/types/table.d.ts +58 -3
- package/types/tabs.d.ts +4 -1
- package/types/tag.d.ts +5 -1
- package/types/timeline-item.d.ts +20 -0
- package/types/timeline.d.ts +6 -0
- package/types/tooltip.d.ts +3 -0
- package/types/tree.d.ts +120 -97
- package/types/upload.d.ts +7 -4
- package/web-types.json +4195 -0
- package/CHANGELOG.en-US.md +0 -576
- package/CHANGELOG.es.md +0 -581
- package/CHANGELOG.zh-CN.md +0 -576
- package/lib/utils/sync.js +0 -59
- package/packages/carousel/_index.js +0 -10
- package/packages/carousel/cooking.conf.js +0 -6
- package/packages/carousel/package.json +0 -17
- package/packages/cascader/cooking.conf.js +0 -18
- package/packages/cascader/package.json +0 -15
- package/packages/cascader/src/main.vue +0 -438
- package/packages/cascader/src/menu.vue +0 -369
- package/packages/color-picker/cooking.conf.js +0 -6
- package/packages/color-picker/package.json +0 -15
- package/packages/date-picker/README.md +0 -64
- package/packages/date-picker/_index.js +0 -12
- package/packages/date-picker/cooking.conf.js +0 -6
- package/packages/date-picker/package.json +0 -15
- package/packages/loading/README.md +0 -66
- package/packages/loading/cooking.conf.js +0 -6
- package/packages/loading/package.json +0 -15
- package/packages/pagination/README.md +0 -59
- package/packages/pagination/cooking.conf.js +0 -6
- package/packages/pagination/package.json +0 -15
- package/packages/table/README.md +0 -106
- package/packages/table/_index.js +0 -10
- package/packages/table/cooking.conf.js +0 -6
- package/packages/table/package.json +0 -17
- package/packages/table/src/table-store.js +0 -619
- package/packages/theme-chalk/lib/alert.css +0 -1
- package/packages/theme-chalk/lib/aside.css +0 -1
- package/packages/theme-chalk/lib/autocomplete.css +0 -1
- package/packages/theme-chalk/lib/badge.css +0 -1
- package/packages/theme-chalk/lib/base.css +0 -1
- package/packages/theme-chalk/lib/breadcrumb.css +0 -1
- package/packages/theme-chalk/lib/button.css +0 -1
- package/packages/theme-chalk/lib/card.css +0 -1
- package/packages/theme-chalk/lib/carousel-item.css +0 -1
- package/packages/theme-chalk/lib/carousel.css +0 -1
- package/packages/theme-chalk/lib/cascader.css +0 -1
- package/packages/theme-chalk/lib/checkbox.css +0 -1
- package/packages/theme-chalk/lib/col.css +0 -1
- package/packages/theme-chalk/lib/collapse-item.css +0 -0
- package/packages/theme-chalk/lib/collapse.css +0 -1
- package/packages/theme-chalk/lib/color-picker.css +0 -1
- package/packages/theme-chalk/lib/container.css +0 -1
- package/packages/theme-chalk/lib/date-picker.css +0 -1
- package/packages/theme-chalk/lib/dialog.css +0 -1
- package/packages/theme-chalk/lib/display.css +0 -1
- package/packages/theme-chalk/lib/dropdown-item.css +0 -0
- package/packages/theme-chalk/lib/dropdown-menu.css +0 -0
- package/packages/theme-chalk/lib/dropdown.css +0 -1
- package/packages/theme-chalk/lib/fonts/element-icons.ttf +0 -0
- package/packages/theme-chalk/lib/fonts/element-icons.woff +0 -0
- package/packages/theme-chalk/lib/footer.css +0 -1
- package/packages/theme-chalk/lib/form-item.css +0 -0
- package/packages/theme-chalk/lib/form.css +0 -1
- package/packages/theme-chalk/lib/header.css +0 -1
- package/packages/theme-chalk/lib/icon.css +0 -1
- package/packages/theme-chalk/lib/index.css +0 -1
- package/packages/theme-chalk/lib/input-number.css +0 -1
- package/packages/theme-chalk/lib/input.css +0 -1
- package/packages/theme-chalk/lib/loading.css +0 -1
- package/packages/theme-chalk/lib/main.css +0 -1
- package/packages/theme-chalk/lib/menu-item-group.css +0 -0
- package/packages/theme-chalk/lib/menu-item.css +0 -0
- package/packages/theme-chalk/lib/menu.css +0 -1
- package/packages/theme-chalk/lib/message-box.css +0 -1
- package/packages/theme-chalk/lib/message.css +0 -1
- package/packages/theme-chalk/lib/notification.css +0 -1
- package/packages/theme-chalk/lib/option-group.css +0 -1
- package/packages/theme-chalk/lib/option.css +0 -1
- package/packages/theme-chalk/lib/pagination.css +0 -1
- package/packages/theme-chalk/lib/popover.css +0 -1
- package/packages/theme-chalk/lib/popper.css +0 -1
- package/packages/theme-chalk/lib/progress.css +0 -1
- package/packages/theme-chalk/lib/radio-button.css +0 -1
- package/packages/theme-chalk/lib/radio-group.css +0 -1
- package/packages/theme-chalk/lib/radio.css +0 -1
- package/packages/theme-chalk/lib/rate.css +0 -1
- package/packages/theme-chalk/lib/reset.css +0 -1
- package/packages/theme-chalk/lib/row.css +0 -1
- package/packages/theme-chalk/lib/scrollbar.css +0 -1
- package/packages/theme-chalk/lib/select-dropdown.css +0 -1
- package/packages/theme-chalk/lib/select.css +0 -1
- package/packages/theme-chalk/lib/slider.css +0 -1
- package/packages/theme-chalk/lib/spinner.css +0 -1
- package/packages/theme-chalk/lib/step.css +0 -1
- package/packages/theme-chalk/lib/steps.css +0 -1
- package/packages/theme-chalk/lib/submenu.css +0 -0
- package/packages/theme-chalk/lib/switch.css +0 -1
- package/packages/theme-chalk/lib/tab-pane.css +0 -0
- package/packages/theme-chalk/lib/table-column.css +0 -1
- package/packages/theme-chalk/lib/table.css +0 -1
- package/packages/theme-chalk/lib/tabs.css +0 -1
- package/packages/theme-chalk/lib/tag.css +0 -1
- package/packages/theme-chalk/lib/time-picker.css +0 -1
- package/packages/theme-chalk/lib/time-select.css +0 -1
- package/packages/theme-chalk/lib/tooltip.css +0 -1
- package/packages/theme-chalk/lib/transfer.css +0 -1
- package/packages/theme-chalk/lib/tree.css +0 -1
- package/packages/theme-chalk/lib/upload.css +0 -1
- package/packages/upload/README.md +0 -67
- package/packages/upload/cooking.conf.js +0 -6
- package/packages/upload/package.json +0 -16
- package/packages/upload/src/iframe-upload.vue +0 -167
- package/src/utils/sync.js +0 -54
- /package/{packages/theme-chalk/lib/breadcrumb-item.css → lib/theme-chalk/infinite-scroll.css} +0 -0
- /package/{packages/theme-chalk/lib/button-group.css → lib/theme-chalk/infiniteScroll.css} +0 -0
- /package/packages/theme-chalk/{lib/checkbox-button.css → src/infinite-scroll.scss} +0 -0
- /package/packages/theme-chalk/{lib/checkbox-group.css → src/infiniteScroll.scss} +0 -0
package/lib/color-picker.js
CHANGED
|
@@ -1,399 +1,155 @@
|
|
|
1
|
-
|
|
2
|
-
/******/
|
|
3
|
-
/******/ // The
|
|
4
|
-
/******/
|
|
5
|
-
/******/
|
|
6
|
-
|
|
7
|
-
/******/
|
|
8
|
-
/******/
|
|
9
|
-
/******/ //
|
|
10
|
-
/******/
|
|
11
|
-
/******/
|
|
12
|
-
/******/
|
|
13
|
-
/******/
|
|
14
|
-
/******/
|
|
15
|
-
/******/
|
|
16
|
-
/******/
|
|
17
|
-
/******/
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ // The require scope
|
|
4
|
+
/******/ const __webpack_require__ = {};
|
|
5
|
+
/******/
|
|
6
|
+
/************************************************************************/
|
|
7
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
8
|
+
/******/ (() => {
|
|
9
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
10
|
+
/******/ __webpack_require__.n = (module) => {
|
|
11
|
+
/******/ const getter = module && module.__esModule ?
|
|
12
|
+
/******/ () => (module['default']) :
|
|
13
|
+
/******/ () => (module);
|
|
14
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
15
|
+
/******/ return getter;
|
|
16
|
+
/******/ };
|
|
17
|
+
/******/ })();
|
|
18
|
+
/******/
|
|
19
|
+
/******/ /* webpack/runtime/define property getters */
|
|
20
|
+
/******/ (() => {
|
|
21
|
+
/******/ // define getter/value functions for harmony exports
|
|
22
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
23
|
+
/******/ if(Array.isArray(definition)) {
|
|
24
|
+
/******/ var i = 0;
|
|
25
|
+
/******/ while(i < definition.length) {
|
|
26
|
+
/******/ var key = definition[i++];
|
|
27
|
+
/******/ var binding = definition[i++];
|
|
28
|
+
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
29
|
+
/******/ if(binding === 0) {
|
|
30
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
31
|
+
/******/ } else {
|
|
32
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
33
|
+
/******/ }
|
|
34
|
+
/******/ } else if(binding === 0) { i++; }
|
|
35
|
+
/******/ }
|
|
36
|
+
/******/ } else {
|
|
37
|
+
/******/ for(var key in definition) {
|
|
38
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
39
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
40
|
+
/******/ }
|
|
41
|
+
/******/ }
|
|
42
|
+
/******/ }
|
|
18
43
|
/******/ };
|
|
19
|
-
/******/
|
|
20
|
-
/******/
|
|
21
|
-
/******/
|
|
22
|
-
/******/
|
|
23
|
-
/******/
|
|
24
|
-
/******/
|
|
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, {
|
|
41
|
-
/******/ configurable: false,
|
|
42
|
-
/******/ enumerable: true,
|
|
43
|
-
/******/ get: getter
|
|
44
|
-
/******/ });
|
|
45
|
-
/******/ }
|
|
46
|
-
/******/ };
|
|
47
|
-
/******/
|
|
48
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
49
|
-
/******/ __webpack_require__.n = function(module) {
|
|
50
|
-
/******/ var getter = module && module.__esModule ?
|
|
51
|
-
/******/ function getDefault() { return module['default']; } :
|
|
52
|
-
/******/ function getModuleExports() { return module; };
|
|
53
|
-
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
54
|
-
/******/ return getter;
|
|
55
|
-
/******/ };
|
|
56
|
-
/******/
|
|
57
|
-
/******/ // Object.prototype.hasOwnProperty.call
|
|
58
|
-
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
59
|
-
/******/
|
|
60
|
-
/******/ // __webpack_public_path__
|
|
61
|
-
/******/ __webpack_require__.p = "/dist/";
|
|
62
|
-
/******/
|
|
63
|
-
/******/ // Load entry module and return exports
|
|
64
|
-
/******/ return __webpack_require__(__webpack_require__.s = 374);
|
|
65
|
-
/******/ })
|
|
44
|
+
/******/ })();
|
|
45
|
+
/******/
|
|
46
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
47
|
+
/******/ (() => {
|
|
48
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
49
|
+
/******/ })();
|
|
50
|
+
/******/
|
|
66
51
|
/************************************************************************/
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
// Vue.extend constructor export interop
|
|
97
|
-
var options = typeof scriptExports === 'function'
|
|
98
|
-
? scriptExports.options
|
|
99
|
-
: scriptExports
|
|
100
|
-
|
|
101
|
-
// render functions
|
|
102
|
-
if (compiledTemplate) {
|
|
103
|
-
options.render = compiledTemplate.render
|
|
104
|
-
options.staticRenderFns = compiledTemplate.staticRenderFns
|
|
105
|
-
options._compiled = true
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
// functional template
|
|
109
|
-
if (functionalTemplate) {
|
|
110
|
-
options.functional = true
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
// scopedId
|
|
114
|
-
if (scopeId) {
|
|
115
|
-
options._scopeId = scopeId
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
var hook
|
|
119
|
-
if (moduleIdentifier) { // server build
|
|
120
|
-
hook = function (context) {
|
|
121
|
-
// 2.3 injection
|
|
122
|
-
context =
|
|
123
|
-
context || // cached call
|
|
124
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
125
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
126
|
-
// 2.2 with runInNewContext: true
|
|
127
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
128
|
-
context = __VUE_SSR_CONTEXT__
|
|
129
|
-
}
|
|
130
|
-
// inject component styles
|
|
131
|
-
if (injectStyles) {
|
|
132
|
-
injectStyles.call(this, context)
|
|
133
|
-
}
|
|
134
|
-
// register component module identifier for async chunk inferrence
|
|
135
|
-
if (context && context._registeredComponents) {
|
|
136
|
-
context._registeredComponents.add(moduleIdentifier)
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
// used by ssr in case component is cached and beforeCreate
|
|
140
|
-
// never gets called
|
|
141
|
-
options._ssrRegister = hook
|
|
142
|
-
} else if (injectStyles) {
|
|
143
|
-
hook = injectStyles
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
if (hook) {
|
|
147
|
-
var functional = options.functional
|
|
148
|
-
var existing = functional
|
|
149
|
-
? options.render
|
|
150
|
-
: options.beforeCreate
|
|
151
|
-
|
|
152
|
-
if (!functional) {
|
|
153
|
-
// inject component registration as beforeCreate hook
|
|
154
|
-
options.beforeCreate = existing
|
|
155
|
-
? [].concat(existing, hook)
|
|
156
|
-
: [hook]
|
|
157
|
-
} else {
|
|
158
|
-
// for template-only hot-reload because in that case the render fn doesn't
|
|
159
|
-
// go through the normalizer
|
|
160
|
-
options._injectStyles = hook
|
|
161
|
-
// register for functioal component in vue file
|
|
162
|
-
options.render = function renderWithStyleInjection (h, context) {
|
|
163
|
-
hook.call(context)
|
|
164
|
-
return existing(h, context)
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
return {
|
|
170
|
-
esModule: esModule,
|
|
171
|
-
exports: scriptExports,
|
|
172
|
-
options: options
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
/***/ }),
|
|
178
|
-
|
|
179
|
-
/***/ 10:
|
|
180
|
-
/***/ (function(module, exports) {
|
|
181
|
-
|
|
182
|
-
module.exports = require("element-ui/lib/utils/clickoutside");
|
|
183
|
-
|
|
184
|
-
/***/ }),
|
|
185
|
-
|
|
186
|
-
/***/ 126:
|
|
187
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
188
|
-
|
|
189
|
-
"use strict";
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
exports.__esModule = true;
|
|
193
|
-
|
|
194
|
-
var _color = __webpack_require__(127);
|
|
195
|
-
|
|
196
|
-
var _color2 = _interopRequireDefault(_color);
|
|
197
|
-
|
|
198
|
-
var _pickerDropdown = __webpack_require__(376);
|
|
199
|
-
|
|
200
|
-
var _pickerDropdown2 = _interopRequireDefault(_pickerDropdown);
|
|
201
|
-
|
|
202
|
-
var _clickoutside = __webpack_require__(10);
|
|
203
|
-
|
|
204
|
-
var _clickoutside2 = _interopRequireDefault(_clickoutside);
|
|
205
|
-
|
|
206
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
207
|
-
|
|
208
|
-
exports.default = {
|
|
209
|
-
name: 'ElColorPicker',
|
|
210
|
-
|
|
211
|
-
props: {
|
|
212
|
-
value: String,
|
|
213
|
-
showAlpha: Boolean,
|
|
214
|
-
colorFormat: String,
|
|
215
|
-
disabled: Boolean,
|
|
216
|
-
size: String,
|
|
217
|
-
popperClass: String,
|
|
218
|
-
predefine: Array
|
|
219
|
-
},
|
|
220
|
-
|
|
221
|
-
inject: {
|
|
222
|
-
elForm: {
|
|
223
|
-
default: ''
|
|
224
|
-
},
|
|
225
|
-
elFormItem: {
|
|
226
|
-
default: ''
|
|
227
|
-
}
|
|
228
|
-
},
|
|
229
|
-
|
|
230
|
-
directives: { Clickoutside: _clickoutside2.default },
|
|
231
|
-
|
|
232
|
-
computed: {
|
|
233
|
-
displayedColor: function displayedColor() {
|
|
234
|
-
if (!this.value && !this.showPanelColor) {
|
|
235
|
-
return 'transparent';
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
return this.displayedRgb(this.color, this.showAlpha);
|
|
239
|
-
},
|
|
240
|
-
_elFormItemSize: function _elFormItemSize() {
|
|
241
|
-
return (this.elFormItem || {}).elFormItemSize;
|
|
52
|
+
let __webpack_exports__ = {};
|
|
53
|
+
|
|
54
|
+
// EXPORTS
|
|
55
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
56
|
+
"default": () => (/* binding */ color_picker)
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
;// ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/color-picker/src/main.vue?vue&type=template&id=7bc26c76
|
|
60
|
+
var render = function () {
|
|
61
|
+
var _vm = this
|
|
62
|
+
var _h = _vm.$createElement
|
|
63
|
+
var _c = _vm._self._c || _h
|
|
64
|
+
return _c(
|
|
65
|
+
"div",
|
|
66
|
+
{
|
|
67
|
+
directives: [
|
|
68
|
+
{
|
|
69
|
+
name: "clickoutside",
|
|
70
|
+
rawName: "v-clickoutside",
|
|
71
|
+
value: _vm.hide,
|
|
72
|
+
expression: "hide",
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
class: [
|
|
76
|
+
"el-color-picker",
|
|
77
|
+
_vm.colorDisabled ? "is-disabled" : "",
|
|
78
|
+
_vm.colorSize ? "el-color-picker--" + _vm.colorSize : "",
|
|
79
|
+
],
|
|
242
80
|
},
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
}
|
|
311
|
-
});
|
|
312
|
-
},
|
|
313
|
-
displayedRgb: function displayedRgb(color, showAlpha) {
|
|
314
|
-
if (!(color instanceof _color2.default)) {
|
|
315
|
-
throw Error('color should be instance of Color Class');
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
var _color$toRgb = color.toRgb(),
|
|
319
|
-
r = _color$toRgb.r,
|
|
320
|
-
g = _color$toRgb.g,
|
|
321
|
-
b = _color$toRgb.b;
|
|
322
|
-
|
|
323
|
-
return showAlpha ? 'rgba(' + r + ', ' + g + ', ' + b + ', ' + color.get('alpha') / 100 + ')' : 'rgb(' + r + ', ' + g + ', ' + b + ')';
|
|
324
|
-
}
|
|
325
|
-
},
|
|
326
|
-
|
|
327
|
-
mounted: function mounted() {
|
|
328
|
-
var value = this.value;
|
|
329
|
-
if (value) {
|
|
330
|
-
this.color.fromString(value);
|
|
331
|
-
}
|
|
332
|
-
this.popperElm = this.$refs.dropdown.$el;
|
|
333
|
-
},
|
|
334
|
-
data: function data() {
|
|
335
|
-
var color = new _color2.default({
|
|
336
|
-
enableAlpha: this.showAlpha,
|
|
337
|
-
format: this.colorFormat
|
|
338
|
-
});
|
|
339
|
-
return {
|
|
340
|
-
color: color,
|
|
341
|
-
showPicker: false,
|
|
342
|
-
showPanelColor: false
|
|
343
|
-
};
|
|
344
|
-
},
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
components: {
|
|
348
|
-
PickerDropdown: _pickerDropdown2.default
|
|
349
|
-
}
|
|
350
|
-
}; //
|
|
351
|
-
//
|
|
352
|
-
//
|
|
353
|
-
//
|
|
354
|
-
//
|
|
355
|
-
//
|
|
356
|
-
//
|
|
357
|
-
//
|
|
358
|
-
//
|
|
359
|
-
//
|
|
360
|
-
//
|
|
361
|
-
//
|
|
362
|
-
//
|
|
363
|
-
//
|
|
364
|
-
//
|
|
365
|
-
//
|
|
366
|
-
//
|
|
367
|
-
//
|
|
368
|
-
//
|
|
369
|
-
//
|
|
370
|
-
//
|
|
371
|
-
//
|
|
372
|
-
//
|
|
373
|
-
//
|
|
374
|
-
//
|
|
375
|
-
//
|
|
376
|
-
//
|
|
377
|
-
//
|
|
378
|
-
//
|
|
379
|
-
//
|
|
380
|
-
//
|
|
381
|
-
//
|
|
382
|
-
|
|
383
|
-
/***/ }),
|
|
384
|
-
|
|
385
|
-
/***/ 127:
|
|
386
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
387
|
-
|
|
388
|
-
"use strict";
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
exports.__esModule = true;
|
|
81
|
+
[
|
|
82
|
+
_vm.colorDisabled
|
|
83
|
+
? _c("div", { staticClass: "el-color-picker__mask" })
|
|
84
|
+
: _vm._e(),
|
|
85
|
+
_c(
|
|
86
|
+
"div",
|
|
87
|
+
{
|
|
88
|
+
staticClass: "el-color-picker__trigger",
|
|
89
|
+
on: { click: _vm.handleTrigger },
|
|
90
|
+
},
|
|
91
|
+
[
|
|
92
|
+
_c(
|
|
93
|
+
"span",
|
|
94
|
+
{
|
|
95
|
+
staticClass: "el-color-picker__color",
|
|
96
|
+
class: { "is-alpha": _vm.showAlpha },
|
|
97
|
+
},
|
|
98
|
+
[
|
|
99
|
+
_c("span", {
|
|
100
|
+
staticClass: "el-color-picker__color-inner",
|
|
101
|
+
style: {
|
|
102
|
+
backgroundColor: _vm.displayedColor,
|
|
103
|
+
},
|
|
104
|
+
}),
|
|
105
|
+
!_vm.value && !_vm.showPanelColor
|
|
106
|
+
? _c("span", {
|
|
107
|
+
staticClass: "el-color-picker__empty el-icon-close",
|
|
108
|
+
})
|
|
109
|
+
: _vm._e(),
|
|
110
|
+
]
|
|
111
|
+
),
|
|
112
|
+
_c("span", {
|
|
113
|
+
directives: [
|
|
114
|
+
{
|
|
115
|
+
name: "show",
|
|
116
|
+
rawName: "v-show",
|
|
117
|
+
value: _vm.value || _vm.showPanelColor,
|
|
118
|
+
expression: "value || showPanelColor",
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
staticClass: "el-color-picker__icon el-icon-arrow-down",
|
|
122
|
+
}),
|
|
123
|
+
]
|
|
124
|
+
),
|
|
125
|
+
_c("picker-dropdown", {
|
|
126
|
+
ref: "dropdown",
|
|
127
|
+
class: ["el-color-picker__panel", _vm.popperClass || ""],
|
|
128
|
+
attrs: {
|
|
129
|
+
color: _vm.color,
|
|
130
|
+
"show-alpha": _vm.showAlpha,
|
|
131
|
+
predefine: _vm.predefine,
|
|
132
|
+
},
|
|
133
|
+
on: { pick: _vm.confirmValue, clear: _vm.clearValue },
|
|
134
|
+
model: {
|
|
135
|
+
value: _vm.showPicker,
|
|
136
|
+
callback: function ($$v) {
|
|
137
|
+
_vm.showPicker = $$v
|
|
138
|
+
},
|
|
139
|
+
expression: "showPicker",
|
|
140
|
+
},
|
|
141
|
+
}),
|
|
142
|
+
],
|
|
143
|
+
1
|
|
144
|
+
)
|
|
145
|
+
}
|
|
146
|
+
var staticRenderFns = []
|
|
147
|
+
render._withStripped = true
|
|
392
148
|
|
|
393
|
-
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; };
|
|
394
149
|
|
|
395
|
-
|
|
150
|
+
;// ./packages/color-picker/src/main.vue?vue&type=template&id=7bc26c76
|
|
396
151
|
|
|
152
|
+
;// ./packages/color-picker/src/color.js
|
|
397
153
|
var hsv2hsl = function hsv2hsl(hue, sat, val) {
|
|
398
154
|
return [hue, sat * val / ((hue = (2 - sat) * val) < 1 ? hue : 2 - hue) || 0, hue / 2];
|
|
399
155
|
};
|
|
@@ -403,7 +159,6 @@ var hsv2hsl = function hsv2hsl(hue, sat, val) {
|
|
|
403
159
|
var isOnePointZero = function isOnePointZero(n) {
|
|
404
160
|
return typeof n === 'string' && n.indexOf('.') !== -1 && parseFloat(n) === 1;
|
|
405
161
|
};
|
|
406
|
-
|
|
407
162
|
var isPercentage = function isPercentage(n) {
|
|
408
163
|
return typeof n === 'string' && n.indexOf('%') !== -1;
|
|
409
164
|
};
|
|
@@ -411,7 +166,6 @@ var isPercentage = function isPercentage(n) {
|
|
|
411
166
|
// Take input from [0, n] and return it as [0, 1]
|
|
412
167
|
var bound01 = function bound01(value, max) {
|
|
413
168
|
if (isOnePointZero(value)) value = '100%';
|
|
414
|
-
|
|
415
169
|
var processPercent = isPercentage(value);
|
|
416
170
|
value = Math.min(max, Math.max(0, parseFloat(value)));
|
|
417
171
|
|
|
@@ -428,50 +182,53 @@ var bound01 = function bound01(value, max) {
|
|
|
428
182
|
// Convert into [0, 1] range if it isn't already
|
|
429
183
|
return value % max / parseFloat(max);
|
|
430
184
|
};
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
185
|
+
var INT_HEX_MAP = {
|
|
186
|
+
10: 'A',
|
|
187
|
+
11: 'B',
|
|
188
|
+
12: 'C',
|
|
189
|
+
13: 'D',
|
|
190
|
+
14: 'E',
|
|
191
|
+
15: 'F'
|
|
192
|
+
};
|
|
434
193
|
var toHex = function toHex(_ref) {
|
|
435
194
|
var r = _ref.r,
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
195
|
+
g = _ref.g,
|
|
196
|
+
b = _ref.b;
|
|
439
197
|
var hexOne = function hexOne(value) {
|
|
440
198
|
value = Math.min(Math.round(value), 255);
|
|
441
199
|
var high = Math.floor(value / 16);
|
|
442
200
|
var low = value % 16;
|
|
443
201
|
return '' + (INT_HEX_MAP[high] || high) + (INT_HEX_MAP[low] || low);
|
|
444
202
|
};
|
|
445
|
-
|
|
446
203
|
if (isNaN(r) || isNaN(g) || isNaN(b)) return '';
|
|
447
|
-
|
|
448
204
|
return '#' + hexOne(r) + hexOne(g) + hexOne(b);
|
|
449
205
|
};
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
206
|
+
var HEX_INT_MAP = {
|
|
207
|
+
A: 10,
|
|
208
|
+
B: 11,
|
|
209
|
+
C: 12,
|
|
210
|
+
D: 13,
|
|
211
|
+
E: 14,
|
|
212
|
+
F: 15
|
|
213
|
+
};
|
|
453
214
|
var parseHexChannel = function parseHexChannel(hex) {
|
|
454
215
|
if (hex.length === 2) {
|
|
455
216
|
return (HEX_INT_MAP[hex[0].toUpperCase()] || +hex[0]) * 16 + (HEX_INT_MAP[hex[1].toUpperCase()] || +hex[1]);
|
|
456
217
|
}
|
|
457
|
-
|
|
458
218
|
return HEX_INT_MAP[hex[1].toUpperCase()] || +hex[1];
|
|
459
219
|
};
|
|
460
|
-
|
|
461
220
|
var hsl2hsv = function hsl2hsv(hue, sat, light) {
|
|
462
221
|
sat = sat / 100;
|
|
463
222
|
light = light / 100;
|
|
464
223
|
var smin = sat;
|
|
465
224
|
var lmin = Math.max(light, 0.01);
|
|
466
|
-
var sv
|
|
467
|
-
var v
|
|
468
|
-
|
|
225
|
+
var sv;
|
|
226
|
+
var v;
|
|
469
227
|
light *= 2;
|
|
470
228
|
sat *= light <= 1 ? light : 2 - light;
|
|
471
229
|
smin *= lmin <= 1 ? lmin : 2 - lmin;
|
|
472
230
|
v = (light + sat) / 2;
|
|
473
231
|
sv = light === 0 ? 2 * smin / (lmin + smin) : 2 * sat / (light + sat);
|
|
474
|
-
|
|
475
232
|
return {
|
|
476
233
|
h: hue,
|
|
477
234
|
s: sv * 100,
|
|
@@ -487,16 +244,12 @@ var rgb2hsv = function rgb2hsv(r, g, b) {
|
|
|
487
244
|
r = bound01(r, 255);
|
|
488
245
|
g = bound01(g, 255);
|
|
489
246
|
b = bound01(b, 255);
|
|
490
|
-
|
|
491
247
|
var max = Math.max(r, g, b);
|
|
492
248
|
var min = Math.min(r, g, b);
|
|
493
|
-
var h
|
|
494
|
-
s = void 0;
|
|
249
|
+
var h, s;
|
|
495
250
|
var v = max;
|
|
496
|
-
|
|
497
251
|
var d = max - min;
|
|
498
252
|
s = max === 0 ? 0 : d / max;
|
|
499
|
-
|
|
500
253
|
if (max === min) {
|
|
501
254
|
h = 0; // achromatic
|
|
502
255
|
} else {
|
|
@@ -513,8 +266,11 @@ var rgb2hsv = function rgb2hsv(r, g, b) {
|
|
|
513
266
|
}
|
|
514
267
|
h /= 6;
|
|
515
268
|
}
|
|
516
|
-
|
|
517
|
-
|
|
269
|
+
return {
|
|
270
|
+
h: h * 360,
|
|
271
|
+
s: s * 100,
|
|
272
|
+
v: v * 100
|
|
273
|
+
};
|
|
518
274
|
};
|
|
519
275
|
|
|
520
276
|
// `hsvToRgb`
|
|
@@ -525,7 +281,6 @@ var hsv2rgb = function hsv2rgb(h, s, v) {
|
|
|
525
281
|
h = bound01(h, 360) * 6;
|
|
526
282
|
s = bound01(s, 100);
|
|
527
283
|
v = bound01(v, 100);
|
|
528
|
-
|
|
529
284
|
var i = Math.floor(h);
|
|
530
285
|
var f = h - i;
|
|
531
286
|
var p = v * (1 - s);
|
|
@@ -535,88 +290,69 @@ var hsv2rgb = function hsv2rgb(h, s, v) {
|
|
|
535
290
|
var r = [v, q, p, p, t, v][mod];
|
|
536
291
|
var g = [t, v, v, q, p, p][mod];
|
|
537
292
|
var b = [p, p, t, v, v, q][mod];
|
|
538
|
-
|
|
539
293
|
return {
|
|
540
294
|
r: Math.round(r * 255),
|
|
541
295
|
g: Math.round(g * 255),
|
|
542
296
|
b: Math.round(b * 255)
|
|
543
297
|
};
|
|
544
298
|
};
|
|
545
|
-
|
|
546
|
-
var Color = function () {
|
|
299
|
+
var Color = /*#__PURE__*/function () {
|
|
547
300
|
function Color(options) {
|
|
548
|
-
_classCallCheck(this, Color);
|
|
549
|
-
|
|
550
301
|
this._hue = 0;
|
|
551
302
|
this._saturation = 100;
|
|
552
303
|
this._value = 100;
|
|
553
304
|
this._alpha = 100;
|
|
554
|
-
|
|
555
305
|
this.enableAlpha = false;
|
|
556
306
|
this.format = 'hex';
|
|
557
307
|
this.value = '';
|
|
558
|
-
|
|
559
308
|
options = options || {};
|
|
560
|
-
|
|
561
309
|
for (var option in options) {
|
|
562
310
|
if (options.hasOwnProperty(option)) {
|
|
563
311
|
this[option] = options[option];
|
|
564
312
|
}
|
|
565
313
|
}
|
|
566
|
-
|
|
567
314
|
this.doOnChange();
|
|
568
315
|
}
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
if (arguments.length === 1 &&
|
|
316
|
+
var _proto = Color.prototype;
|
|
317
|
+
_proto.set = function set(prop, value) {
|
|
318
|
+
if (arguments.length === 1 && typeof prop === 'object') {
|
|
572
319
|
for (var p in prop) {
|
|
573
320
|
if (prop.hasOwnProperty(p)) {
|
|
574
321
|
this.set(p, prop[p]);
|
|
575
322
|
}
|
|
576
323
|
}
|
|
577
|
-
|
|
578
324
|
return;
|
|
579
325
|
}
|
|
580
|
-
|
|
581
326
|
this['_' + prop] = value;
|
|
582
327
|
this.doOnChange();
|
|
583
328
|
};
|
|
584
|
-
|
|
585
|
-
Color.prototype.get = function get(prop) {
|
|
329
|
+
_proto.get = function get(prop) {
|
|
586
330
|
return this['_' + prop];
|
|
587
331
|
};
|
|
588
|
-
|
|
589
|
-
Color.prototype.toRgb = function toRgb() {
|
|
332
|
+
_proto.toRgb = function toRgb() {
|
|
590
333
|
return hsv2rgb(this._hue, this._saturation, this._value);
|
|
591
334
|
};
|
|
592
|
-
|
|
593
|
-
Color.prototype.fromString = function fromString(value) {
|
|
335
|
+
_proto.fromString = function fromString(value) {
|
|
594
336
|
var _this = this;
|
|
595
|
-
|
|
596
337
|
if (!value) {
|
|
597
338
|
this._hue = 0;
|
|
598
339
|
this._saturation = 100;
|
|
599
340
|
this._value = 100;
|
|
600
|
-
|
|
601
341
|
this.doOnChange();
|
|
602
342
|
return;
|
|
603
343
|
}
|
|
604
|
-
|
|
605
344
|
var fromHSV = function fromHSV(h, s, v) {
|
|
606
345
|
_this._hue = Math.max(0, Math.min(360, h));
|
|
607
346
|
_this._saturation = Math.max(0, Math.min(100, s));
|
|
608
347
|
_this._value = Math.max(0, Math.min(100, v));
|
|
609
|
-
|
|
610
348
|
_this.doOnChange();
|
|
611
349
|
};
|
|
612
|
-
|
|
613
350
|
if (value.indexOf('hsl') !== -1) {
|
|
614
351
|
var parts = value.replace(/hsla|hsl|\(|\)/gm, '').split(/\s|,/g).filter(function (val) {
|
|
615
352
|
return val !== '';
|
|
616
353
|
}).map(function (val, index) {
|
|
617
354
|
return index > 2 ? parseFloat(val) : parseInt(val, 10);
|
|
618
355
|
});
|
|
619
|
-
|
|
620
356
|
if (parts.length === 4) {
|
|
621
357
|
this._alpha = Math.floor(parseFloat(parts[3]) * 100);
|
|
622
358
|
} else if (parts.length === 3) {
|
|
@@ -624,10 +360,9 @@ var Color = function () {
|
|
|
624
360
|
}
|
|
625
361
|
if (parts.length >= 3) {
|
|
626
362
|
var _hsl2hsv = hsl2hsv(parts[0], parts[1], parts[2]),
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
363
|
+
h = _hsl2hsv.h,
|
|
364
|
+
s = _hsl2hsv.s,
|
|
365
|
+
v = _hsl2hsv.v;
|
|
631
366
|
fromHSV(h, s, v);
|
|
632
367
|
}
|
|
633
368
|
} else if (value.indexOf('hsv') !== -1) {
|
|
@@ -636,7 +371,6 @@ var Color = function () {
|
|
|
636
371
|
}).map(function (val, index) {
|
|
637
372
|
return index > 2 ? parseFloat(val) : parseInt(val, 10);
|
|
638
373
|
});
|
|
639
|
-
|
|
640
374
|
if (_parts.length === 4) {
|
|
641
375
|
this._alpha = Math.floor(parseFloat(_parts[3]) * 100);
|
|
642
376
|
} else if (_parts.length === 3) {
|
|
@@ -651,7 +385,6 @@ var Color = function () {
|
|
|
651
385
|
}).map(function (val, index) {
|
|
652
386
|
return index > 2 ? parseFloat(val) : parseInt(val, 10);
|
|
653
387
|
});
|
|
654
|
-
|
|
655
388
|
if (_parts2.length === 4) {
|
|
656
389
|
this._alpha = Math.floor(parseFloat(_parts2[3]) * 100);
|
|
657
390
|
} else if (_parts2.length === 3) {
|
|
@@ -659,18 +392,15 @@ var Color = function () {
|
|
|
659
392
|
}
|
|
660
393
|
if (_parts2.length >= 3) {
|
|
661
394
|
var _rgb2hsv = rgb2hsv(_parts2[0], _parts2[1], _parts2[2]),
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
395
|
+
_h = _rgb2hsv.h,
|
|
396
|
+
_s = _rgb2hsv.s,
|
|
397
|
+
_v = _rgb2hsv.v;
|
|
666
398
|
fromHSV(_h, _s, _v);
|
|
667
399
|
}
|
|
668
400
|
} else if (value.indexOf('#') !== -1) {
|
|
669
401
|
var hex = value.replace('#', '').trim();
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
b = void 0;
|
|
673
|
-
|
|
402
|
+
if (!/^(?:[0-9a-fA-F]{3}){1,2}|[0-9a-fA-F]{8}$/.test(hex)) return;
|
|
403
|
+
var r, g, b;
|
|
674
404
|
if (hex.length === 3) {
|
|
675
405
|
r = parseHexChannel(hex[0] + hex[0]);
|
|
676
406
|
g = parseHexChannel(hex[1] + hex[1]);
|
|
@@ -680,124 +410,276 @@ var Color = function () {
|
|
|
680
410
|
g = parseHexChannel(hex.substring(2, 4));
|
|
681
411
|
b = parseHexChannel(hex.substring(4, 6));
|
|
682
412
|
}
|
|
683
|
-
|
|
684
413
|
if (hex.length === 8) {
|
|
685
414
|
this._alpha = Math.floor(parseHexChannel(hex.substring(6)) / 255 * 100);
|
|
686
415
|
} else if (hex.length === 3 || hex.length === 6) {
|
|
687
416
|
this._alpha = 100;
|
|
688
417
|
}
|
|
689
|
-
|
|
690
418
|
var _rgb2hsv2 = rgb2hsv(r, g, b),
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
419
|
+
_h2 = _rgb2hsv2.h,
|
|
420
|
+
_s2 = _rgb2hsv2.s,
|
|
421
|
+
_v2 = _rgb2hsv2.v;
|
|
695
422
|
fromHSV(_h2, _s2, _v2);
|
|
696
423
|
}
|
|
697
424
|
};
|
|
698
|
-
|
|
699
|
-
Color.prototype.compare = function compare(color) {
|
|
425
|
+
_proto.compare = function compare(color) {
|
|
700
426
|
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;
|
|
701
427
|
};
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
format = this.format;
|
|
709
|
-
|
|
710
|
-
|
|
428
|
+
_proto.doOnChange = function doOnChange() {
|
|
429
|
+
var _hue = this._hue,
|
|
430
|
+
_saturation = this._saturation,
|
|
431
|
+
_value = this._value,
|
|
432
|
+
_alpha = this._alpha,
|
|
433
|
+
format = this.format;
|
|
711
434
|
if (this.enableAlpha) {
|
|
712
435
|
switch (format) {
|
|
713
436
|
case 'hsl':
|
|
714
437
|
var hsl = hsv2hsl(_hue, _saturation / 100, _value / 100);
|
|
715
|
-
this.value =
|
|
438
|
+
this.value = "hsla(" + _hue + ", " + Math.round(hsl[1] * 100) + "%, " + Math.round(hsl[2] * 100) + "%, " + _alpha / 100 + ")";
|
|
716
439
|
break;
|
|
717
440
|
case 'hsv':
|
|
718
|
-
this.value =
|
|
441
|
+
this.value = "hsva(" + _hue + ", " + Math.round(_saturation) + "%, " + Math.round(_value) + "%, " + _alpha / 100 + ")";
|
|
719
442
|
break;
|
|
720
443
|
default:
|
|
721
444
|
var _hsv2rgb = hsv2rgb(_hue, _saturation, _value),
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
this.value = 'rgba(' + r + ', ' + g + ', ' + b + ', ' + _alpha / 100 + ')';
|
|
445
|
+
r = _hsv2rgb.r,
|
|
446
|
+
g = _hsv2rgb.g,
|
|
447
|
+
b = _hsv2rgb.b;
|
|
448
|
+
this.value = "rgba(" + r + ", " + g + ", " + b + ", " + _alpha / 100 + ")";
|
|
727
449
|
}
|
|
728
450
|
} else {
|
|
729
451
|
switch (format) {
|
|
730
452
|
case 'hsl':
|
|
731
453
|
var _hsl = hsv2hsl(_hue, _saturation / 100, _value / 100);
|
|
732
|
-
this.value =
|
|
454
|
+
this.value = "hsl(" + _hue + ", " + Math.round(_hsl[1] * 100) + "%, " + Math.round(_hsl[2] * 100) + "%)";
|
|
733
455
|
break;
|
|
734
456
|
case 'hsv':
|
|
735
|
-
this.value =
|
|
457
|
+
this.value = "hsv(" + _hue + ", " + Math.round(_saturation) + "%, " + Math.round(_value) + "%)";
|
|
736
458
|
break;
|
|
737
459
|
case 'rgb':
|
|
738
460
|
var _hsv2rgb2 = hsv2rgb(_hue, _saturation, _value),
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
this.value = 'rgb(' + _r + ', ' + _g + ', ' + _b + ')';
|
|
461
|
+
_r = _hsv2rgb2.r,
|
|
462
|
+
_g = _hsv2rgb2.g,
|
|
463
|
+
_b = _hsv2rgb2.b;
|
|
464
|
+
this.value = "rgb(" + _r + ", " + _g + ", " + _b + ")";
|
|
744
465
|
break;
|
|
745
466
|
default:
|
|
746
467
|
this.value = toHex(hsv2rgb(_hue, _saturation, _value));
|
|
747
468
|
}
|
|
748
469
|
}
|
|
749
470
|
};
|
|
750
|
-
|
|
751
471
|
return Color;
|
|
752
472
|
}();
|
|
753
473
|
|
|
754
|
-
exports.default = Color;
|
|
755
474
|
;
|
|
475
|
+
;// ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/color-picker/src/components/picker-dropdown.vue?vue&type=template&id=839aeff4
|
|
476
|
+
var picker_dropdownvue_type_template_id_839aeff4_render = function () {
|
|
477
|
+
var _vm = this
|
|
478
|
+
var _h = _vm.$createElement
|
|
479
|
+
var _c = _vm._self._c || _h
|
|
480
|
+
return _c(
|
|
481
|
+
"transition",
|
|
482
|
+
{ attrs: { name: "el-zoom-in-top" }, on: { "after-leave": _vm.doDestroy } },
|
|
483
|
+
[
|
|
484
|
+
_c(
|
|
485
|
+
"div",
|
|
486
|
+
{
|
|
487
|
+
directives: [
|
|
488
|
+
{
|
|
489
|
+
name: "show",
|
|
490
|
+
rawName: "v-show",
|
|
491
|
+
value: _vm.showPopper,
|
|
492
|
+
expression: "showPopper",
|
|
493
|
+
},
|
|
494
|
+
],
|
|
495
|
+
staticClass: "el-color-dropdown",
|
|
496
|
+
},
|
|
497
|
+
[
|
|
498
|
+
_c(
|
|
499
|
+
"div",
|
|
500
|
+
{ staticClass: "el-color-dropdown__main-wrapper" },
|
|
501
|
+
[
|
|
502
|
+
_c("hue-slider", {
|
|
503
|
+
ref: "hue",
|
|
504
|
+
staticStyle: { float: "right" },
|
|
505
|
+
attrs: { color: _vm.color, vertical: "" },
|
|
506
|
+
}),
|
|
507
|
+
_c("sv-panel", { ref: "sl", attrs: { color: _vm.color } }),
|
|
508
|
+
],
|
|
509
|
+
1
|
|
510
|
+
),
|
|
511
|
+
_vm.showAlpha
|
|
512
|
+
? _c("alpha-slider", { ref: "alpha", attrs: { color: _vm.color } })
|
|
513
|
+
: _vm._e(),
|
|
514
|
+
_vm.predefine
|
|
515
|
+
? _c("predefine", {
|
|
516
|
+
attrs: { color: _vm.color, colors: _vm.predefine },
|
|
517
|
+
})
|
|
518
|
+
: _vm._e(),
|
|
519
|
+
_c(
|
|
520
|
+
"div",
|
|
521
|
+
{ staticClass: "el-color-dropdown__btns" },
|
|
522
|
+
[
|
|
523
|
+
_c(
|
|
524
|
+
"span",
|
|
525
|
+
{ staticClass: "el-color-dropdown__value" },
|
|
526
|
+
[
|
|
527
|
+
_c("el-input", {
|
|
528
|
+
attrs: { "validate-event": false, size: "mini" },
|
|
529
|
+
on: { blur: _vm.handleConfirm },
|
|
530
|
+
nativeOn: {
|
|
531
|
+
keyup: function ($event) {
|
|
532
|
+
if (
|
|
533
|
+
!("button" in $event) &&
|
|
534
|
+
_vm._k(
|
|
535
|
+
$event.keyCode,
|
|
536
|
+
"enter",
|
|
537
|
+
13,
|
|
538
|
+
$event.key,
|
|
539
|
+
"Enter"
|
|
540
|
+
)
|
|
541
|
+
) {
|
|
542
|
+
return null
|
|
543
|
+
}
|
|
544
|
+
return _vm.handleConfirm($event)
|
|
545
|
+
},
|
|
546
|
+
},
|
|
547
|
+
model: {
|
|
548
|
+
value: _vm.customInput,
|
|
549
|
+
callback: function ($$v) {
|
|
550
|
+
_vm.customInput = $$v
|
|
551
|
+
},
|
|
552
|
+
expression: "customInput",
|
|
553
|
+
},
|
|
554
|
+
}),
|
|
555
|
+
],
|
|
556
|
+
1
|
|
557
|
+
),
|
|
558
|
+
_c(
|
|
559
|
+
"el-button",
|
|
560
|
+
{
|
|
561
|
+
staticClass: "el-color-dropdown__link-btn",
|
|
562
|
+
attrs: { size: "mini", type: "text" },
|
|
563
|
+
on: {
|
|
564
|
+
click: function ($event) {
|
|
565
|
+
_vm.$emit("clear")
|
|
566
|
+
},
|
|
567
|
+
},
|
|
568
|
+
},
|
|
569
|
+
[
|
|
570
|
+
_vm._v(
|
|
571
|
+
"\n " +
|
|
572
|
+
_vm._s(_vm.t("el.colorpicker.clear")) +
|
|
573
|
+
"\n "
|
|
574
|
+
),
|
|
575
|
+
]
|
|
576
|
+
),
|
|
577
|
+
_c(
|
|
578
|
+
"el-button",
|
|
579
|
+
{
|
|
580
|
+
staticClass: "el-color-dropdown__btn",
|
|
581
|
+
attrs: { plain: "", size: "mini" },
|
|
582
|
+
on: { click: _vm.confirmValue },
|
|
583
|
+
},
|
|
584
|
+
[
|
|
585
|
+
_vm._v(
|
|
586
|
+
"\n " +
|
|
587
|
+
_vm._s(_vm.t("el.colorpicker.confirm")) +
|
|
588
|
+
"\n "
|
|
589
|
+
),
|
|
590
|
+
]
|
|
591
|
+
),
|
|
592
|
+
],
|
|
593
|
+
1
|
|
594
|
+
),
|
|
595
|
+
],
|
|
596
|
+
1
|
|
597
|
+
),
|
|
598
|
+
]
|
|
599
|
+
)
|
|
600
|
+
}
|
|
601
|
+
var picker_dropdownvue_type_template_id_839aeff4_staticRenderFns = []
|
|
602
|
+
picker_dropdownvue_type_template_id_839aeff4_render._withStripped = true
|
|
603
|
+
|
|
604
|
+
|
|
605
|
+
;// ./packages/color-picker/src/components/picker-dropdown.vue?vue&type=template&id=839aeff4
|
|
606
|
+
|
|
607
|
+
;// ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/color-picker/src/components/sv-panel.vue?vue&type=template&id=347732c8
|
|
608
|
+
var sv_panelvue_type_template_id_347732c8_render = function () {
|
|
609
|
+
var _vm = this
|
|
610
|
+
var _h = _vm.$createElement
|
|
611
|
+
var _c = _vm._self._c || _h
|
|
612
|
+
return _c(
|
|
613
|
+
"div",
|
|
614
|
+
{
|
|
615
|
+
staticClass: "el-color-svpanel",
|
|
616
|
+
style: {
|
|
617
|
+
backgroundColor: _vm.background,
|
|
618
|
+
},
|
|
619
|
+
},
|
|
620
|
+
[
|
|
621
|
+
_c("div", { staticClass: "el-color-svpanel__white" }),
|
|
622
|
+
_c("div", { staticClass: "el-color-svpanel__black" }),
|
|
623
|
+
_c(
|
|
624
|
+
"div",
|
|
625
|
+
{
|
|
626
|
+
staticClass: "el-color-svpanel__cursor",
|
|
627
|
+
style: {
|
|
628
|
+
top: _vm.cursorTop + "px",
|
|
629
|
+
left: _vm.cursorLeft + "px",
|
|
630
|
+
},
|
|
631
|
+
},
|
|
632
|
+
[_c("div")]
|
|
633
|
+
),
|
|
634
|
+
]
|
|
635
|
+
)
|
|
636
|
+
}
|
|
637
|
+
var sv_panelvue_type_template_id_347732c8_staticRenderFns = []
|
|
638
|
+
sv_panelvue_type_template_id_347732c8_render._withStripped = true
|
|
756
639
|
|
|
757
|
-
/***/ }),
|
|
758
|
-
|
|
759
|
-
/***/ 128:
|
|
760
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
761
|
-
|
|
762
|
-
"use strict";
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
exports.__esModule = true;
|
|
766
|
-
|
|
767
|
-
var _svPanel = __webpack_require__(377);
|
|
768
|
-
|
|
769
|
-
var _svPanel2 = _interopRequireDefault(_svPanel);
|
|
770
|
-
|
|
771
|
-
var _hueSlider = __webpack_require__(379);
|
|
772
|
-
|
|
773
|
-
var _hueSlider2 = _interopRequireDefault(_hueSlider);
|
|
774
|
-
|
|
775
|
-
var _alphaSlider = __webpack_require__(381);
|
|
776
|
-
|
|
777
|
-
var _alphaSlider2 = _interopRequireDefault(_alphaSlider);
|
|
778
|
-
|
|
779
|
-
var _predefine = __webpack_require__(383);
|
|
780
|
-
|
|
781
|
-
var _predefine2 = _interopRequireDefault(_predefine);
|
|
782
|
-
|
|
783
|
-
var _vuePopper = __webpack_require__(7);
|
|
784
|
-
|
|
785
|
-
var _vuePopper2 = _interopRequireDefault(_vuePopper);
|
|
786
|
-
|
|
787
|
-
var _locale = __webpack_require__(5);
|
|
788
|
-
|
|
789
|
-
var _locale2 = _interopRequireDefault(_locale);
|
|
790
|
-
|
|
791
|
-
var _input = __webpack_require__(6);
|
|
792
|
-
|
|
793
|
-
var _input2 = _interopRequireDefault(_input);
|
|
794
|
-
|
|
795
|
-
var _button = __webpack_require__(15);
|
|
796
640
|
|
|
797
|
-
|
|
641
|
+
;// ./packages/color-picker/src/components/sv-panel.vue?vue&type=template&id=347732c8
|
|
798
642
|
|
|
799
|
-
|
|
643
|
+
;// external "vue"
|
|
644
|
+
const external_vue_namespaceObject = require("vue");
|
|
645
|
+
var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_namespaceObject);
|
|
646
|
+
;// ./packages/color-picker/src/draggable.js
|
|
800
647
|
|
|
648
|
+
var isDragging = false;
|
|
649
|
+
/* harmony default export */ function draggable(element, options) {
|
|
650
|
+
if ((external_vue_default()).prototype.$isServer) return;
|
|
651
|
+
var moveFn = function moveFn(event) {
|
|
652
|
+
if (options.drag) {
|
|
653
|
+
options.drag(event);
|
|
654
|
+
}
|
|
655
|
+
};
|
|
656
|
+
var _upFn = function upFn(event) {
|
|
657
|
+
document.removeEventListener('mousemove', moveFn);
|
|
658
|
+
document.removeEventListener('mouseup', _upFn);
|
|
659
|
+
document.onselectstart = null;
|
|
660
|
+
document.ondragstart = null;
|
|
661
|
+
isDragging = false;
|
|
662
|
+
if (options.end) {
|
|
663
|
+
options.end(event);
|
|
664
|
+
}
|
|
665
|
+
};
|
|
666
|
+
element.addEventListener('mousedown', function (event) {
|
|
667
|
+
if (isDragging) return;
|
|
668
|
+
document.onselectstart = function () {
|
|
669
|
+
return false;
|
|
670
|
+
};
|
|
671
|
+
document.ondragstart = function () {
|
|
672
|
+
return false;
|
|
673
|
+
};
|
|
674
|
+
document.addEventListener('mousemove', moveFn);
|
|
675
|
+
document.addEventListener('mouseup', _upFn);
|
|
676
|
+
isDragging = true;
|
|
677
|
+
if (options.start) {
|
|
678
|
+
options.start(event);
|
|
679
|
+
}
|
|
680
|
+
});
|
|
681
|
+
}
|
|
682
|
+
;// ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/color-picker/src/components/sv-panel.vue?vue&type=script&lang=js
|
|
801
683
|
//
|
|
802
684
|
//
|
|
803
685
|
//
|
|
@@ -815,172 +697,50 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
815
697
|
//
|
|
816
698
|
//
|
|
817
699
|
//
|
|
818
|
-
//
|
|
819
|
-
//
|
|
820
|
-
//
|
|
821
|
-
//
|
|
822
|
-
//
|
|
823
|
-
//
|
|
824
|
-
//
|
|
825
|
-
//
|
|
826
|
-
//
|
|
827
|
-
//
|
|
828
|
-
//
|
|
829
|
-
//
|
|
830
|
-
//
|
|
831
|
-
//
|
|
832
|
-
//
|
|
833
|
-
//
|
|
834
|
-
//
|
|
835
|
-
//
|
|
836
|
-
//
|
|
837
|
-
//
|
|
838
|
-
//
|
|
839
|
-
//
|
|
840
|
-
|
|
841
|
-
exports.default = {
|
|
842
|
-
name: 'el-color-picker-dropdown',
|
|
843
|
-
|
|
844
|
-
mixins: [_vuePopper2.default, _locale2.default],
|
|
845
|
-
|
|
846
|
-
components: {
|
|
847
|
-
SvPanel: _svPanel2.default,
|
|
848
|
-
HueSlider: _hueSlider2.default,
|
|
849
|
-
AlphaSlider: _alphaSlider2.default,
|
|
850
|
-
ElInput: _input2.default,
|
|
851
|
-
ElButton: _button2.default,
|
|
852
|
-
Predefine: _predefine2.default
|
|
853
|
-
},
|
|
854
|
-
|
|
855
|
-
props: {
|
|
856
|
-
color: {
|
|
857
|
-
required: true
|
|
858
|
-
},
|
|
859
|
-
showAlpha: Boolean,
|
|
860
|
-
predefine: Array
|
|
861
|
-
},
|
|
862
|
-
|
|
863
|
-
data: function data() {
|
|
864
|
-
return {
|
|
865
|
-
customInput: ''
|
|
866
|
-
};
|
|
867
|
-
},
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
computed: {
|
|
871
|
-
currentColor: function currentColor() {
|
|
872
|
-
var parent = this.$parent;
|
|
873
|
-
return !parent.value && !parent.showPanelColor ? '' : parent.color.value;
|
|
874
|
-
}
|
|
875
|
-
},
|
|
876
|
-
|
|
877
|
-
methods: {
|
|
878
|
-
confirmValue: function confirmValue() {
|
|
879
|
-
this.$emit('pick');
|
|
880
|
-
},
|
|
881
|
-
handleConfirm: function handleConfirm() {
|
|
882
|
-
this.color.fromString(this.customInput);
|
|
883
|
-
}
|
|
884
|
-
},
|
|
885
|
-
|
|
886
|
-
mounted: function mounted() {
|
|
887
|
-
this.$parent.popperElm = this.popperElm = this.$el;
|
|
888
|
-
this.referenceElm = this.$parent.$el;
|
|
889
|
-
},
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
watch: {
|
|
893
|
-
showPopper: function showPopper(val) {
|
|
894
|
-
var _this = this;
|
|
895
|
-
|
|
896
|
-
if (val === true) {
|
|
897
|
-
this.$nextTick(function () {
|
|
898
|
-
var _$refs = _this.$refs,
|
|
899
|
-
sl = _$refs.sl,
|
|
900
|
-
hue = _$refs.hue,
|
|
901
|
-
alpha = _$refs.alpha;
|
|
902
700
|
|
|
903
|
-
sl && sl.update();
|
|
904
|
-
hue && hue.update();
|
|
905
|
-
alpha && alpha.update();
|
|
906
|
-
});
|
|
907
|
-
}
|
|
908
|
-
},
|
|
909
|
-
currentColor: function currentColor(val) {
|
|
910
|
-
this.customInput = val;
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
};
|
|
914
|
-
|
|
915
|
-
/***/ }),
|
|
916
|
-
|
|
917
|
-
/***/ 129:
|
|
918
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
919
|
-
|
|
920
|
-
"use strict";
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
exports.__esModule = true;
|
|
924
|
-
|
|
925
|
-
var _draggable = __webpack_require__(46);
|
|
926
|
-
|
|
927
|
-
var _draggable2 = _interopRequireDefault(_draggable);
|
|
928
701
|
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
exports.default = {
|
|
702
|
+
/* harmony default export */ const sv_panelvue_type_script_lang_js = ({
|
|
932
703
|
name: 'el-sl-panel',
|
|
933
|
-
|
|
934
704
|
props: {
|
|
935
705
|
color: {
|
|
936
706
|
required: true
|
|
937
707
|
}
|
|
938
708
|
},
|
|
939
|
-
|
|
940
709
|
computed: {
|
|
941
710
|
colorValue: function colorValue() {
|
|
942
711
|
var hue = this.color.get('hue');
|
|
943
712
|
var value = this.color.get('value');
|
|
944
|
-
return {
|
|
713
|
+
return {
|
|
714
|
+
hue: hue,
|
|
715
|
+
value: value
|
|
716
|
+
};
|
|
945
717
|
}
|
|
946
718
|
},
|
|
947
|
-
|
|
948
719
|
watch: {
|
|
949
720
|
colorValue: function colorValue() {
|
|
950
721
|
this.update();
|
|
951
722
|
}
|
|
952
723
|
},
|
|
953
|
-
|
|
954
724
|
methods: {
|
|
955
725
|
update: function update() {
|
|
956
726
|
var saturation = this.color.get('saturation');
|
|
957
727
|
var value = this.color.get('value');
|
|
958
|
-
|
|
959
728
|
var el = this.$el;
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
width = _el$getBoundingClient.width,
|
|
963
|
-
height = _el$getBoundingClient.height;
|
|
964
|
-
|
|
965
|
-
if (!height) height = width * 3 / 4;
|
|
966
|
-
|
|
729
|
+
var width = el.clientWidth,
|
|
730
|
+
height = el.clientHeight;
|
|
967
731
|
this.cursorLeft = saturation * width / 100;
|
|
968
732
|
this.cursorTop = (100 - value) * height / 100;
|
|
969
|
-
|
|
970
733
|
this.background = 'hsl(' + this.color.get('hue') + ', 100%, 50%)';
|
|
971
734
|
},
|
|
972
735
|
handleDrag: function handleDrag(event) {
|
|
973
736
|
var el = this.$el;
|
|
974
737
|
var rect = el.getBoundingClientRect();
|
|
975
|
-
|
|
976
738
|
var left = event.clientX - rect.left;
|
|
977
739
|
var top = event.clientY - rect.top;
|
|
978
740
|
left = Math.max(0, left);
|
|
979
741
|
left = Math.min(left, rect.width);
|
|
980
|
-
|
|
981
742
|
top = Math.max(0, top);
|
|
982
743
|
top = Math.min(top, rect.height);
|
|
983
|
-
|
|
984
744
|
this.cursorLeft = left;
|
|
985
745
|
this.cursorTop = top;
|
|
986
746
|
this.color.set({
|
|
@@ -989,11 +749,9 @@ exports.default = {
|
|
|
989
749
|
});
|
|
990
750
|
}
|
|
991
751
|
},
|
|
992
|
-
|
|
993
752
|
mounted: function mounted() {
|
|
994
753
|
var _this = this;
|
|
995
|
-
|
|
996
|
-
(0, _draggable2.default)(this.$el, {
|
|
754
|
+
draggable(this.$el, {
|
|
997
755
|
drag: function drag(event) {
|
|
998
756
|
_this.handleDrag(event);
|
|
999
757
|
},
|
|
@@ -1001,7 +759,6 @@ exports.default = {
|
|
|
1001
759
|
_this.handleDrag(event);
|
|
1002
760
|
}
|
|
1003
761
|
});
|
|
1004
|
-
|
|
1005
762
|
this.update();
|
|
1006
763
|
},
|
|
1007
764
|
data: function data() {
|
|
@@ -1011,15 +768,167 @@ exports.default = {
|
|
|
1011
768
|
background: 'hsl(0, 100%, 50%)'
|
|
1012
769
|
};
|
|
1013
770
|
}
|
|
1014
|
-
};
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
//
|
|
1021
|
-
//
|
|
1022
|
-
//
|
|
771
|
+
});
|
|
772
|
+
;// ./packages/color-picker/src/components/sv-panel.vue?vue&type=script&lang=js
|
|
773
|
+
/* harmony default export */ const components_sv_panelvue_type_script_lang_js = (sv_panelvue_type_script_lang_js);
|
|
774
|
+
;// ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
775
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
776
|
+
|
|
777
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
778
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
779
|
+
// be included in the final webpack user bundle.
|
|
780
|
+
|
|
781
|
+
function normalizeComponent(
|
|
782
|
+
scriptExports,
|
|
783
|
+
render,
|
|
784
|
+
staticRenderFns,
|
|
785
|
+
functionalTemplate,
|
|
786
|
+
injectStyles,
|
|
787
|
+
scopeId,
|
|
788
|
+
moduleIdentifier /* server only */,
|
|
789
|
+
shadowMode /* vue-cli only */
|
|
790
|
+
) {
|
|
791
|
+
// Vue.extend constructor export interop
|
|
792
|
+
var options =
|
|
793
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
794
|
+
|
|
795
|
+
// render functions
|
|
796
|
+
if (render) {
|
|
797
|
+
options.render = render
|
|
798
|
+
options.staticRenderFns = staticRenderFns
|
|
799
|
+
options._compiled = true
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
// functional template
|
|
803
|
+
if (functionalTemplate) {
|
|
804
|
+
options.functional = true
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
// scopedId
|
|
808
|
+
if (scopeId) {
|
|
809
|
+
options._scopeId = 'data-v-' + scopeId
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
var hook
|
|
813
|
+
if (moduleIdentifier) {
|
|
814
|
+
// server build
|
|
815
|
+
hook = function (context) {
|
|
816
|
+
// 2.3 injection
|
|
817
|
+
context =
|
|
818
|
+
context || // cached call
|
|
819
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
820
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
821
|
+
// 2.2 with runInNewContext: true
|
|
822
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
823
|
+
context = __VUE_SSR_CONTEXT__
|
|
824
|
+
}
|
|
825
|
+
// inject component styles
|
|
826
|
+
if (injectStyles) {
|
|
827
|
+
injectStyles.call(this, context)
|
|
828
|
+
}
|
|
829
|
+
// register component module identifier for async chunk inferrence
|
|
830
|
+
if (context && context._registeredComponents) {
|
|
831
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
// used by ssr in case component is cached and beforeCreate
|
|
835
|
+
// never gets called
|
|
836
|
+
options._ssrRegister = hook
|
|
837
|
+
} else if (injectStyles) {
|
|
838
|
+
hook = shadowMode
|
|
839
|
+
? function () {
|
|
840
|
+
injectStyles.call(
|
|
841
|
+
this,
|
|
842
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
843
|
+
)
|
|
844
|
+
}
|
|
845
|
+
: injectStyles
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
if (hook) {
|
|
849
|
+
if (options.functional) {
|
|
850
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
851
|
+
// go through the normalizer
|
|
852
|
+
options._injectStyles = hook
|
|
853
|
+
// register for functional component in vue file
|
|
854
|
+
var originalRender = options.render
|
|
855
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
856
|
+
hook.call(context)
|
|
857
|
+
return originalRender(h, context)
|
|
858
|
+
}
|
|
859
|
+
} else {
|
|
860
|
+
// inject component registration as beforeCreate hook
|
|
861
|
+
var existing = options.beforeCreate
|
|
862
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
return {
|
|
867
|
+
exports: scriptExports,
|
|
868
|
+
options: options
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
;// ./packages/color-picker/src/components/sv-panel.vue
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
|
|
878
|
+
/* normalize component */
|
|
879
|
+
;
|
|
880
|
+
var component = normalizeComponent(
|
|
881
|
+
components_sv_panelvue_type_script_lang_js,
|
|
882
|
+
sv_panelvue_type_template_id_347732c8_render,
|
|
883
|
+
sv_panelvue_type_template_id_347732c8_staticRenderFns,
|
|
884
|
+
false,
|
|
885
|
+
null,
|
|
886
|
+
null,
|
|
887
|
+
null
|
|
888
|
+
|
|
889
|
+
)
|
|
890
|
+
|
|
891
|
+
/* harmony default export */ const sv_panel = (component.exports);
|
|
892
|
+
;// ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/color-picker/src/components/hue-slider.vue?vue&type=template&id=cc289afc
|
|
893
|
+
var hue_slidervue_type_template_id_cc289afc_render = function () {
|
|
894
|
+
var _vm = this
|
|
895
|
+
var _h = _vm.$createElement
|
|
896
|
+
var _c = _vm._self._c || _h
|
|
897
|
+
return _c(
|
|
898
|
+
"div",
|
|
899
|
+
{
|
|
900
|
+
staticClass: "el-color-hue-slider",
|
|
901
|
+
class: { "is-vertical": _vm.vertical },
|
|
902
|
+
},
|
|
903
|
+
[
|
|
904
|
+
_c("div", {
|
|
905
|
+
ref: "bar",
|
|
906
|
+
staticClass: "el-color-hue-slider__bar",
|
|
907
|
+
on: { click: _vm.handleClick },
|
|
908
|
+
}),
|
|
909
|
+
_c("div", {
|
|
910
|
+
ref: "thumb",
|
|
911
|
+
staticClass: "el-color-hue-slider__thumb",
|
|
912
|
+
style: {
|
|
913
|
+
left: _vm.thumbLeft + "px",
|
|
914
|
+
top: _vm.thumbTop + "px",
|
|
915
|
+
},
|
|
916
|
+
}),
|
|
917
|
+
]
|
|
918
|
+
)
|
|
919
|
+
}
|
|
920
|
+
var hue_slidervue_type_template_id_cc289afc_staticRenderFns = []
|
|
921
|
+
hue_slidervue_type_template_id_cc289afc_render._withStripped = true
|
|
922
|
+
|
|
923
|
+
|
|
924
|
+
;// ./packages/color-picker/src/components/hue-slider.vue?vue&type=template&id=cc289afc
|
|
925
|
+
|
|
926
|
+
;// ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/color-picker/src/components/hue-slider.vue?vue&type=script&lang=js
|
|
927
|
+
//
|
|
928
|
+
//
|
|
929
|
+
//
|
|
930
|
+
//
|
|
931
|
+
//
|
|
1023
932
|
//
|
|
1024
933
|
//
|
|
1025
934
|
//
|
|
@@ -1029,59 +938,36 @@ exports.default = {
|
|
|
1029
938
|
//
|
|
1030
939
|
//
|
|
1031
940
|
|
|
1032
|
-
/***/ }),
|
|
1033
|
-
|
|
1034
|
-
/***/ 130:
|
|
1035
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1036
|
-
|
|
1037
|
-
"use strict";
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
exports.__esModule = true;
|
|
1041
|
-
|
|
1042
|
-
var _draggable = __webpack_require__(46);
|
|
1043
|
-
|
|
1044
|
-
var _draggable2 = _interopRequireDefault(_draggable);
|
|
1045
|
-
|
|
1046
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1047
941
|
|
|
1048
|
-
|
|
942
|
+
/* harmony default export */ const hue_slidervue_type_script_lang_js = ({
|
|
1049
943
|
name: 'el-color-hue-slider',
|
|
1050
|
-
|
|
1051
944
|
props: {
|
|
1052
945
|
color: {
|
|
1053
946
|
required: true
|
|
1054
947
|
},
|
|
1055
|
-
|
|
1056
948
|
vertical: Boolean
|
|
1057
949
|
},
|
|
1058
|
-
|
|
1059
950
|
data: function data() {
|
|
1060
951
|
return {
|
|
1061
952
|
thumbLeft: 0,
|
|
1062
953
|
thumbTop: 0
|
|
1063
954
|
};
|
|
1064
955
|
},
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
956
|
computed: {
|
|
1068
957
|
hueValue: function hueValue() {
|
|
1069
958
|
var hue = this.color.get('hue');
|
|
1070
959
|
return hue;
|
|
1071
960
|
}
|
|
1072
961
|
},
|
|
1073
|
-
|
|
1074
962
|
watch: {
|
|
1075
963
|
hueValue: function hueValue() {
|
|
1076
964
|
this.update();
|
|
1077
965
|
}
|
|
1078
966
|
},
|
|
1079
|
-
|
|
1080
967
|
methods: {
|
|
1081
968
|
handleClick: function handleClick(event) {
|
|
1082
969
|
var thumb = this.$refs.thumb;
|
|
1083
970
|
var target = event.target;
|
|
1084
|
-
|
|
1085
971
|
if (target !== thumb) {
|
|
1086
972
|
this.handleDrag(event);
|
|
1087
973
|
}
|
|
@@ -1089,30 +975,24 @@ exports.default = {
|
|
|
1089
975
|
handleDrag: function handleDrag(event) {
|
|
1090
976
|
var rect = this.$el.getBoundingClientRect();
|
|
1091
977
|
var thumb = this.$refs.thumb;
|
|
1092
|
-
|
|
1093
|
-
var hue = void 0;
|
|
1094
|
-
|
|
978
|
+
var hue;
|
|
1095
979
|
if (!this.vertical) {
|
|
1096
980
|
var left = event.clientX - rect.left;
|
|
1097
981
|
left = Math.min(left, rect.width - thumb.offsetWidth / 2);
|
|
1098
982
|
left = Math.max(thumb.offsetWidth / 2, left);
|
|
1099
|
-
|
|
1100
983
|
hue = Math.round((left - thumb.offsetWidth / 2) / (rect.width - thumb.offsetWidth) * 360);
|
|
1101
984
|
} else {
|
|
1102
985
|
var top = event.clientY - rect.top;
|
|
1103
986
|
top = Math.min(top, rect.height - thumb.offsetHeight / 2);
|
|
1104
987
|
top = Math.max(thumb.offsetHeight / 2, top);
|
|
1105
|
-
|
|
1106
988
|
hue = Math.round((top - thumb.offsetHeight / 2) / (rect.height - thumb.offsetHeight) * 360);
|
|
1107
989
|
}
|
|
1108
|
-
|
|
1109
990
|
this.color.set('hue', hue);
|
|
1110
991
|
},
|
|
1111
992
|
getThumbLeft: function getThumbLeft() {
|
|
1112
993
|
if (this.vertical) return 0;
|
|
1113
994
|
var el = this.$el;
|
|
1114
995
|
var hue = this.color.get('hue');
|
|
1115
|
-
|
|
1116
996
|
if (!el) return 0;
|
|
1117
997
|
var thumb = this.$refs.thumb;
|
|
1118
998
|
return Math.round(hue * (el.offsetWidth - thumb.offsetWidth / 2) / 360);
|
|
@@ -1121,7 +1001,6 @@ exports.default = {
|
|
|
1121
1001
|
if (!this.vertical) return 0;
|
|
1122
1002
|
var el = this.$el;
|
|
1123
1003
|
var hue = this.color.get('hue');
|
|
1124
|
-
|
|
1125
1004
|
if (!el) return 0;
|
|
1126
1005
|
var thumb = this.$refs.thumb;
|
|
1127
1006
|
return Math.round(hue * (el.offsetHeight - thumb.offsetHeight / 2) / 360);
|
|
@@ -1131,15 +1010,11 @@ exports.default = {
|
|
|
1131
1010
|
this.thumbTop = this.getThumbTop();
|
|
1132
1011
|
}
|
|
1133
1012
|
},
|
|
1134
|
-
|
|
1135
1013
|
mounted: function mounted() {
|
|
1136
1014
|
var _this = this;
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
thumb = _$refs.thumb;
|
|
1141
|
-
|
|
1142
|
-
|
|
1015
|
+
var _this$$refs = this.$refs,
|
|
1016
|
+
bar = _this$$refs.bar,
|
|
1017
|
+
thumb = _this$$refs.thumb;
|
|
1143
1018
|
var dragConfig = {
|
|
1144
1019
|
drag: function drag(event) {
|
|
1145
1020
|
_this.handleDrag(event);
|
|
@@ -1148,12 +1023,78 @@ exports.default = {
|
|
|
1148
1023
|
_this.handleDrag(event);
|
|
1149
1024
|
}
|
|
1150
1025
|
};
|
|
1151
|
-
|
|
1152
|
-
(
|
|
1153
|
-
(0, _draggable2.default)(thumb, dragConfig);
|
|
1026
|
+
draggable(bar, dragConfig);
|
|
1027
|
+
draggable(thumb, dragConfig);
|
|
1154
1028
|
this.update();
|
|
1155
1029
|
}
|
|
1156
|
-
};
|
|
1030
|
+
});
|
|
1031
|
+
;// ./packages/color-picker/src/components/hue-slider.vue?vue&type=script&lang=js
|
|
1032
|
+
/* harmony default export */ const components_hue_slidervue_type_script_lang_js = (hue_slidervue_type_script_lang_js);
|
|
1033
|
+
;// ./packages/color-picker/src/components/hue-slider.vue
|
|
1034
|
+
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
/* normalize component */
|
|
1040
|
+
;
|
|
1041
|
+
var hue_slider_component = normalizeComponent(
|
|
1042
|
+
components_hue_slidervue_type_script_lang_js,
|
|
1043
|
+
hue_slidervue_type_template_id_cc289afc_render,
|
|
1044
|
+
hue_slidervue_type_template_id_cc289afc_staticRenderFns,
|
|
1045
|
+
false,
|
|
1046
|
+
null,
|
|
1047
|
+
null,
|
|
1048
|
+
null
|
|
1049
|
+
|
|
1050
|
+
)
|
|
1051
|
+
|
|
1052
|
+
/* harmony default export */ const hue_slider = (hue_slider_component.exports);
|
|
1053
|
+
;// ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/color-picker/src/components/alpha-slider.vue?vue&type=template&id=4738c7de
|
|
1054
|
+
var alpha_slidervue_type_template_id_4738c7de_render = function () {
|
|
1055
|
+
var _vm = this
|
|
1056
|
+
var _h = _vm.$createElement
|
|
1057
|
+
var _c = _vm._self._c || _h
|
|
1058
|
+
return _c(
|
|
1059
|
+
"div",
|
|
1060
|
+
{
|
|
1061
|
+
staticClass: "el-color-alpha-slider",
|
|
1062
|
+
class: { "is-vertical": _vm.vertical },
|
|
1063
|
+
},
|
|
1064
|
+
[
|
|
1065
|
+
_c("div", {
|
|
1066
|
+
ref: "bar",
|
|
1067
|
+
staticClass: "el-color-alpha-slider__bar",
|
|
1068
|
+
style: {
|
|
1069
|
+
background: _vm.background,
|
|
1070
|
+
},
|
|
1071
|
+
on: { click: _vm.handleClick },
|
|
1072
|
+
}),
|
|
1073
|
+
_c("div", {
|
|
1074
|
+
ref: "thumb",
|
|
1075
|
+
staticClass: "el-color-alpha-slider__thumb",
|
|
1076
|
+
style: {
|
|
1077
|
+
left: _vm.thumbLeft + "px",
|
|
1078
|
+
top: _vm.thumbTop + "px",
|
|
1079
|
+
},
|
|
1080
|
+
}),
|
|
1081
|
+
]
|
|
1082
|
+
)
|
|
1083
|
+
}
|
|
1084
|
+
var alpha_slidervue_type_template_id_4738c7de_staticRenderFns = []
|
|
1085
|
+
alpha_slidervue_type_template_id_4738c7de_render._withStripped = true
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
;// ./packages/color-picker/src/components/alpha-slider.vue?vue&type=template&id=4738c7de
|
|
1089
|
+
|
|
1090
|
+
;// ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/color-picker/src/components/alpha-slider.vue?vue&type=script&lang=js
|
|
1091
|
+
//
|
|
1092
|
+
//
|
|
1093
|
+
//
|
|
1094
|
+
//
|
|
1095
|
+
//
|
|
1096
|
+
//
|
|
1097
|
+
//
|
|
1157
1098
|
//
|
|
1158
1099
|
//
|
|
1159
1100
|
//
|
|
@@ -1167,32 +1108,15 @@ exports.default = {
|
|
|
1167
1108
|
//
|
|
1168
1109
|
//
|
|
1169
1110
|
|
|
1170
|
-
/***/ }),
|
|
1171
|
-
|
|
1172
|
-
/***/ 131:
|
|
1173
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1174
|
-
|
|
1175
|
-
"use strict";
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
exports.__esModule = true;
|
|
1179
|
-
|
|
1180
|
-
var _draggable = __webpack_require__(46);
|
|
1181
|
-
|
|
1182
|
-
var _draggable2 = _interopRequireDefault(_draggable);
|
|
1183
|
-
|
|
1184
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1185
1111
|
|
|
1186
|
-
|
|
1112
|
+
/* harmony default export */ const alpha_slidervue_type_script_lang_js = ({
|
|
1187
1113
|
name: 'el-color-alpha-slider',
|
|
1188
|
-
|
|
1189
1114
|
props: {
|
|
1190
1115
|
color: {
|
|
1191
1116
|
required: true
|
|
1192
1117
|
},
|
|
1193
1118
|
vertical: Boolean
|
|
1194
1119
|
},
|
|
1195
|
-
|
|
1196
1120
|
watch: {
|
|
1197
1121
|
'color._alpha': function color_alpha() {
|
|
1198
1122
|
this.update();
|
|
@@ -1201,12 +1125,10 @@ exports.default = {
|
|
|
1201
1125
|
this.update();
|
|
1202
1126
|
}
|
|
1203
1127
|
},
|
|
1204
|
-
|
|
1205
1128
|
methods: {
|
|
1206
1129
|
handleClick: function handleClick(event) {
|
|
1207
1130
|
var thumb = this.$refs.thumb;
|
|
1208
1131
|
var target = event.target;
|
|
1209
|
-
|
|
1210
1132
|
if (target !== thumb) {
|
|
1211
1133
|
this.handleDrag(event);
|
|
1212
1134
|
}
|
|
@@ -1214,19 +1136,15 @@ exports.default = {
|
|
|
1214
1136
|
handleDrag: function handleDrag(event) {
|
|
1215
1137
|
var rect = this.$el.getBoundingClientRect();
|
|
1216
1138
|
var thumb = this.$refs.thumb;
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
1139
|
if (!this.vertical) {
|
|
1220
1140
|
var left = event.clientX - rect.left;
|
|
1221
1141
|
left = Math.max(thumb.offsetWidth / 2, left);
|
|
1222
1142
|
left = Math.min(left, rect.width - thumb.offsetWidth / 2);
|
|
1223
|
-
|
|
1224
1143
|
this.color.set('alpha', Math.round((left - thumb.offsetWidth / 2) / (rect.width - thumb.offsetWidth) * 100));
|
|
1225
1144
|
} else {
|
|
1226
1145
|
var top = event.clientY - rect.top;
|
|
1227
1146
|
top = Math.max(thumb.offsetHeight / 2, top);
|
|
1228
1147
|
top = Math.min(top, rect.height - thumb.offsetHeight / 2);
|
|
1229
|
-
|
|
1230
1148
|
this.color.set('alpha', Math.round((top - thumb.offsetHeight / 2) / (rect.height - thumb.offsetHeight) * 100));
|
|
1231
1149
|
}
|
|
1232
1150
|
},
|
|
@@ -1234,7 +1152,6 @@ exports.default = {
|
|
|
1234
1152
|
if (this.vertical) return 0;
|
|
1235
1153
|
var el = this.$el;
|
|
1236
1154
|
var alpha = this.color._alpha;
|
|
1237
|
-
|
|
1238
1155
|
if (!el) return 0;
|
|
1239
1156
|
var thumb = this.$refs.thumb;
|
|
1240
1157
|
return Math.round(alpha * (el.offsetWidth - thumb.offsetWidth / 2) / 100);
|
|
@@ -1243,19 +1160,17 @@ exports.default = {
|
|
|
1243
1160
|
if (!this.vertical) return 0;
|
|
1244
1161
|
var el = this.$el;
|
|
1245
1162
|
var alpha = this.color._alpha;
|
|
1246
|
-
|
|
1247
1163
|
if (!el) return 0;
|
|
1248
1164
|
var thumb = this.$refs.thumb;
|
|
1249
1165
|
return Math.round(alpha * (el.offsetHeight - thumb.offsetHeight / 2) / 100);
|
|
1250
1166
|
},
|
|
1251
1167
|
getBackground: function getBackground() {
|
|
1252
1168
|
if (this.color && this.color.value) {
|
|
1253
|
-
var
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
return 'linear-gradient(to right, rgba(' + r + ', ' + g + ', ' + b + ', 0) 0%, rgba(' + r + ', ' + g + ', ' + b + ', 1) 100%)';
|
|
1169
|
+
var _this$color$toRgb = this.color.toRgb(),
|
|
1170
|
+
r = _this$color$toRgb.r,
|
|
1171
|
+
g = _this$color$toRgb.g,
|
|
1172
|
+
b = _this$color$toRgb.b;
|
|
1173
|
+
return "linear-gradient(to right, rgba(" + r + ", " + g + ", " + b + ", 0) 0%, rgba(" + r + ", " + g + ", " + b + ", 1) 100%)";
|
|
1259
1174
|
}
|
|
1260
1175
|
return null;
|
|
1261
1176
|
},
|
|
@@ -1265,7 +1180,6 @@ exports.default = {
|
|
|
1265
1180
|
this.background = this.getBackground();
|
|
1266
1181
|
}
|
|
1267
1182
|
},
|
|
1268
|
-
|
|
1269
1183
|
data: function data() {
|
|
1270
1184
|
return {
|
|
1271
1185
|
thumbLeft: 0,
|
|
@@ -1275,12 +1189,9 @@ exports.default = {
|
|
|
1275
1189
|
},
|
|
1276
1190
|
mounted: function mounted() {
|
|
1277
1191
|
var _this = this;
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
thumb = _$refs.thumb;
|
|
1282
|
-
|
|
1283
|
-
|
|
1192
|
+
var _this$$refs = this.$refs,
|
|
1193
|
+
bar = _this$$refs.bar,
|
|
1194
|
+
thumb = _this$$refs.thumb;
|
|
1284
1195
|
var dragConfig = {
|
|
1285
1196
|
drag: function drag(event) {
|
|
1286
1197
|
_this.handleDrag(event);
|
|
@@ -1289,12 +1200,323 @@ exports.default = {
|
|
|
1289
1200
|
_this.handleDrag(event);
|
|
1290
1201
|
}
|
|
1291
1202
|
};
|
|
1292
|
-
|
|
1293
|
-
(
|
|
1294
|
-
(0, _draggable2.default)(thumb, dragConfig);
|
|
1203
|
+
draggable(bar, dragConfig);
|
|
1204
|
+
draggable(thumb, dragConfig);
|
|
1295
1205
|
this.update();
|
|
1296
1206
|
}
|
|
1297
|
-
};
|
|
1207
|
+
});
|
|
1208
|
+
;// ./packages/color-picker/src/components/alpha-slider.vue?vue&type=script&lang=js
|
|
1209
|
+
/* harmony default export */ const components_alpha_slidervue_type_script_lang_js = (alpha_slidervue_type_script_lang_js);
|
|
1210
|
+
;// ./packages/color-picker/src/components/alpha-slider.vue
|
|
1211
|
+
|
|
1212
|
+
|
|
1213
|
+
|
|
1214
|
+
|
|
1215
|
+
|
|
1216
|
+
/* normalize component */
|
|
1217
|
+
;
|
|
1218
|
+
var alpha_slider_component = normalizeComponent(
|
|
1219
|
+
components_alpha_slidervue_type_script_lang_js,
|
|
1220
|
+
alpha_slidervue_type_template_id_4738c7de_render,
|
|
1221
|
+
alpha_slidervue_type_template_id_4738c7de_staticRenderFns,
|
|
1222
|
+
false,
|
|
1223
|
+
null,
|
|
1224
|
+
null,
|
|
1225
|
+
null
|
|
1226
|
+
|
|
1227
|
+
)
|
|
1228
|
+
|
|
1229
|
+
/* harmony default export */ const alpha_slider = (alpha_slider_component.exports);
|
|
1230
|
+
;// ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/color-picker/src/components/predefine.vue?vue&type=template&id=7da51eed
|
|
1231
|
+
var predefinevue_type_template_id_7da51eed_render = function () {
|
|
1232
|
+
var _vm = this
|
|
1233
|
+
var _h = _vm.$createElement
|
|
1234
|
+
var _c = _vm._self._c || _h
|
|
1235
|
+
return _c("div", { staticClass: "el-color-predefine" }, [
|
|
1236
|
+
_c(
|
|
1237
|
+
"div",
|
|
1238
|
+
{ staticClass: "el-color-predefine__colors" },
|
|
1239
|
+
_vm._l(_vm.rgbaColors, function (item, index) {
|
|
1240
|
+
return _c(
|
|
1241
|
+
"div",
|
|
1242
|
+
{
|
|
1243
|
+
key: _vm.colors[index],
|
|
1244
|
+
staticClass: "el-color-predefine__color-selector",
|
|
1245
|
+
class: { selected: item.selected, "is-alpha": item._alpha < 100 },
|
|
1246
|
+
on: {
|
|
1247
|
+
click: function ($event) {
|
|
1248
|
+
_vm.handleSelect(index)
|
|
1249
|
+
},
|
|
1250
|
+
},
|
|
1251
|
+
},
|
|
1252
|
+
[_c("div", { style: { "background-color": item.value } })]
|
|
1253
|
+
)
|
|
1254
|
+
}),
|
|
1255
|
+
0
|
|
1256
|
+
),
|
|
1257
|
+
])
|
|
1258
|
+
}
|
|
1259
|
+
var predefinevue_type_template_id_7da51eed_staticRenderFns = []
|
|
1260
|
+
predefinevue_type_template_id_7da51eed_render._withStripped = true
|
|
1261
|
+
|
|
1262
|
+
|
|
1263
|
+
;// ./packages/color-picker/src/components/predefine.vue?vue&type=template&id=7da51eed
|
|
1264
|
+
|
|
1265
|
+
;// ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/color-picker/src/components/predefine.vue?vue&type=script&lang=js
|
|
1266
|
+
//
|
|
1267
|
+
//
|
|
1268
|
+
//
|
|
1269
|
+
//
|
|
1270
|
+
//
|
|
1271
|
+
//
|
|
1272
|
+
//
|
|
1273
|
+
//
|
|
1274
|
+
//
|
|
1275
|
+
//
|
|
1276
|
+
//
|
|
1277
|
+
//
|
|
1278
|
+
//
|
|
1279
|
+
//
|
|
1280
|
+
//
|
|
1281
|
+
|
|
1282
|
+
|
|
1283
|
+
/* harmony default export */ const predefinevue_type_script_lang_js = ({
|
|
1284
|
+
props: {
|
|
1285
|
+
colors: {
|
|
1286
|
+
type: Array,
|
|
1287
|
+
required: true
|
|
1288
|
+
},
|
|
1289
|
+
color: {
|
|
1290
|
+
required: true
|
|
1291
|
+
}
|
|
1292
|
+
},
|
|
1293
|
+
data: function data() {
|
|
1294
|
+
return {
|
|
1295
|
+
rgbaColors: this.parseColors(this.colors, this.color)
|
|
1296
|
+
};
|
|
1297
|
+
},
|
|
1298
|
+
methods: {
|
|
1299
|
+
handleSelect: function handleSelect(index) {
|
|
1300
|
+
this.color.fromString(this.colors[index]);
|
|
1301
|
+
},
|
|
1302
|
+
parseColors: function parseColors(colors, color) {
|
|
1303
|
+
return colors.map(function (value) {
|
|
1304
|
+
var c = new Color();
|
|
1305
|
+
c.enableAlpha = true;
|
|
1306
|
+
c.format = 'rgba';
|
|
1307
|
+
c.fromString(value);
|
|
1308
|
+
c.selected = c.value === color.value;
|
|
1309
|
+
return c;
|
|
1310
|
+
});
|
|
1311
|
+
}
|
|
1312
|
+
},
|
|
1313
|
+
watch: {
|
|
1314
|
+
'$parent.currentColor': function $parentCurrentColor(val) {
|
|
1315
|
+
var color = new Color();
|
|
1316
|
+
color.fromString(val);
|
|
1317
|
+
this.rgbaColors.forEach(function (item) {
|
|
1318
|
+
item.selected = color.compare(item);
|
|
1319
|
+
});
|
|
1320
|
+
},
|
|
1321
|
+
colors: function colors(newVal) {
|
|
1322
|
+
this.rgbaColors = this.parseColors(newVal, this.color);
|
|
1323
|
+
},
|
|
1324
|
+
color: function color(newVal) {
|
|
1325
|
+
this.rgbaColors = this.parseColors(this.colors, newVal);
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
});
|
|
1329
|
+
;// ./packages/color-picker/src/components/predefine.vue?vue&type=script&lang=js
|
|
1330
|
+
/* harmony default export */ const components_predefinevue_type_script_lang_js = (predefinevue_type_script_lang_js);
|
|
1331
|
+
;// ./packages/color-picker/src/components/predefine.vue
|
|
1332
|
+
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
|
|
1336
|
+
|
|
1337
|
+
/* normalize component */
|
|
1338
|
+
;
|
|
1339
|
+
var predefine_component = normalizeComponent(
|
|
1340
|
+
components_predefinevue_type_script_lang_js,
|
|
1341
|
+
predefinevue_type_template_id_7da51eed_render,
|
|
1342
|
+
predefinevue_type_template_id_7da51eed_staticRenderFns,
|
|
1343
|
+
false,
|
|
1344
|
+
null,
|
|
1345
|
+
null,
|
|
1346
|
+
null
|
|
1347
|
+
|
|
1348
|
+
)
|
|
1349
|
+
|
|
1350
|
+
/* harmony default export */ const predefine = (predefine_component.exports);
|
|
1351
|
+
;// external "mazey-element-ui/lib/utils/vue-popper"
|
|
1352
|
+
const vue_popper_namespaceObject = require("mazey-element-ui/lib/utils/vue-popper");
|
|
1353
|
+
var vue_popper_default = /*#__PURE__*/__webpack_require__.n(vue_popper_namespaceObject);
|
|
1354
|
+
;// external "mazey-element-ui/lib/mixins/locale"
|
|
1355
|
+
const locale_namespaceObject = require("mazey-element-ui/lib/mixins/locale");
|
|
1356
|
+
var locale_default = /*#__PURE__*/__webpack_require__.n(locale_namespaceObject);
|
|
1357
|
+
;// external "mazey-element-ui/lib/input"
|
|
1358
|
+
const input_namespaceObject = require("mazey-element-ui/lib/input");
|
|
1359
|
+
var input_default = /*#__PURE__*/__webpack_require__.n(input_namespaceObject);
|
|
1360
|
+
;// external "mazey-element-ui/lib/button"
|
|
1361
|
+
const button_namespaceObject = require("mazey-element-ui/lib/button");
|
|
1362
|
+
var button_default = /*#__PURE__*/__webpack_require__.n(button_namespaceObject);
|
|
1363
|
+
;// ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/color-picker/src/components/picker-dropdown.vue?vue&type=script&lang=js
|
|
1364
|
+
//
|
|
1365
|
+
//
|
|
1366
|
+
//
|
|
1367
|
+
//
|
|
1368
|
+
//
|
|
1369
|
+
//
|
|
1370
|
+
//
|
|
1371
|
+
//
|
|
1372
|
+
//
|
|
1373
|
+
//
|
|
1374
|
+
//
|
|
1375
|
+
//
|
|
1376
|
+
//
|
|
1377
|
+
//
|
|
1378
|
+
//
|
|
1379
|
+
//
|
|
1380
|
+
//
|
|
1381
|
+
//
|
|
1382
|
+
//
|
|
1383
|
+
//
|
|
1384
|
+
//
|
|
1385
|
+
//
|
|
1386
|
+
//
|
|
1387
|
+
//
|
|
1388
|
+
//
|
|
1389
|
+
//
|
|
1390
|
+
//
|
|
1391
|
+
//
|
|
1392
|
+
//
|
|
1393
|
+
//
|
|
1394
|
+
//
|
|
1395
|
+
//
|
|
1396
|
+
//
|
|
1397
|
+
//
|
|
1398
|
+
//
|
|
1399
|
+
//
|
|
1400
|
+
//
|
|
1401
|
+
//
|
|
1402
|
+
//
|
|
1403
|
+
//
|
|
1404
|
+
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
|
|
1408
|
+
|
|
1409
|
+
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
|
|
1413
|
+
/* harmony default export */ const picker_dropdownvue_type_script_lang_js = ({
|
|
1414
|
+
name: 'el-color-picker-dropdown',
|
|
1415
|
+
mixins: [(vue_popper_default()), (locale_default())],
|
|
1416
|
+
components: {
|
|
1417
|
+
SvPanel: sv_panel,
|
|
1418
|
+
HueSlider: hue_slider,
|
|
1419
|
+
AlphaSlider: alpha_slider,
|
|
1420
|
+
ElInput: (input_default()),
|
|
1421
|
+
ElButton: (button_default()),
|
|
1422
|
+
Predefine: predefine
|
|
1423
|
+
},
|
|
1424
|
+
props: {
|
|
1425
|
+
color: {
|
|
1426
|
+
required: true
|
|
1427
|
+
},
|
|
1428
|
+
showAlpha: Boolean,
|
|
1429
|
+
predefine: Array
|
|
1430
|
+
},
|
|
1431
|
+
data: function data() {
|
|
1432
|
+
return {
|
|
1433
|
+
customInput: ''
|
|
1434
|
+
};
|
|
1435
|
+
},
|
|
1436
|
+
computed: {
|
|
1437
|
+
currentColor: function currentColor() {
|
|
1438
|
+
var parent = this.$parent;
|
|
1439
|
+
return !parent.value && !parent.showPanelColor ? '' : parent.color.value;
|
|
1440
|
+
}
|
|
1441
|
+
},
|
|
1442
|
+
methods: {
|
|
1443
|
+
confirmValue: function confirmValue() {
|
|
1444
|
+
this.$emit('pick');
|
|
1445
|
+
},
|
|
1446
|
+
handleConfirm: function handleConfirm() {
|
|
1447
|
+
this.color.fromString(this.customInput);
|
|
1448
|
+
}
|
|
1449
|
+
},
|
|
1450
|
+
mounted: function mounted() {
|
|
1451
|
+
this.$parent.popperElm = this.popperElm = this.$el;
|
|
1452
|
+
this.referenceElm = this.$parent.$el;
|
|
1453
|
+
},
|
|
1454
|
+
watch: {
|
|
1455
|
+
showPopper: function showPopper(val) {
|
|
1456
|
+
var _this = this;
|
|
1457
|
+
if (val === true) {
|
|
1458
|
+
this.$nextTick(function () {
|
|
1459
|
+
var _this$$refs = _this.$refs,
|
|
1460
|
+
sl = _this$$refs.sl,
|
|
1461
|
+
hue = _this$$refs.hue,
|
|
1462
|
+
alpha = _this$$refs.alpha;
|
|
1463
|
+
sl && sl.update();
|
|
1464
|
+
hue && hue.update();
|
|
1465
|
+
alpha && alpha.update();
|
|
1466
|
+
});
|
|
1467
|
+
}
|
|
1468
|
+
},
|
|
1469
|
+
currentColor: {
|
|
1470
|
+
immediate: true,
|
|
1471
|
+
handler: function handler(val) {
|
|
1472
|
+
this.customInput = val;
|
|
1473
|
+
}
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
});
|
|
1477
|
+
;// ./packages/color-picker/src/components/picker-dropdown.vue?vue&type=script&lang=js
|
|
1478
|
+
/* harmony default export */ const components_picker_dropdownvue_type_script_lang_js = (picker_dropdownvue_type_script_lang_js);
|
|
1479
|
+
;// ./packages/color-picker/src/components/picker-dropdown.vue
|
|
1480
|
+
|
|
1481
|
+
|
|
1482
|
+
|
|
1483
|
+
|
|
1484
|
+
|
|
1485
|
+
/* normalize component */
|
|
1486
|
+
;
|
|
1487
|
+
var picker_dropdown_component = normalizeComponent(
|
|
1488
|
+
components_picker_dropdownvue_type_script_lang_js,
|
|
1489
|
+
picker_dropdownvue_type_template_id_839aeff4_render,
|
|
1490
|
+
picker_dropdownvue_type_template_id_839aeff4_staticRenderFns,
|
|
1491
|
+
false,
|
|
1492
|
+
null,
|
|
1493
|
+
null,
|
|
1494
|
+
null
|
|
1495
|
+
|
|
1496
|
+
)
|
|
1497
|
+
|
|
1498
|
+
/* harmony default export */ const picker_dropdown = (picker_dropdown_component.exports);
|
|
1499
|
+
;// external "mazey-element-ui/lib/utils/clickoutside"
|
|
1500
|
+
const clickoutside_namespaceObject = require("mazey-element-ui/lib/utils/clickoutside");
|
|
1501
|
+
var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_namespaceObject);
|
|
1502
|
+
;// external "mazey-element-ui/lib/mixins/emitter"
|
|
1503
|
+
const emitter_namespaceObject = require("mazey-element-ui/lib/mixins/emitter");
|
|
1504
|
+
var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_namespaceObject);
|
|
1505
|
+
;// ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js??vue-loader-options!./packages/color-picker/src/main.vue?vue&type=script&lang=js
|
|
1506
|
+
//
|
|
1507
|
+
//
|
|
1508
|
+
//
|
|
1509
|
+
//
|
|
1510
|
+
//
|
|
1511
|
+
//
|
|
1512
|
+
//
|
|
1513
|
+
//
|
|
1514
|
+
//
|
|
1515
|
+
//
|
|
1516
|
+
//
|
|
1517
|
+
//
|
|
1518
|
+
//
|
|
1519
|
+
//
|
|
1298
1520
|
//
|
|
1299
1521
|
//
|
|
1300
1522
|
//
|
|
@@ -1314,501 +1536,176 @@ exports.default = {
|
|
|
1314
1536
|
//
|
|
1315
1537
|
//
|
|
1316
1538
|
|
|
1317
|
-
/***/ }),
|
|
1318
|
-
|
|
1319
|
-
/***/ 132:
|
|
1320
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1321
|
-
|
|
1322
|
-
"use strict";
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
exports.__esModule = true;
|
|
1326
1539
|
|
|
1327
|
-
var _color = __webpack_require__(127);
|
|
1328
1540
|
|
|
1329
|
-
var _color2 = _interopRequireDefault(_color);
|
|
1330
1541
|
|
|
1331
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1332
1542
|
|
|
1333
|
-
|
|
1543
|
+
/* harmony default export */ const mainvue_type_script_lang_js = ({
|
|
1544
|
+
name: 'ElColorPicker',
|
|
1545
|
+
mixins: [(emitter_default())],
|
|
1334
1546
|
props: {
|
|
1335
|
-
|
|
1336
|
-
|
|
1547
|
+
value: String,
|
|
1548
|
+
showAlpha: Boolean,
|
|
1549
|
+
colorFormat: String,
|
|
1550
|
+
disabled: Boolean,
|
|
1551
|
+
size: String,
|
|
1552
|
+
popperClass: String,
|
|
1553
|
+
predefine: Array
|
|
1337
1554
|
},
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
}
|
|
1555
|
+
inject: {
|
|
1556
|
+
elForm: {
|
|
1557
|
+
default: ''
|
|
1558
|
+
},
|
|
1559
|
+
elFormItem: {
|
|
1560
|
+
default: ''
|
|
1561
|
+
}
|
|
1342
1562
|
},
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1563
|
+
directives: {
|
|
1564
|
+
Clickoutside: (clickoutside_default())
|
|
1565
|
+
},
|
|
1566
|
+
computed: {
|
|
1567
|
+
displayedColor: function displayedColor() {
|
|
1568
|
+
if (!this.value && !this.showPanelColor) {
|
|
1569
|
+
return 'transparent';
|
|
1570
|
+
}
|
|
1571
|
+
return this.displayedRgb(this.color, this.showAlpha);
|
|
1347
1572
|
},
|
|
1348
|
-
|
|
1349
|
-
return
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
});
|
|
1573
|
+
_elFormItemSize: function _elFormItemSize() {
|
|
1574
|
+
return (this.elFormItem || {}).elFormItemSize;
|
|
1575
|
+
},
|
|
1576
|
+
colorSize: function colorSize() {
|
|
1577
|
+
return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
|
|
1578
|
+
},
|
|
1579
|
+
colorDisabled: function colorDisabled() {
|
|
1580
|
+
return this.disabled || (this.elForm || {}).disabled;
|
|
1357
1581
|
}
|
|
1358
1582
|
},
|
|
1359
1583
|
watch: {
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1584
|
+
value: function value(val) {
|
|
1585
|
+
if (!val) {
|
|
1586
|
+
this.showPanelColor = false;
|
|
1587
|
+
} else if (val && val !== this.color.value) {
|
|
1588
|
+
this.color.fromString(val);
|
|
1589
|
+
}
|
|
1590
|
+
},
|
|
1591
|
+
color: {
|
|
1592
|
+
deep: true,
|
|
1593
|
+
handler: function handler() {
|
|
1594
|
+
this.showPanelColor = true;
|
|
1595
|
+
}
|
|
1596
|
+
},
|
|
1597
|
+
displayedColor: function displayedColor(val) {
|
|
1598
|
+
if (!this.showPicker) return;
|
|
1599
|
+
var currentValueColor = new Color({
|
|
1600
|
+
enableAlpha: this.showAlpha,
|
|
1601
|
+
format: this.colorFormat
|
|
1366
1602
|
});
|
|
1603
|
+
currentValueColor.fromString(this.value);
|
|
1604
|
+
var currentValueColorRgb = this.displayedRgb(currentValueColor, this.showAlpha);
|
|
1605
|
+
if (val !== currentValueColorRgb) {
|
|
1606
|
+
this.$emit('active-change', val);
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
},
|
|
1610
|
+
methods: {
|
|
1611
|
+
handleTrigger: function handleTrigger() {
|
|
1612
|
+
if (this.colorDisabled) return;
|
|
1613
|
+
this.showPicker = !this.showPicker;
|
|
1367
1614
|
},
|
|
1368
|
-
|
|
1369
|
-
|
|
1615
|
+
confirmValue: function confirmValue() {
|
|
1616
|
+
var value = this.color.value;
|
|
1617
|
+
this.$emit('input', value);
|
|
1618
|
+
this.$emit('change', value);
|
|
1619
|
+
this.dispatch('ElFormItem', 'el.form.change', value);
|
|
1620
|
+
this.showPicker = false;
|
|
1370
1621
|
},
|
|
1371
|
-
|
|
1372
|
-
this
|
|
1622
|
+
clearValue: function clearValue() {
|
|
1623
|
+
this.$emit('input', null);
|
|
1624
|
+
this.$emit('change', null);
|
|
1625
|
+
if (this.value !== null) {
|
|
1626
|
+
this.dispatch('ElFormItem', 'el.form.change', null);
|
|
1627
|
+
}
|
|
1628
|
+
this.showPanelColor = false;
|
|
1629
|
+
this.showPicker = false;
|
|
1630
|
+
this.resetColor();
|
|
1631
|
+
},
|
|
1632
|
+
hide: function hide() {
|
|
1633
|
+
this.showPicker = false;
|
|
1634
|
+
this.resetColor();
|
|
1635
|
+
},
|
|
1636
|
+
resetColor: function resetColor() {
|
|
1637
|
+
var _this = this;
|
|
1638
|
+
this.$nextTick(function (_) {
|
|
1639
|
+
if (_this.value) {
|
|
1640
|
+
_this.color.fromString(_this.value);
|
|
1641
|
+
} else {
|
|
1642
|
+
_this.showPanelColor = false;
|
|
1643
|
+
}
|
|
1644
|
+
});
|
|
1645
|
+
},
|
|
1646
|
+
displayedRgb: function displayedRgb(color, showAlpha) {
|
|
1647
|
+
if (!(color instanceof Color)) {
|
|
1648
|
+
throw Error('color should be instance of Color Class');
|
|
1649
|
+
}
|
|
1650
|
+
var _color$toRgb = color.toRgb(),
|
|
1651
|
+
r = _color$toRgb.r,
|
|
1652
|
+
g = _color$toRgb.g,
|
|
1653
|
+
b = _color$toRgb.b;
|
|
1654
|
+
return showAlpha ? "rgba(" + r + ", " + g + ", " + b + ", " + color.get('alpha') / 100 + ")" : "rgb(" + r + ", " + g + ", " + b + ")";
|
|
1655
|
+
}
|
|
1656
|
+
},
|
|
1657
|
+
mounted: function mounted() {
|
|
1658
|
+
var value = this.value;
|
|
1659
|
+
if (value) {
|
|
1660
|
+
this.color.fromString(value);
|
|
1373
1661
|
}
|
|
1662
|
+
this.popperElm = this.$refs.dropdown.$el;
|
|
1663
|
+
},
|
|
1664
|
+
data: function data() {
|
|
1665
|
+
var color = new Color({
|
|
1666
|
+
enableAlpha: this.showAlpha,
|
|
1667
|
+
format: this.colorFormat
|
|
1668
|
+
});
|
|
1669
|
+
return {
|
|
1670
|
+
color: color,
|
|
1671
|
+
showPicker: false,
|
|
1672
|
+
showPanelColor: false
|
|
1673
|
+
};
|
|
1674
|
+
},
|
|
1675
|
+
components: {
|
|
1676
|
+
PickerDropdown: picker_dropdown
|
|
1374
1677
|
}
|
|
1375
|
-
};
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
//
|
|
1380
|
-
//
|
|
1381
|
-
//
|
|
1382
|
-
//
|
|
1383
|
-
//
|
|
1384
|
-
//
|
|
1385
|
-
//
|
|
1386
|
-
//
|
|
1387
|
-
//
|
|
1388
|
-
//
|
|
1389
|
-
//
|
|
1390
|
-
|
|
1391
|
-
/***/ }),
|
|
1392
|
-
|
|
1393
|
-
/***/ 15:
|
|
1394
|
-
/***/ (function(module, exports) {
|
|
1395
|
-
|
|
1396
|
-
module.exports = require("element-ui/lib/button");
|
|
1397
|
-
|
|
1398
|
-
/***/ }),
|
|
1399
|
-
|
|
1400
|
-
/***/ 374:
|
|
1401
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1678
|
+
});
|
|
1679
|
+
;// ./packages/color-picker/src/main.vue?vue&type=script&lang=js
|
|
1680
|
+
/* harmony default export */ const src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
|
|
1681
|
+
;// ./packages/color-picker/src/main.vue
|
|
1402
1682
|
|
|
1403
|
-
"use strict";
|
|
1404
1683
|
|
|
1405
1684
|
|
|
1406
|
-
exports.__esModule = true;
|
|
1407
1685
|
|
|
1408
|
-
var _main = __webpack_require__(375);
|
|
1409
1686
|
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
/***/ }),
|
|
1422
|
-
|
|
1423
|
-
/***/ 375:
|
|
1424
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1425
|
-
|
|
1426
|
-
"use strict";
|
|
1427
|
-
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
1428
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_main_vue__ = __webpack_require__(126);
|
|
1429
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_main_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_main_vue__);
|
|
1430
|
-
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_main_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_main_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
1431
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_13_7_3_vue_loader_lib_template_compiler_index_id_data_v_30127206_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_template_index_0_main_vue__ = __webpack_require__(386);
|
|
1432
|
-
var normalizeComponent = __webpack_require__(0)
|
|
1433
|
-
/* script */
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
/* template */
|
|
1437
|
-
|
|
1438
|
-
/* template functional */
|
|
1439
|
-
var __vue_template_functional__ = false
|
|
1440
|
-
/* styles */
|
|
1441
|
-
var __vue_styles__ = null
|
|
1442
|
-
/* scopeId */
|
|
1443
|
-
var __vue_scopeId__ = null
|
|
1444
|
-
/* moduleIdentifier (server only) */
|
|
1445
|
-
var __vue_module_identifier__ = null
|
|
1446
|
-
var Component = normalizeComponent(
|
|
1447
|
-
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_main_vue___default.a,
|
|
1448
|
-
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_13_7_3_vue_loader_lib_template_compiler_index_id_data_v_30127206_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_template_index_0_main_vue__["a" /* default */],
|
|
1449
|
-
__vue_template_functional__,
|
|
1450
|
-
__vue_styles__,
|
|
1451
|
-
__vue_scopeId__,
|
|
1452
|
-
__vue_module_identifier__
|
|
1453
|
-
)
|
|
1454
|
-
|
|
1455
|
-
/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
/***/ }),
|
|
1459
|
-
|
|
1460
|
-
/***/ 376:
|
|
1461
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1462
|
-
|
|
1463
|
-
"use strict";
|
|
1464
|
-
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
1465
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_picker_dropdown_vue__ = __webpack_require__(128);
|
|
1466
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_picker_dropdown_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_picker_dropdown_vue__);
|
|
1467
|
-
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_picker_dropdown_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_picker_dropdown_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
1468
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_13_7_3_vue_loader_lib_template_compiler_index_id_data_v_1e4731b2_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_template_index_0_picker_dropdown_vue__ = __webpack_require__(385);
|
|
1469
|
-
var normalizeComponent = __webpack_require__(0)
|
|
1470
|
-
/* script */
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
/* template */
|
|
1474
|
-
|
|
1475
|
-
/* template functional */
|
|
1476
|
-
var __vue_template_functional__ = false
|
|
1477
|
-
/* styles */
|
|
1478
|
-
var __vue_styles__ = null
|
|
1479
|
-
/* scopeId */
|
|
1480
|
-
var __vue_scopeId__ = null
|
|
1481
|
-
/* moduleIdentifier (server only) */
|
|
1482
|
-
var __vue_module_identifier__ = null
|
|
1483
|
-
var Component = normalizeComponent(
|
|
1484
|
-
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_picker_dropdown_vue___default.a,
|
|
1485
|
-
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_13_7_3_vue_loader_lib_template_compiler_index_id_data_v_1e4731b2_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_template_index_0_picker_dropdown_vue__["a" /* default */],
|
|
1486
|
-
__vue_template_functional__,
|
|
1487
|
-
__vue_styles__,
|
|
1488
|
-
__vue_scopeId__,
|
|
1489
|
-
__vue_module_identifier__
|
|
1490
|
-
)
|
|
1491
|
-
|
|
1492
|
-
/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
/***/ }),
|
|
1496
|
-
|
|
1497
|
-
/***/ 377:
|
|
1498
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1499
|
-
|
|
1500
|
-
"use strict";
|
|
1501
|
-
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
1502
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_sv_panel_vue__ = __webpack_require__(129);
|
|
1503
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_sv_panel_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_sv_panel_vue__);
|
|
1504
|
-
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_sv_panel_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_sv_panel_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
1505
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_13_7_3_vue_loader_lib_template_compiler_index_id_data_v_86795a64_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_template_index_0_sv_panel_vue__ = __webpack_require__(378);
|
|
1506
|
-
var normalizeComponent = __webpack_require__(0)
|
|
1507
|
-
/* script */
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
/* template */
|
|
1511
|
-
|
|
1512
|
-
/* template functional */
|
|
1513
|
-
var __vue_template_functional__ = false
|
|
1514
|
-
/* styles */
|
|
1515
|
-
var __vue_styles__ = null
|
|
1516
|
-
/* scopeId */
|
|
1517
|
-
var __vue_scopeId__ = null
|
|
1518
|
-
/* moduleIdentifier (server only) */
|
|
1519
|
-
var __vue_module_identifier__ = null
|
|
1520
|
-
var Component = normalizeComponent(
|
|
1521
|
-
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_sv_panel_vue___default.a,
|
|
1522
|
-
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_13_7_3_vue_loader_lib_template_compiler_index_id_data_v_86795a64_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_template_index_0_sv_panel_vue__["a" /* default */],
|
|
1523
|
-
__vue_template_functional__,
|
|
1524
|
-
__vue_styles__,
|
|
1525
|
-
__vue_scopeId__,
|
|
1526
|
-
__vue_module_identifier__
|
|
1527
|
-
)
|
|
1528
|
-
|
|
1529
|
-
/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
/***/ }),
|
|
1533
|
-
|
|
1534
|
-
/***/ 378:
|
|
1535
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1536
|
-
|
|
1537
|
-
"use strict";
|
|
1538
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"el-color-svpanel",style:({
|
|
1539
|
-
backgroundColor: _vm.background
|
|
1540
|
-
})},[_c('div',{staticClass:"el-color-svpanel__white"}),_c('div',{staticClass:"el-color-svpanel__black"}),_c('div',{staticClass:"el-color-svpanel__cursor",style:({
|
|
1541
|
-
top: _vm.cursorTop + 'px',
|
|
1542
|
-
left: _vm.cursorLeft + 'px'
|
|
1543
|
-
})},[_c('div')])])}
|
|
1544
|
-
var staticRenderFns = []
|
|
1545
|
-
var esExports = { render: render, staticRenderFns: staticRenderFns }
|
|
1546
|
-
/* harmony default export */ __webpack_exports__["a"] = (esExports);
|
|
1547
|
-
|
|
1548
|
-
/***/ }),
|
|
1549
|
-
|
|
1550
|
-
/***/ 379:
|
|
1551
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1552
|
-
|
|
1553
|
-
"use strict";
|
|
1554
|
-
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
1555
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_hue_slider_vue__ = __webpack_require__(130);
|
|
1556
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_hue_slider_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_hue_slider_vue__);
|
|
1557
|
-
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_hue_slider_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_hue_slider_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
1558
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_13_7_3_vue_loader_lib_template_compiler_index_id_data_v_cc289afc_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_template_index_0_hue_slider_vue__ = __webpack_require__(380);
|
|
1559
|
-
var normalizeComponent = __webpack_require__(0)
|
|
1560
|
-
/* script */
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
/* template */
|
|
1564
|
-
|
|
1565
|
-
/* template functional */
|
|
1566
|
-
var __vue_template_functional__ = false
|
|
1567
|
-
/* styles */
|
|
1568
|
-
var __vue_styles__ = null
|
|
1569
|
-
/* scopeId */
|
|
1570
|
-
var __vue_scopeId__ = null
|
|
1571
|
-
/* moduleIdentifier (server only) */
|
|
1572
|
-
var __vue_module_identifier__ = null
|
|
1573
|
-
var Component = normalizeComponent(
|
|
1574
|
-
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_hue_slider_vue___default.a,
|
|
1575
|
-
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_13_7_3_vue_loader_lib_template_compiler_index_id_data_v_cc289afc_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_template_index_0_hue_slider_vue__["a" /* default */],
|
|
1576
|
-
__vue_template_functional__,
|
|
1577
|
-
__vue_styles__,
|
|
1578
|
-
__vue_scopeId__,
|
|
1579
|
-
__vue_module_identifier__
|
|
1580
|
-
)
|
|
1581
|
-
|
|
1582
|
-
/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
/***/ }),
|
|
1586
|
-
|
|
1587
|
-
/***/ 380:
|
|
1588
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1589
|
-
|
|
1590
|
-
"use strict";
|
|
1591
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"el-color-hue-slider",class:{ 'is-vertical': _vm.vertical }},[_c('div',{ref:"bar",staticClass:"el-color-hue-slider__bar",on:{"click":_vm.handleClick}}),_c('div',{ref:"thumb",staticClass:"el-color-hue-slider__thumb",style:({
|
|
1592
|
-
left: _vm.thumbLeft + 'px',
|
|
1593
|
-
top: _vm.thumbTop + 'px'
|
|
1594
|
-
})})])}
|
|
1595
|
-
var staticRenderFns = []
|
|
1596
|
-
var esExports = { render: render, staticRenderFns: staticRenderFns }
|
|
1597
|
-
/* harmony default export */ __webpack_exports__["a"] = (esExports);
|
|
1598
|
-
|
|
1599
|
-
/***/ }),
|
|
1600
|
-
|
|
1601
|
-
/***/ 381:
|
|
1602
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1603
|
-
|
|
1604
|
-
"use strict";
|
|
1605
|
-
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
1606
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_alpha_slider_vue__ = __webpack_require__(131);
|
|
1607
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_alpha_slider_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_alpha_slider_vue__);
|
|
1608
|
-
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_alpha_slider_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_alpha_slider_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
1609
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_13_7_3_vue_loader_lib_template_compiler_index_id_data_v_4738c7de_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_template_index_0_alpha_slider_vue__ = __webpack_require__(382);
|
|
1610
|
-
var normalizeComponent = __webpack_require__(0)
|
|
1611
|
-
/* script */
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
/* template */
|
|
1615
|
-
|
|
1616
|
-
/* template functional */
|
|
1617
|
-
var __vue_template_functional__ = false
|
|
1618
|
-
/* styles */
|
|
1619
|
-
var __vue_styles__ = null
|
|
1620
|
-
/* scopeId */
|
|
1621
|
-
var __vue_scopeId__ = null
|
|
1622
|
-
/* moduleIdentifier (server only) */
|
|
1623
|
-
var __vue_module_identifier__ = null
|
|
1624
|
-
var Component = normalizeComponent(
|
|
1625
|
-
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_alpha_slider_vue___default.a,
|
|
1626
|
-
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_13_7_3_vue_loader_lib_template_compiler_index_id_data_v_4738c7de_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_template_index_0_alpha_slider_vue__["a" /* default */],
|
|
1627
|
-
__vue_template_functional__,
|
|
1628
|
-
__vue_styles__,
|
|
1629
|
-
__vue_scopeId__,
|
|
1630
|
-
__vue_module_identifier__
|
|
1631
|
-
)
|
|
1632
|
-
|
|
1633
|
-
/* harmony default export */ __webpack_exports__["default"] = (Component.exports);
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
/***/ }),
|
|
1637
|
-
|
|
1638
|
-
/***/ 382:
|
|
1639
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1640
|
-
|
|
1641
|
-
"use strict";
|
|
1642
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"el-color-alpha-slider",class:{ 'is-vertical': _vm.vertical }},[_c('div',{ref:"bar",staticClass:"el-color-alpha-slider__bar",style:({
|
|
1643
|
-
background: _vm.background
|
|
1644
|
-
}),on:{"click":_vm.handleClick}}),_c('div',{ref:"thumb",staticClass:"el-color-alpha-slider__thumb",style:({
|
|
1645
|
-
left: _vm.thumbLeft + 'px',
|
|
1646
|
-
top: _vm.thumbTop + 'px'
|
|
1647
|
-
})})])}
|
|
1648
|
-
var staticRenderFns = []
|
|
1649
|
-
var esExports = { render: render, staticRenderFns: staticRenderFns }
|
|
1650
|
-
/* harmony default export */ __webpack_exports__["a"] = (esExports);
|
|
1651
|
-
|
|
1652
|
-
/***/ }),
|
|
1653
|
-
|
|
1654
|
-
/***/ 383:
|
|
1655
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1656
|
-
|
|
1657
|
-
"use strict";
|
|
1658
|
-
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
1659
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_predefine_vue__ = __webpack_require__(132);
|
|
1660
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_predefine_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_predefine_vue__);
|
|
1661
|
-
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_predefine_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_predefine_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
1662
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_13_7_3_vue_loader_lib_template_compiler_index_id_data_v_7da51eed_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_template_index_0_predefine_vue__ = __webpack_require__(384);
|
|
1663
|
-
var normalizeComponent = __webpack_require__(0)
|
|
1664
|
-
/* script */
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
/* template */
|
|
1668
|
-
|
|
1669
|
-
/* template functional */
|
|
1670
|
-
var __vue_template_functional__ = false
|
|
1671
|
-
/* styles */
|
|
1672
|
-
var __vue_styles__ = null
|
|
1673
|
-
/* scopeId */
|
|
1674
|
-
var __vue_scopeId__ = null
|
|
1675
|
-
/* moduleIdentifier (server only) */
|
|
1676
|
-
var __vue_module_identifier__ = null
|
|
1677
|
-
var Component = normalizeComponent(
|
|
1678
|
-
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_script_index_0_predefine_vue___default.a,
|
|
1679
|
-
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_13_7_3_vue_loader_lib_template_compiler_index_id_data_v_7da51eed_hasScoped_false_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_13_7_3_vue_loader_lib_selector_type_template_index_0_predefine_vue__["a" /* default */],
|
|
1680
|
-
__vue_template_functional__,
|
|
1681
|
-
__vue_styles__,
|
|
1682
|
-
__vue_scopeId__,
|
|
1683
|
-
__vue_module_identifier__
|
|
1687
|
+
/* normalize component */
|
|
1688
|
+
;
|
|
1689
|
+
var main_component = normalizeComponent(
|
|
1690
|
+
src_mainvue_type_script_lang_js,
|
|
1691
|
+
render,
|
|
1692
|
+
staticRenderFns,
|
|
1693
|
+
false,
|
|
1694
|
+
null,
|
|
1695
|
+
null,
|
|
1696
|
+
null
|
|
1697
|
+
|
|
1684
1698
|
)
|
|
1685
1699
|
|
|
1686
|
-
/* harmony default export */
|
|
1687
|
-
|
|
1700
|
+
/* harmony default export */ const main = (main_component.exports);
|
|
1701
|
+
;// ./packages/color-picker/index.js
|
|
1688
1702
|
|
|
1689
|
-
/***/ }),
|
|
1690
1703
|
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
"use strict";
|
|
1695
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"el-color-predefine"},[_c('div',{staticClass:"el-color-predefine__colors"},_vm._l((_vm.rgbaColors),function(item,index){return _c('div',{key:_vm.colors[index],staticClass:"el-color-predefine__color-selector",class:{selected: item.selected, 'is-alpha': item._alpha < 100},on:{"click":function($event){_vm.handleSelect(index)}}},[_c('div',{style:({'background-color': item.value})})])}))])}
|
|
1696
|
-
var staticRenderFns = []
|
|
1697
|
-
var esExports = { render: render, staticRenderFns: staticRenderFns }
|
|
1698
|
-
/* harmony default export */ __webpack_exports__["a"] = (esExports);
|
|
1699
|
-
|
|
1700
|
-
/***/ }),
|
|
1701
|
-
|
|
1702
|
-
/***/ 385:
|
|
1703
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1704
|
-
|
|
1705
|
-
"use strict";
|
|
1706
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":"el-zoom-in-top"},on:{"after-leave":_vm.doDestroy}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showPopper),expression:"showPopper"}],staticClass:"el-color-dropdown"},[_c('div',{staticClass:"el-color-dropdown__main-wrapper"},[_c('hue-slider',{ref:"hue",staticStyle:{"float":"right"},attrs:{"color":_vm.color,"vertical":""}}),_c('sv-panel',{ref:"sl",attrs:{"color":_vm.color}})],1),(_vm.showAlpha)?_c('alpha-slider',{ref:"alpha",attrs:{"color":_vm.color}}):_vm._e(),(_vm.predefine)?_c('predefine',{attrs:{"color":_vm.color,"colors":_vm.predefine}}):_vm._e(),_c('div',{staticClass:"el-color-dropdown__btns"},[_c('span',{staticClass:"el-color-dropdown__value"},[_c('el-input',{attrs:{"size":"mini"},on:{"blur":_vm.handleConfirm},nativeOn:{"keyup":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.handleConfirm($event)}},model:{value:(_vm.customInput),callback:function ($$v) {_vm.customInput=$$v},expression:"customInput"}})],1),_c('el-button',{staticClass:"el-color-dropdown__link-btn",attrs:{"size":"mini","type":"text"},on:{"click":function($event){_vm.$emit('clear')}}},[_vm._v("\n "+_vm._s(_vm.t('el.colorpicker.clear'))+"\n ")]),_c('el-button',{staticClass:"el-color-dropdown__btn",attrs:{"plain":"","size":"mini"},on:{"click":_vm.confirmValue}},[_vm._v("\n "+_vm._s(_vm.t('el.colorpicker.confirm'))+"\n ")])],1)],1)])}
|
|
1707
|
-
var staticRenderFns = []
|
|
1708
|
-
var esExports = { render: render, staticRenderFns: staticRenderFns }
|
|
1709
|
-
/* harmony default export */ __webpack_exports__["a"] = (esExports);
|
|
1710
|
-
|
|
1711
|
-
/***/ }),
|
|
1712
|
-
|
|
1713
|
-
/***/ 386:
|
|
1714
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1715
|
-
|
|
1716
|
-
"use strict";
|
|
1717
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:(_vm.hide),expression:"hide"}],class:[
|
|
1718
|
-
'el-color-picker',
|
|
1719
|
-
_vm.colorDisabled ? 'is-disabled' : '',
|
|
1720
|
-
_vm.colorSize ? ("el-color-picker--" + _vm.colorSize) : ''
|
|
1721
|
-
]},[(_vm.colorDisabled)?_c('div',{staticClass:"el-color-picker__mask"}):_vm._e(),_c('div',{staticClass:"el-color-picker__trigger",on:{"click":_vm.handleTrigger}},[_c('span',{staticClass:"el-color-picker__color",class:{ 'is-alpha': _vm.showAlpha }},[_c('span',{staticClass:"el-color-picker__color-inner",style:({
|
|
1722
|
-
backgroundColor: _vm.displayedColor
|
|
1723
|
-
})}),(!_vm.value && !_vm.showPanelColor)?_c('span',{staticClass:"el-color-picker__empty el-icon-close"}):_vm._e()]),_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.value || _vm.showPanelColor),expression:"value || showPanelColor"}],staticClass:"el-color-picker__icon el-icon-arrow-down"})]),_c('picker-dropdown',{ref:"dropdown",class:['el-color-picker__panel', _vm.popperClass || ''],attrs:{"color":_vm.color,"show-alpha":_vm.showAlpha,"predefine":_vm.predefine},on:{"pick":_vm.confirmValue,"clear":_vm.clearValue},model:{value:(_vm.showPicker),callback:function ($$v) {_vm.showPicker=$$v},expression:"showPicker"}})],1)}
|
|
1724
|
-
var staticRenderFns = []
|
|
1725
|
-
var esExports = { render: render, staticRenderFns: staticRenderFns }
|
|
1726
|
-
/* harmony default export */ __webpack_exports__["a"] = (esExports);
|
|
1727
|
-
|
|
1728
|
-
/***/ }),
|
|
1729
|
-
|
|
1730
|
-
/***/ 4:
|
|
1731
|
-
/***/ (function(module, exports) {
|
|
1732
|
-
|
|
1733
|
-
module.exports = require("vue");
|
|
1734
|
-
|
|
1735
|
-
/***/ }),
|
|
1736
|
-
|
|
1737
|
-
/***/ 46:
|
|
1738
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1739
|
-
|
|
1740
|
-
"use strict";
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
exports.__esModule = true;
|
|
1744
|
-
|
|
1745
|
-
exports.default = function (element, options) {
|
|
1746
|
-
if (_vue2.default.prototype.$isServer) return;
|
|
1747
|
-
var moveFn = function moveFn(event) {
|
|
1748
|
-
if (options.drag) {
|
|
1749
|
-
options.drag(event);
|
|
1750
|
-
}
|
|
1751
|
-
};
|
|
1752
|
-
var upFn = function upFn(event) {
|
|
1753
|
-
document.removeEventListener('mousemove', moveFn);
|
|
1754
|
-
document.removeEventListener('mouseup', upFn);
|
|
1755
|
-
document.onselectstart = null;
|
|
1756
|
-
document.ondragstart = null;
|
|
1757
|
-
|
|
1758
|
-
isDragging = false;
|
|
1759
|
-
|
|
1760
|
-
if (options.end) {
|
|
1761
|
-
options.end(event);
|
|
1762
|
-
}
|
|
1763
|
-
};
|
|
1764
|
-
element.addEventListener('mousedown', function (event) {
|
|
1765
|
-
if (isDragging) return;
|
|
1766
|
-
document.onselectstart = function () {
|
|
1767
|
-
return false;
|
|
1768
|
-
};
|
|
1769
|
-
document.ondragstart = function () {
|
|
1770
|
-
return false;
|
|
1771
|
-
};
|
|
1772
|
-
|
|
1773
|
-
document.addEventListener('mousemove', moveFn);
|
|
1774
|
-
document.addEventListener('mouseup', upFn);
|
|
1775
|
-
isDragging = true;
|
|
1776
|
-
|
|
1777
|
-
if (options.start) {
|
|
1778
|
-
options.start(event);
|
|
1779
|
-
}
|
|
1780
|
-
});
|
|
1704
|
+
/* istanbul ignore next */
|
|
1705
|
+
main.install = function (Vue) {
|
|
1706
|
+
Vue.component(main.name, main);
|
|
1781
1707
|
};
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
1788
|
-
|
|
1789
|
-
var isDragging = false;
|
|
1790
|
-
|
|
1791
|
-
/***/ }),
|
|
1792
|
-
|
|
1793
|
-
/***/ 5:
|
|
1794
|
-
/***/ (function(module, exports) {
|
|
1795
|
-
|
|
1796
|
-
module.exports = require("element-ui/lib/mixins/locale");
|
|
1797
|
-
|
|
1798
|
-
/***/ }),
|
|
1799
|
-
|
|
1800
|
-
/***/ 6:
|
|
1801
|
-
/***/ (function(module, exports) {
|
|
1802
|
-
|
|
1803
|
-
module.exports = require("element-ui/lib/input");
|
|
1804
|
-
|
|
1805
|
-
/***/ }),
|
|
1806
|
-
|
|
1807
|
-
/***/ 7:
|
|
1808
|
-
/***/ (function(module, exports) {
|
|
1809
|
-
|
|
1810
|
-
module.exports = require("element-ui/lib/utils/vue-popper");
|
|
1811
|
-
|
|
1812
|
-
/***/ })
|
|
1813
|
-
|
|
1814
|
-
/******/ });
|
|
1708
|
+
/* harmony default export */ const color_picker = (main);
|
|
1709
|
+
module.exports = __webpack_exports__["default"];
|
|
1710
|
+
/******/ })()
|
|
1711
|
+
;
|