@everchron/ec-shards 0.8.10 → 0.8.13
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/dist/ec-shards.common.js +74 -126
- package/dist/ec-shards.common.js.map +1 -1
- package/dist/ec-shards.css +1 -1
- package/dist/ec-shards.umd.js +74 -126
- package/dist/ec-shards.umd.js.map +1 -1
- package/dist/ec-shards.umd.min.js +2 -2
- package/dist/ec-shards.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/icons/missing-file.svg +5 -0
- package/src/components/swatches-picker/swatches-picker.vue +19 -37
- package/src/stories/swatches-picker/swatches-picker.stories.js +4 -4
package/dist/ec-shards.umd.js
CHANGED
|
@@ -1151,6 +1151,13 @@ module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
|
|
|
1151
1151
|
/* unused harmony reexport * */
|
|
1152
1152
|
|
|
1153
1153
|
|
|
1154
|
+
/***/ }),
|
|
1155
|
+
|
|
1156
|
+
/***/ "1857":
|
|
1157
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1158
|
+
|
|
1159
|
+
// extracted by mini-css-extract-plugin
|
|
1160
|
+
|
|
1154
1161
|
/***/ }),
|
|
1155
1162
|
|
|
1156
1163
|
/***/ "18b9":
|
|
@@ -3297,6 +3304,17 @@ var result = _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WE
|
|
|
3297
3304
|
|
|
3298
3305
|
// extracted by mini-css-extract-plugin
|
|
3299
3306
|
|
|
3307
|
+
/***/ }),
|
|
3308
|
+
|
|
3309
|
+
/***/ "3173":
|
|
3310
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3311
|
+
|
|
3312
|
+
"use strict";
|
|
3313
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_swatches_picker_vue_vue_type_style_index_0_id_85953b90_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1857");
|
|
3314
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_swatches_picker_vue_vue_type_style_index_0_id_85953b90_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_swatches_picker_vue_vue_type_style_index_0_id_85953b90_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
3315
|
+
/* unused harmony reexport * */
|
|
3316
|
+
|
|
3317
|
+
|
|
3300
3318
|
/***/ }),
|
|
3301
3319
|
|
|
3302
3320
|
/***/ "31d5":
|
|
@@ -5674,13 +5692,6 @@ module.exports = function (originalArray, length) {
|
|
|
5674
5692
|
};
|
|
5675
5693
|
|
|
5676
5694
|
|
|
5677
|
-
/***/ }),
|
|
5678
|
-
|
|
5679
|
-
/***/ "6678":
|
|
5680
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
5681
|
-
|
|
5682
|
-
// extracted by mini-css-extract-plugin
|
|
5683
|
-
|
|
5684
5695
|
/***/ }),
|
|
5685
5696
|
|
|
5686
5697
|
/***/ "669b":
|
|
@@ -6708,6 +6719,7 @@ var map = {
|
|
|
6708
6719
|
"./merge.svg": "42fb",
|
|
6709
6720
|
"./metadata.svg": "ada4",
|
|
6710
6721
|
"./minus.svg": "36bb",
|
|
6722
|
+
"./missing-file.svg": "86a9",
|
|
6711
6723
|
"./more.svg": "a27d",
|
|
6712
6724
|
"./move-all.svg": "588a",
|
|
6713
6725
|
"./move-folder.svg": "27f3",
|
|
@@ -7225,6 +7237,28 @@ module.exports = function (it) {
|
|
|
7225
7237
|
/* unused harmony reexport * */
|
|
7226
7238
|
|
|
7227
7239
|
|
|
7240
|
+
/***/ }),
|
|
7241
|
+
|
|
7242
|
+
/***/ "86a9":
|
|
7243
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
7244
|
+
|
|
7245
|
+
"use strict";
|
|
7246
|
+
__webpack_require__.r(__webpack_exports__);
|
|
7247
|
+
/* harmony import */ var _node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e017");
|
|
7248
|
+
/* harmony import */ var _node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
7249
|
+
/* harmony import */ var _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("21a1");
|
|
7250
|
+
/* harmony import */ var _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
7251
|
+
|
|
7252
|
+
|
|
7253
|
+
var symbol = new _node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0___default.a({
|
|
7254
|
+
"id": "missing-file",
|
|
7255
|
+
"use": "missing-file-usage",
|
|
7256
|
+
"viewBox": "0 0 30 30",
|
|
7257
|
+
"content": "<symbol viewBox=\"0 0 30 30\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" id=\"missing-file\">\n<path vector-effect=\"non-scaling-stroke\" d=\"M14.9878 16C15.5767 16.0021 16.1532 15.8311 16.6455 15.5081C17.1379 15.1851 17.5243 14.7244 17.7566 14.1835C17.9889 13.6426 18.0569 13.0453 17.9521 12.4661C17.8473 11.8868 17.5743 11.3512 17.1671 10.9258C16.76 10.5005 16.2366 10.2044 15.6623 10.0742C15.088 9.94409 14.488 9.98572 13.9372 10.1939C13.3864 10.4022 12.909 10.7678 12.5645 11.2452C12.2201 11.7227 12.0237 12.2909 12 12.8791\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n<path vector-effect=\"non-scaling-stroke\" d=\"M21.9485 8.9485L18.8848 5.88483C18.4786 5.47848 17.9276 5.25012 17.353 5.25H9.58333C9.00869 5.25 8.45759 5.47827 8.05127 5.8846C7.64494 6.29093 7.41666 6.84203 7.41666 7.41667V22.5833C7.41666 23.158 7.64494 23.7091 8.05127 24.1154C8.45759 24.5217 9.00869 24.75 9.58333 24.75H20.4167C20.9913 24.75 21.5424 24.5217 21.9487 24.1154C22.3551 23.7091 22.5833 23.158 22.5833 22.5833V10.4803C22.5832 9.90574 22.3549 9.35473 21.9485 8.9485V8.9485Z\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n<circle vector-effect=\"non-scaling-stroke\" cx=\"15\" cy=\"19.5\" r=\"0.5\" stroke=\"currentColor\" />\n</symbol>"
|
|
7258
|
+
});
|
|
7259
|
+
var result = _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1___default.a.add(symbol);
|
|
7260
|
+
/* harmony default export */ __webpack_exports__["default"] = (symbol);
|
|
7261
|
+
|
|
7228
7262
|
/***/ }),
|
|
7229
7263
|
|
|
7230
7264
|
/***/ "86db":
|
|
@@ -8543,82 +8577,6 @@ var symbol = new _node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPO
|
|
|
8543
8577
|
var result = _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1___default.a.add(symbol);
|
|
8544
8578
|
/* harmony default export */ __webpack_exports__["default"] = (symbol);
|
|
8545
8579
|
|
|
8546
|
-
/***/ }),
|
|
8547
|
-
|
|
8548
|
-
/***/ "a434":
|
|
8549
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
8550
|
-
|
|
8551
|
-
"use strict";
|
|
8552
|
-
|
|
8553
|
-
var $ = __webpack_require__("23e7");
|
|
8554
|
-
var toAbsoluteIndex = __webpack_require__("23cb");
|
|
8555
|
-
var toInteger = __webpack_require__("a691");
|
|
8556
|
-
var toLength = __webpack_require__("50c4");
|
|
8557
|
-
var toObject = __webpack_require__("7b0b");
|
|
8558
|
-
var arraySpeciesCreate = __webpack_require__("65f0");
|
|
8559
|
-
var createProperty = __webpack_require__("8418");
|
|
8560
|
-
var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
|
|
8561
|
-
|
|
8562
|
-
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');
|
|
8563
|
-
|
|
8564
|
-
var max = Math.max;
|
|
8565
|
-
var min = Math.min;
|
|
8566
|
-
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
|
8567
|
-
var MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';
|
|
8568
|
-
|
|
8569
|
-
// `Array.prototype.splice` method
|
|
8570
|
-
// https://tc39.es/ecma262/#sec-array.prototype.splice
|
|
8571
|
-
// with adding support of @@species
|
|
8572
|
-
$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
|
8573
|
-
splice: function splice(start, deleteCount /* , ...items */) {
|
|
8574
|
-
var O = toObject(this);
|
|
8575
|
-
var len = toLength(O.length);
|
|
8576
|
-
var actualStart = toAbsoluteIndex(start, len);
|
|
8577
|
-
var argumentsLength = arguments.length;
|
|
8578
|
-
var insertCount, actualDeleteCount, A, k, from, to;
|
|
8579
|
-
if (argumentsLength === 0) {
|
|
8580
|
-
insertCount = actualDeleteCount = 0;
|
|
8581
|
-
} else if (argumentsLength === 1) {
|
|
8582
|
-
insertCount = 0;
|
|
8583
|
-
actualDeleteCount = len - actualStart;
|
|
8584
|
-
} else {
|
|
8585
|
-
insertCount = argumentsLength - 2;
|
|
8586
|
-
actualDeleteCount = min(max(toInteger(deleteCount), 0), len - actualStart);
|
|
8587
|
-
}
|
|
8588
|
-
if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {
|
|
8589
|
-
throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);
|
|
8590
|
-
}
|
|
8591
|
-
A = arraySpeciesCreate(O, actualDeleteCount);
|
|
8592
|
-
for (k = 0; k < actualDeleteCount; k++) {
|
|
8593
|
-
from = actualStart + k;
|
|
8594
|
-
if (from in O) createProperty(A, k, O[from]);
|
|
8595
|
-
}
|
|
8596
|
-
A.length = actualDeleteCount;
|
|
8597
|
-
if (insertCount < actualDeleteCount) {
|
|
8598
|
-
for (k = actualStart; k < len - actualDeleteCount; k++) {
|
|
8599
|
-
from = k + actualDeleteCount;
|
|
8600
|
-
to = k + insertCount;
|
|
8601
|
-
if (from in O) O[to] = O[from];
|
|
8602
|
-
else delete O[to];
|
|
8603
|
-
}
|
|
8604
|
-
for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];
|
|
8605
|
-
} else if (insertCount > actualDeleteCount) {
|
|
8606
|
-
for (k = len - actualDeleteCount; k > actualStart; k--) {
|
|
8607
|
-
from = k + actualDeleteCount - 1;
|
|
8608
|
-
to = k + insertCount - 1;
|
|
8609
|
-
if (from in O) O[to] = O[from];
|
|
8610
|
-
else delete O[to];
|
|
8611
|
-
}
|
|
8612
|
-
}
|
|
8613
|
-
for (k = 0; k < insertCount; k++) {
|
|
8614
|
-
O[k + actualStart] = arguments[k + 2];
|
|
8615
|
-
}
|
|
8616
|
-
O.length = len - actualDeleteCount + insertCount;
|
|
8617
|
-
return A;
|
|
8618
|
-
}
|
|
8619
|
-
});
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
8580
|
/***/ }),
|
|
8623
8581
|
|
|
8624
8582
|
/***/ "a45e":
|
|
@@ -10510,17 +10468,6 @@ module.exports = function (namespace, method) {
|
|
|
10510
10468
|
};
|
|
10511
10469
|
|
|
10512
10470
|
|
|
10513
|
-
/***/ }),
|
|
10514
|
-
|
|
10515
|
-
/***/ "d08b":
|
|
10516
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10517
|
-
|
|
10518
|
-
"use strict";
|
|
10519
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_swatches_picker_vue_vue_type_style_index_0_id_525f2b17_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6678");
|
|
10520
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_swatches_picker_vue_vue_type_style_index_0_id_525f2b17_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_swatches_picker_vue_vue_type_style_index_0_id_525f2b17_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
10521
|
-
/* unused harmony reexport * */
|
|
10522
|
-
|
|
10523
|
-
|
|
10524
10471
|
/***/ }),
|
|
10525
10472
|
|
|
10526
10473
|
/***/ "d19e":
|
|
@@ -21371,23 +21318,19 @@ var structured_content_component = normalizeComponent(
|
|
|
21371
21318
|
)
|
|
21372
21319
|
|
|
21373
21320
|
/* harmony default export */ var structured_content = (structured_content_component.exports);
|
|
21374
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"48523f37-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/swatches-picker/swatches-picker.vue?vue&type=template&id=
|
|
21375
|
-
var
|
|
21376
|
-
var
|
|
21321
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"48523f37-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/swatches-picker/swatches-picker.vue?vue&type=template&id=85953b90&scoped=true&
|
|
21322
|
+
var swatches_pickervue_type_template_id_85953b90_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"ecs-swatches",class:_vm.sizeClass},_vm._l((_vm.swatches),function(item){return _c('div',{key:item.color,staticClass:"ecs-swatches-color",class:_vm.selectedColor == item.color ? 'active' : '',style:({backgroundColor: item.color, color: item.color}),attrs:{"title":item.title},on:{"click":function($event){_vm.selectedColor = item.color}}})}))}
|
|
21323
|
+
var swatches_pickervue_type_template_id_85953b90_scoped_true_staticRenderFns = []
|
|
21377
21324
|
|
|
21378
21325
|
|
|
21379
|
-
// CONCATENATED MODULE: ./src/components/swatches-picker/swatches-picker.vue?vue&type=template&id=
|
|
21326
|
+
// CONCATENATED MODULE: ./src/components/swatches-picker/swatches-picker.vue?vue&type=template&id=85953b90&scoped=true&
|
|
21380
21327
|
|
|
21381
21328
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find-index.js
|
|
21382
21329
|
var es_array_find_index = __webpack_require__("c740");
|
|
21383
21330
|
|
|
21384
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
21385
|
-
var es_array_splice = __webpack_require__("a434");
|
|
21386
|
-
|
|
21387
21331
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/swatches-picker/swatches-picker.vue?vue&type=script&lang=js&
|
|
21388
21332
|
|
|
21389
21333
|
|
|
21390
|
-
|
|
21391
21334
|
//
|
|
21392
21335
|
//
|
|
21393
21336
|
//
|
|
@@ -21417,7 +21360,7 @@ var es_array_splice = __webpack_require__("a434");
|
|
|
21417
21360
|
selected: {
|
|
21418
21361
|
type: String,
|
|
21419
21362
|
validator: function validator(v) {
|
|
21420
|
-
return ['#F9DF00', '#F3A100', '#B7EA80', '#48E4C2', '#489DFF', '#B877F0', '#FD78FD', '#C59465', '#858E9F', '#227FD3', '#5DAF00', '#A4927A', '#95989C', '#D78B21', 'null', null].includes(v);
|
|
21363
|
+
return ['#F9DF00', '#F3A100', '#B7EA80', '#48E4C2', '#489DFF', '#B877F0', '#FD78FD', '#C59465', '#858E9F', '#227FD3', '#5DAF00', '#A4927A', '#95989C', '#D78B21', '#EE5452', 'null', null].includes(v);
|
|
21421
21364
|
}
|
|
21422
21365
|
}
|
|
21423
21366
|
},
|
|
@@ -21444,6 +21387,9 @@ var es_array_splice = __webpack_require__("a434");
|
|
|
21444
21387
|
}, {
|
|
21445
21388
|
title: 'Pink',
|
|
21446
21389
|
color: '#FD78FD'
|
|
21390
|
+
}, {
|
|
21391
|
+
title: 'Red',
|
|
21392
|
+
color: '#EE5452'
|
|
21447
21393
|
}, {
|
|
21448
21394
|
title: 'Brown',
|
|
21449
21395
|
color: '#C59465'
|
|
@@ -21466,46 +21412,48 @@ var es_array_splice = __webpack_require__("a434");
|
|
|
21466
21412
|
title: 'Gold',
|
|
21467
21413
|
color: '#D78B21'
|
|
21468
21414
|
}],
|
|
21469
|
-
selectedColor:
|
|
21470
|
-
|
|
21471
|
-
color: this.selected
|
|
21472
|
-
}]
|
|
21415
|
+
selectedColor: this.selected,
|
|
21416
|
+
selectedTitle: ''
|
|
21473
21417
|
};
|
|
21474
21418
|
},
|
|
21475
21419
|
computed: {
|
|
21476
21420
|
sizeClass: function sizeClass() {
|
|
21477
21421
|
if (this.size && this.size !== '') return "ecs-swatches-".concat(this.size);
|
|
21478
21422
|
return this.size;
|
|
21479
|
-
},
|
|
21480
|
-
selectedTitleIndex: function selectedTitleIndex() {
|
|
21481
|
-
var _this = this;
|
|
21482
|
-
|
|
21483
|
-
return this.swatches.findIndex(function (x) {
|
|
21484
|
-
return x.color === _this.selected;
|
|
21485
|
-
});
|
|
21486
21423
|
}
|
|
21487
21424
|
},
|
|
21488
21425
|
methods: {
|
|
21489
|
-
|
|
21490
|
-
|
|
21491
|
-
this
|
|
21426
|
+
emitSelected: function emitSelected() {
|
|
21427
|
+
/** Returns the selected color value and title as Object. */
|
|
21428
|
+
this.$emit('input', {
|
|
21429
|
+
color: this.selectedColor,
|
|
21430
|
+
title: this.selectedTitle
|
|
21431
|
+
});
|
|
21492
21432
|
}
|
|
21493
21433
|
},
|
|
21494
21434
|
mounted: function mounted() {
|
|
21495
|
-
|
|
21496
|
-
|
|
21435
|
+
var _this = this;
|
|
21436
|
+
|
|
21437
|
+
if (this.selected) this.selectedTitle = this.swatches[this.swatches.findIndex(function (x) {
|
|
21438
|
+
return x.color === _this.selectedColor;
|
|
21439
|
+
})].title;
|
|
21440
|
+
this.emitSelected();
|
|
21497
21441
|
},
|
|
21498
21442
|
watch: {
|
|
21499
21443
|
selectedColor: function selectedColor() {
|
|
21500
|
-
|
|
21501
|
-
|
|
21444
|
+
var _this2 = this;
|
|
21445
|
+
|
|
21446
|
+
this.selectedTitle = this.swatches[this.swatches.findIndex(function (x) {
|
|
21447
|
+
return x.color === _this2.selectedColor;
|
|
21448
|
+
})].title;
|
|
21449
|
+
this.emitSelected();
|
|
21502
21450
|
}
|
|
21503
21451
|
}
|
|
21504
21452
|
});
|
|
21505
21453
|
// CONCATENATED MODULE: ./src/components/swatches-picker/swatches-picker.vue?vue&type=script&lang=js&
|
|
21506
21454
|
/* harmony default export */ var swatches_picker_swatches_pickervue_type_script_lang_js_ = (swatches_pickervue_type_script_lang_js_);
|
|
21507
|
-
// EXTERNAL MODULE: ./src/components/swatches-picker/swatches-picker.vue?vue&type=style&index=0&id=
|
|
21508
|
-
var
|
|
21455
|
+
// EXTERNAL MODULE: ./src/components/swatches-picker/swatches-picker.vue?vue&type=style&index=0&id=85953b90&lang=scss&scoped=true&
|
|
21456
|
+
var swatches_pickervue_type_style_index_0_id_85953b90_lang_scss_scoped_true_ = __webpack_require__("3173");
|
|
21509
21457
|
|
|
21510
21458
|
// CONCATENATED MODULE: ./src/components/swatches-picker/swatches-picker.vue
|
|
21511
21459
|
|
|
@@ -21518,11 +21466,11 @@ var swatches_pickervue_type_style_index_0_id_525f2b17_lang_scss_scoped_true_ = _
|
|
|
21518
21466
|
|
|
21519
21467
|
var swatches_picker_component = normalizeComponent(
|
|
21520
21468
|
swatches_picker_swatches_pickervue_type_script_lang_js_,
|
|
21521
|
-
|
|
21522
|
-
|
|
21469
|
+
swatches_pickervue_type_template_id_85953b90_scoped_true_render,
|
|
21470
|
+
swatches_pickervue_type_template_id_85953b90_scoped_true_staticRenderFns,
|
|
21523
21471
|
false,
|
|
21524
21472
|
null,
|
|
21525
|
-
"
|
|
21473
|
+
"85953b90",
|
|
21526
21474
|
null
|
|
21527
21475
|
|
|
21528
21476
|
)
|