From e301f74b2ced7e65fc55a9ee82108cbd0897215f Mon Sep 17 00:00:00 2001 From: linx4200 Date: Thu, 24 Dec 2020 19:00:55 +0800 Subject: [PATCH] build 2.8.1 --- dist/vue-color.js | 458 ++++++++++++++------------- dist/vue-color.min.js | 2 +- src/components/common/Alpha.vue | 2 +- src/components/common/Hue.vue | 2 +- src/components/common/Saturation.vue | 2 +- src/index.js | 2 +- 6 files changed, 250 insertions(+), 218 deletions(-) diff --git a/dist/vue-color.js b/dist/vue-color.js index 4218f739..2ebe8595 100644 --- a/dist/vue-color.js +++ b/dist/vue-color.js @@ -70,7 +70,7 @@ return /******/ (function(modules) { // webpackBootstrap /******/ __webpack_require__.p = ""; /******/ /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 59); +/******/ return __webpack_require__(__webpack_require__.s = 60); /******/ }) /************************************************************************/ /******/ ([ @@ -175,7 +175,7 @@ if (typeof DEBUG !== 'undefined' && DEBUG) { ) } } -var listToStyles = __webpack_require__(63) +var listToStyles = __webpack_require__(64) /* type StyleObject = { @@ -503,7 +503,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _tinycolor = __webpack_require__(64); +var _tinycolor = __webpack_require__(65); var _tinycolor2 = _interopRequireDefault(_tinycolor); @@ -633,11 +633,11 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_EditableInput_vue__ = __webpack_require__(36); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_EditableInput_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_EditableInput_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_EditableInput_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_lib_selector_type_script_index_0_EditableInput_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_441174dc_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_EditableInput_vue__ = __webpack_require__(67); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_441174dc_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_EditableInput_vue__ = __webpack_require__(68); var disposed = false function injectStyle (ssrContext) { if (disposed) return - __webpack_require__(65) + __webpack_require__(66) } var normalizeComponent = __webpack_require__(2) /* script */ @@ -697,7 +697,7 @@ module.exports = function (it, key) { /***/ (function(module, exports, __webpack_require__) { var dP = __webpack_require__(8); -var createDesc = __webpack_require__(16); +var createDesc = __webpack_require__(18); module.exports = __webpack_require__(9) ? function (object, key, value) { return dP.f(object, key, createDesc(1, value)); } : function (object, key, value) { @@ -710,7 +710,7 @@ module.exports = __webpack_require__(9) ? function (object, key, value) { /* 8 */ /***/ (function(module, exports, __webpack_require__) { -var anObject = __webpack_require__(13); +var anObject = __webpack_require__(16); var IE8_DOM_DEFINE = __webpack_require__(42); var toPrimitive = __webpack_require__(25); var dP = Object.defineProperty; @@ -733,7 +733,7 @@ exports.f = __webpack_require__(9) ? Object.defineProperty : function defineProp /***/ (function(module, exports, __webpack_require__) { // Thank's IE8 for his funny defineProperty -module.exports = !__webpack_require__(15)(function () { +module.exports = !__webpack_require__(17)(function () { return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; }); @@ -743,8 +743,8 @@ module.exports = !__webpack_require__(15)(function () { /***/ (function(module, exports, __webpack_require__) { // to indexed object, toObject with fallback for non-array-like ES3 strings -var IObject = __webpack_require__(89); -var defined = __webpack_require__(22); +var IObject = __webpack_require__(90); +var defined = __webpack_require__(24); module.exports = function (it) { return IObject(defined(it)); }; @@ -755,7 +755,7 @@ module.exports = function (it) { /***/ (function(module, exports, __webpack_require__) { var store = __webpack_require__(29)('wks'); -var uid = __webpack_require__(17); +var uid = __webpack_require__(19); var Symbol = __webpack_require__(4).Symbol; var USE_SYMBOL = typeof Symbol == 'function'; @@ -769,11 +769,20 @@ $exports.store = store; /***/ }), /* 12 */ +/***/ (function(module, exports) { + +module.exports = function (it) { + return typeof it === 'object' ? it !== null : typeof it === 'function'; +}; + + +/***/ }), +/* 13 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Hue_vue__ = __webpack_require__(50); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Hue_vue__ = __webpack_require__(51); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Hue_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Hue_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Hue_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_lib_selector_type_script_index_0_Hue_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_7b9aea78_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Hue_vue__ = __webpack_require__(113); @@ -826,27 +835,33 @@ if (false) {(function () { /***/ }), -/* 13 */ -/***/ (function(module, exports, __webpack_require__) { +/* 14 */ +/***/ (function(module, exports) { -var isObject = __webpack_require__(14); -module.exports = function (it) { - if (!isObject(it)) throw TypeError(it + ' is not an object!'); - return it; -}; +module.exports = true; /***/ }), -/* 14 */ +/* 15 */ /***/ (function(module, exports) { +var core = module.exports = { version: '2.6.11' }; +if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef + + +/***/ }), +/* 16 */ +/***/ (function(module, exports, __webpack_require__) { + +var isObject = __webpack_require__(12); module.exports = function (it) { - return typeof it === 'object' ? it !== null : typeof it === 'function'; + if (!isObject(it)) throw TypeError(it + ' is not an object!'); + return it; }; /***/ }), -/* 15 */ +/* 17 */ /***/ (function(module, exports) { module.exports = function (exec) { @@ -859,7 +874,7 @@ module.exports = function (exec) { /***/ }), -/* 16 */ +/* 18 */ /***/ (function(module, exports) { module.exports = function (bitmap, value) { @@ -873,7 +888,7 @@ module.exports = function (bitmap, value) { /***/ }), -/* 17 */ +/* 19 */ /***/ (function(module, exports) { var id = 0; @@ -884,12 +899,12 @@ module.exports = function (key) { /***/ }), -/* 18 */ +/* 20 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Saturation_vue__ = __webpack_require__(53); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Saturation_vue__ = __webpack_require__(54); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Saturation_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Saturation_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Saturation_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_lib_selector_type_script_index_0_Saturation_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_ba139894_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Saturation_vue__ = __webpack_require__(127); @@ -942,12 +957,12 @@ if (false) {(function () { /***/ }), -/* 19 */ +/* 21 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Alpha_vue__ = __webpack_require__(54); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Alpha_vue__ = __webpack_require__(55); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Alpha_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Alpha_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Alpha_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_lib_selector_type_script_index_0_Alpha_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_1af1f1ac_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Alpha_vue__ = __webpack_require__(133); @@ -1000,12 +1015,12 @@ if (false) {(function () { /***/ }), -/* 20 */ +/* 22 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Checkboard_vue__ = __webpack_require__(55); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Checkboard_vue__ = __webpack_require__(56); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Checkboard_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Checkboard_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Checkboard_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_lib_selector_type_script_index_0_Checkboard_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_5b6dc0c2_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Checkboard_vue__ = __webpack_require__(132); @@ -1058,7 +1073,7 @@ if (false) {(function () { /***/ }), -/* 21 */ +/* 23 */ /***/ (function(module, exports) { // 7.1.4 ToInteger @@ -1070,7 +1085,7 @@ module.exports = function (it) { /***/ }), -/* 22 */ +/* 24 */ /***/ (function(module, exports) { // 7.2.1 RequireObjectCoercible(argument) @@ -1080,27 +1095,12 @@ module.exports = function (it) { }; -/***/ }), -/* 23 */ -/***/ (function(module, exports) { - -module.exports = true; - - -/***/ }), -/* 24 */ -/***/ (function(module, exports) { - -var core = module.exports = { version: '2.5.1' }; -if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef - - /***/ }), /* 25 */ /***/ (function(module, exports, __webpack_require__) { // 7.1.1 ToPrimitive(input [, PreferredType]) -var isObject = __webpack_require__(14); +var isObject = __webpack_require__(12); // instead of the ES6 spec version, we didn't implement @@toPrimitive case // and the second argument - flag - preferred type is a string module.exports = function (it, S) { @@ -1138,7 +1138,7 @@ module.exports = Object.keys || function keys(O) { /***/ (function(module, exports, __webpack_require__) { var shared = __webpack_require__(29)('keys'); -var uid = __webpack_require__(17); +var uid = __webpack_require__(19); module.exports = function (key) { return shared[key] || (shared[key] = uid(key)); }; @@ -1148,12 +1148,18 @@ module.exports = function (key) { /* 29 */ /***/ (function(module, exports, __webpack_require__) { +var core = __webpack_require__(15); var global = __webpack_require__(4); var SHARED = '__core-js_shared__'; var store = global[SHARED] || (global[SHARED] = {}); -module.exports = function (key) { - return store[key] || (store[key] = {}); -}; + +(module.exports = function (key, value) { + return store[key] || (store[key] = value !== undefined ? value : {}); +})('versions', []).push({ + version: core.version, + mode: __webpack_require__(14) ? 'pure' : 'global', + copyright: '© 2019 Denis Pushkarev (zloirock.ru)' +}); /***/ }), @@ -1191,8 +1197,8 @@ exports.f = __webpack_require__(11); /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(4); -var core = __webpack_require__(24); -var LIBRARY = __webpack_require__(23); +var core = __webpack_require__(15); +var LIBRARY = __webpack_require__(14); var wksExt = __webpack_require__(32); var defineProperty = __webpack_require__(8).f; module.exports = function (name) { @@ -1447,7 +1453,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _typeof2 = __webpack_require__(80); +var _typeof2 = __webpack_require__(81); var _typeof3 = _interopRequireDefault(_typeof2); @@ -1455,13 +1461,13 @@ var _color = __webpack_require__(3); var _color2 = _interopRequireDefault(_color); -var _Hue = __webpack_require__(12); +var _Hue = __webpack_require__(13); var _Hue2 = _interopRequireDefault(_Hue); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -var DEFAULT_SATURATION = 0.1; +var DEFAULT_SATURATION = 0.5; exports.default = { name: 'Slider', @@ -1522,15 +1528,14 @@ exports.default = { "use strict"; -var LIBRARY = __webpack_require__(23); +var LIBRARY = __webpack_require__(14); var $export = __webpack_require__(41); var redefine = __webpack_require__(44); var hide = __webpack_require__(7); -var has = __webpack_require__(6); var Iterators = __webpack_require__(26); -var $iterCreate = __webpack_require__(87); +var $iterCreate = __webpack_require__(88); var setToStringTag = __webpack_require__(31); -var getPrototypeOf = __webpack_require__(94); +var getPrototypeOf = __webpack_require__(95); var ITERATOR = __webpack_require__(11)('iterator'); var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` var FF_ITERATOR = '@@iterator'; @@ -1564,7 +1569,7 @@ module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCE // Set @@toStringTag to native iterators setToStringTag(IteratorPrototype, TAG, true); // fix for some old engines - if (!LIBRARY && !has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis); + if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); } } // fix Array#{values, @@iterator}.name in V8 / FF @@ -1598,9 +1603,10 @@ module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCE /***/ (function(module, exports, __webpack_require__) { var global = __webpack_require__(4); -var core = __webpack_require__(24); -var ctx = __webpack_require__(85); +var core = __webpack_require__(15); +var ctx = __webpack_require__(86); var hide = __webpack_require__(7); +var has = __webpack_require__(6); var PROTOTYPE = 'prototype'; var $export = function (type, name, source) { @@ -1618,7 +1624,7 @@ var $export = function (type, name, source) { for (key in source) { // contains in native own = !IS_FORCED && target && target[key] !== undefined; - if (own && key in exports) continue; + if (own && has(exports, key)) continue; // export native or passed out = own ? target[key] : source[key]; // prevent global pollution for namespaces @@ -1664,7 +1670,7 @@ module.exports = $export; /* 42 */ /***/ (function(module, exports, __webpack_require__) { -module.exports = !__webpack_require__(9) && !__webpack_require__(15)(function () { +module.exports = !__webpack_require__(9) && !__webpack_require__(17)(function () { return Object.defineProperty(__webpack_require__(43)('div'), 'a', { get: function () { return 7; } }).a != 7; }); @@ -1673,7 +1679,7 @@ module.exports = !__webpack_require__(9) && !__webpack_require__(15)(function () /* 43 */ /***/ (function(module, exports, __webpack_require__) { -var isObject = __webpack_require__(14); +var isObject = __webpack_require__(12); var document = __webpack_require__(4).document; // typeof document.createElement is 'object' in old IE var is = isObject(document) && isObject(document.createElement); @@ -1694,8 +1700,8 @@ module.exports = __webpack_require__(7); /***/ (function(module, exports, __webpack_require__) { // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) -var anObject = __webpack_require__(13); -var dPs = __webpack_require__(88); +var anObject = __webpack_require__(16); +var dPs = __webpack_require__(89); var enumBugKeys = __webpack_require__(30); var IE_PROTO = __webpack_require__(28)('IE_PROTO'); var Empty = function () { /* empty */ }; @@ -1710,7 +1716,7 @@ var createDict = function () { var gt = '>'; var iframeDocument; iframe.style.display = 'none'; - __webpack_require__(93).appendChild(iframe); + __webpack_require__(94).appendChild(iframe); iframe.src = 'javascript:'; // eslint-disable-line no-script-url // createDict = iframe.contentWindow.Object; // html.removeChild(iframe); @@ -1742,7 +1748,7 @@ module.exports = Object.create || function create(O, Properties) { var has = __webpack_require__(6); var toIObject = __webpack_require__(10); -var arrayIndexOf = __webpack_require__(90)(false); +var arrayIndexOf = __webpack_require__(91)(false); var IE_PROTO = __webpack_require__(28)('IE_PROTO'); module.exports = function (object, names) { @@ -1772,13 +1778,24 @@ module.exports = function (it) { /***/ }), /* 48 */ +/***/ (function(module, exports, __webpack_require__) { + +// 7.1.13 ToObject(argument) +var defined = __webpack_require__(24); +module.exports = function (it) { + return Object(defined(it)); +}; + + +/***/ }), +/* 49 */ /***/ (function(module, exports) { exports.f = Object.getOwnPropertySymbols; /***/ }), -/* 49 */ +/* 50 */ /***/ (function(module, exports, __webpack_require__) { // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) @@ -1791,7 +1808,7 @@ exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { /***/ }), -/* 50 */ +/* 51 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -1854,6 +1871,9 @@ exports.default = { !skip && e.preventDefault(); var container = this.$refs.container; + if (!container) { + return; + } var containerWidth = container.clientWidth; var containerHeight = container.clientHeight; @@ -1923,7 +1943,7 @@ exports.default = { }; /***/ }), -/* 51 */ +/* 52 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -1993,7 +2013,7 @@ exports.default = { }; /***/ }), -/* 52 */ +/* 53 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2011,15 +2031,15 @@ var _EditableInput = __webpack_require__(5); var _EditableInput2 = _interopRequireDefault(_EditableInput); -var _Saturation = __webpack_require__(18); +var _Saturation = __webpack_require__(20); var _Saturation2 = _interopRequireDefault(_Saturation); -var _Hue = __webpack_require__(12); +var _Hue = __webpack_require__(13); var _Hue2 = _interopRequireDefault(_Hue); -var _Alpha = __webpack_require__(19); +var _Alpha = __webpack_require__(21); var _Alpha2 = _interopRequireDefault(_Alpha); @@ -2142,7 +2162,7 @@ exports.default = { }; /***/ }), -/* 53 */ +/* 54 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2191,6 +2211,9 @@ exports.default = { handleChange: function handleChange(e, skip) { !skip && e.preventDefault(); var container = this.$refs.container; + if (!container) { + return; + } var containerWidth = container.clientWidth; var containerHeight = container.clientHeight; @@ -2231,7 +2254,7 @@ exports.default = { }; /***/ }), -/* 54 */ +/* 55 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2241,7 +2264,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); -var _Checkboard = __webpack_require__(20); +var _Checkboard = __webpack_require__(22); var _Checkboard2 = _interopRequireDefault(_Checkboard); @@ -2270,6 +2293,9 @@ exports.default = { handleChange: function handleChange(e, skip) { !skip && e.preventDefault(); var container = this.$refs.container; + if (!container) { + return; + } var containerWidth = container.clientWidth; var xOffset = container.getBoundingClientRect().left + window.pageXOffset; @@ -2311,7 +2337,7 @@ exports.default = { }; /***/ }), -/* 55 */ +/* 56 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2383,7 +2409,7 @@ function getCheckboard(c1, c2, size) { } /***/ }), -/* 56 */ +/* 57 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2401,19 +2427,19 @@ var _EditableInput = __webpack_require__(5); var _EditableInput2 = _interopRequireDefault(_EditableInput); -var _Saturation = __webpack_require__(18); +var _Saturation = __webpack_require__(20); var _Saturation2 = _interopRequireDefault(_Saturation); -var _Hue = __webpack_require__(12); +var _Hue = __webpack_require__(13); var _Hue2 = _interopRequireDefault(_Hue); -var _Alpha = __webpack_require__(19); +var _Alpha = __webpack_require__(21); var _Alpha2 = _interopRequireDefault(_Alpha); -var _Checkboard = __webpack_require__(20); +var _Checkboard = __webpack_require__(22); var _Checkboard2 = _interopRequireDefault(_Checkboard); @@ -2495,7 +2521,7 @@ exports.default = { }; /***/ }), -/* 57 */ +/* 58 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2513,19 +2539,19 @@ var _EditableInput = __webpack_require__(5); var _EditableInput2 = _interopRequireDefault(_EditableInput); -var _Saturation = __webpack_require__(18); +var _Saturation = __webpack_require__(20); var _Saturation2 = _interopRequireDefault(_Saturation); -var _Hue = __webpack_require__(12); +var _Hue = __webpack_require__(13); var _Hue2 = _interopRequireDefault(_Hue); -var _Alpha = __webpack_require__(19); +var _Alpha = __webpack_require__(21); var _Alpha2 = _interopRequireDefault(_Alpha); -var _Checkboard = __webpack_require__(20); +var _Checkboard = __webpack_require__(22); var _Checkboard2 = _interopRequireDefault(_Checkboard); @@ -2629,7 +2655,7 @@ exports.default = { }; /***/ }), -/* 58 */ +/* 59 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; @@ -2729,25 +2755,25 @@ exports.default = { }; /***/ }), -/* 59 */ +/* 60 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var _Compact = __webpack_require__(60); +var _Compact = __webpack_require__(61); var _Compact2 = _interopRequireDefault(_Compact); -var _Grayscale = __webpack_require__(69); +var _Grayscale = __webpack_require__(70); var _Grayscale2 = _interopRequireDefault(_Grayscale); -var _Material = __webpack_require__(73); +var _Material = __webpack_require__(74); var _Material2 = _interopRequireDefault(_Material); -var _Slider = __webpack_require__(77); +var _Slider = __webpack_require__(78); var _Slider2 = _interopRequireDefault(_Slider); @@ -2771,11 +2797,11 @@ var _Twitter = __webpack_require__(143); var _Twitter2 = _interopRequireDefault(_Twitter); -var _Alpha = __webpack_require__(19); +var _Alpha = __webpack_require__(21); var _Alpha2 = _interopRequireDefault(_Alpha); -var _Checkboard = __webpack_require__(20); +var _Checkboard = __webpack_require__(22); var _Checkboard2 = _interopRequireDefault(_Checkboard); @@ -2783,11 +2809,11 @@ var _EditableInput = __webpack_require__(5); var _EditableInput2 = _interopRequireDefault(_EditableInput); -var _Hue = __webpack_require__(12); +var _Hue = __webpack_require__(13); var _Hue2 = _interopRequireDefault(_Hue); -var _Saturation = __webpack_require__(18); +var _Saturation = __webpack_require__(20); var _Saturation2 = _interopRequireDefault(_Saturation); @@ -2798,7 +2824,7 @@ var _color2 = _interopRequireDefault(_color); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var VueColor = { - version: '2.8.0', + version: '2.8.1', Compact: _Compact2.default, Grayscale: _Grayscale2.default, Twitter: _Twitter2.default, @@ -2819,7 +2845,7 @@ var VueColor = { module.exports = VueColor; /***/ }), -/* 60 */ +/* 61 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; @@ -2827,11 +2853,11 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Compact_vue__ = __webpack_require__(35); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Compact_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Compact_vue__); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Compact_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_lib_selector_type_script_index_0_Compact_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__)); -/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_648423a3_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Compact_vue__ = __webpack_require__(68); +/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_648423a3_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_Compact_vue__ = __webpack_require__(69); var disposed = false function injectStyle (ssrContext) { if (disposed) return - __webpack_require__(61) + __webpack_require__(62) } var normalizeComponent = __webpack_require__(2) /* script */ @@ -2877,13 +2903,13 @@ if (false) {(function () { /***/ }), -/* 61 */ +/* 62 */ /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a