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.
package/dist/evui.umd.js CHANGED
@@ -7949,7 +7949,7 @@ $({ target: 'Number', stat: true }, {
7949
7949
  /***/ "9224":
7950
7950
  /***/ (function(module) {
7951
7951
 
7952
- module.exports = JSON.parse("{\"a\":\"3.3.13\"}");
7952
+ module.exports = JSON.parse("{\"a\":\"3.3.14\"}");
7953
7953
 
7954
7954
  /***/ }),
7955
7955
 
@@ -8843,17 +8843,6 @@ try {
8843
8843
  }
8844
8844
 
8845
8845
 
8846
- /***/ }),
8847
-
8848
- /***/ "96f9":
8849
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
8850
-
8851
- "use strict";
8852
- /* 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");
8853
- /* 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__);
8854
- /* unused harmony reexport * */
8855
-
8856
-
8857
8846
  /***/ }),
8858
8847
 
8859
8848
  /***/ "971c":
@@ -9870,6 +9859,21 @@ if (DESCRIPTORS && !(NAME in FunctionPrototype)) {
9870
9859
  }
9871
9860
 
9872
9861
 
9862
+ /***/ }),
9863
+
9864
+ /***/ "b46e":
9865
+ /***/ (function(module, exports, __webpack_require__) {
9866
+
9867
+ // style-loader: Adds some css to the DOM by adding a <style> tag
9868
+
9869
+ // load the styles
9870
+ var content = __webpack_require__("fdb5");
9871
+ if(typeof content === 'string') content = [[module.i, content, '']];
9872
+ if(content.locals) module.exports = content.locals;
9873
+ // add the styles to the DOM
9874
+ var add = __webpack_require__("499e").default
9875
+ var update = add("4ca9bcbe", content, true, {"sourceMap":false,"shadowMode":false});
9876
+
9873
9877
  /***/ }),
9874
9878
 
9875
9879
  /***/ "b575":
@@ -10228,20 +10232,6 @@ module.exports = {
10228
10232
  };
10229
10233
 
10230
10234
 
10231
- /***/ }),
10232
-
10233
- /***/ "b7b9":
10234
- /***/ (function(module, exports, __webpack_require__) {
10235
-
10236
- // Imports
10237
- var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
10238
- exports = ___CSS_LOADER_API_IMPORT___(false);
10239
- // Module
10240
- 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}", ""]);
10241
- // Exports
10242
- module.exports = exports;
10243
-
10244
-
10245
10235
  /***/ }),
10246
10236
 
10247
10237
  /***/ "bac3":
@@ -10344,6 +10334,17 @@ module.exports = false;
10344
10334
  /* unused harmony reexport * */
10345
10335
 
10346
10336
 
10337
+ /***/ }),
10338
+
10339
+ /***/ "c5ab":
10340
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
10341
+
10342
+ "use strict";
10343
+ /* 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");
10344
+ /* 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__);
10345
+ /* unused harmony reexport * */
10346
+
10347
+
10347
10348
  /***/ }),
10348
10349
 
10349
10350
  /***/ "c63c":
@@ -12494,21 +12495,6 @@ module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
12494
12495
  };
12495
12496
 
12496
12497
 
12497
- /***/ }),
12498
-
12499
- /***/ "f648":
12500
- /***/ (function(module, exports, __webpack_require__) {
12501
-
12502
- // style-loader: Adds some css to the DOM by adding a <style> tag
12503
-
12504
- // load the styles
12505
- var content = __webpack_require__("b7b9");
12506
- if(typeof content === 'string') content = [[module.i, content, '']];
12507
- if(content.locals) module.exports = content.locals;
12508
- // add the styles to the DOM
12509
- var add = __webpack_require__("499e").default
12510
- var update = add("410590da", content, true, {"sourceMap":false,"shadowMode":false});
12511
-
12512
12498
  /***/ }),
12513
12499
 
12514
12500
  /***/ "f772":
