evui 3.3.13 → 3.3.14

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.
@@ -7940,7 +7940,7 @@ $({ target: 'Number', stat: true }, {
7940
7940
  /***/ "9224":
7941
7941
  /***/ (function(module) {
7942
7942
 
7943
- module.exports = JSON.parse("{\"a\":\"3.3.13\"}");
7943
+ module.exports = JSON.parse("{\"a\":\"3.3.14\"}");
7944
7944
 
7945
7945
  /***/ }),
7946
7946
 
@@ -8834,17 +8834,6 @@ try {
8834
8834
  }
8835
8835
 
8836
8836
 
8837
- /***/ }),
8838
-
8839
- /***/ "96f9":
8840
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8841
-
8842
- "use strict";
8843
- /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Chart_vue_vue_type_style_index_0_id_53face60_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("f648");
8844
- /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Chart_vue_vue_type_style_index_0_id_53face60_lang_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Chart_vue_vue_type_style_index_0_id_53face60_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
8845
- /* unused harmony reexport * */
8846
-
8847
-
8848
8837
  /***/ }),
8849
8838
 
8850
8839
  /***/ "971c":
@@ -9861,6 +9850,21 @@ if (DESCRIPTORS && !(NAME in FunctionPrototype)) {
9861
9850
  }
9862
9851
 
9863
9852
 
9853
+ /***/ }),
9854
+
9855
+ /***/ "b46e":
9856
+ /***/ (function(module, exports, __webpack_require__) {
9857
+
9858
+ // style-loader: Adds some css to the DOM by adding a <style> tag
9859
+
9860
+ // load the styles
9861
+ var content = __webpack_require__("fdb5");
9862
+ if(typeof content === 'string') content = [[module.i, content, '']];
9863
+ if(content.locals) module.exports = content.locals;
9864
+ // add the styles to the DOM
9865
+ var add = __webpack_require__("499e").default
9866
+ var update = add("4ca9bcbe", content, true, {"sourceMap":false,"shadowMode":false});
9867
+
9864
9868
  /***/ }),
9865
9869
 
9866
9870
  /***/ "b575":
@@ -10219,20 +10223,6 @@ module.exports = {
10219
10223
  };
10220
10224
 
10221
10225
 
10222
- /***/ }),
10223
-
10224
- /***/ "b7b9":
10225
- /***/ (function(module, exports, __webpack_require__) {
10226
-
10227
- // Imports
10228
- var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
10229
- exports = ___CSS_LOADER_API_IMPORT___(false);
10230
- // Module
10231
- exports.push([module.i, ".ev-chart-wrapper{display:block}.ev-chart-container,.ev-chart-wrapper{position:relative;width:100%;height:100%}.ev-chart-container{overflow:hidden}.ev-chart-title{top:0;left:0;width:100%;padding-left:10px;word-wrap:normal;white-space:nowrap;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ev-chart-legend,.ev-chart-title{position:absolute;overflow:hidden}.ev-chart-legend-box{overflow-x:hidden;overflow-y:auto}.ev-chart-legend-container{position:relative;overflow:hidden}.ev-chart-legend-color,.ev-chart-legend-color--point-line{position:absolute;top:50%;left:0;transform:translateY(-50%);width:18px;height:4px}.ev-chart-legend-color--point-line:after{display:inline-block;position:absolute;top:-2px;left:5px;width:8px;height:8px;content:\" \";border-radius:50%;background-color:inherit}.ev-chart-legend-name{position:absolute;top:50%;left:0;width:100%;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:12px;margin-left:24px;padding-right:16px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:400;transform:translateY(-50%)}.ev-chart-legend-name:hover{font-weight:700}.ev-chart-legend-value{float:right;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ev-chart-resize-bar{position:absolute;background:transparent;opacity:.5;z-index:10}.ev-chart-resize-bar:hover,.ev-chart-resize-ghost{background-color:#e2e2e2}.ev-chart-resize-ghost{position:absolute;width:4px;height:100%;cursor:col-resize;opacity:.5}.ev-chart-resize-ghost.horizontal{width:100%;height:4px;cursor:row-resize}.ev-chart-tooltip{position:absolute;z-index:850;top:0;left:0;overflow-y:hidden;overflow-x:hidden;border-radius:8px}.ev-chart-tooltip .ev-chart-tooltip-header{padding:8px 16px 0 16px;font-family:Roboto,serif;overflow:hidden;font-size:16px}.ev-chart-tooltip .ev-chart-tooltip-header--wrap{word-wrap:break-word}.ev-chart-tooltip .ev-chart-tooltip-header--ellipsis{text-overflow:ellipsis;white-space:nowrap}.ev-chart-tooltip .ev-chart-tooltip-body{overflow-x:hidden;overflow-y:hidden}", ""]);
10232
- // Exports
10233
- module.exports = exports;
10234
-
10235
-
10236
10226
  /***/ }),
10237
10227
 
10238
10228
  /***/ "bac3":
@@ -10335,6 +10325,17 @@ module.exports = false;
10335
10325
  /* unused harmony reexport * */
10336
10326
 
10337
10327
 
10328
+ /***/ }),
10329
+
10330
+ /***/ "c5ab":
10331
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10332
+
10333
+ "use strict";
10334
+ /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Chart_vue_vue_type_style_index_0_id_334a904a_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b46e");
10335
+ /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Chart_vue_vue_type_style_index_0_id_334a904a_lang_scss__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_v16_dist_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_v16_dist_index_js_ref_0_1_Chart_vue_vue_type_style_index_0_id_334a904a_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
10336
+ /* unused harmony reexport * */
10337
+
10338
+
10338
10339
  /***/ }),
10339
10340
 
10340
10341
  /***/ "c63c":
@@ -12485,21 +12486,6 @@ module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
12485
12486
  };
12486
12487
 
12487
12488
 
12488
- /***/ }),
12489
-
12490
- /***/ "f648":
12491
- /***/ (function(module, exports, __webpack_require__) {
12492
-
12493
- // style-loader: Adds some css to the DOM by adding a <style> tag
12494
-
12495
- // load the styles
12496
- var content = __webpack_require__("b7b9");
12497
- if(typeof content === 'string') content = [[module.i, content, '']];
12498
- if(content.locals) module.exports = content.locals;
12499
- // add the styles to the DOM
12500
- var add = __webpack_require__("499e").default
12501
- var update = add("410590da", content, true, {"sourceMap":false,"shadowMode":false});
12502
-
12503
12489
  /***/ }),
12504
12490
 
12505
12491
  /***/ "f772":
