@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.common.js
CHANGED
|
@@ -1142,6 +1142,13 @@ module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
|
|
|
1142
1142
|
/* unused harmony reexport * */
|
|
1143
1143
|
|
|
1144
1144
|
|
|
1145
|
+
/***/ }),
|
|
1146
|
+
|
|
1147
|
+
/***/ "1857":
|
|
1148
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1149
|
+
|
|
1150
|
+
// extracted by mini-css-extract-plugin
|
|
1151
|
+
|
|
1145
1152
|
/***/ }),
|
|
1146
1153
|
|
|
1147
1154
|
/***/ "18b9":
|
|
@@ -3288,6 +3295,17 @@ var result = _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WE
|
|
|
3288
3295
|
|
|
3289
3296
|
// extracted by mini-css-extract-plugin
|
|
3290
3297
|
|
|
3298
|
+
/***/ }),
|
|
3299
|
+
|
|
3300
|
+
/***/ "3173":
|
|
3301
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3302
|
+
|
|
3303
|
+
"use strict";
|
|
3304
|
+
/* 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");
|
|
3305
|
+
/* 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__);
|
|
3306
|
+
/* unused harmony reexport * */
|
|
3307
|
+
|
|
3308
|
+
|
|
3291
3309
|
/***/ }),
|
|
3292
3310
|
|
|
3293
3311
|
/***/ "31d5":
|
|
@@ -5665,13 +5683,6 @@ module.exports = function (originalArray, length) {
|
|
|
5665
5683
|
};
|
|
5666
5684
|
|
|
5667
5685
|
|
|
5668
|
-
/***/ }),
|
|
5669
|
-
|
|
5670
|
-
/***/ "6678":
|
|
5671
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
5672
|
-
|
|
5673
|
-
// extracted by mini-css-extract-plugin
|
|
5674
|
-
|
|
5675
5686
|
/***/ }),
|
|
5676
5687
|
|
|
5677
5688
|
/***/ "669b":
|
|
@@ -6699,6 +6710,7 @@ var map = {
|
|
|
6699
6710
|
"./merge.svg": "42fb",
|
|
6700
6711
|
"./metadata.svg": "ada4",
|
|
6701
6712
|
"./minus.svg": "36bb",
|
|
6713
|
+
"./missing-file.svg": "86a9",
|
|
6702
6714
|
"./more.svg": "a27d",
|
|
6703
6715
|
"./move-all.svg": "588a",
|
|
6704
6716
|
"./move-folder.svg": "27f3",
|
|
@@ -7216,6 +7228,28 @@ module.exports = function (it) {
|
|
|
7216
7228
|
/* unused harmony reexport * */
|
|
7217
7229
|
|
|
7218
7230
|
|
|
7231
|
+
/***/ }),
|
|
7232
|
+
|
|
7233
|
+
/***/ "86a9":
|
|
7234
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
7235
|
+
|
|
7236
|
+
"use strict";
|
|
7237
|
+
__webpack_require__.r(__webpack_exports__);
|
|
7238
|
+
/* harmony import */ var _node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e017");
|
|
7239
|
+
/* 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__);
|
|
7240
|
+
/* harmony import */ var _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("21a1");
|
|
7241
|
+
/* 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__);
|
|
7242
|
+
|
|
7243
|
+
|
|
7244
|
+
var symbol = new _node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPORTED_MODULE_0___default.a({
|
|
7245
|
+
"id": "missing-file",
|
|
7246
|
+
"use": "missing-file-usage",
|
|
7247
|
+
"viewBox": "0 0 30 30",
|
|
7248
|
+
"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>"
|
|
7249
|
+
});
|
|
7250
|
+
var result = _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1___default.a.add(symbol);
|
|
7251
|
+
/* harmony default export */ __webpack_exports__["default"] = (symbol);
|
|
7252
|
+
|
|
7219
7253
|
/***/ }),
|
|
7220
7254
|
|
|
7221
7255
|
/***/ "86db":
|
|
@@ -8534,82 +8568,6 @@ var symbol = new _node_modules_svg_baker_runtime_browser_symbol_js__WEBPACK_IMPO
|
|
|
8534
8568
|
var result = _node_modules_svg_sprite_loader_runtime_browser_sprite_build_js__WEBPACK_IMPORTED_MODULE_1___default.a.add(symbol);
|
|
8535
8569
|
/* harmony default export */ __webpack_exports__["default"] = (symbol);
|
|
8536
8570
|
|
|
8537
|
-
/***/ }),
|
|
8538
|
-
|
|
8539
|
-
/***/ "a434":
|
|
8540
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
8541
|
-
|
|
8542
|
-
"use strict";
|
|
8543
|
-
|
|
8544
|
-
var $ = __webpack_require__("23e7");
|
|
8545
|
-
var toAbsoluteIndex = __webpack_require__("23cb");
|
|
8546
|
-
var toInteger = __webpack_require__("a691");
|
|
8547
|
-
var toLength = __webpack_require__("50c4");
|
|
8548
|
-
var toObject = __webpack_require__("7b0b");
|
|
8549
|
-
var arraySpeciesCreate = __webpack_require__("65f0");
|
|
8550
|
-
var createProperty = __webpack_require__("8418");
|
|
8551
|
-
var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
|
|
8552
|
-
|
|
8553
|
-
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');
|
|
8554
|
-
|
|
8555
|
-
var max = Math.max;
|
|
8556
|
-
var min = Math.min;
|
|
8557
|
-
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
|
8558
|
-
var MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';
|
|
8559
|
-
|
|
8560
|
-
// `Array.prototype.splice` method
|
|
8561
|
-
// https://tc39.es/ecma262/#sec-array.prototype.splice
|
|
8562
|
-
// with adding support of @@species
|
|
8563
|
-
$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
|
8564
|
-
splice: function splice(start, deleteCount /* , ...items */) {
|
|
8565
|
-
var O = toObject(this);
|
|
8566
|
-
var len = toLength(O.length);
|
|
8567
|
-
var actualStart = toAbsoluteIndex(start, len);
|
|
8568
|
-
var argumentsLength = arguments.length;
|
|
8569
|
-
var insertCount, actualDeleteCount, A, k, from, to;
|
|
8570
|
-
if (argumentsLength === 0) {
|
|
8571
|
-
insertCount = actualDeleteCount = 0;
|
|
8572
|
-
} else if (argumentsLength === 1) {
|
|
8573
|
-
insertCount = 0;
|
|
8574
|
-
actualDeleteCount = len - actualStart;
|
|
8575
|
-
} else {
|
|
8576
|
-
insertCount = argumentsLength - 2;
|
|
8577
|
-
actualDeleteCount = min(max(toInteger(deleteCount), 0), len - actualStart);
|
|
8578
|
-
}
|
|
8579
|
-
if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {
|
|
8580
|
-
throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);
|
|
8581
|
-
}
|
|
8582
|
-
A = arraySpeciesCreate(O, actualDeleteCount);
|
|
8583
|
-
for (k = 0; k < actualDeleteCount; k++) {
|
|
8584
|
-
from = actualStart + k;
|
|
8585
|
-
if (from in O) createProperty(A, k, O[from]);
|
|
8586
|
-
}
|
|
8587
|
-
A.length = actualDeleteCount;
|
|
8588
|
-
if (insertCount < actualDeleteCount) {
|
|
8589
|
-
for (k = actualStart; k < len - actualDeleteCount; k++) {
|
|
8590
|
-
from = k + actualDeleteCount;
|
|
8591
|
-
to = k + insertCount;
|
|
8592
|
-
if (from in O) O[to] = O[from];
|
|
8593
|
-
else delete O[to];
|
|
8594
|
-
}
|
|
8595
|
-
for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];
|
|
8596
|
-
} else if (insertCount > actualDeleteCount) {
|
|
8597
|
-
for (k = len - actualDeleteCount; k > actualStart; k--) {
|
|
8598
|
-
from = k + actualDeleteCount - 1;
|
|
8599
|
-
to = k + insertCount - 1;
|
|
8600
|
-
if (from in O) O[to] = O[from];
|
|
8601
|
-
else delete O[to];
|
|
8602
|
-
}
|
|
8603
|
-
}
|
|
8604
|
-
for (k = 0; k < insertCount; k++) {
|
|
8605
|
-
O[k + actualStart] = arguments[k + 2];
|
|
8606
|
-
}
|
|
8607
|
-
O.length = len - actualDeleteCount + insertCount;
|
|
8608
|
-
return A;
|
|
8609
|
-
}
|
|
8610
|
-
});
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
8571
|
/***/ }),
|
|
8614
8572
|
|
|
8615
8573
|
/***/ "a45e":
|
|
@@ -10501,17 +10459,6 @@ module.exports = function (namespace, method) {
|
|
|
10501
10459
|
};
|
|
10502
10460
|
|
|
10503
10461
|
|
|
10504
|
-
/***/ }),
|
|
10505
|
-
|
|
10506
|
-
/***/ "d08b":
|
|
10507
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10508
|
-
|
|
10509
|
-
"use strict";
|
|
10510
|
-
/* 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");
|
|
10511
|
-
/* 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__);
|
|
10512
|
-
/* unused harmony reexport * */
|
|
10513
|
-
|
|
10514
|
-
|
|
10515
10462
|
/***/ }),
|
|
10516
10463
|
|
|
10517
10464
|
/***/ "d19e":
|
|
@@ -21362,23 +21309,19 @@ var structured_content_component = normalizeComponent(
|
|
|
21362
21309
|
)
|
|
21363
21310
|
|
|
21364
21311
|
/* harmony default export */ var structured_content = (structured_content_component.exports);
|
|
21365
|
-
// 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=
|
|
21366
|
-
var
|
|
21367
|
-
var
|
|
21312
|
+
// 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&
|
|
21313
|
+
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}}})}))}
|
|
21314
|
+
var swatches_pickervue_type_template_id_85953b90_scoped_true_staticRenderFns = []
|
|
21368
21315
|
|
|
21369
21316
|
|
|
21370
|
-
// CONCATENATED MODULE: ./src/components/swatches-picker/swatches-picker.vue?vue&type=template&id=
|
|
21317
|
+
// CONCATENATED MODULE: ./src/components/swatches-picker/swatches-picker.vue?vue&type=template&id=85953b90&scoped=true&
|
|
21371
21318
|
|
|
21372
21319
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find-index.js
|
|
21373
21320
|
var es_array_find_index = __webpack_require__("c740");
|
|
21374
21321
|
|
|
21375
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
21376
|
-
var es_array_splice = __webpack_require__("a434");
|
|
21377
|
-
|
|
21378
21322
|
// 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&
|
|
21379
21323
|
|
|
21380
21324
|
|
|
21381
|
-
|
|
21382
21325
|
//
|
|
21383
21326
|
//
|
|
21384
21327
|
//
|
|
@@ -21408,7 +21351,7 @@ var es_array_splice = __webpack_require__("a434");
|
|
|
21408
21351
|
selected: {
|
|
21409
21352
|
type: String,
|
|
21410
21353
|
validator: function validator(v) {
|
|
21411
|
-
return ['#F9DF00', '#F3A100', '#B7EA80', '#48E4C2', '#489DFF', '#B877F0', '#FD78FD', '#C59465', '#858E9F', '#227FD3', '#5DAF00', '#A4927A', '#95989C', '#D78B21', 'null', null].includes(v);
|
|
21354
|
+
return ['#F9DF00', '#F3A100', '#B7EA80', '#48E4C2', '#489DFF', '#B877F0', '#FD78FD', '#C59465', '#858E9F', '#227FD3', '#5DAF00', '#A4927A', '#95989C', '#D78B21', '#EE5452', 'null', null].includes(v);
|
|
21412
21355
|
}
|
|
21413
21356
|
}
|
|
21414
21357
|
},
|
|
@@ -21435,6 +21378,9 @@ var es_array_splice = __webpack_require__("a434");
|
|
|
21435
21378
|
}, {
|
|
21436
21379
|
title: 'Pink',
|
|
21437
21380
|
color: '#FD78FD'
|
|
21381
|
+
}, {
|
|
21382
|
+
title: 'Red',
|
|
21383
|
+
color: '#EE5452'
|
|
21438
21384
|
}, {
|
|
21439
21385
|
title: 'Brown',
|
|
21440
21386
|
color: '#C59465'
|
|
@@ -21457,46 +21403,48 @@ var es_array_splice = __webpack_require__("a434");
|
|
|
21457
21403
|
title: 'Gold',
|
|
21458
21404
|
color: '#D78B21'
|
|
21459
21405
|
}],
|
|
21460
|
-
selectedColor:
|
|
21461
|
-
|
|
21462
|
-
color: this.selected
|
|
21463
|
-
}]
|
|
21406
|
+
selectedColor: this.selected,
|
|
21407
|
+
selectedTitle: ''
|
|
21464
21408
|
};
|
|
21465
21409
|
},
|
|
21466
21410
|
computed: {
|
|
21467
21411
|
sizeClass: function sizeClass() {
|
|
21468
21412
|
if (this.size && this.size !== '') return "ecs-swatches-".concat(this.size);
|
|
21469
21413
|
return this.size;
|
|
21470
|
-
},
|
|
21471
|
-
selectedTitleIndex: function selectedTitleIndex() {
|
|
21472
|
-
var _this = this;
|
|
21473
|
-
|
|
21474
|
-
return this.swatches.findIndex(function (x) {
|
|
21475
|
-
return x.color === _this.selected;
|
|
21476
|
-
});
|
|
21477
21414
|
}
|
|
21478
21415
|
},
|
|
21479
21416
|
methods: {
|
|
21480
|
-
|
|
21481
|
-
|
|
21482
|
-
this
|
|
21417
|
+
emitSelected: function emitSelected() {
|
|
21418
|
+
/** Returns the selected color value and title as Object. */
|
|
21419
|
+
this.$emit('input', {
|
|
21420
|
+
color: this.selectedColor,
|
|
21421
|
+
title: this.selectedTitle
|
|
21422
|
+
});
|
|
21483
21423
|
}
|
|
21484
21424
|
},
|
|
21485
21425
|
mounted: function mounted() {
|
|
21486
|
-
|
|
21487
|
-
|
|
21426
|
+
var _this = this;
|
|
21427
|
+
|
|
21428
|
+
if (this.selected) this.selectedTitle = this.swatches[this.swatches.findIndex(function (x) {
|
|
21429
|
+
return x.color === _this.selectedColor;
|
|
21430
|
+
})].title;
|
|
21431
|
+
this.emitSelected();
|
|
21488
21432
|
},
|
|
21489
21433
|
watch: {
|
|
21490
21434
|
selectedColor: function selectedColor() {
|
|
21491
|
-
|
|
21492
|
-
|
|
21435
|
+
var _this2 = this;
|
|
21436
|
+
|
|
21437
|
+
this.selectedTitle = this.swatches[this.swatches.findIndex(function (x) {
|
|
21438
|
+
return x.color === _this2.selectedColor;
|
|
21439
|
+
})].title;
|
|
21440
|
+
this.emitSelected();
|
|
21493
21441
|
}
|
|
21494
21442
|
}
|
|
21495
21443
|
});
|
|
21496
21444
|
// CONCATENATED MODULE: ./src/components/swatches-picker/swatches-picker.vue?vue&type=script&lang=js&
|
|
21497
21445
|
/* harmony default export */ var swatches_picker_swatches_pickervue_type_script_lang_js_ = (swatches_pickervue_type_script_lang_js_);
|
|
21498
|
-
// EXTERNAL MODULE: ./src/components/swatches-picker/swatches-picker.vue?vue&type=style&index=0&id=
|
|
21499
|
-
var
|
|
21446
|
+
// EXTERNAL MODULE: ./src/components/swatches-picker/swatches-picker.vue?vue&type=style&index=0&id=85953b90&lang=scss&scoped=true&
|
|
21447
|
+
var swatches_pickervue_type_style_index_0_id_85953b90_lang_scss_scoped_true_ = __webpack_require__("3173");
|
|
21500
21448
|
|
|
21501
21449
|
// CONCATENATED MODULE: ./src/components/swatches-picker/swatches-picker.vue
|
|
21502
21450
|
|
|
@@ -21509,11 +21457,11 @@ var swatches_pickervue_type_style_index_0_id_525f2b17_lang_scss_scoped_true_ = _
|
|
|
21509
21457
|
|
|
21510
21458
|
var swatches_picker_component = normalizeComponent(
|
|
21511
21459
|
swatches_picker_swatches_pickervue_type_script_lang_js_,
|
|
21512
|
-
|
|
21513
|
-
|
|
21460
|
+
swatches_pickervue_type_template_id_85953b90_scoped_true_render,
|
|
21461
|
+
swatches_pickervue_type_template_id_85953b90_scoped_true_staticRenderFns,
|
|
21514
21462
|
false,
|
|
21515
21463
|
null,
|
|
21516
|
-
"
|
|
21464
|
+
"85953b90",
|
|
21517
21465
|
null
|
|
21518
21466
|
|
|
21519
21467
|
)
|