evui 3.1.43 → 3.1.47
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.common.js +90 -70
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +90 -70
- package/dist/evui.umd.js.map +1 -1
- package/dist/evui.umd.min.js +1 -1
- package/dist/evui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/chart/Chart.vue +1 -1
- package/src/components/chart/chart.core.js +1 -1
- package/src/components/chart/element/element.bar.js +4 -2
- package/src/components/chart/helpers/helpers.canvas.js +3 -3
- package/src/components/chart/model/model.store.js +18 -7
- package/src/components/datePicker/uses.js +13 -7
package/dist/evui.umd.js
CHANGED
|
@@ -4883,13 +4883,16 @@ module.exports = function (it) {
|
|
|
4883
4883
|
|
|
4884
4884
|
/***/ }),
|
|
4885
4885
|
|
|
4886
|
-
/***/ "
|
|
4887
|
-
/***/ (function(module,
|
|
4886
|
+
/***/ "36b6":
|
|
4887
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4888
4888
|
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4889
|
+
// Imports
|
|
4890
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
4891
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
4892
|
+
// Module
|
|
4893
|
+
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}", ""]);
|
|
4894
|
+
// Exports
|
|
4895
|
+
module.exports = exports;
|
|
4893
4896
|
|
|
4894
4897
|
|
|
4895
4898
|
/***/ }),
|
|
@@ -6092,21 +6095,6 @@ module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
|
6092
6095
|
};
|
|
6093
6096
|
|
|
6094
6097
|
|
|
6095
|
-
/***/ }),
|
|
6096
|
-
|
|
6097
|
-
/***/ "57a8":
|
|
6098
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6099
|
-
|
|
6100
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
6101
|
-
|
|
6102
|
-
// load the styles
|
|
6103
|
-
var content = __webpack_require__("bd7d");
|
|
6104
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
6105
|
-
if(content.locals) module.exports = content.locals;
|
|
6106
|
-
// add the styles to the DOM
|
|
6107
|
-
var add = __webpack_require__("499e").default
|
|
6108
|
-
var update = add("41700f82", content, true, {"sourceMap":false,"shadowMode":false});
|
|
6109
|
-
|
|
6110
6098
|
/***/ }),
|
|
6111
6099
|
|
|
6112
6100
|
/***/ "5899":
|
|
@@ -6694,6 +6682,17 @@ module.exports = function (originalArray, length) {
|
|
|
6694
6682
|
};
|
|
6695
6683
|
|
|
6696
6684
|
|
|
6685
|
+
/***/ }),
|
|
6686
|
+
|
|
6687
|
+
/***/ "6705":
|
|
6688
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6689
|
+
|
|
6690
|
+
"use strict";
|
|
6691
|
+
/* 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_6e6e2a6c_lang_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e665");
|
|
6692
|
+
/* 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_6e6e2a6c_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_6e6e2a6c_lang_scss__WEBPACK_IMPORTED_MODULE_0__);
|
|
6693
|
+
/* unused harmony reexport * */
|
|
6694
|
+
|
|
6695
|
+
|
|
6697
6696
|
/***/ }),
|
|
6698
6697
|
|
|
6699
6698
|
/***/ "67cc":
|
|
@@ -7815,7 +7814,7 @@ $({ target: 'Number', stat: true }, {
|
|
|
7815
7814
|
/***/ "9224":
|
|
7816
7815
|
/***/ (function(module) {
|
|
7817
7816
|
|
|
7818
|
-
module.exports = JSON.parse("{\"a\":\"3.1.
|
|
7817
|
+
module.exports = JSON.parse("{\"a\":\"3.1.47\"}");
|
|
7819
7818
|
|
|
7820
7819
|
/***/ }),
|
|
7821
7820
|
|
|
@@ -10171,20 +10170,6 @@ module.exports = !fails(function () {
|
|
|
10171
10170
|
});
|
|
10172
10171
|
|
|
10173
10172
|
|
|
10174
|
-
/***/ }),
|
|
10175
|
-
|
|
10176
|
-
/***/ "bd7d":
|
|
10177
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
10178
|
-
|
|
10179
|
-
// Imports
|
|
10180
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
10181
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
10182
|
-
// Module
|
|
10183
|
-
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}", ""]);
|
|
10184
|
-
// Exports
|
|
10185
|
-
module.exports = exports;
|
|
10186
|
-
|
|
10187
|
-
|
|
10188
10173
|
/***/ }),
|
|
10189
10174
|
|
|
10190
10175
|
/***/ "c04e":
|
|
@@ -11598,6 +11583,21 @@ var update = add("285ed61d", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
11598
11583
|
|
|
11599
11584
|
/***/ }),
|
|
11600
11585
|
|
|
11586
|
+
/***/ "e665":
|
|
11587
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
11588
|
+
|
|
11589
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
11590
|
+
|
|
11591
|
+
// load the styles
|
|
11592
|
+
var content = __webpack_require__("36b6");
|
|
11593
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
11594
|
+
if(content.locals) module.exports = content.locals;
|
|
11595
|
+
// add the styles to the DOM
|
|
11596
|
+
var add = __webpack_require__("499e").default
|
|
11597
|
+
var update = add("e19e9116", content, true, {"sourceMap":false,"shadowMode":false});
|
|
11598
|
+
|
|
11599
|
+
/***/ }),
|
|
11600
|
+
|
|
11601
11601
|
/***/ "e667":
|
|
11602
11602
|
/***/ (function(module, exports) {
|
|
11603
11603
|
|
|
@@ -21571,6 +21571,8 @@ var uses_useShortcuts = function useShortcuts(param) {
|
|
|
21571
21571
|
|
|
21572
21572
|
|
|
21573
21573
|
var clickShortcut = function clickShortcut(targetKey) {
|
|
21574
|
+
var _props$options3;
|
|
21575
|
+
|
|
21574
21576
|
var isRange = ['dateRange', 'dateTimeRange'].includes(props.mode);
|
|
21575
21577
|
var targetShortcut = usedShortcuts.find(function (_ref7) {
|
|
21576
21578
|
var key = _ref7.key;
|
|
@@ -21582,6 +21584,7 @@ var uses_useShortcuts = function useShortcuts(param) {
|
|
|
21582
21584
|
}
|
|
21583
21585
|
|
|
21584
21586
|
var shortcutDate = targetShortcut.shortcutDate;
|
|
21587
|
+
var timeFormat = (_props$options3 = props.options) === null || _props$options3 === void 0 ? void 0 : _props$options3.timeFormat;
|
|
21585
21588
|
|
|
21586
21589
|
if (isRange) {
|
|
21587
21590
|
var _shortcutDate3 = shortcutDate(),
|
|
@@ -21590,35 +21593,35 @@ var uses_useShortcuts = function useShortcuts(param) {
|
|
|
21590
21593
|
toDate = _shortcutDate4[1];
|
|
21591
21594
|
|
|
21592
21595
|
if (props.mode === 'dateTimeRange') {
|
|
21593
|
-
|
|
21594
|
-
|
|
21595
|
-
|
|
21596
|
-
|
|
21597
|
-
fromTimeFormat = _props$options$timeFo2[0],
|
|
21598
|
-
toTimeFormat = _props$options$timeFo2[1];
|
|
21596
|
+
if (timeFormat !== null && timeFormat !== void 0 && timeFormat.length) {
|
|
21597
|
+
var _timeFormat3 = _slicedToArray(timeFormat, 2),
|
|
21598
|
+
fromTimeFormat = _timeFormat3[0],
|
|
21599
|
+
toTimeFormat = _timeFormat3[1];
|
|
21599
21600
|
|
|
21600
|
-
|
|
21601
|
+
mv.value = [getChangedValueByTimeFormat(fromTimeFormat, formatDateTime(fromDate)), getChangedValueByTimeFormat(toTimeFormat, formatDateTime(toDate))];
|
|
21602
|
+
} else {
|
|
21603
|
+
mv.value = [formatDateTime(fromDate), formatDateTime(toDate)];
|
|
21604
|
+
}
|
|
21601
21605
|
} else {
|
|
21602
21606
|
mv.value = [formatDate(fromDate), formatDate(toDate)];
|
|
21603
21607
|
}
|
|
21604
21608
|
} else {
|
|
21605
|
-
var _props$options4;
|
|
21606
|
-
|
|
21607
21609
|
var sDate = shortcutDate();
|
|
21608
|
-
mv.value = props.mode === 'dateTime' ? getChangedValueByTimeFormat(
|
|
21610
|
+
mv.value = props.mode === 'dateTime' ? getChangedValueByTimeFormat(timeFormat, formatDateTime(sDate)) : formatDate(sDate);
|
|
21609
21611
|
}
|
|
21610
21612
|
|
|
21611
21613
|
clearShortcuts();
|
|
21614
|
+
activeShortcut(targetKey);
|
|
21612
21615
|
};
|
|
21613
21616
|
|
|
21614
21617
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
21615
21618
|
return props.modelValue;
|
|
21616
21619
|
}, function (curr) {
|
|
21617
|
-
var _props$
|
|
21620
|
+
var _props$options4, _props$options5;
|
|
21618
21621
|
|
|
21619
21622
|
setActiveShortcut();
|
|
21620
21623
|
|
|
21621
|
-
if (props.mode === 'dateMulti' && (props === null || props === void 0 ? void 0 : (_props$
|
|
21624
|
+
if (props.mode === 'dateMulti' && (props === null || props === void 0 ? void 0 : (_props$options4 = props.options) === null || _props$options4 === void 0 ? void 0 : _props$options4.multiType) === 'date' && (props === null || props === void 0 ? void 0 : (_props$options5 = props.options) === null || _props$options5 === void 0 ? void 0 : _props$options5.multiDayLimit) > curr.length) {
|
|
21622
21625
|
return;
|
|
21623
21626
|
} else if (props.mode === 'dateTime' || props.mode === 'dateTimeRange') {
|
|
21624
21627
|
currentValue.value = curr;
|
|
@@ -29256,9 +29259,9 @@ Grid.install = function (app) {
|
|
|
29256
29259
|
};
|
|
29257
29260
|
|
|
29258
29261
|
/* harmony default export */ var grid = (Grid);
|
|
29259
|
-
// 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=
|
|
29262
|
+
// 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=6e6e2a6c
|
|
29260
29263
|
|
|
29261
|
-
function
|
|
29264
|
+
function Chartvue_type_template_id_6e6e2a6c_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
29262
29265
|
var _directive_resize = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveDirective"])("resize");
|
|
29263
29266
|
|
|
29264
29267
|
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", {
|
|
@@ -29267,7 +29270,7 @@ function Chartvue_type_template_id_195b5cf0_render(_ctx, _cache, $props, $setup,
|
|
|
29267
29270
|
class: "ev-chart"
|
|
29268
29271
|
}, null, 4)), [[_directive_resize, $setup.onResize]]);
|
|
29269
29272
|
}
|
|
29270
|
-
// CONCATENATED MODULE: ./src/components/chart/Chart.vue?vue&type=template&id=
|
|
29273
|
+
// CONCATENATED MODULE: ./src/components/chart/Chart.vue?vue&type=template&id=6e6e2a6c
|
|
29271
29274
|
|
|
29272
29275
|
// CONCATENATED MODULE: ./node_modules/lodash-es/_arrayEach.js
|
|
29273
29276
|
/**
|
|
@@ -30612,7 +30615,7 @@ var modules = {
|
|
|
30612
30615
|
|
|
30613
30616
|
if (series && sData) {
|
|
30614
30617
|
if (series.isExistGrp && series.stackIndex) {
|
|
30615
|
-
series.data = _this.addSeriesStackDS(sData, label, series
|
|
30618
|
+
series.data = _this.addSeriesStackDS(sData, label, series);
|
|
30616
30619
|
} else {
|
|
30617
30620
|
series.data = _this.addSeriesDS(sData, label);
|
|
30618
30621
|
}
|
|
@@ -30832,15 +30835,15 @@ var modules = {
|
|
|
30832
30835
|
* Take data and label to create stack data for each series
|
|
30833
30836
|
* @param {object} data chart series info
|
|
30834
30837
|
* @param {object} label chart label
|
|
30835
|
-
* @param {
|
|
30836
|
-
* @param {number} sIdx series ordered index
|
|
30838
|
+
* @param {object} series series Information
|
|
30837
30839
|
*
|
|
30838
30840
|
* @returns {array} data for each series
|
|
30839
30841
|
*/
|
|
30840
|
-
addSeriesStackDS: function addSeriesStackDS(data, label,
|
|
30842
|
+
addSeriesStackDS: function addSeriesStackDS(data, label, series) {
|
|
30841
30843
|
var _this3 = this;
|
|
30842
30844
|
|
|
30843
|
-
var
|
|
30845
|
+
var bsIds = series.bsIds; // stacked base data ID List
|
|
30846
|
+
|
|
30844
30847
|
var isHorizontal = this.options.horizontal;
|
|
30845
30848
|
var sdata = [];
|
|
30846
30849
|
|
|
@@ -30863,6 +30866,10 @@ var modules = {
|
|
|
30863
30866
|
};
|
|
30864
30867
|
|
|
30865
30868
|
data.forEach(function (curr, index) {
|
|
30869
|
+
var stackIndex = series.stackIndex,
|
|
30870
|
+
isShowSeries = series.show;
|
|
30871
|
+
var isTop = true; // is top position on stack (Stacked or not, default is true)
|
|
30872
|
+
|
|
30866
30873
|
var baseIndex = bsIds.length - 1 < 0 ? 0 : bsIds.length - 1;
|
|
30867
30874
|
var bdata = getBaseDataPosition(baseIndex, index); // base(previous) series data
|
|
30868
30875
|
|
|
@@ -30882,7 +30889,7 @@ var modules = {
|
|
|
30882
30889
|
|
|
30883
30890
|
var oData = (_odata$value = (_odata = odata) === null || _odata === void 0 ? void 0 : _odata.value) !== null && _odata$value !== void 0 ? _odata$value : odata;
|
|
30884
30891
|
|
|
30885
|
-
if (
|
|
30892
|
+
if (stackIndex > 0) {
|
|
30886
30893
|
if (oData != null) {
|
|
30887
30894
|
gdata = bdata + oData;
|
|
30888
30895
|
} else {
|
|
@@ -30894,7 +30901,14 @@ var modules = {
|
|
|
30894
30901
|
gdata = oData;
|
|
30895
30902
|
}
|
|
30896
30903
|
|
|
30897
|
-
|
|
30904
|
+
if (gdata && isShowSeries) {
|
|
30905
|
+
for (var idx = baseIndex; idx > -1; idx--) {
|
|
30906
|
+
var prevSeriesData = _this3.seriesList[bsIds[idx]];
|
|
30907
|
+
prevSeriesData.data[index].isTop = false;
|
|
30908
|
+
}
|
|
30909
|
+
}
|
|
30910
|
+
|
|
30911
|
+
sdata.push(_this3.addData(gdata, ldata, odata, bdata, isTop));
|
|
30898
30912
|
}
|
|
30899
30913
|
});
|
|
30900
30914
|
return sdata;
|
|
@@ -30934,6 +30948,7 @@ var modules = {
|
|
|
30934
30948
|
* @param {object} ldata label data (x-axis value for vertical chart)
|
|
30935
30949
|
* @param {object} odata original data (without stacked value)
|
|
30936
30950
|
* @param {object} bdata base data (stacked value)
|
|
30951
|
+
* @param {boolean} isTop is top position on stack (Stacked or not, default is true)
|
|
30937
30952
|
* @returns {object} data for each graph point
|
|
30938
30953
|
*/
|
|
30939
30954
|
addData: function addData(gdata, ldata) {
|
|
@@ -30941,6 +30956,7 @@ var modules = {
|
|
|
30941
30956
|
|
|
30942
30957
|
var odata = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
30943
30958
|
var bdata = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
|
30959
|
+
var isTop = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
|
|
30944
30960
|
var data;
|
|
30945
30961
|
var gdataValue = (_gdata$value = gdata === null || gdata === void 0 ? void 0 : gdata.value) !== null && _gdata$value !== void 0 ? _gdata$value : gdata;
|
|
30946
30962
|
var odataValue = (_odata$value2 = odata === null || odata === void 0 ? void 0 : odata.value) !== null && _odata$value2 !== void 0 ? _odata$value2 : odata;
|
|
@@ -30967,6 +30983,7 @@ var modules = {
|
|
|
30967
30983
|
data.w = null;
|
|
30968
30984
|
data.h = null;
|
|
30969
30985
|
data.dataColor = dataColor || null;
|
|
30986
|
+
data.isTop = isTop;
|
|
30970
30987
|
return data;
|
|
30971
30988
|
},
|
|
30972
30989
|
|
|
@@ -32529,7 +32546,7 @@ var TIME_INTERVALS = {
|
|
|
32529
32546
|
calculateX: function calculateX(value, min, max, area) {
|
|
32530
32547
|
var startPoint = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
|
|
32531
32548
|
|
|
32532
|
-
if (value === null) {
|
|
32549
|
+
if (value === null || value === undefined) {
|
|
32533
32550
|
return null;
|
|
32534
32551
|
}
|
|
32535
32552
|
|
|
@@ -32554,7 +32571,7 @@ var TIME_INTERVALS = {
|
|
|
32554
32571
|
calculateSubX: function calculateSubX(value, min, max, area) {
|
|
32555
32572
|
var startPoint = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
|
|
32556
32573
|
|
|
32557
|
-
if (value === null) {
|
|
32574
|
+
if (value === null || value === undefined) {
|
|
32558
32575
|
return null;
|
|
32559
32576
|
}
|
|
32560
32577
|
|
|
@@ -32576,7 +32593,7 @@ var TIME_INTERVALS = {
|
|
|
32576
32593
|
var startPoint = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
|
|
32577
32594
|
var calcY;
|
|
32578
32595
|
|
|
32579
|
-
if (value === null) {
|
|
32596
|
+
if (value === null || value === undefined) {
|
|
32580
32597
|
return null;
|
|
32581
32598
|
}
|
|
32582
32599
|
|
|
@@ -33502,7 +33519,8 @@ var element_bar_Bar = /*#__PURE__*/function () {
|
|
|
33502
33519
|
y: y,
|
|
33503
33520
|
w: w,
|
|
33504
33521
|
h: h
|
|
33505
|
-
}
|
|
33522
|
+
},
|
|
33523
|
+
isTop: item.isTop
|
|
33506
33524
|
});
|
|
33507
33525
|
|
|
33508
33526
|
if (showValue.use) {
|
|
@@ -33574,7 +33592,8 @@ var element_bar_Bar = /*#__PURE__*/function () {
|
|
|
33574
33592
|
y: y,
|
|
33575
33593
|
w: w,
|
|
33576
33594
|
h: this.isHorizontal ? -h : h
|
|
33577
|
-
}
|
|
33595
|
+
},
|
|
33596
|
+
isTop: item.data.isTop
|
|
33578
33597
|
});
|
|
33579
33598
|
|
|
33580
33599
|
if (showValue.use) {
|
|
@@ -33808,7 +33827,8 @@ var element_bar_Bar = /*#__PURE__*/function () {
|
|
|
33808
33827
|
key: "drawBar",
|
|
33809
33828
|
value: function drawBar(_ref2) {
|
|
33810
33829
|
var ctx = _ref2.ctx,
|
|
33811
|
-
positions = _ref2.positions
|
|
33830
|
+
positions = _ref2.positions,
|
|
33831
|
+
isTop = _ref2.isTop;
|
|
33812
33832
|
var isHorizontal = this.isHorizontal;
|
|
33813
33833
|
var isStackBar = ('stackIndex' in this);
|
|
33814
33834
|
var isBorderRadius = this.borderRadius && this.borderRadius > 0;
|
|
@@ -33821,7 +33841,7 @@ var element_bar_Bar = /*#__PURE__*/function () {
|
|
|
33821
33841
|
return;
|
|
33822
33842
|
}
|
|
33823
33843
|
|
|
33824
|
-
if (isBorderRadius &&
|
|
33844
|
+
if (!isStackBar && isBorderRadius || isStackBar && isBorderRadius && isTop) {
|
|
33825
33845
|
try {
|
|
33826
33846
|
this.drawRoundedRect(ctx, positions);
|
|
33827
33847
|
} catch (e) {
|
|
@@ -39122,7 +39142,7 @@ var chart_core_EvChart = /*#__PURE__*/function () {
|
|
|
39122
39142
|
pos: null,
|
|
39123
39143
|
value: null
|
|
39124
39144
|
};
|
|
39125
|
-
this.createSeriesSet(series, options.type);
|
|
39145
|
+
this.createSeriesSet(series, options.type, options.horizontal);
|
|
39126
39146
|
|
|
39127
39147
|
if (this.legendDOM) {
|
|
39128
39148
|
this.resetLegend();
|
|
@@ -39641,7 +39661,7 @@ var uses_useWrapper = function useWrapper(options) {
|
|
|
39641
39661
|
return props.data;
|
|
39642
39662
|
}, function (chartData) {
|
|
39643
39663
|
var newData = getNormalizedData(chartData);
|
|
39644
|
-
var isUpdateSeries = !lodash_es_isEqual(newData
|
|
39664
|
+
var isUpdateSeries = !lodash_es_isEqual(newData, evChart.data);
|
|
39645
39665
|
evChart.data = lodash_es_cloneDeep(newData);
|
|
39646
39666
|
evChart.update({
|
|
39647
39667
|
updateSeries: isUpdateSeries,
|
|
@@ -39693,8 +39713,8 @@ var uses_useWrapper = function useWrapper(options) {
|
|
|
39693
39713
|
});
|
|
39694
39714
|
// CONCATENATED MODULE: ./src/components/chart/Chart.vue?vue&type=script&lang=js
|
|
39695
39715
|
|
|
39696
|
-
// EXTERNAL MODULE: ./src/components/chart/Chart.vue?vue&type=style&index=0&id=
|
|
39697
|
-
var
|
|
39716
|
+
// EXTERNAL MODULE: ./src/components/chart/Chart.vue?vue&type=style&index=0&id=6e6e2a6c&lang=scss
|
|
39717
|
+
var Chartvue_type_style_index_0_id_6e6e2a6c_lang_scss = __webpack_require__("6705");
|
|
39698
39718
|
|
|
39699
39719
|
// CONCATENATED MODULE: ./src/components/chart/Chart.vue
|
|
39700
39720
|
|
|
@@ -39702,7 +39722,7 @@ var Chartvue_type_style_index_0_id_195b5cf0_lang_scss = __webpack_require__("35c
|
|
|
39702
39722
|
|
|
39703
39723
|
|
|
39704
39724
|
|
|
39705
|
-
Chartvue_type_script_lang_js.render =
|
|
39725
|
+
Chartvue_type_script_lang_js.render = Chartvue_type_template_id_6e6e2a6c_render
|
|
39706
39726
|
|
|
39707
39727
|
/* harmony default export */ var Chart = (Chartvue_type_script_lang_js);
|
|
39708
39728
|
// CONCATENATED MODULE: ./src/components/chart/index.js
|