@@ -22423,13 +22409,13 @@ var notification_componentObj = Object(external_commonjs_vue_commonjs2_vue_root_
22423
22409
  var notification_rootId = 'ev-notification-modal';
22424
22410
  var notification_root = document.createElement('div');
22425
22411
  notification_root.id = notification_rootId;
22426
- var positionList = ['top-left', 'top-right', 'bottom-left', 'bottom-right'];
22412
+ var notification_positionList = ['top-left', 'top-right', 'bottom-left', 'bottom-right'];
22427
22413
 
22428
22414
  var notification_notification = function notification() {
22429
22415
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
22430
22416
  var position = options.position || 'top-right';
22431
22417
 
22432
- if (!positionList.includes(position)) {
22418
+ if (!notification_positionList.includes(position)) {
22433
22419
  console.warn('[EVUI][Notification] The position value is incorrectly entered.');
22434
22420
  return;
22435
22421
  }
@@ -30464,9 +30450,9 @@ Grid.install = function (app) {
30464
30450
  };
30465
30451
 
30466
30452
  /* harmony default export */ var grid = (Grid);
30467
- // 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/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/components/chart/Chart.vue?vue&type=template&id=53face60
30453
+ // 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/vue-loader-v16/dist/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/components/chart/Chart.vue?vue&type=template&id=334a904a
30468
30454
 
30469
- function Chartvue_type_template_id_53face60_render(_ctx, _cache, $props, $setup, $data, $options) {
30455
+ function Chartvue_type_template_id_334a904a_render(_ctx, _cache, $props, $setup, $data, $options) {
30470
30456
  var _directive_resize = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveDirective"])("resize");
30471
30457
 
30472
30458
  return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])((Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div", {
@@ -30475,7 +30461,7 @@ function Chartvue_type_template_id_53face60_render(_ctx, _cache, $props, $setup,
30475
30461
  class: "ev-chart"
30476
30462
  }, null, 4)), [[_directive_resize, $setup.onResize]]);
30477
30463
  }
30478
- // CONCATENATED MODULE: ./src/components/chart/Chart.vue?vue&type=template&id=53face60
30464
+ // CONCATENATED MODULE: ./src/components/chart/Chart.vue?vue&type=template&id=334a904a
30479
30465
 
30480
30466
  // CONCATENATED MODULE: ./node_modules/lodash-es/_arrayEach.js
30481
30467
  /**
@@ -31747,6 +31733,12 @@ function utils_throttle_throttle(func, wait, options) {
31747
31733
 
31748
31734
  /* harmony default export */ var utils_throttle = (utils_throttle_throttle);
31749
31735
  /* eslint-enable */
31736
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.entries.js
31737
+ var es_object_entries = __webpack_require__("4fad");
31738
+
31739
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.values.js
31740
+ var es_object_values = __webpack_require__("07ac");
31741
+
31750
31742
  // CONCATENATED MODULE: ./node_modules/lodash-es/reverse.js
31751
31743
  /** Used for built-in method references. */
31752
31744
  var reverse_arrayProto = Array.prototype;
@@ -32119,6 +32111,15 @@ function reverse(array) {
32119
32111
 
32120
32112
 
32121
32113
 
32114
+
32115
+
32116
+
32117
+
32118
+
32119
+
32120
+
32121
+
32122
+
32122
32123
  var modules = {
32123
32124
  /**
32124
32125
  * Take chart data and labels to create normalized data and min/max info
@@ -32855,6 +32856,177 @@ var modules = {
32855
32856
  };
32856
32857
  },
32857
32858
 
32859
+ /**
32860
+ * Find seriesId by position x and y
32861
+ * @param {array} offset position x and y
32862
+ *
32863
+ * @returns {object} clicked series id
32864
+ */
32865
+ getSeriesIdByPosition: function getSeriesIdByPosition(offset) {
32866
+ var _this6 = this;
32867
+
32868
+ var _offset = _slicedToArray(offset, 2),
32869
+ clickedX = _offset[0],
32870
+ clickedY = _offset[1];
32871
+
32872
+ var chartRect = this.chartRect;
32873
+ var labelOffset = this.labelOffset;
32874
+ var aPos = {
32875
+ x1: chartRect.x1 + labelOffset.left,
32876
+ x2: chartRect.x2 - labelOffset.right,
32877
+ y1: chartRect.y1 + labelOffset.top,
32878
+ y2: chartRect.y2 - labelOffset.bottom
32879
+ };
32880
+ var valueAxes = this.axesY[0];
32881
+ var labelAxes = this.axesX[0];
32882
+ var valueStartPoint = aPos[valueAxes.units.rectStart];
32883
+ var valueEndPoint = aPos[valueAxes.units.rectEnd];
32884
+ var labelStartPoint = aPos[labelAxes.units.rectStart];
32885
+ var labelEndPoint = aPos[labelAxes.units.rectEnd];
32886
+ var result = {
32887
+ sId: null
32888
+ };
32889
+
32890
+ if (clickedY > valueEndPoint && clickedY < valueStartPoint && clickedX < labelEndPoint && clickedX > labelStartPoint) {
32891
+ var hitSeries;
32892
+ var positionList;
32893
+ var hitItem = this.findHitItem(offset);
32894
+ var hitSeriesList = Object.keys(hitItem.items);
32895
+
32896
+ switch (this.options.type) {
32897
+ case 'line':
32898
+ {
32899
+ var orderedSeriesList = this.seriesInfo.charts.line;
32900
+ var isStackChart = Object.values(this.seriesList).some(function (_ref4) {
32901
+ var stackIndex = _ref4.stackIndex;
32902
+ return stackIndex;
32903
+ });
32904
+
32905
+ if (hitSeriesList.length) {
32906
+ // 클릭한 위치에 data 가 존재하는 경우
32907
+ if (isStackChart) {
32908
+ var _positionList$find;
32909
+
32910
+ positionList = orderedSeriesList.filter(function (sId) {
32911
+ return hitSeriesList.includes(sId);
32912
+ }).map(function (sId) {
32913
+ var _hitItem$items$sId, _hitItem$items$sId$da;
32914
+
32915
+ return {
32916
+ sId: sId,
32917
+ position: (_hitItem$items$sId = hitItem.items[sId]) === null || _hitItem$items$sId === void 0 ? void 0 : (_hitItem$items$sId$da = _hitItem$items$sId.data) === null || _hitItem$items$sId$da === void 0 ? void 0 : _hitItem$items$sId$da.yp
32918
+ };
32919
+ });
32920
+ hitSeries = (_positionList$find = positionList.find(function (_ref5) {
32921
+ var position = _ref5.position;
32922
+ return clickedY > position;
32923
+ })) === null || _positionList$find === void 0 ? void 0 : _positionList$find.sId;
32924
+ } else {
32925
+ var _Object$entries$find;
32926
+
32927
+ hitSeries = (_Object$entries$find = Object.entries(hitItem.items).find(function (_ref6) {
32928
+ var _ref7 = _slicedToArray(_ref6, 2),
32929
+ hit = _ref7[1].hit;
32930
+
32931
+ return hit;
32932
+ })) === null || _Object$entries$find === void 0 ? void 0 : _Object$entries$find[0];
32933
+ }
32934
+ } else {
32935
+ var _positionList$0$posit;
32936
+
32937
+ // 클릭한 위치에 data 가 존재하지 않는 경우
32938
+ var visibleSeriesList = orderedSeriesList.filter(function (sId) {
32939
+ return _this6.seriesList[sId].show;
32940
+ });
32941
+ positionList = visibleSeriesList.map(function (sId) {
32942
+ var _this6$seriesList$sId;
32943
+
32944
+ return {
32945
+ sId: sId,
32946
+ position: (_this6$seriesList$sId = _this6.seriesList[sId].data) === null || _this6$seriesList$sId === void 0 ? void 0 : _this6$seriesList$sId.map(function (_ref8) {
32947
+ var xp = _ref8.xp,
32948
+ yp = _ref8.yp;
32949
+ return [xp, yp];
32950
+ })
32951
+ };
32952
+ });
32953
+ var dataIndex = (_positionList$0$posit = positionList[0].position) === null || _positionList$0$posit === void 0 ? void 0 : _positionList$0$posit.findIndex(function (_ref9) {
32954
+ var _ref10 = _slicedToArray(_ref9, 1),
32955
+ xp = _ref10[0];
32956
+
32957
+ return xp >= clickedX;
32958
+ });
32959
+ var vectorList = positionList.map(function (_ref11) {
32960
+ var sId = _ref11.sId,
32961
+ position = _ref11.position;
32962
+ return {
32963
+ sId: sId,
32964
+ vector: {
32965
+ start: position[dataIndex - 1],
32966
+ end: position[dataIndex]
32967
+ }
32968
+ };
32969
+ }); // canvas 의 클릭 위치값은 제 4 사분면의 위치이므로 clickedY, y1, y2 의 값은 음수를 취한다.
32970
+
32971
+ if (isStackChart) {
32972
+ var _vectorList$find;
32973
+
32974
+ hitSeries = (_vectorList$find = vectorList.find(function (_ref12) {
32975
+ var vector = _ref12.vector;
32976
+
32977
+ var _vector$start = _slicedToArray(vector.start, 2),
32978
+ x1 = _vector$start[0],
32979
+ y1 = _vector$start[1];
32980
+
32981
+ var _vector$end = _slicedToArray(vector.end, 2),
32982
+ x2 = _vector$end[0],
32983
+ y2 = _vector$end[1];
32984
+
32985
+ var v1 = [x2 - x1, y1 - y2];
32986
+ var v2 = [x2 - clickedX, clickedY - y2];
32987
+ var xp = v1[0] * v2[1] - v1[1] * v2[0];
32988
+ return vector.start.every(function (v) {
32989
+ return typeof v === 'number';
32990
+ }) && vector.end.every(function (v) {
32991
+ return typeof v === 'number';
32992
+ }) && xp > 0;
32993
+ })) === null || _vectorList$find === void 0 ? void 0 : _vectorList$find.sId;
32994
+ } else {
32995
+ var _vectorList$find2;
32996
+
32997
+ hitSeries = (_vectorList$find2 = vectorList.find(function (_ref13) {
32998
+ var vector = _ref13.vector;
32999
+
33000
+ var _vector$start2 = _slicedToArray(vector.start, 2),
33001
+ x1 = _vector$start2[0],
33002
+ y1 = _vector$start2[1];
33003
+
33004
+ var _vector$end2 = _slicedToArray(vector.end, 2),
33005
+ x2 = _vector$end2[0],
33006
+ y2 = _vector$end2[1];
33007
+
33008
+ var a = (y1 - y2) / (x2 - x1);
33009
+ var b = -1;
33010
+ var c = -y1 - a * x1;
33011
+ var distance = Math.abs(a * clickedX - b * clickedY + c) / Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
33012
+ return distance < 3;
33013
+ })) === null || _vectorList$find2 === void 0 ? void 0 : _vectorList$find2.sId;
33014
+ }
33015
+ }
33016
+
33017
+ break;
33018
+ }
33019
+
33020
+ default:
33021
+ break;
33022
+ }
33023
+
33024
+ result.sId = hitSeries;
33025
+ }
33026
+
33027
+ return result;
33028
+ },
33029
+
32858
33030
  /**
32859
33031
  * Find label info by position x and y
32860
33032
  * @param {array} offset position x and y
@@ -32862,9 +33034,9 @@ var modules = {
32862
33034
  * @returns {object} clicked label information
32863
33035
  */
32864
33036
  getLabelInfoByPosition: function getLabelInfoByPosition(offset) {
32865
- var _offset = _slicedToArray(offset, 2),
32866
- x = _offset[0],
32867
- y = _offset[1];
33037
+ var _offset2 = _slicedToArray(offset, 2),
33038
+ x = _offset2[0],
33039
+ y = _offset2[1];
32868
33040
 
32869
33041
  var aPos = {
32870
33042
  x1: this.chartRect.x1 + this.labelOffset.left,
@@ -32902,7 +33074,7 @@ var modules = {
32902
33074
  * @returns {object} min/max info for all of data
32903
33075
  */
32904
33076
  getStoreMinMax: function getStoreMinMax() {
32905
- var _this6 = this;
33077
+ var _this7 = this;
32906
33078
 
32907
33079
  var keys = Object.keys(this.seriesList);
32908
33080
  var isHorizontal = this.options.horizontal;
@@ -32920,7 +33092,7 @@ var modules = {
32920
33092
  if (keys.length) {
32921
33093
  return keys.reduce(function (acc, key) {
32922
33094
  var minmax = acc;
32923
- var series = _this6.seriesList[key];
33095
+ var series = _this7.seriesList[key];
32924
33096
  var smm = series.minMax;
32925
33097
  var axisX = series.xAxisIndex;
32926
33098
  var axisY = series.yAxisIndex;
@@ -34452,7 +34624,6 @@ var element_line_Line = /*#__PURE__*/function () {
34452
34624
  if (this.stackIndex) {
34453
34625
  var reversedDataList = this.data.slice().reverse();
34454
34626
  reversedDataList.forEach(function (curr, ix) {
34455
- ctx.beginPath();
34456
34627
  x = getXPos(curr.x);
34457
34628
  y = getYPos(curr.b);
34458
34629
  var prev = reversedDataList[ix - 1];
@@ -36508,6 +36679,9 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
36508
36679
 
36509
36680
 
36510
36681
 
36682
+
36683
+
36684
+
36511
36685
  var scale_Scale = /*#__PURE__*/function () {
36512
36686
  function Scale(type, opt, ctx, options) {
36513
36687
  var _this = this;
@@ -36674,11 +36848,11 @@ var scale_Scale = /*#__PURE__*/function () {
36674
36848
 
36675
36849
  }, {
36676
36850
  key: "draw",
36677
- value: function draw(chartRect, labelOffset, stepInfo, hitInfo) {
36851
+ value: function draw(chartRect, labelOffset, stepInfo, hitInfo, selectLabelInfo) {
36678
36852
  var _this$labelStyle,
36853
+ _this2 = this,
36679
36854
  _this$plotBands,
36680
- _this$plotLines,
36681
- _this2 = this;
36855
+ _this$plotLines;
36682
36856
 
36683
36857
  var ctx = this.ctx;
36684
36858
  var options = this.options;
@@ -36742,11 +36916,16 @@ var scale_Scale = /*#__PURE__*/function () {
36742
36916
  var labelText;
36743
36917
 
36744
36918
  for (var ix = 0; ix <= steps; ix++) {
36919
+ var _this$options, _this$options$selectL, _this$options2, _this$options2$select, _selectLabelInfo$data;
36920
+
36745
36921
  ctx.beginPath();
36746
36922
  ticks[ix] = axisMin + ix * stepValue;
36747
36923
  labelCenter = Math.round(startPoint + labelGap * ix);
36748
36924
  linePosition = labelCenter + aliasPixel;
36749
36925
  labelText = this.getLabelFormat(Math.min(axisMax, ticks[ix]));
36926
+ var isBlurredLabel = ((_this$options = this.options) === null || _this$options === void 0 ? void 0 : (_this$options$selectL = _this$options.selectLabel) === null || _this$options$selectL === void 0 ? void 0 : _this$options$selectL.use) && ((_this$options2 = this.options) === null || _this$options2 === void 0 ? void 0 : (_this$options2$select = _this$options2.selectLabel) === null || _this$options2$select === void 0 ? void 0 : _this$options2$select.useLabelOpacity) && this.options.horizontal === (this.type === 'y') && (selectLabelInfo === null || selectLabelInfo === void 0 ? void 0 : (_selectLabelInfo$data = selectLabelInfo.dataIndex) === null || _selectLabelInfo$data === void 0 ? void 0 : _selectLabelInfo$data.length) && !(selectLabelInfo !== null && selectLabelInfo !== void 0 && selectLabelInfo.label.map(function (t) {
36927
+ return _this2.getLabelFormat(Math.min(axisMax, t));
36928
+ }).includes(labelText));
36750
36929
  var labelColor = this.labelStyle.color;
36751
36930
  var defaultOpacity = 1;
36752
36931
 
@@ -36754,16 +36933,16 @@ var scale_Scale = /*#__PURE__*/function () {
36754
36933
  defaultOpacity = helpers_util.getOpacity(labelColor);
36755
36934
  }
36756
36935
 
36757
- ctx.fillStyle = helpers_util.colorStringToRgba(labelColor, defaultOpacity);
36936
+ ctx.fillStyle = helpers_util.colorStringToRgba(labelColor, isBlurredLabel ? 0.1 : defaultOpacity);
36758
36937
  var labelPoint = void 0;
36759
36938
 
36760
36939
  if (this.type === 'x') {
36761
- var _options$selectItem, _this$options;
36940
+ var _options$selectItem, _this$options3;
36762
36941
 
36763
36942
  labelPoint = this.position === 'top' ? offsetPoint - 10 : offsetPoint + 10;
36764
36943
  ctx.fillText(labelText, labelCenter, labelPoint);
36765
36944
 
36766
- if (options !== null && options !== void 0 && (_options$selectItem = options.selectItem) !== null && _options$selectItem !== void 0 && _options$selectItem.showLabelTip && hitInfo !== null && hitInfo !== void 0 && hitInfo.label && !((_this$options = this.options) !== null && _this$options !== void 0 && _this$options.horizontal)) {
36945
+ if (!isBlurredLabel && options !== null && options !== void 0 && (_options$selectItem = options.selectItem) !== null && _options$selectItem !== void 0 && _options$selectItem.showLabelTip && hitInfo !== null && hitInfo !== void 0 && hitInfo.label && !((_this$options3 = this.options) !== null && _this$options3 !== void 0 && _this$options3.horizontal)) {
36767
36946
  var selectedLabel = this.getLabelFormat(Math.min(axisMax, hitInfo.label + 0 * stepValue));
36768
36947
 
36769
36948
  if (selectedLabel === labelText) {
@@ -38326,9 +38505,6 @@ var plugins_title_modules = {
38326
38505
  }
38327
38506
  };
38328
38507
  /* harmony default export */ var plugins_title = (plugins_title_modules);
38329
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.values.js
38330
- var es_object_values = __webpack_require__("07ac");
38331
-
38332
38508
  // CONCATENATED MODULE: ./src/components/chart/plugins/plugins.legend.js
38333
38509
 
38334
38510
 
@@ -38539,6 +38715,8 @@ var plugins_legend_modules = {
38539
38715
 
38540
38716
 
38541
38717
  this.onLegendBoxOver = function (e) {
38718
+ var _this3$defaultSelectI, _this3$defaultSelectI2;
38719
+
38542
38720
  var type = e.target.dataset.type;
38543
38721
  var targetDOM;
38544
38722
 
@@ -38552,8 +38730,10 @@ var plugins_legend_modules = {
38552
38730
 
38553
38731
  var nameDOM = targetDOM.getElementsByClassName('ev-chart-legend-name')[0];
38554
38732
  var targetId = nameDOM.series.sId;
38733
+ var selectSeriesOption = _this3.options.selectSeries;
38734
+ var selectedList = (_this3$defaultSelectI = (_this3$defaultSelectI2 = _this3.defaultSelectInfo) === null || _this3$defaultSelectI2 === void 0 ? void 0 : _this3$defaultSelectI2.seriesId) !== null && _this3$defaultSelectI !== void 0 ? _this3$defaultSelectI : [];
38555
38735
  Object.values(_this3.seriesList).forEach(function (series) {
38556
- series.state = series.sId === targetId ? 'highlight' : 'downplay';
38736
+ series.state = series.sId === targetId || selectSeriesOption.use && selectedList.includes(targetId) ? 'highlight' : 'downplay';
38557
38737
  });
38558
38738
 
38559
38739
  _this3.update({
@@ -38575,8 +38755,16 @@ var plugins_legend_modules = {
38575
38755
 
38576
38756
 
38577
38757
  this.onLegendBoxLeave = function () {
38758
+ var _this3$defaultSelectI3, _this3$defaultSelectI4;
38759
+
38760
+ var selectSeriesOption = _this3.options.selectSeries;
38761
+ var selectedList = (_this3$defaultSelectI3 = (_this3$defaultSelectI4 = _this3.defaultSelectInfo) === null || _this3$defaultSelectI4 === void 0 ? void 0 : _this3$defaultSelectI4.seriesId) !== null && _this3$defaultSelectI3 !== void 0 ? _this3$defaultSelectI3 : [];
38578
38762
  Object.values(_this3.seriesList).forEach(function (series) {
38579
- series.state = 'normal';
38763
+ if (selectSeriesOption.use && selectedList.length) {
38764
+ series.state = selectedList.includes(series.sId) ? 'highlight' : 'downplay';
38765
+ } else {
38766
+ series.state = 'normal';
38767
+ }
38580
38768
  });
38581
38769
 
38582
38770
  _this3.update({
@@ -39228,9 +39416,6 @@ var plugins_legend_modules = {
39228
39416
  }
39229
39417
  };
39230
39418
  /* harmony default export */ var plugins_legend = (plugins_legend_modules);
39231
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.entries.js
39232
- var es_object_entries = __webpack_require__("4fad");
39233
-
39234
39419
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.from-entries.js
39235
39420
  var es_object_from_entries = __webpack_require__("c1f9");
39236
39421
 
@@ -39250,6 +39435,9 @@ var es_object_from_entries = __webpack_require__("c1f9");
39250
39435
 
39251
39436
 
39252
39437
 
39438
+
39439
+
39440
+
39253
39441
  var plugins_interaction_modules = {
39254
39442
  /**
39255
39443
  * Hide legend components by manipulating css
@@ -39429,18 +39617,28 @@ var plugins_interaction_modules = {
39429
39617
  args.seriesId = hitInfo.sId;
39430
39618
  args.dataIndex = hitInfo.maxIndex;
39431
39619
  args.acc = hitInfo.acc;
39432
- }
39433
-
39434
- if (_this.options.selectLabel.use) {
39620
+ } else if (_this.options.selectLabel.use) {
39435
39621
  var _offset = _this.getMousePosition(e);
39436
39622
 
39437
39623
  var clickedLabelInfo = _this.getLabelInfoByPosition(_offset);
39438
39624
 
39439
39625
  var selected = _this.selectLabel(clickedLabelInfo.labelIndex);
39440
39626
 
39441
- _this.renderWithSelectLabel(selected.dataIndex);
39627
+ _this.renderWithSelected(selected.dataIndex);
39628
+
39629
+ args.selected = lodash_es_cloneDeep(_this.defaultSelectInfo);
39630
+ } else if (_this.options.selectSeries.use) {
39631
+ var _offset2 = _this.getMousePosition(e);
39632
+
39633
+ var _hitInfo = _this.getSeriesIdByPosition(_offset2);
39442
39634
 
39443
- args.selected = lodash_es_cloneDeep(_this.defaultSelectLabelInfo);
39635
+ if (_hitInfo.sId !== null) {
39636
+ var _selected = _this.selectSeries(_hitInfo.sId);
39637
+
39638
+ _this.renderWithSelected(_selected.seriesId);
39639
+ }
39640
+
39641
+ args.selected = lodash_es_cloneDeep(_this.defaultSelectInfo);
39444
39642
  }
39445
39643
 
39446
39644
  if (typeof _this.listeners.click === 'function') {
@@ -39768,34 +39966,38 @@ var plugins_interaction_modules = {
39768
39966
  },
39769
39967
 
39770
39968
  /**
39771
- * render after select label by index list
39969
+ * render after selected label or selected series
39772
39970
  * @param indexList {array} '[0, 1 ...]'
39773
39971
  */
39774
- renderWithSelectLabel: function renderWithSelectLabel(indexList) {
39775
- this.defaultSelectLabelInfo.dataIndex = indexList;
39776
- this.initSelectedLabelInfo();
39972
+ renderWithSelected: function renderWithSelected(list) {
39973
+ if (this.options.selectLabel.use) {
39974
+ this.defaultSelectInfo.dataIndex = list;
39975
+ } else if (this.options.selectSeries.use) {
39976
+ this.defaultSelectInfo.seriesId = list;
39977
+ }
39978
+
39979
+ this.initSelectedInfo();
39777
39980
  this.render();
39778
39981
  },
39779
39982
 
39780
39983
  /**
39781
- * init defaultSelectLabelInfo object.
39782
- * (set each series data and label text)
39984
+ * init defaultSelectInfo object.
39985
+ * - at selectLabel using: set each series data and label text
39986
+ * - at selectSeries using: set series state
39783
39987
  */
39784
- initSelectedLabelInfo: function initSelectedLabelInfo() {
39988
+ initSelectedInfo: function initSelectedInfo() {
39785
39989
  var _this3 = this;
39786
39990
 
39787
- var _this$options$selectL = this.options.selectLabel,
39788
- use = _this$options$selectL.use,
39789
- limit = _this$options$selectL.limit;
39991
+ if (this.options.selectLabel.use) {
39992
+ var limit = this.options.selectLabel.limit;
39790
39993
 
39791
- if (use) {
39792
- if (!this.defaultSelectLabelInfo) {
39793
- this.defaultSelectLabelInfo = {
39994
+ if (!this.defaultSelectInfo) {
39995
+ this.defaultSelectInfo = {
39794
39996
  dataIndex: []
39795
39997
  };
39796
39998
  }
39797
39999
 
39798
- var infoObj = this.defaultSelectLabelInfo;
40000
+ var infoObj = this.defaultSelectInfo;
39799
40001
  infoObj.dataIndex.splice(limit);
39800
40002
  infoObj.label = infoObj.dataIndex.map(function (i) {
39801
40003
  return _this3.data.labels[i];
@@ -39810,6 +40012,23 @@ var plugins_interaction_modules = {
39810
40012
  return [sId, data[labelIdx]];
39811
40013
  }));
39812
40014
  });
40015
+ } else if (this.options.selectSeries.use) {
40016
+ if (!this.defaultSelectInfo) {
40017
+ this.defaultSelectInfo = {
40018
+ seriesId: []
40019
+ };
40020
+ }
40021
+
40022
+ var selectedList = this.defaultSelectInfo.seriesId;
40023
+ Object.values(this.seriesList).forEach(function (series) {
40024
+ if (!selectedList.length) {
40025
+ series.state = 'normal';
40026
+ } else if (selectedList.includes(series.sId)) {
40027
+ series.state = 'highlight';
40028
+ } else {
40029
+ series.state = 'downplay';
40030
+ }
40031
+ });
39813
40032
  }
39814
40033
  },
39815
40034
 
@@ -39819,10 +40038,10 @@ var plugins_interaction_modules = {
39819
40038
  * @param labelIndex {array} '[0, 1 ...]'
39820
40039
  */
39821
40040
  selectLabel: function selectLabel(labelIndex) {
39822
- var _this$options$selectL2, _this$options5, _this$defaultSelectLa;
40041
+ var _this$options$selectL, _this$options5, _this$defaultSelectIn;
39823
40042
 
39824
- var option = (_this$options$selectL2 = (_this$options5 = this.options) === null || _this$options5 === void 0 ? void 0 : _this$options5.selectLabel) !== null && _this$options$selectL2 !== void 0 ? _this$options$selectL2 : {};
39825
- var before = (_this$defaultSelectLa = this.defaultSelectLabelInfo) !== null && _this$defaultSelectLa !== void 0 ? _this$defaultSelectLa : {
40043
+ var option = (_this$options$selectL = (_this$options5 = this.options) === null || _this$options5 === void 0 ? void 0 : _this$options5.selectLabel) !== null && _this$options$selectL !== void 0 ? _this$options$selectL : {};
40044
+ var before = (_this$defaultSelectIn = this.defaultSelectInfo) !== null && _this$defaultSelectIn !== void 0 ? _this$defaultSelectIn : {
39826
40045
  dataIndex: []
39827
40046
  };
39828
40047
  var after = lodash_es_cloneDeep(before);
@@ -39844,6 +40063,32 @@ var plugins_interaction_modules = {
39844
40063
 
39845
40064
  return after;
39846
40065
  },
40066
+ selectSeries: function selectSeries(seriesId) {
40067
+ var _this$options$selectS, _this$options6, _this$defaultSelectIn2;
40068
+
40069
+ var option = (_this$options$selectS = (_this$options6 = this.options) === null || _this$options6 === void 0 ? void 0 : _this$options6.selectSeries) !== null && _this$options$selectS !== void 0 ? _this$options$selectS : {};
40070
+ var before = (_this$defaultSelectIn2 = this.defaultSelectInfo) !== null && _this$defaultSelectIn2 !== void 0 ? _this$defaultSelectIn2 : {
40071
+ seriesId: []
40072
+ };
40073
+ var after = lodash_es_cloneDeep(before);
40074
+
40075
+ if (before.seriesId.includes(seriesId)) {
40076
+ var idx = before.seriesId.indexOf(seriesId);
40077
+ after.seriesId.splice(idx, 1);
40078
+ } else if (seriesId) {
40079
+ after.seriesId.push(seriesId);
40080
+
40081
+ if (option.limit > 0 && option.limit < after.seriesId.length) {
40082
+ if (option.useDeselectOverflow) {
40083
+ after.seriesId.splice(0, 1);
40084
+ } else {
40085
+ after.seriesId.pop();
40086
+ }
40087
+ }
40088
+ }
40089
+
40090
+ return after;
40091
+ },
39847
40092
 
39848
40093
  /**
39849
40094
  * Find items by series within a range
@@ -41202,10 +41447,10 @@ var element_tip_modules = {
41202
41447
  var opt = this.options;
41203
41448
  var isHorizontal = !!opt.horizontal;
41204
41449
  var labelTipOpt = opt.selectLabel;
41205
- var _this$defaultSelectLa = this.defaultSelectLabelInfo,
41206
- dataIndex = _this$defaultSelectLa.dataIndex,
41207
- data = _this$defaultSelectLa.data,
41208
- label = _this$defaultSelectLa.label;
41450
+ var _this$defaultSelectIn = this.defaultSelectInfo,
41451
+ dataIndex = _this$defaultSelectIn.dataIndex,
41452
+ data = _this$defaultSelectIn.data,
41453
+ label = _this$defaultSelectIn.label;
41209
41454
  var drawTip = false;
41210
41455
 
41211
41456
  if (dataIndex.length) {
@@ -41543,7 +41788,7 @@ var element_tip_modules = {
41543
41788
 
41544
41789
 
41545
41790
  var chart_core_EvChart = /*#__PURE__*/function () {
41546
- function EvChart(target, data, options, listeners, defaultSelectItemInfo, defaultSelectLabelInfo) {
41791
+ function EvChart(target, data, options, listeners, defaultSelectItemInfo, defaultSelectInfo) {
41547
41792
  var _this = this;
41548
41793
 
41549
41794
  _classCallCheck(this, EvChart);
@@ -41602,7 +41847,7 @@ var chart_core_EvChart = /*#__PURE__*/function () {
41602
41847
  count: 0
41603
41848
  };
41604
41849
  this.defaultSelectItemInfo = defaultSelectItemInfo;
41605
- this.defaultSelectLabelInfo = defaultSelectLabelInfo;
41850
+ this.defaultSelectInfo = defaultSelectInfo;
41606
41851
  }
41607
41852
  /**
41608
41853
  * Initialize chart object
@@ -41638,7 +41883,7 @@ var chart_core_EvChart = /*#__PURE__*/function () {
41638
41883
  this.axesY = this.createAxes('y', axesY);
41639
41884
  this.axesRange = this.getAxesRange();
41640
41885
  this.labelOffset = this.getLabelOffset();
41641
- this.initSelectedLabelInfo();
41886
+ this.initSelectedInfo();
41642
41887
  this.drawChart();
41643
41888
 
41644
41889
  if (tooltip.use) {
@@ -41711,7 +41956,8 @@ var chart_core_EvChart = /*#__PURE__*/function () {
41711
41956
  var _this$options2 = this.options,
41712
41957
  maxTip = _this$options2.maxTip,
41713
41958
  selectLabel = _this$options2.selectLabel,
41714
- selectItem = _this$options2.selectItem;
41959
+ selectItem = _this$options2.selectItem,
41960
+ selectSeries = _this$options2.selectSeries;
41715
41961
  var opt = {
41716
41962
  ctx: this.bufferCtx,
41717
41963
  chartRect: this.chartRect,
@@ -41723,7 +41969,11 @@ var chart_core_EvChart = /*#__PURE__*/function () {
41723
41969
  },
41724
41970
  selectLabel: {
41725
41971
  option: selectLabel,
41726
- selected: this.defaultSelectLabelInfo
41972
+ selected: this.defaultSelectInfo
41973
+ },
41974
+ selectSeries: {
41975
+ option: selectSeries,
41976
+ selected: this.defaultSelectInfo
41727
41977
  }
41728
41978
  };
41729
41979
  var showIndex = 0;
@@ -41932,10 +42182,10 @@ var chart_core_EvChart = /*#__PURE__*/function () {
41932
42182
  var _this4 = this;
41933
42183
 
41934
42184
  this.axesX.forEach(function (axis, index) {
41935
- axis.draw(_this4.chartRect, _this4.labelOffset, _this4.axesSteps.x[index], hitInfo, _this4.defaultSelectLabelInfo);
42185
+ axis.draw(_this4.chartRect, _this4.labelOffset, _this4.axesSteps.x[index], hitInfo, _this4.defaultSelectInfo);
41936
42186
  });
41937
42187
  this.axesY.forEach(function (axis, index) {
41938
- axis.draw(_this4.chartRect, _this4.labelOffset, _this4.axesSteps.y[index], hitInfo, _this4.defaultSelectLabelInfo);
42188
+ axis.draw(_this4.chartRect, _this4.labelOffset, _this4.axesSteps.y[index], hitInfo, _this4.defaultSelectInfo);
41939
42189
  });
41940
42190
  }
41941
42191
  /**
@@ -42283,7 +42533,7 @@ var chart_core_EvChart = /*#__PURE__*/function () {
42283
42533
  this.axesY = this.createAxes('y', options.axesY);
42284
42534
  this.axesRange = this.getAxesRange();
42285
42535
  this.labelOffset = this.getLabelOffset();
42286
- this.initSelectedLabelInfo();
42536
+ this.initSelectedInfo();
42287
42537
  this.render(updateInfo === null || updateInfo === void 0 ? void 0 : updateInfo.hitInfo);
42288
42538
  var isDragMove = this.dragInfo && this.drawSelectionArea;
42289
42539
 
@@ -42554,6 +42804,11 @@ var DEFAULT_OPTIONS = {
42554
42804
  useApproximateValue: false,
42555
42805
  tipBackground: '#000000'
42556
42806
  },
42807
+ selectSeries: {
42808
+ use: false,
42809
+ limit: 1,
42810
+ useDeselectOverflow: false
42811
+ },
42557
42812
  dragSelection: {
42558
42813
  use: false,
42559
42814
  keepDisplay: true,
@@ -42608,9 +42863,12 @@ var chart_uses_useModel = function useModel() {
42608
42863
 
42609
42864
  var selectItemInfo = lodash_es_cloneDeep(props.selectedItem);
42610
42865
  var selectLabelInfo = lodash_es_cloneDeep(props.selectedLabel);
42866
+ var selectSeriesInfo = lodash_es_cloneDeep(props.selectedSeries);
42611
42867
  var eventListeners = {
42612
42868
  click: function () {
42613
42869
  var _click = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(e) {
42870
+ var _e$selected, _e$selected2;
42871
+
42614
42872
  return regeneratorRuntime.wrap(function _callee$(_context) {
42615
42873
  while (1) {
42616
42874
  switch (_context.prev = _context.next) {
@@ -42626,15 +42884,21 @@ var chart_uses_useModel = function useModel() {
42626
42884
  });
42627
42885
  }
42628
42886
 
42629
- if (e.selected) {
42887
+ if ((_e$selected = e.selected) !== null && _e$selected !== void 0 && _e$selected.dataIndex) {
42630
42888
  emit('update:selectedLabel', {
42631
42889
  dataIndex: e.selected.dataIndex
42632
42890
  });
42633
42891
  }
42634
42892
 
42893
+ if ((_e$selected2 = e.selected) !== null && _e$selected2 !== void 0 && _e$selected2.seriesId) {
42894
+ emit('update:selectedSeries', {
42895
+ seriesId: e.selected.seriesId
42896
+ });
42897
+ }
42898
+
42635
42899
  emit('click', e);
42636
42900
 
42637
- case 5:
42901
+ case 6:
42638
42902
  case "end":
42639
42903
  return _context.stop();
42640
42904
  }
@@ -42705,6 +42969,7 @@ var chart_uses_useModel = function useModel() {
42705
42969
  eventListeners: eventListeners,
42706
42970
  selectItemInfo: selectItemInfo,
42707
42971
  selectLabelInfo: selectLabelInfo,
42972
+ selectSeriesInfo: selectSeriesInfo,
42708
42973
  getNormalizedData: getNormalizedData,
42709
42974
  getNormalizedOptions: getNormalizedOptions
42710
42975
  };
@@ -42753,6 +43018,10 @@ var uses_useWrapper = function useWrapper(options) {
42753
43018
  type: Object,
42754
43019
  default: null
42755
43020
  },
43021
+ selectedSeries: {
43022
+ type: Object,
43023
+ default: null
43024
+ },
42756
43025
  options: {
42757
43026
  type: Object,
42758
43027
  default: function _default() {
@@ -42770,7 +43039,7 @@ var uses_useWrapper = function useWrapper(options) {
42770
43039
  default: 0
42771
43040
  }
42772
43041
  },
42773
- emits: ['click', 'dbl-click', 'drag-select', 'update:selectedItem', 'update:selectedLabel'],
43042
+ emits: ['click', 'dbl-click', 'drag-select', 'update:selectedItem', 'update:selectedLabel', 'update:selectedSeries'],
42774
43043
  setup: function setup(props) {
42775
43044
  var evChart = {};
42776
43045
  var isInit = false;
@@ -42779,6 +43048,7 @@ var uses_useWrapper = function useWrapper(options) {
42779
43048
  eventListeners = _useModel.eventListeners,
42780
43049
  selectItemInfo = _useModel.selectItemInfo,
42781
43050
  selectLabelInfo = _useModel.selectLabelInfo,
43051
+ selectSeriesInfo = _useModel.selectSeriesInfo,
42782
43052
  getNormalizedData = _useModel.getNormalizedData,
42783
43053
  getNormalizedOptions = _useModel.getNormalizedOptions;
42784
43054
 
@@ -42790,7 +43060,15 @@ var uses_useWrapper = function useWrapper(options) {
42790
43060
  wrapperStyle = _useWrapper.wrapperStyle;
42791
43061
 
42792
43062
  var createChart = function createChart() {
42793
- evChart = new chart_core(wrapper.value, normalizedData, normalizedOptions, eventListeners, selectItemInfo, selectLabelInfo);
43063
+ var selected;
43064
+
43065
+ if (normalizedOptions.selectLabel.use) {
43066
+ selected = selectLabelInfo;
43067
+ } else if (normalizedOptions.selectSeries.use) {
43068
+ selected = selectSeriesInfo;
43069
+ }
43070
+
43071
+ evChart = new chart_core(wrapper.value, normalizedData, normalizedOptions, eventListeners, selectItemInfo, selected);
42794
43072
  };
42795
43073
 
42796
43074
  var drawChart = function drawChart() {
@@ -42868,13 +43146,25 @@ var uses_useWrapper = function useWrapper(options) {
42868
43146
  return props.selectedLabel;
42869
43147
  }, function (newValue) {
42870
43148
  if (newValue.dataIndex) {
42871
- evChart.renderWithSelectLabel(newValue.dataIndex);
43149
+ evChart.renderWithSelected(newValue.dataIndex);
42872
43150
  }
42873
43151
  }, {
42874
43152
  deep: true
42875
43153
  });
42876
43154
 
42877
43155
  case 12:
43156
+ _context.next = 14;
43157
+ return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
43158
+ return props.selectedSeries;
43159
+ }, function (newValue) {
43160
+ if (newValue.seriesId) {
43161
+ evChart.renderWithSelected(newValue.seriesId);
43162
+ }
43163
+ }, {
43164
+ deep: true
43165
+ });
43166
+
43167
+ case 14:
42878
43168
  case "end":
42879
43169
  return _context.stop();
42880
43170
  }
@@ -42917,8 +43207,8 @@ var uses_useWrapper = function useWrapper(options) {
42917
43207
  });
42918
43208
  // CONCATENATED MODULE: ./src/components/chart/Chart.vue?vue&type=script&lang=js
42919
43209
 
42920
- // EXTERNAL MODULE: ./src/components/chart/Chart.vue?vue&type=style&index=0&id=53face60&lang=scss
42921
- var Chartvue_type_style_index_0_id_53face60_lang_scss = __webpack_require__("96f9");
43210
+ // EXTERNAL MODULE: ./src/components/chart/Chart.vue?vue&type=style&index=0&id=334a904a&lang=scss
43211
+ var Chartvue_type_style_index_0_id_334a904a_lang_scss = __webpack_require__("c5ab");
42922
43212
 
42923
43213
  // CONCATENATED MODULE: ./src/components/chart/Chart.vue
42924
43214
 
@@ -42926,7 +43216,7 @@ var Chartvue_type_style_index_0_id_53face60_lang_scss = __webpack_require__("96f
42926
43216
 
42927
43217
 
42928
43218
 
42929
- Chartvue_type_script_lang_js.render = Chartvue_type_template_id_53face60_render
43219
+ Chartvue_type_script_lang_js.render = Chartvue_type_template_id_334a904a_render
42930
43220
 
42931
43221
  /* harmony default export */ var Chart = (Chartvue_type_script_lang_js);
42932
43222
  // CONCATENATED MODULE: ./src/components/chart/index.js
@@ -45745,6 +46035,20 @@ module.exports = function (it) {
45745
46035
  };
45746
46036
 
45747
46037
 
46038
+ /***/ }),
46039
+
46040
+ /***/ "fdb5":
46041
+ /***/ (function(module, exports, __webpack_require__) {
46042
+
46043
+ // Imports
46044
+ var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
46045
+ exports = ___CSS_LOADER_API_IMPORT___(false);
46046
+ // Module
46047
+ exports.push([module.i, ".ev-chart-wrapper{display:block}.ev-chart-container,.ev-chart-wrapper{position:relative;width:100%;height:100%}.ev-chart-container{overflow:hidden}.ev-chart-title{top:0;left:0;width:100%;padding-left:10px;word-wrap:normal;white-space:nowrap;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ev-chart-legend,.ev-chart-title{position:absolute;overflow:hidden}.ev-chart-legend-box{overflow-x:hidden;overflow-y:auto}.ev-chart-legend-container{position:relative;overflow:hidden}.ev-chart-legend-color,.ev-chart-legend-color--point-line{position:absolute;top:50%;left:0;transform:translateY(-50%);width:18px;height:4px}.ev-chart-legend-color--point-line:after{display:inline-block;position:absolute;top:-2px;left:5px;width:8px;height:8px;content:\" \";border-radius:50%;background-color:inherit}.ev-chart-legend-name{position:absolute;top:50%;left:0;width:100%;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;font-size:12px;margin-left:24px;padding-right:16px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-weight:400;transform:translateY(-50%)}.ev-chart-legend-name:hover{font-weight:700}.ev-chart-legend-value{float:right;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ev-chart-resize-bar{position:absolute;background:transparent;opacity:.5;z-index:10}.ev-chart-resize-bar:hover,.ev-chart-resize-ghost{background-color:#e2e2e2}.ev-chart-resize-ghost{position:absolute;width:4px;height:100%;cursor:col-resize;opacity:.5}.ev-chart-resize-ghost.horizontal{width:100%;height:4px;cursor:row-resize}.ev-chart-tooltip{position:absolute;z-index:850;top:0;left:0;overflow-y:hidden;overflow-x:hidden;border-radius:8px}.ev-chart-tooltip .ev-chart-tooltip-header{padding:8px 16px 0 16px;font-family:Roboto,serif;overflow:hidden;font-size:16px}.ev-chart-tooltip .ev-chart-tooltip-header--wrap{word-wrap:break-word}.ev-chart-tooltip .ev-chart-tooltip-header--ellipsis{text-overflow:ellipsis;white-space:nowrap}.ev-chart-tooltip .ev-chart-tooltip-body{overflow-x:hidden;overflow-y:hidden}", ""]);
46048
+ // Exports
46049
+ module.exports = exports;
46050
+
46051
+
45748
46052
  /***/ }),
45749
46053
 
45750
46054
  /***/ "fdbc":