@@ -22432,13 +22418,13 @@ var notification_componentObj = Object(external_commonjs_vue_commonjs2_vue_root_
22432
22418
  var notification_rootId = 'ev-notification-modal';
22433
22419
  var notification_root = document.createElement('div');
22434
22420
  notification_root.id = notification_rootId;
22435
- var positionList = ['top-left', 'top-right', 'bottom-left', 'bottom-right'];
22421
+ var notification_positionList = ['top-left', 'top-right', 'bottom-left', 'bottom-right'];
22436
22422
 
22437
22423
  var notification_notification = function notification() {
22438
22424
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
22439
22425
  var position = options.position || 'top-right';
22440
22426
 
22441
- if (!positionList.includes(position)) {
22427
+ if (!notification_positionList.includes(position)) {
22442
22428
  console.warn('[EVUI][Notification] The position value is incorrectly entered.');
22443
22429
  return;
22444
22430
  }
@@ -30473,9 +30459,9 @@ Grid.install = function (app) {
30473
30459
  };
30474
30460
 
30475
30461
  /* harmony default export */ var grid = (Grid);
30476
- // 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
30462
+ // 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
30477
30463
 
30478
- function Chartvue_type_template_id_53face60_render(_ctx, _cache, $props, $setup, $data, $options) {
30464
+ function Chartvue_type_template_id_334a904a_render(_ctx, _cache, $props, $setup, $data, $options) {
30479
30465
  var _directive_resize = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveDirective"])("resize");
30480
30466
 
30481
30467
  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", {
@@ -30484,7 +30470,7 @@ function Chartvue_type_template_id_53face60_render(_ctx, _cache, $props, $setup,
30484
30470
  class: "ev-chart"
30485
30471
  }, null, 4)), [[_directive_resize, $setup.onResize]]);
30486
30472
  }
30487
- // CONCATENATED MODULE: ./src/components/chart/Chart.vue?vue&type=template&id=53face60
30473
+ // CONCATENATED MODULE: ./src/components/chart/Chart.vue?vue&type=template&id=334a904a
30488
30474
 
30489
30475
  // CONCATENATED MODULE: ./node_modules/lodash-es/_arrayEach.js
30490
30476
  /**
@@ -31756,6 +31742,12 @@ function utils_throttle_throttle(func, wait, options) {
31756
31742
 
31757
31743
  /* harmony default export */ var utils_throttle = (utils_throttle_throttle);
31758
31744
  /* eslint-enable */
31745
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.entries.js
31746
+ var es_object_entries = __webpack_require__("4fad");
31747
+
31748
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.values.js
31749
+ var es_object_values = __webpack_require__("07ac");
31750
+
31759
31751
  // CONCATENATED MODULE: ./node_modules/lodash-es/reverse.js
31760
31752
  /** Used for built-in method references. */
31761
31753
  var reverse_arrayProto = Array.prototype;
@@ -32128,6 +32120,15 @@ function reverse(array) {
32128
32120
 
32129
32121
 
32130
32122
 
32123
+
32124
+
32125
+
32126
+
32127
+
32128
+
32129
+
32130
+
32131
+
32131
32132
  var modules = {
32132
32133
  /**
32133
32134
  * Take chart data and labels to create normalized data and min/max info
@@ -32864,6 +32865,177 @@ var modules = {
32864
32865
  };
32865
32866
  },
32866
32867
 
32868
+ /**
32869
+ * Find seriesId by position x and y
32870
+ * @param {array} offset position x and y
32871
+ *
32872
+ * @returns {object} clicked series id
32873
+ */
32874
+ getSeriesIdByPosition: function getSeriesIdByPosition(offset) {
32875
+ var _this6 = this;
32876
+
32877
+ var _offset = _slicedToArray(offset, 2),
32878
+ clickedX = _offset[0],
32879
+ clickedY = _offset[1];
32880
+
32881
+ var chartRect = this.chartRect;
32882
+ var labelOffset = this.labelOffset;
32883
+ var aPos = {
32884
+ x1: chartRect.x1 + labelOffset.left,
32885
+ x2: chartRect.x2 - labelOffset.right,
32886
+ y1: chartRect.y1 + labelOffset.top,
32887
+ y2: chartRect.y2 - labelOffset.bottom
32888
+ };
32889
+ var valueAxes = this.axesY[0];
32890
+ var labelAxes = this.axesX[0];
32891
+ var valueStartPoint = aPos[valueAxes.units.rectStart];
32892
+ var valueEndPoint = aPos[valueAxes.units.rectEnd];
32893
+ var labelStartPoint = aPos[labelAxes.units.rectStart];
32894
+ var labelEndPoint = aPos[labelAxes.units.rectEnd];
32895
+ var result = {
32896
+ sId: null
32897
+ };
32898
+
32899
+ if (clickedY > valueEndPoint && clickedY < valueStartPoint && clickedX < labelEndPoint && clickedX > labelStartPoint) {
32900
+ var hitSeries;
32901
+ var positionList;
32902
+ var hitItem = this.findHitItem(offset);
32903
+ var hitSeriesList = Object.keys(hitItem.items);
32904
+
32905
+ switch (this.options.type) {
32906
+ case 'line':
32907
+ {
32908
+ var orderedSeriesList = this.seriesInfo.charts.line;
32909
+ var isStackChart = Object.values(this.seriesList).some(function (_ref4) {
32910
+ var stackIndex = _ref4.stackIndex;
32911
+ return stackIndex;
32912
+ });
32913
+
32914
+ if (hitSeriesList.length) {
32915
+ // 클릭한 위치에 data 가 존재하는 경우
32916
+ if (isStackChart) {
32917
+ var _positionList$find;
32918
+
32919
+ positionList = orderedSeriesList.filter(function (sId) {
32920
+ return hitSeriesList.includes(sId);
32921
+ }).map(function (sId) {
32922
+ var _hitItem$items$sId, _hitItem$items$sId$da;
32923
+
32924
+ return {
32925
+ sId: sId,
32926
+ 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
32927
+ };
32928
+ });
32929
+ hitSeries = (_positionList$find = positionList.find(function (_ref5) {
32930
+ var position = _ref5.position;
32931
+ return clickedY > position;
32932
+ })) === null || _positionList$find === void 0 ? void 0 : _positionList$find.sId;
32933
+ } else {
32934
+ var _Object$entries$find;
32935
+
32936
+ hitSeries = (_Object$entries$find = Object.entries(hitItem.items).find(function (_ref6) {
32937
+ var _ref7 = _slicedToArray(_ref6, 2),
32938
+ hit = _ref7[1].hit;
32939
+
32940
+ return hit;
32941
+ })) === null || _Object$entries$find === void 0 ? void 0 : _Object$entries$find[0];
32942
+ }
32943
+ } else {
32944
+ var _positionList$0$posit;
32945
+
32946
+ // 클릭한 위치에 data 가 존재하지 않는 경우
32947
+ var visibleSeriesList = orderedSeriesList.filter(function (sId) {
32948
+ return _this6.seriesList[sId].show;
32949
+ });
32950
+ positionList = visibleSeriesList.map(function (sId) {
32951
+ var _this6$seriesList$sId;
32952
+
32953
+ return {
32954
+ sId: sId,
32955
+ position: (_this6$seriesList$sId = _this6.seriesList[sId].data) === null || _this6$seriesList$sId === void 0 ? void 0 : _this6$seriesList$sId.map(function (_ref8) {
32956
+ var xp = _ref8.xp,
32957
+ yp = _ref8.yp;
32958
+ return [xp, yp];
32959
+ })
32960
+ };
32961
+ });
32962
+ var dataIndex = (_positionList$0$posit = positionList[0].position) === null || _positionList$0$posit === void 0 ? void 0 : _positionList$0$posit.findIndex(function (_ref9) {
32963
+ var _ref10 = _slicedToArray(_ref9, 1),
32964
+ xp = _ref10[0];
32965
+
32966
+ return xp >= clickedX;
32967
+ });
32968
+ var vectorList = positionList.map(function (_ref11) {
32969
+ var sId = _ref11.sId,
32970
+ position = _ref11.position;
32971
+ return {
32972
+ sId: sId,
32973
+ vector: {
32974
+ start: position[dataIndex - 1],
32975
+ end: position[dataIndex]
32976
+ }
32977
+ };
32978
+ }); // canvas 의 클릭 위치값은 제 4 사분면의 위치이므로 clickedY, y1, y2 의 값은 음수를 취한다.
32979
+
32980
+ if (isStackChart) {
32981
+ var _vectorList$find;
32982
+
32983
+ hitSeries = (_vectorList$find = vectorList.find(function (_ref12) {
32984
+ var vector = _ref12.vector;
32985
+
32986
+ var _vector$start = _slicedToArray(vector.start, 2),
32987
+ x1 = _vector$start[0],
32988
+ y1 = _vector$start[1];
32989
+
32990
+ var _vector$end = _slicedToArray(vector.end, 2),
32991
+ x2 = _vector$end[0],
32992
+ y2 = _vector$end[1];
32993
+
32994
+ var v1 = [x2 - x1, y1 - y2];
32995
+ var v2 = [x2 - clickedX, clickedY - y2];
32996
+ var xp = v1[0] * v2[1] - v1[1] * v2[0];
32997
+ return vector.start.every(function (v) {
32998
+ return typeof v === 'number';
32999
+ }) && vector.end.every(function (v) {
33000
+ return typeof v === 'number';
33001
+ }) && xp > 0;
33002
+ })) === null || _vectorList$find === void 0 ? void 0 : _vectorList$find.sId;
33003
+ } else {
33004
+ var _vectorList$find2;
33005
+
33006
+ hitSeries = (_vectorList$find2 = vectorList.find(function (_ref13) {
33007
+ var vector = _ref13.vector;
33008
+
33009
+ var _vector$start2 = _slicedToArray(vector.start, 2),
33010
+ x1 = _vector$start2[0],
33011
+ y1 = _vector$start2[1];
33012
+
33013
+ var _vector$end2 = _slicedToArray(vector.end, 2),
33014
+ x2 = _vector$end2[0],
33015
+ y2 = _vector$end2[1];
33016
+
33017
+ var a = (y1 - y2) / (x2 - x1);
33018
+ var b = -1;
33019
+ var c = -y1 - a * x1;
33020
+ var distance = Math.abs(a * clickedX - b * clickedY + c) / Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2));
33021
+ return distance < 3;
33022
+ })) === null || _vectorList$find2 === void 0 ? void 0 : _vectorList$find2.sId;
33023
+ }
33024
+ }
33025
+
33026
+ break;
33027
+ }
33028
+
33029
+ default:
33030
+ break;
33031
+ }
33032
+
33033
+ result.sId = hitSeries;
33034
+ }
33035
+
33036
+ return result;
33037
+ },
33038
+
32867
33039
  /**
32868
33040
  * Find label info by position x and y
32869
33041
  * @param {array} offset position x and y
@@ -32871,9 +33043,9 @@ var modules = {
32871
33043
  * @returns {object} clicked label information
32872
33044
  */
32873
33045
  getLabelInfoByPosition: function getLabelInfoByPosition(offset) {
32874
- var _offset = _slicedToArray(offset, 2),
32875
- x = _offset[0],
32876
- y = _offset[1];
33046
+ var _offset2 = _slicedToArray(offset, 2),
33047
+ x = _offset2[0],
33048
+ y = _offset2[1];
32877
33049
 
32878
33050
  var aPos = {
32879
33051
  x1: this.chartRect.x1 + this.labelOffset.left,
@@ -32911,7 +33083,7 @@ var modules = {
32911
33083
  * @returns {object} min/max info for all of data
32912
33084
  */
32913
33085
  getStoreMinMax: function getStoreMinMax() {
32914
- var _this6 = this;
33086
+ var _this7 = this;
32915
33087
 
32916
33088
  var keys = Object.keys(this.seriesList);
32917
33089
  var isHorizontal = this.options.horizontal;
@@ -32929,7 +33101,7 @@ var modules = {
32929
33101
  if (keys.length) {
32930
33102
  return keys.reduce(function (acc, key) {
32931
33103
  var minmax = acc;
32932
- var series = _this6.seriesList[key];
33104
+ var series = _this7.seriesList[key];
32933
33105
  var smm = series.minMax;
32934
33106
  var axisX = series.xAxisIndex;
32935
33107
  var axisY = series.yAxisIndex;
@@ -34461,7 +34633,6 @@ var element_line_Line = /*#__PURE__*/function () {
34461
34633
  if (this.stackIndex) {
34462
34634
  var reversedDataList = this.data.slice().reverse();
34463
34635
  reversedDataList.forEach(function (curr, ix) {
34464
- ctx.beginPath();
34465
34636
  x = getXPos(curr.x);
34466
34637
  y = getYPos(curr.b);
34467
34638
  var prev = reversedDataList[ix - 1];
@@ -36517,6 +36688,9 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
36517
36688
 
36518
36689
 
36519
36690
 
36691
+
36692
+
36693
+
36520
36694
  var scale_Scale = /*#__PURE__*/function () {
36521
36695
  function Scale(type, opt, ctx, options) {
36522
36696
  var _this = this;
@@ -36683,11 +36857,11 @@ var scale_Scale = /*#__PURE__*/function () {
36683
36857
 
36684
36858
  }, {
36685
36859
  key: "draw",
36686
- value: function draw(chartRect, labelOffset, stepInfo, hitInfo) {
36860
+ value: function draw(chartRect, labelOffset, stepInfo, hitInfo, selectLabelInfo) {
36687
36861
  var _this$labelStyle,
36862
+ _this2 = this,
36688
36863
  _this$plotBands,
36689
- _this$plotLines,
36690
- _this2 = this;
36864
+ _this$plotLines;
36691
36865
 
36692
36866
  var ctx = this.ctx;
36693
36867
  var options = this.options;
@@ -36751,11 +36925,16 @@ var scale_Scale = /*#__PURE__*/function () {
36751
36925
  var labelText;
36752
36926
 
36753
36927
  for (var ix = 0; ix <= steps; ix++) {
36928
+ var _this$options, _this$options$selectL, _this$options2, _this$options2$select, _selectLabelInfo$data;
36929
+
36754
36930
  ctx.beginPath();
36755
36931
  ticks[ix] = axisMin + ix * stepValue;
36756
36932
  labelCenter = Math.round(startPoint + labelGap * ix);
36757
36933
  linePosition = labelCenter + aliasPixel;
36758
36934
  labelText = this.getLabelFormat(Math.min(axisMax, ticks[ix]));
36935
+ 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) {
36936
+ return _this2.getLabelFormat(Math.min(axisMax, t));
36937
+ }).includes(labelText));
36759
36938
  var labelColor = this.labelStyle.color;
36760
36939
  var defaultOpacity = 1;
36761
36940
 
@@ -36763,16 +36942,16 @@ var scale_Scale = /*#__PURE__*/function () {
36763
36942
  defaultOpacity = helpers_util.getOpacity(labelColor);
36764
36943
  }
36765
36944
 
36766
- ctx.fillStyle = helpers_util.colorStringToRgba(labelColor, defaultOpacity);
36945
+ ctx.fillStyle = helpers_util.colorStringToRgba(labelColor, isBlurredLabel ? 0.1 : defaultOpacity);
36767
36946
  var labelPoint = void 0;
36768
36947
 
36769
36948
  if (this.type === 'x') {
36770
- var _options$selectItem, _this$options;
36949
+ var _options$selectItem, _this$options3;
36771
36950
 
36772
36951
  labelPoint = this.position === 'top' ? offsetPoint - 10 : offsetPoint + 10;
36773
36952
  ctx.fillText(labelText, labelCenter, labelPoint);
36774
36953
 
36775
- 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)) {
36954
+ 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)) {
36776
36955
  var selectedLabel = this.getLabelFormat(Math.min(axisMax, hitInfo.label + 0 * stepValue));
36777
36956
 
36778
36957
  if (selectedLabel === labelText) {
@@ -38335,9 +38514,6 @@ var plugins_title_modules = {
38335
38514
  }
38336
38515
  };
38337
38516
  /* harmony default export */ var plugins_title = (plugins_title_modules);
38338
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.values.js
38339
- var es_object_values = __webpack_require__("07ac");
38340
-
38341
38517
  // CONCATENATED MODULE: ./src/components/chart/plugins/plugins.legend.js
38342
38518
 
38343
38519
 
@@ -38548,6 +38724,8 @@ var plugins_legend_modules = {
38548
38724
 
38549
38725
 
38550
38726
  this.onLegendBoxOver = function (e) {
38727
+ var _this3$defaultSelectI, _this3$defaultSelectI2;
38728
+
38551
38729
  var type = e.target.dataset.type;
38552
38730
  var targetDOM;
38553
38731
 
@@ -38561,8 +38739,10 @@ var plugins_legend_modules = {
38561
38739
 
38562
38740
  var nameDOM = targetDOM.getElementsByClassName('ev-chart-legend-name')[0];
38563
38741
  var targetId = nameDOM.series.sId;
38742
+ var selectSeriesOption = _this3.options.selectSeries;
38743
+ 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 : [];
38564
38744
  Object.values(_this3.seriesList).forEach(function (series) {
38565
- series.state = series.sId === targetId ? 'highlight' : 'downplay';
38745
+ series.state = series.sId === targetId || selectSeriesOption.use && selectedList.includes(targetId) ? 'highlight' : 'downplay';
38566
38746
  });
38567
38747
 
38568
38748
  _this3.update({
@@ -38584,8 +38764,16 @@ var plugins_legend_modules = {
38584
38764
 
38585
38765
 
38586
38766
  this.onLegendBoxLeave = function () {
38767
+ var _this3$defaultSelectI3, _this3$defaultSelectI4;
38768
+
38769
+ var selectSeriesOption = _this3.options.selectSeries;
38770
+ 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 : [];
38587
38771
  Object.values(_this3.seriesList).forEach(function (series) {
38588
- series.state = 'normal';
38772
+ if (selectSeriesOption.use && selectedList.length) {
38773
+ series.state = selectedList.includes(series.sId) ? 'highlight' : 'downplay';
38774
+ } else {
38775
+ series.state = 'normal';
38776
+ }
38589
38777
  });
38590
38778
 
38591
38779
  _this3.update({
@@ -39237,9 +39425,6 @@ var plugins_legend_modules = {
39237
39425
  }
39238
39426
  };
39239
39427
  /* harmony default export */ var plugins_legend = (plugins_legend_modules);
39240
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.entries.js
39241
- var es_object_entries = __webpack_require__("4fad");
39242
-
39243
39428
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.from-entries.js
39244
39429
  var es_object_from_entries = __webpack_require__("c1f9");
39245
39430
 
@@ -39259,6 +39444,9 @@ var es_object_from_entries = __webpack_require__("c1f9");
39259
39444
 
39260
39445
 
39261
39446
 
39447
+
39448
+
39449
+
39262
39450
  var plugins_interaction_modules = {
39263
39451
  /**
39264
39452
  * Hide legend components by manipulating css
@@ -39438,18 +39626,28 @@ var plugins_interaction_modules = {
39438
39626
  args.seriesId = hitInfo.sId;
39439
39627
  args.dataIndex = hitInfo.maxIndex;
39440
39628
  args.acc = hitInfo.acc;
39441
- }
39442
-
39443
- if (_this.options.selectLabel.use) {
39629
+ } else if (_this.options.selectLabel.use) {
39444
39630
  var _offset = _this.getMousePosition(e);
39445
39631
 
39446
39632
  var clickedLabelInfo = _this.getLabelInfoByPosition(_offset);
39447
39633
 
39448
39634
  var selected = _this.selectLabel(clickedLabelInfo.labelIndex);
39449
39635
 
39450
- _this.renderWithSelectLabel(selected.dataIndex);
39636
+ _this.renderWithSelected(selected.dataIndex);
39637
+
39638
+ args.selected = lodash_es_cloneDeep(_this.defaultSelectInfo);
39639
+ } else if (_this.options.selectSeries.use) {
39640
+ var _offset2 = _this.getMousePosition(e);
39641
+
39642
+ var _hitInfo = _this.getSeriesIdByPosition(_offset2);
39451
39643
 
39452
- args.selected = lodash_es_cloneDeep(_this.defaultSelectLabelInfo);
39644
+ if (_hitInfo.sId !== null) {
39645
+ var _selected = _this.selectSeries(_hitInfo.sId);
39646
+
39647
+ _this.renderWithSelected(_selected.seriesId);
39648
+ }
39649
+
39650
+ args.selected = lodash_es_cloneDeep(_this.defaultSelectInfo);
39453
39651
  }
39454
39652
 
39455
39653
  if (typeof _this.listeners.click === 'function') {
@@ -39777,34 +39975,38 @@ var plugins_interaction_modules = {
39777
39975
  },
39778
39976
 
39779
39977
  /**
39780
- * render after select label by index list
39978
+ * render after selected label or selected series
39781
39979
  * @param indexList {array} '[0, 1 ...]'
39782
39980
  */
39783
- renderWithSelectLabel: function renderWithSelectLabel(indexList) {
39784
- this.defaultSelectLabelInfo.dataIndex = indexList;
39785
- this.initSelectedLabelInfo();
39981
+ renderWithSelected: function renderWithSelected(list) {
39982
+ if (this.options.selectLabel.use) {
39983
+ this.defaultSelectInfo.dataIndex = list;
39984
+ } else if (this.options.selectSeries.use) {
39985
+ this.defaultSelectInfo.seriesId = list;
39986
+ }
39987
+
39988
+ this.initSelectedInfo();
39786
39989
  this.render();
39787
39990
  },
39788
39991
 
39789
39992
  /**
39790
- * init defaultSelectLabelInfo object.
39791
- * (set each series data and label text)
39993
+ * init defaultSelectInfo object.
39994
+ * - at selectLabel using: set each series data and label text
39995
+ * - at selectSeries using: set series state
39792
39996
  */
39793
- initSelectedLabelInfo: function initSelectedLabelInfo() {
39997
+ initSelectedInfo: function initSelectedInfo() {
39794
39998
  var _this3 = this;
39795
39999
 
39796
- var _this$options$selectL = this.options.selectLabel,
39797
- use = _this$options$selectL.use,
39798
- limit = _this$options$selectL.limit;
40000
+ if (this.options.selectLabel.use) {
40001
+ var limit = this.options.selectLabel.limit;
39799
40002
 
39800
- if (use) {
39801
- if (!this.defaultSelectLabelInfo) {
39802
- this.defaultSelectLabelInfo = {
40003
+ if (!this.defaultSelectInfo) {
40004
+ this.defaultSelectInfo = {
39803
40005
  dataIndex: []
39804
40006
  };
39805
40007
  }
39806
40008
 
39807
- var infoObj = this.defaultSelectLabelInfo;
40009
+ var infoObj = this.defaultSelectInfo;
39808
40010
  infoObj.dataIndex.splice(limit);
39809
40011
  infoObj.label = infoObj.dataIndex.map(function (i) {
39810
40012
  return _this3.data.labels[i];
@@ -39819,6 +40021,23 @@ var plugins_interaction_modules = {
39819
40021
  return [sId, data[labelIdx]];
39820
40022
  }));
39821
40023
  });
40024
+ } else if (this.options.selectSeries.use) {
40025
+ if (!this.defaultSelectInfo) {
40026
+ this.defaultSelectInfo = {
40027
+ seriesId: []
40028
+ };
40029
+ }
40030
+
40031
+ var selectedList = this.defaultSelectInfo.seriesId;
40032
+ Object.values(this.seriesList).forEach(function (series) {
40033
+ if (!selectedList.length) {
40034
+ series.state = 'normal';
40035
+ } else if (selectedList.includes(series.sId)) {
40036
+ series.state = 'highlight';
40037
+ } else {
40038
+ series.state = 'downplay';
40039
+ }
40040
+ });
39822
40041
  }
39823
40042
  },
39824
40043
 
@@ -39828,10 +40047,10 @@ var plugins_interaction_modules = {
39828
40047
  * @param labelIndex {array} '[0, 1 ...]'
39829
40048
  */
39830
40049
  selectLabel: function selectLabel(labelIndex) {
39831
- var _this$options$selectL2, _this$options5, _this$defaultSelectLa;
40050
+ var _this$options$selectL, _this$options5, _this$defaultSelectIn;
39832
40051
 
39833
- 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 : {};
39834
- var before = (_this$defaultSelectLa = this.defaultSelectLabelInfo) !== null && _this$defaultSelectLa !== void 0 ? _this$defaultSelectLa : {
40052
+ 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 : {};
40053
+ var before = (_this$defaultSelectIn = this.defaultSelectInfo) !== null && _this$defaultSelectIn !== void 0 ? _this$defaultSelectIn : {
39835
40054
  dataIndex: []
39836
40055
  };
39837
40056
  var after = lodash_es_cloneDeep(before);
@@ -39853,6 +40072,32 @@ var plugins_interaction_modules = {
39853
40072
 
39854
40073
  return after;
39855
40074
  },
40075
+ selectSeries: function selectSeries(seriesId) {
40076
+ var _this$options$selectS, _this$options6, _this$defaultSelectIn2;
40077
+
40078
+ 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 : {};
40079
+ var before = (_this$defaultSelectIn2 = this.defaultSelectInfo) !== null && _this$defaultSelectIn2 !== void 0 ? _this$defaultSelectIn2 : {
40080
+ seriesId: []
40081
+ };
40082
+ var after = lodash_es_cloneDeep(before);
40083
+
40084
+ if (before.seriesId.includes(seriesId)) {
40085
+ var idx = before.seriesId.indexOf(seriesId);
40086
+ after.seriesId.splice(idx, 1);
40087
+ } else if (seriesId) {
40088
+ after.seriesId.push(seriesId);
40089
+
40090
+ if (option.limit > 0 && option.limit < after.seriesId.length) {
40091
+ if (option.useDeselectOverflow) {
40092
+ after.seriesId.splice(0, 1);
40093
+ } else {
40094
+ after.seriesId.pop();
40095
+ }
40096
+ }
40097
+ }
40098
+
40099
+ return after;
40100
+ },
39856
40101
 
39857
40102
  /**
39858
40103
  * Find items by series within a range
@@ -41211,10 +41456,10 @@ var element_tip_modules = {
41211
41456
  var opt = this.options;
41212
41457
  var isHorizontal = !!opt.horizontal;
41213
41458
  var labelTipOpt = opt.selectLabel;
41214
- var _this$defaultSelectLa = this.defaultSelectLabelInfo,
41215
- dataIndex = _this$defaultSelectLa.dataIndex,
41216
- data = _this$defaultSelectLa.data,
41217
- label = _this$defaultSelectLa.label;
41459
+ var _this$defaultSelectIn = this.defaultSelectInfo,
41460
+ dataIndex = _this$defaultSelectIn.dataIndex,
41461
+ data = _this$defaultSelectIn.data,
41462
+ label = _this$defaultSelectIn.label;
41218
41463
  var drawTip = false;
41219
41464
 
41220
41465
  if (dataIndex.length) {
@@ -41552,7 +41797,7 @@ var element_tip_modules = {
41552
41797
 
41553
41798
 
41554
41799
  var chart_core_EvChart = /*#__PURE__*/function () {
41555
- function EvChart(target, data, options, listeners, defaultSelectItemInfo, defaultSelectLabelInfo) {
41800
+ function EvChart(target, data, options, listeners, defaultSelectItemInfo, defaultSelectInfo) {
41556
41801
  var _this = this;
41557
41802
 
41558
41803
  _classCallCheck(this, EvChart);
@@ -41611,7 +41856,7 @@ var chart_core_EvChart = /*#__PURE__*/function () {
41611
41856
  count: 0
41612
41857
  };
41613
41858
  this.defaultSelectItemInfo = defaultSelectItemInfo;
41614
- this.defaultSelectLabelInfo = defaultSelectLabelInfo;
41859
+ this.defaultSelectInfo = defaultSelectInfo;
41615
41860
  }
41616
41861
  /**
41617
41862
  * Initialize chart object
@@ -41647,7 +41892,7 @@ var chart_core_EvChart = /*#__PURE__*/function () {
41647
41892
  this.axesY = this.createAxes('y', axesY);
41648
41893
  this.axesRange = this.getAxesRange();
41649
41894
  this.labelOffset = this.getLabelOffset();
41650
- this.initSelectedLabelInfo();
41895
+ this.initSelectedInfo();
41651
41896
  this.drawChart();
41652
41897
 
41653
41898
  if (tooltip.use) {
@@ -41720,7 +41965,8 @@ var chart_core_EvChart = /*#__PURE__*/function () {
41720
41965
  var _this$options2 = this.options,
41721
41966
  maxTip = _this$options2.maxTip,
41722
41967
  selectLabel = _this$options2.selectLabel,
41723
- selectItem = _this$options2.selectItem;
41968
+ selectItem = _this$options2.selectItem,
41969
+ selectSeries = _this$options2.selectSeries;
41724
41970
  var opt = {
41725
41971
  ctx: this.bufferCtx,
41726
41972
  chartRect: this.chartRect,
@@ -41732,7 +41978,11 @@ var chart_core_EvChart = /*#__PURE__*/function () {
41732
41978
  },
41733
41979
  selectLabel: {
41734
41980
  option: selectLabel,
41735
- selected: this.defaultSelectLabelInfo
41981
+ selected: this.defaultSelectInfo
41982
+ },
41983
+ selectSeries: {
41984
+ option: selectSeries,
41985
+ selected: this.defaultSelectInfo
41736
41986
  }
41737
41987
  };
41738
41988
  var showIndex = 0;
@@ -41941,10 +42191,10 @@ var chart_core_EvChart = /*#__PURE__*/function () {
41941
42191
  var _this4 = this;
41942
42192
 
41943
42193
  this.axesX.forEach(function (axis, index) {
41944
- axis.draw(_this4.chartRect, _this4.labelOffset, _this4.axesSteps.x[index], hitInfo, _this4.defaultSelectLabelInfo);
42194
+ axis.draw(_this4.chartRect, _this4.labelOffset, _this4.axesSteps.x[index], hitInfo, _this4.defaultSelectInfo);
41945
42195
  });
41946
42196
  this.axesY.forEach(function (axis, index) {
41947
- axis.draw(_this4.chartRect, _this4.labelOffset, _this4.axesSteps.y[index], hitInfo, _this4.defaultSelectLabelInfo);
42197
+ axis.draw(_this4.chartRect, _this4.labelOffset, _this4.axesSteps.y[index], hitInfo, _this4.defaultSelectInfo);
41948
42198
  });
41949
42199
  }
41950
42200
  /**
@@ -42292,7 +42542,7 @@ var chart_core_EvChart = /*#__PURE__*/function () {
42292
42542
  this.axesY = this.createAxes('y', options.axesY);
42293
42543
  this.axesRange = this.getAxesRange();
42294
42544
  this.labelOffset = this.getLabelOffset();
42295
- this.initSelectedLabelInfo();
42545
+ this.initSelectedInfo();
42296
42546
  this.render(updateInfo === null || updateInfo === void 0 ? void 0 : updateInfo.hitInfo);
42297
42547
  var isDragMove = this.dragInfo && this.drawSelectionArea;
42298
42548
 
@@ -42563,6 +42813,11 @@ var DEFAULT_OPTIONS = {
42563
42813
  useApproximateValue: false,
42564
42814
  tipBackground: '#000000'
42565
42815
  },
42816
+ selectSeries: {
42817
+ use: false,
42818
+ limit: 1,
42819
+ useDeselectOverflow: false
42820
+ },
42566
42821
  dragSelection: {
42567
42822
  use: false,
42568
42823
  keepDisplay: true,
@@ -42617,9 +42872,12 @@ var chart_uses_useModel = function useModel() {
42617
42872
 
42618
42873
  var selectItemInfo = lodash_es_cloneDeep(props.selectedItem);
42619
42874
  var selectLabelInfo = lodash_es_cloneDeep(props.selectedLabel);
42875
+ var selectSeriesInfo = lodash_es_cloneDeep(props.selectedSeries);
42620
42876
  var eventListeners = {
42621
42877
  click: function () {
42622
42878
  var _click = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(e) {
42879
+ var _e$selected, _e$selected2;
42880
+
42623
42881
  return regeneratorRuntime.wrap(function _callee$(_context) {
42624
42882
  while (1) {
42625
42883
  switch (_context.prev = _context.next) {
@@ -42635,15 +42893,21 @@ var chart_uses_useModel = function useModel() {
42635
42893
  });
42636
42894
  }
42637
42895
 
42638
- if (e.selected) {
42896
+ if ((_e$selected = e.selected) !== null && _e$selected !== void 0 && _e$selected.dataIndex) {
42639
42897
  emit('update:selectedLabel', {
42640
42898
  dataIndex: e.selected.dataIndex
42641
42899
  });
42642
42900
  }
42643
42901
 
42902
+ if ((_e$selected2 = e.selected) !== null && _e$selected2 !== void 0 && _e$selected2.seriesId) {
42903
+ emit('update:selectedSeries', {
42904
+ seriesId: e.selected.seriesId
42905
+ });
42906
+ }
42907
+
42644
42908
  emit('click', e);
42645
42909
 
42646
- case 5:
42910
+ case 6:
42647
42911
  case "end":
42648
42912
  return _context.stop();
42649
42913
  }
@@ -42714,6 +42978,7 @@ var chart_uses_useModel = function useModel() {
42714
42978
  eventListeners: eventListeners,
42715
42979
  selectItemInfo: selectItemInfo,
42716
42980
  selectLabelInfo: selectLabelInfo,
42981
+ selectSeriesInfo: selectSeriesInfo,
42717
42982
  getNormalizedData: getNormalizedData,
42718
42983
  getNormalizedOptions: getNormalizedOptions
42719
42984
  };
@@ -42762,6 +43027,10 @@ var uses_useWrapper = function useWrapper(options) {
42762
43027
  type: Object,
42763
43028
  default: null
42764
43029
  },
43030
+ selectedSeries: {
43031
+ type: Object,
43032
+ default: null
43033
+ },
42765
43034
  options: {
42766
43035
  type: Object,
42767
43036
  default: function _default() {
@@ -42779,7 +43048,7 @@ var uses_useWrapper = function useWrapper(options) {
42779
43048
  default: 0
42780
43049
  }
42781
43050
  },
42782
- emits: ['click', 'dbl-click', 'drag-select', 'update:selectedItem', 'update:selectedLabel'],
43051
+ emits: ['click', 'dbl-click', 'drag-select', 'update:selectedItem', 'update:selectedLabel', 'update:selectedSeries'],
42783
43052
  setup: function setup(props) {
42784
43053
  var evChart = {};
42785
43054
  var isInit = false;
@@ -42788,6 +43057,7 @@ var uses_useWrapper = function useWrapper(options) {
42788
43057
  eventListeners = _useModel.eventListeners,
42789
43058
  selectItemInfo = _useModel.selectItemInfo,
42790
43059
  selectLabelInfo = _useModel.selectLabelInfo,
43060
+ selectSeriesInfo = _useModel.selectSeriesInfo,
42791
43061
  getNormalizedData = _useModel.getNormalizedData,
42792
43062
  getNormalizedOptions = _useModel.getNormalizedOptions;
42793
43063
 
@@ -42799,7 +43069,15 @@ var uses_useWrapper = function useWrapper(options) {
42799
43069
  wrapperStyle = _useWrapper.wrapperStyle;
42800
43070
 
42801
43071
  var createChart = function createChart() {
42802
- evChart = new chart_core(wrapper.value, normalizedData, normalizedOptions, eventListeners, selectItemInfo, selectLabelInfo);
43072
+ var selected;
43073
+
43074
+ if (normalizedOptions.selectLabel.use) {
43075
+ selected = selectLabelInfo;
43076
+ } else if (normalizedOptions.selectSeries.use) {
43077
+ selected = selectSeriesInfo;
43078
+ }
43079
+
43080
+ evChart = new chart_core(wrapper.value, normalizedData, normalizedOptions, eventListeners, selectItemInfo, selected);
42803
43081
  };
42804
43082
 
42805
43083
  var drawChart = function drawChart() {
@@ -42877,13 +43155,25 @@ var uses_useWrapper = function useWrapper(options) {
42877
43155
  return props.selectedLabel;
42878
43156
  }, function (newValue) {
42879
43157
  if (newValue.dataIndex) {
42880
- evChart.renderWithSelectLabel(newValue.dataIndex);
43158
+ evChart.renderWithSelected(newValue.dataIndex);
42881
43159
  }
42882
43160
  }, {
42883
43161
  deep: true
42884
43162
  });
42885
43163
 
42886
43164
  case 12:
43165
+ _context.next = 14;
43166
+ return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
43167
+ return props.selectedSeries;
43168
+ }, function (newValue) {
43169
+ if (newValue.seriesId) {
43170
+ evChart.renderWithSelected(newValue.seriesId);
43171
+ }
43172
+ }, {
43173
+ deep: true
43174
+ });
43175
+
43176
+ case 14:
42887
43177
  case "end":
42888
43178
  return _context.stop();
42889
43179
  }
@@ -42926,8 +43216,8 @@ var uses_useWrapper = function useWrapper(options) {
42926
43216
  });
42927
43217
  // CONCATENATED MODULE: ./src/components/chart/Chart.vue?vue&type=script&lang=js
42928
43218
 
42929
- // EXTERNAL MODULE: ./src/components/chart/Chart.vue?vue&type=style&index=0&id=53face60&lang=scss
42930
- var Chartvue_type_style_index_0_id_53face60_lang_scss = __webpack_require__("96f9");
43219
+ // EXTERNAL MODULE: ./src/components/chart/Chart.vue?vue&type=style&index=0&id=334a904a&lang=scss
43220
+ var Chartvue_type_style_index_0_id_334a904a_lang_scss = __webpack_require__("c5ab");
42931
43221
 
42932
43222
  // CONCATENATED MODULE: ./src/components/chart/Chart.vue
42933
43223
 
@@ -42935,7 +43225,7 @@ var Chartvue_type_style_index_0_id_53face60_lang_scss = __webpack_require__("96f
42935
43225
 
42936
43226
 
42937
43227
 
42938
- Chartvue_type_script_lang_js.render = Chartvue_type_template_id_53face60_render
43228
+ Chartvue_type_script_lang_js.render = Chartvue_type_template_id_334a904a_render
42939
43229
 
42940
43230
  /* harmony default export */ var Chart = (Chartvue_type_script_lang_js);
42941
43231
  // CONCATENATED MODULE: ./src/components/chart/index.js
@@ -45754,6 +46044,20 @@ module.exports = function (it) {
45754
46044
  };
45755
46045
 
45756
46046
 
46047
+ /***/ }),
46048
+
46049
+ /***/ "fdb5":
46050
+ /***/ (function(module, exports, __webpack_require__) {
46051
+
46052
+ // Imports
46053
+ var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
46054
+ exports = ___CSS_LOADER_API_IMPORT___(false);
46055
+ // Module
46056
+ 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}", ""]);
46057
+ // Exports
46058
+ module.exports = exports;
46059
+
46060
+
45757
46061
  /***/ }),
45758
46062
 
45759
46063
  /***/ "fdbc":