evui 3.3.19 → 3.3.20
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 +887 -155
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +887 -155
- 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.core.js +6 -0
- package/src/components/chart/element/element.heatmap.js +132 -61
- package/src/components/chart/helpers/helpers.constant.js +1 -0
- package/src/components/chart/model/model.series.js +3 -1
- package/src/components/chart/model/model.store.js +8 -4
- package/src/components/chart/plugins/plugins.legend.gradient.js +568 -0
- package/src/components/chart/plugins/plugins.legend.js +10 -9
- package/src/components/chart/plugins/plugins.tooltip.js +13 -2
- package/src/components/chart/style/chart.scss +91 -1
- package/src/components/chart/uses.js +3 -1
- package/src/components/treeGrid/TreeGrid.vue +1 -0
package/dist/evui.common.js
CHANGED
|
@@ -96,6 +96,21 @@ module.exports =
|
|
|
96
96
|
/* unused harmony reexport * */
|
|
97
97
|
|
|
98
98
|
|
|
99
|
+
/***/ }),
|
|
100
|
+
|
|
101
|
+
/***/ "009b":
|
|
102
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
103
|
+
|
|
104
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
105
|
+
|
|
106
|
+
// load the styles
|
|
107
|
+
var content = __webpack_require__("95d6");
|
|
108
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
109
|
+
if(content.locals) module.exports = content.locals;
|
|
110
|
+
// add the styles to the DOM
|
|
111
|
+
var add = __webpack_require__("499e").default
|
|
112
|
+
var update = add("550a9dee", content, true, {"sourceMap":false,"shadowMode":false});
|
|
113
|
+
|
|
99
114
|
/***/ }),
|
|
100
115
|
|
|
101
116
|
/***/ "00ee":
|
|
@@ -164,21 +179,6 @@ module.exports = function (fn, that, length) {
|
|
|
164
179
|
/* unused harmony reexport * */
|
|
165
180
|
|
|
166
181
|
|
|
167
|
-
/***/ }),
|
|
168
|
-
|
|
169
|
-
/***/ "044f":
|
|
170
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
171
|
-
|
|
172
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
173
|
-
|
|
174
|
-
// load the styles
|
|
175
|
-
var content = __webpack_require__("4890");
|
|
176
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
177
|
-
if(content.locals) module.exports = content.locals;
|
|
178
|
-
// add the styles to the DOM
|
|
179
|
-
var add = __webpack_require__("499e").default
|
|
180
|
-
var update = add("1fe9e43e", content, true, {"sourceMap":false,"shadowMode":false});
|
|
181
|
-
|
|
182
182
|
/***/ }),
|
|
183
183
|
|
|
184
184
|
/***/ "0538":
|
|
@@ -5360,20 +5360,6 @@ module.exports = function (O, defaultConstructor) {
|
|
|
5360
5360
|
};
|
|
5361
5361
|
|
|
5362
5362
|
|
|
5363
|
-
/***/ }),
|
|
5364
|
-
|
|
5365
|
-
/***/ "4890":
|
|
5366
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
5367
|
-
|
|
5368
|
-
// Imports
|
|
5369
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
5370
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
5371
|
-
// Module
|
|
5372
|
-
exports.push([module.i, ".table[data-v-1aab6f12]{position:relative;width:100%;height:100%;padding-top:33px}.table.non-header[data-v-1aab6f12]{padding-top:0}.table .table-header[data-v-1aab6f12]{overflow:hidden;position:absolute;top:0;width:100%;height:33px;border-top:2px solid #7f7f7f;border-bottom:1px solid #cfcfcf}.dark .table .table-header[data-v-1aab6f12]{border-top:2px solid;border-bottom:1px solid}.column-list[data-v-1aab6f12]{width:100%;white-space:nowrap;list-style-type:none}.column[data-v-1aab6f12],.column-list[data-v-1aab6f12]{position:relative;height:100%}.column[data-v-1aab6f12]{display:inline-flex;padding:0 10px;line-height:30px;justify-content:center;align-items:center;text-align:center;vertical-align:top;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-right:1px solid #cfcfcf}.dark .column[data-v-1aab6f12]{border-right:1px solid}.column[data-v-1aab6f12]:last-child{border-right:0;margin-right:20px}.column:last-child .column-resize[data-v-1aab6f12]{cursor:default!important}.column .sort-icon[data-v-1aab6f12]{display:inline-block;float:right;font-size:14px;line-height:30px}.column .ev-icon-filter[data-v-1aab6f12]{font-size:13px;color:#005cc8}.column-name[data-v-1aab6f12]{display:inline-block;float:left;overflow:hidden;text-overflow:ellipsis;font-weight:700;font-size:14px}.column-filter[data-v-1aab6f12]{display:none;position:absolute;right:0;background-color:transparent}.column-filter i[data-v-1aab6f12]{margin-right:2px;font-size:14px;vertical-align:middle}.column:hover .column-filter[data-v-1aab6f12]{display:block;cursor:pointer}.column-filter-status[data-v-1aab6f12]{position:absolute;left:0;background-color:transparent}.column-filter-status .ei[data-v-1aab6f12]{font-size:10px;vertical-align:top}.column-resize[data-v-1aab6f12]{position:absolute;bottom:0;right:-5px;width:10px;height:100%}.column-resize[data-v-1aab6f12]:hover{cursor:col-resize}.table-body[data-v-1aab6f12]{position:relative;width:100%;height:100%;overflow:auto;overflow-anchor:none}.table-body table[data-v-1aab6f12]{clear:both;width:inherit;border-spacing:0;border-collapse:collapse}.table-body.stripe tr[data-v-1aab6f12]:nth-child(2n){background:hsla(0,0%,89.8%,.6)}.table-body.bottom-border[data-v-1aab6f12]{border-bottom:1px solid #cfcfcf}.dark .table-body.bottom-border[data-v-1aab6f12]{border-bottom:1px solid}.table-body .row[data-v-1aab6f12]{white-space:nowrap;border-bottom:1px solid #cfcfcf}.dark .table-body .row[data-v-1aab6f12]{border-bottom:1px solid}.table-body .row.selected[data-v-1aab6f12]{background:rgba(219,240,249,.6)!important;color:inherit!important}.dark .table-body .row.selected[data-v-1aab6f12]{background:!important;color:inherit!important}.table-body .row.highlight[data-v-1aab6f12]{background:#5ab7ff;color:#fff}.table-body .cell[data-v-1aab6f12]{display:inline-block;padding:0 10px;text-align:center;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-right:1px solid #cfcfcf}.dark .table-body .cell[data-v-1aab6f12]{border-right:1px solid}.table-body .cell div[data-v-1aab6f12]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.table-body .cell.row-checkbox[data-v-1aab6f12]{display:inline-flex;justify-content:center;align-items:center}.table-body .cell.render[data-v-1aab6f12]{overflow:initial}.table-body .cell.float[data-v-1aab6f12],.table-body .cell.number[data-v-1aab6f12]{text-align:right}.table-body .cell.string[data-v-1aab6f12],.table-body .cell.stringNumber[data-v-1aab6f12]{text-align:left}.table-body .cell.center[data-v-1aab6f12]{text-align:center}.table-body .cell.left[data-v-1aab6f12]{text-align:left}.table-body .cell.left .wrap[data-v-1aab6f12]{justify-content:flex-start}.table-body .cell.right[data-v-1aab6f12]{text-align:right}.table-body .cell.right .wrap[data-v-1aab6f12]{justify-content:flex-end}.table-body .cell[data-v-1aab6f12]:last-child{border-right:0}.table-body .cell.tree-td[data-v-1aab6f12]{text-align:left!important}.table-resize-line[data-v-1aab6f12]{position:absolute;top:0;bottom:0;width:1px;border-right:1px solid #cfcfcf}.dark .table-resize-line[data-v-1aab6f12]{border-right:1px solid}.vscroll-spacer[data-v-1aab6f12]{opacity:0;clear:both}[v-cloak][data-v-1aab6f12]{display:none}.ev-checkbox[data-v-1aab6f12]{margin:0}.non-border[data-v-1aab6f12]{border:none!important}.is-empty[data-v-1aab6f12]{height:30px;text-align:center}", ""]);
|
|
5373
|
-
// Exports
|
|
5374
|
-
module.exports = exports;
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
5363
|
/***/ }),
|
|
5378
5364
|
|
|
5379
5365
|
/***/ "4930":
|
|
@@ -6924,7 +6910,7 @@ module.exports = {
|
|
|
6924
6910
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
6925
6911
|
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
6926
6912
|
// Module
|
|
6927
|
-
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
|
|
6913
|
+
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}.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-legend-line{position:relative;width:100%;height:100%;border-radius:10px;background-color:#e3e3e3}.ev-chart-legend-line-layer,.ev-chart-legend-thumb{position:absolute;top:0;left:0;width:100%;height:100%}.ev-chart-legend-thumb{border-radius:10px;color:#000}.ev-chart-legend-handle{position:absolute;top:0;left:0;cursor:pointer}.ev-chart-legend-handle.dragging,.ev-chart-legend-handle:hover{transform:scale(1.2)}.ev-chart-legend-handle-btn{width:100%;height:100%;border-radius:50%;background-color:#fff;transition:transform .1s ease-in-out;box-sizing:border-box;border:2px solid #979797}.ev-chart-legend-handle-btn-color{position:absolute;top:4px;left:4px;width:calc(100% - 8px);height:calc(100% - 8px);border-radius:50%}.ev-chart-legend-label{position:absolute;font-size:12px;line-height:1.4em}.ev-chart-legend-label-text{display:block;white-space:nowrap}.ev-chart-legend-overlay{position:absolute;top:0;left:0;width:100%;height:100%}.ev-chart-legend-overlay .ev-chart-legend-overlay-item{position:absolute;top:1px;left:1px;border-radius:50%;border:1px solid #fff;background-color:transparent}.ev-chart-legend-overlay .ev-chart-legend-overlay-tooltip{position:absolute;font-size:12px;line-height:1.4em}.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}", ""]);
|
|
6928
6914
|
// Exports
|
|
6929
6915
|
module.exports = exports;
|
|
6930
6916
|
|
|
@@ -7957,7 +7943,7 @@ $({ target: 'Number', stat: true }, {
|
|
|
7957
7943
|
/***/ "9224":
|
|
7958
7944
|
/***/ (function(module) {
|
|
7959
7945
|
|
|
7960
|
-
module.exports = JSON.parse("{\"a\":\"3.3.
|
|
7946
|
+
module.exports = JSON.parse("{\"a\":\"3.3.20\"}");
|
|
7961
7947
|
|
|
7962
7948
|
/***/ }),
|
|
7963
7949
|
|
|
@@ -8096,6 +8082,20 @@ exports.push([module.i, ".ev-tree-view li ul{padding:0 0 0 18px;margin:0}.ev-tre
|
|
|
8096
8082
|
module.exports = exports;
|
|
8097
8083
|
|
|
8098
8084
|
|
|
8085
|
+
/***/ }),
|
|
8086
|
+
|
|
8087
|
+
/***/ "95d6":
|
|
8088
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
8089
|
+
|
|
8090
|
+
// Imports
|
|
8091
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
8092
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
8093
|
+
// Module
|
|
8094
|
+
exports.push([module.i, ".table[data-v-89cff218]{position:relative;width:100%;height:100%;padding-top:33px}.table.non-header[data-v-89cff218]{padding-top:0}.table .table-header[data-v-89cff218]{overflow:hidden;position:absolute;top:0;width:100%;height:33px;border-top:2px solid #7f7f7f;border-bottom:1px solid #cfcfcf}.dark .table .table-header[data-v-89cff218]{border-top:2px solid;border-bottom:1px solid}.column-list[data-v-89cff218]{width:100%;white-space:nowrap;list-style-type:none}.column[data-v-89cff218],.column-list[data-v-89cff218]{position:relative;height:100%}.column[data-v-89cff218]{display:inline-flex;padding:0 10px;line-height:30px;justify-content:center;align-items:center;text-align:center;vertical-align:top;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-right:1px solid #cfcfcf}.dark .column[data-v-89cff218]{border-right:1px solid}.column[data-v-89cff218]:last-child{border-right:0;margin-right:20px}.column:last-child .column-resize[data-v-89cff218]{cursor:default!important}.column .sort-icon[data-v-89cff218]{display:inline-block;float:right;font-size:14px;line-height:30px}.column .ev-icon-filter[data-v-89cff218]{font-size:13px;color:#005cc8}.column-name[data-v-89cff218]{display:inline-block;float:left;overflow:hidden;text-overflow:ellipsis;font-weight:700;font-size:14px}.column-filter[data-v-89cff218]{display:none;position:absolute;right:0;background-color:transparent}.column-filter i[data-v-89cff218]{margin-right:2px;font-size:14px;vertical-align:middle}.column:hover .column-filter[data-v-89cff218]{display:block;cursor:pointer}.column-filter-status[data-v-89cff218]{position:absolute;left:0;background-color:transparent}.column-filter-status .ei[data-v-89cff218]{font-size:10px;vertical-align:top}.column-resize[data-v-89cff218]{position:absolute;bottom:0;right:-5px;width:10px;height:100%}.column-resize[data-v-89cff218]:hover{cursor:col-resize}.table-body[data-v-89cff218]{position:relative;width:100%;height:100%;overflow:auto;overflow-anchor:none}.table-body table[data-v-89cff218]{clear:both;width:inherit;border-spacing:0;border-collapse:collapse}.table-body.stripe tr[data-v-89cff218]:nth-child(2n){background:hsla(0,0%,89.8%,.6)}.table-body.bottom-border[data-v-89cff218]{border-bottom:1px solid #cfcfcf}.dark .table-body.bottom-border[data-v-89cff218]{border-bottom:1px solid}.table-body .row[data-v-89cff218]{white-space:nowrap;border-bottom:1px solid #cfcfcf}.dark .table-body .row[data-v-89cff218]{border-bottom:1px solid}.table-body .row.selected[data-v-89cff218]{background:rgba(219,240,249,.6)!important;color:inherit!important}.dark .table-body .row.selected[data-v-89cff218]{background:!important;color:inherit!important}.table-body .row.highlight[data-v-89cff218]{background:#5ab7ff;color:#fff}.table-body .cell[data-v-89cff218]{display:inline-block;padding:0 10px;text-align:center;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-right:1px solid #cfcfcf}.dark .table-body .cell[data-v-89cff218]{border-right:1px solid}.table-body .cell div[data-v-89cff218]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.table-body .cell.row-checkbox[data-v-89cff218]{display:inline-flex;justify-content:center;align-items:center}.table-body .cell.render[data-v-89cff218]{overflow:initial}.table-body .cell.float[data-v-89cff218],.table-body .cell.number[data-v-89cff218]{text-align:right}.table-body .cell.string[data-v-89cff218],.table-body .cell.stringNumber[data-v-89cff218]{text-align:left}.table-body .cell.center[data-v-89cff218]{text-align:center}.table-body .cell.left[data-v-89cff218]{text-align:left}.table-body .cell.left .wrap[data-v-89cff218]{justify-content:flex-start}.table-body .cell.right[data-v-89cff218]{text-align:right}.table-body .cell.right .wrap[data-v-89cff218]{justify-content:flex-end}.table-body .cell[data-v-89cff218]:last-child{border-right:0}.table-body .cell.tree-td[data-v-89cff218]{text-align:left!important}.table-resize-line[data-v-89cff218]{position:absolute;top:0;bottom:0;width:1px;border-right:1px solid #cfcfcf}.dark .table-resize-line[data-v-89cff218]{border-right:1px solid}.vscroll-spacer[data-v-89cff218]{opacity:0;clear:both}[v-cloak][data-v-89cff218]{display:none}.ev-checkbox[data-v-89cff218]{margin:0}.non-border[data-v-89cff218]{border:none!important}.is-empty[data-v-89cff218]{height:30px;text-align:center}", ""]);
|
|
8095
|
+
// Exports
|
|
8096
|
+
module.exports = exports;
|
|
8097
|
+
|
|
8098
|
+
|
|
8099
8099
|
/***/ }),
|
|
8100
8100
|
|
|
8101
8101
|
/***/ "96cf":
|
|
@@ -9851,17 +9851,6 @@ module.exports = {
|
|
|
9851
9851
|
};
|
|
9852
9852
|
|
|
9853
9853
|
|
|
9854
|
-
/***/ }),
|
|
9855
|
-
|
|
9856
|
-
/***/ "af65":
|
|
9857
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9858
|
-
|
|
9859
|
-
"use strict";
|
|
9860
|
-
/* 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_TreeGrid_vue_vue_type_style_index_0_id_1aab6f12_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("044f");
|
|
9861
|
-
/* 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_TreeGrid_vue_vue_type_style_index_0_id_1aab6f12_lang_scss_scoped_true__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_TreeGrid_vue_vue_type_style_index_0_id_1aab6f12_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
9862
|
-
/* unused harmony reexport * */
|
|
9863
|
-
|
|
9864
|
-
|
|
9865
9854
|
/***/ }),
|
|
9866
9855
|
|
|
9867
9856
|
/***/ "afaf":
|
|
@@ -10597,6 +10586,17 @@ $({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD || !US
|
|
|
10597
10586
|
});
|
|
10598
10587
|
|
|
10599
10588
|
|
|
10589
|
+
/***/ }),
|
|
10590
|
+
|
|
10591
|
+
/***/ "ca6f":
|
|
10592
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10593
|
+
|
|
10594
|
+
"use strict";
|
|
10595
|
+
/* 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_TreeGrid_vue_vue_type_style_index_0_id_89cff218_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("009b");
|
|
10596
|
+
/* 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_TreeGrid_vue_vue_type_style_index_0_id_89cff218_lang_scss_scoped_true__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_TreeGrid_vue_vue_type_style_index_0_id_89cff218_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
10597
|
+
/* unused harmony reexport * */
|
|
10598
|
+
|
|
10599
|
+
|
|
10600
10600
|
/***/ }),
|
|
10601
10601
|
|
|
10602
10602
|
/***/ "ca84":
|
|
@@ -32746,7 +32746,9 @@ var modules = {
|
|
|
32746
32746
|
return def;
|
|
32747
32747
|
},
|
|
32748
32748
|
getSeriesValueOptForHeatMap: function getSeriesValueOptForHeatMap(series) {
|
|
32749
|
-
var data = series.data
|
|
32749
|
+
var data = series.data,
|
|
32750
|
+
colorState = series.colorState,
|
|
32751
|
+
isGradient = series.isGradient;
|
|
32750
32752
|
var colorOpt = this.options.heatMapColor;
|
|
32751
32753
|
var categoryCnt = colorOpt.categoryCnt;
|
|
32752
32754
|
var decimalPoint = colorOpt.decimalPoint;
|
|
@@ -32769,10 +32771,10 @@ var modules = {
|
|
|
32769
32771
|
}
|
|
32770
32772
|
});
|
|
32771
32773
|
|
|
32772
|
-
if (isExistError &&
|
|
32773
|
-
|
|
32774
|
+
if (isExistError && !isGradient && colorState.length === categoryCnt) {
|
|
32775
|
+
colorState.push({
|
|
32774
32776
|
id: "color#".concat(categoryCnt),
|
|
32775
|
-
|
|
32777
|
+
color: colorOpt.error,
|
|
32776
32778
|
state: 'normal',
|
|
32777
32779
|
show: true
|
|
32778
32780
|
});
|
|
@@ -34221,7 +34223,8 @@ var PLOT_BAND_OPTION = {
|
|
|
34221
34223
|
var HEAT_MAP_OPTION = {
|
|
34222
34224
|
show: true,
|
|
34223
34225
|
highlight: {
|
|
34224
|
-
maxShadowOpacity: 0.4
|
|
34226
|
+
maxShadowOpacity: 0.4,
|
|
34227
|
+
brightness: 150
|
|
34225
34228
|
},
|
|
34226
34229
|
xAxisIndex: 0,
|
|
34227
34230
|
yAxisIndex: 0,
|
|
@@ -36271,10 +36274,13 @@ var element_pie_Pie = /*#__PURE__*/function () {
|
|
|
36271
36274
|
|
|
36272
36275
|
|
|
36273
36276
|
|
|
36277
|
+
|
|
36278
|
+
|
|
36279
|
+
|
|
36274
36280
|
|
|
36275
36281
|
|
|
36276
36282
|
var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
36277
|
-
function HeatMap(sId, opt, colorOpt) {
|
|
36283
|
+
function HeatMap(sId, opt, colorOpt, isGradient) {
|
|
36278
36284
|
var _this = this;
|
|
36279
36285
|
|
|
36280
36286
|
_classCallCheck(this, HeatMap);
|
|
@@ -36283,7 +36289,8 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
36283
36289
|
Object.keys(merged).forEach(function (key) {
|
|
36284
36290
|
_this[key] = merged[key];
|
|
36285
36291
|
});
|
|
36286
|
-
this.
|
|
36292
|
+
this.isGradient = isGradient;
|
|
36293
|
+
this.createColorState(colorOpt);
|
|
36287
36294
|
this.sId = sId;
|
|
36288
36295
|
this.data = [];
|
|
36289
36296
|
this.labels = {};
|
|
@@ -36302,16 +36309,17 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
36302
36309
|
|
|
36303
36310
|
|
|
36304
36311
|
_createClass(HeatMap, [{
|
|
36305
|
-
key: "
|
|
36306
|
-
value: function
|
|
36307
|
-
var
|
|
36312
|
+
key: "createColorState",
|
|
36313
|
+
value: function createColorState(colorOpt) {
|
|
36314
|
+
var colorState = [];
|
|
36315
|
+
var regex = /[^0-9]&[^,]/g;
|
|
36308
36316
|
var min = colorOpt.min,
|
|
36309
36317
|
max = colorOpt.max,
|
|
36310
36318
|
categoryCnt = colorOpt.categoryCnt,
|
|
36311
36319
|
error = colorOpt.error,
|
|
36312
36320
|
stroke = colorOpt.stroke;
|
|
36313
|
-
var minColor = min.includes('#') ? helpers_util.hexToRgb(min) : min;
|
|
36314
|
-
var maxColor = max.includes('#') ? helpers_util.hexToRgb(max) : max;
|
|
36321
|
+
var minColor = min.includes('#') ? helpers_util.hexToRgb(min) : min.replace(regex, '');
|
|
36322
|
+
var maxColor = max.includes('#') ? helpers_util.hexToRgb(max) : max.replace(regex, '');
|
|
36315
36323
|
|
|
36316
36324
|
var _minColor$split = minColor.split(','),
|
|
36317
36325
|
_minColor$split2 = _slicedToArray(_minColor$split, 3),
|
|
@@ -36325,35 +36333,71 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
36325
36333
|
maxG = _maxColor$split2[1],
|
|
36326
36334
|
maxB = _maxColor$split2[2];
|
|
36327
36335
|
|
|
36328
|
-
|
|
36329
|
-
|
|
36330
|
-
|
|
36331
|
-
|
|
36332
|
-
|
|
36333
|
-
|
|
36334
|
-
|
|
36335
|
-
|
|
36336
|
-
|
|
36337
|
-
|
|
36338
|
-
|
|
36339
|
-
|
|
36340
|
-
|
|
36336
|
+
if (this.isGradient) {
|
|
36337
|
+
colorState.push({
|
|
36338
|
+
minColor: {
|
|
36339
|
+
minR: minR,
|
|
36340
|
+
minG: minG,
|
|
36341
|
+
minB: minB
|
|
36342
|
+
},
|
|
36343
|
+
maxColor: {
|
|
36344
|
+
maxR: maxR,
|
|
36345
|
+
maxG: maxG,
|
|
36346
|
+
maxB: maxB
|
|
36347
|
+
},
|
|
36348
|
+
categoryCnt: categoryCnt,
|
|
36349
|
+
start: 0,
|
|
36350
|
+
end: 100,
|
|
36351
|
+
selectedValue: null
|
|
36341
36352
|
});
|
|
36353
|
+
} else {
|
|
36354
|
+
var unitR = Math.floor((minR - maxR) / (categoryCnt - 1));
|
|
36355
|
+
var unitG = Math.floor((minG - maxG) / (categoryCnt - 1));
|
|
36356
|
+
var unitB = Math.floor((minB - maxB) / (categoryCnt - 1));
|
|
36357
|
+
|
|
36358
|
+
for (var ix = 0; ix < categoryCnt; ix++) {
|
|
36359
|
+
var r = +minR - unitR * ix;
|
|
36360
|
+
var g = +minG - unitG * ix;
|
|
36361
|
+
var b = +minB - unitB * ix;
|
|
36362
|
+
colorState.push({
|
|
36363
|
+
id: "color#".concat(ix),
|
|
36364
|
+
color: "rgb(".concat(r, ",").concat(g, ",").concat(b, ")"),
|
|
36365
|
+
state: 'normal',
|
|
36366
|
+
show: true
|
|
36367
|
+
});
|
|
36368
|
+
}
|
|
36342
36369
|
}
|
|
36343
36370
|
|
|
36344
|
-
this.
|
|
36371
|
+
this.colorState = colorState;
|
|
36345
36372
|
this.errorColor = error;
|
|
36346
36373
|
this.stroke = stroke;
|
|
36347
36374
|
}
|
|
36348
36375
|
}, {
|
|
36349
|
-
key: "
|
|
36350
|
-
value: function
|
|
36376
|
+
key: "getColorForGradient",
|
|
36377
|
+
value: function getColorForGradient(value) {
|
|
36378
|
+
var _this$colorState$ = this.colorState[0],
|
|
36379
|
+
minColor = _this$colorState$.minColor,
|
|
36380
|
+
maxColor = _this$colorState$.maxColor;
|
|
36381
|
+
var minR = minColor.minR,
|
|
36382
|
+
minG = minColor.minG,
|
|
36383
|
+
minB = minColor.minB;
|
|
36384
|
+
var maxR = maxColor.maxR,
|
|
36385
|
+
maxG = maxColor.maxG,
|
|
36386
|
+
maxB = maxColor.maxB;
|
|
36387
|
+
var r = +minR - Math.floor((minR - maxR) * value / 100);
|
|
36388
|
+
var g = +minG - Math.floor((minG - maxG) * value / 100);
|
|
36389
|
+
var b = +minB - Math.floor((minB - maxB) * value / 100);
|
|
36390
|
+
return "rgb(".concat(r, ",").concat(g, ",").concat(b, ")");
|
|
36391
|
+
}
|
|
36392
|
+
}, {
|
|
36393
|
+
key: "getColorIndexForIcon",
|
|
36394
|
+
value: function getColorIndexForIcon(value) {
|
|
36351
36395
|
var _this$valueOpt = this.valueOpt,
|
|
36352
36396
|
existError = _this$valueOpt.existError,
|
|
36353
36397
|
min = _this$valueOpt.min,
|
|
36354
36398
|
interval = _this$valueOpt.interval,
|
|
36355
36399
|
decimalPoint = _this$valueOpt.decimalPoint;
|
|
36356
|
-
var maxIndex = this.
|
|
36400
|
+
var maxIndex = this.colorState.length - 1;
|
|
36357
36401
|
|
|
36358
36402
|
if (existError && value < 0) {
|
|
36359
36403
|
return maxIndex;
|
|
@@ -36367,14 +36411,67 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
36367
36411
|
|
|
36368
36412
|
return colorIndex;
|
|
36369
36413
|
}
|
|
36414
|
+
}, {
|
|
36415
|
+
key: "getItemInfo",
|
|
36416
|
+
value: function getItemInfo(value) {
|
|
36417
|
+
var _this$valueOpt2 = this.valueOpt,
|
|
36418
|
+
min = _this$valueOpt2.min,
|
|
36419
|
+
max = _this$valueOpt2.max;
|
|
36420
|
+
var itemInfo = {
|
|
36421
|
+
show: false,
|
|
36422
|
+
opacity: 0,
|
|
36423
|
+
dataColor: null,
|
|
36424
|
+
id: null,
|
|
36425
|
+
isHighlight: null
|
|
36426
|
+
};
|
|
36427
|
+
|
|
36428
|
+
if (this.isGradient) {
|
|
36429
|
+
var ratio = convertToPercent(value - min, max - min);
|
|
36430
|
+
var _this$colorState$2 = this.colorState[0],
|
|
36431
|
+
start = _this$colorState$2.start,
|
|
36432
|
+
end = _this$colorState$2.end,
|
|
36433
|
+
selectedValue = _this$colorState$2.selectedValue;
|
|
36434
|
+
|
|
36435
|
+
if (value < 0 || start <= ratio && ratio <= end) {
|
|
36436
|
+
itemInfo.show = true;
|
|
36437
|
+
itemInfo.isHighlight = selectedValue !== null && Math.floor(value) === Math.floor(min + (max - min) * (selectedValue / 100));
|
|
36438
|
+
itemInfo.opacity = 1;
|
|
36439
|
+
itemInfo.dataColor = value < 0 ? this.errorColor : this.getColorForGradient(ratio);
|
|
36440
|
+
}
|
|
36441
|
+
} else {
|
|
36442
|
+
var colorIndex = this.getColorIndexForIcon(value);
|
|
36443
|
+
var _this$colorState$colo = this.colorState[colorIndex],
|
|
36444
|
+
show = _this$colorState$colo.show,
|
|
36445
|
+
state = _this$colorState$colo.state,
|
|
36446
|
+
color = _this$colorState$colo.color,
|
|
36447
|
+
id = _this$colorState$colo.id;
|
|
36448
|
+
itemInfo.show = show;
|
|
36449
|
+
itemInfo.opacity = state === 'downplay' ? 0.1 : 1;
|
|
36450
|
+
itemInfo.dataColor = value < 0 ? this.errorColor : color;
|
|
36451
|
+
itemInfo.id = id;
|
|
36452
|
+
}
|
|
36453
|
+
|
|
36454
|
+
return itemInfo;
|
|
36455
|
+
}
|
|
36370
36456
|
}, {
|
|
36371
36457
|
key: "drawItem",
|
|
36372
36458
|
value: function drawItem(ctx, x, y, w, h) {
|
|
36373
36459
|
ctx.beginPath();
|
|
36374
36460
|
|
|
36375
36461
|
if (this.stroke.show) {
|
|
36376
|
-
|
|
36377
|
-
|
|
36462
|
+
var radius = this.stroke.radius;
|
|
36463
|
+
|
|
36464
|
+
if (radius > 0) {
|
|
36465
|
+
ctx.moveTo(x + radius, y);
|
|
36466
|
+
ctx.arcTo(x + w, y, x + w, y + h, radius);
|
|
36467
|
+
ctx.arcTo(x + w, y + h, x, y + h, radius);
|
|
36468
|
+
ctx.arcTo(x, y + h, x, y, radius);
|
|
36469
|
+
ctx.arcTo(x, y, x + w, y, radius);
|
|
36470
|
+
ctx.fill();
|
|
36471
|
+
} else {
|
|
36472
|
+
ctx.strokeRect(x, y, w, h);
|
|
36473
|
+
ctx.fillRect(x, y, w, h);
|
|
36474
|
+
}
|
|
36378
36475
|
} else {
|
|
36379
36476
|
var aliasPixel = helpers_util.aliasPixel(1);
|
|
36380
36477
|
ctx.fillRect(x, y - aliasPixel, w + aliasPixel, h + aliasPixel);
|
|
@@ -36418,7 +36515,8 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
36418
36515
|
|
|
36419
36516
|
var ctx = param.ctx,
|
|
36420
36517
|
chartRect = param.chartRect,
|
|
36421
|
-
labelOffset = param.labelOffset
|
|
36518
|
+
labelOffset = param.labelOffset,
|
|
36519
|
+
overlayCtx = param.overlayCtx;
|
|
36422
36520
|
var xArea = chartRect.chartWidth - (labelOffset.left + labelOffset.right);
|
|
36423
36521
|
var yArea = chartRect.chartHeight - (labelOffset.top + labelOffset.bottom);
|
|
36424
36522
|
var xsp = chartRect.x1 + labelOffset.left;
|
|
@@ -36435,13 +36533,18 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
36435
36533
|
var value = item.o;
|
|
36436
36534
|
|
|
36437
36535
|
if (xp !== null && yp !== null && value !== null && value !== undefined) {
|
|
36438
|
-
var
|
|
36439
|
-
|
|
36440
|
-
|
|
36441
|
-
|
|
36442
|
-
|
|
36536
|
+
var _this2$getItemInfo = _this2.getItemInfo(value),
|
|
36537
|
+
show = _this2$getItemInfo.show,
|
|
36538
|
+
opacity = _this2$getItemInfo.opacity,
|
|
36539
|
+
dataColor = _this2$getItemInfo.dataColor,
|
|
36540
|
+
id = _this2$getItemInfo.id,
|
|
36541
|
+
isHighlight = _this2$getItemInfo.isHighlight;
|
|
36542
|
+
|
|
36543
|
+
item.dataColor = dataColor;
|
|
36544
|
+
item.cId = id;
|
|
36545
|
+
ctx.save();
|
|
36443
36546
|
|
|
36444
|
-
if (
|
|
36547
|
+
if (show) {
|
|
36445
36548
|
ctx.fillStyle = helpers_util.colorStringToRgba(item.dataColor, opacity);
|
|
36446
36549
|
|
|
36447
36550
|
if (_this2.stroke.show) {
|
|
@@ -36459,24 +36562,25 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
36459
36562
|
|
|
36460
36563
|
_this2.drawItem(ctx, xp, yp, w, h);
|
|
36461
36564
|
|
|
36565
|
+
ctx.restore();
|
|
36566
|
+
item.xp = xp;
|
|
36567
|
+
item.yp = yp;
|
|
36568
|
+
item.w = w;
|
|
36569
|
+
item.h = h;
|
|
36570
|
+
|
|
36462
36571
|
if (_this2.showValue.use) {
|
|
36463
36572
|
_this2.drawValueLabels({
|
|
36464
36573
|
context: ctx,
|
|
36465
|
-
data: item
|
|
36466
|
-
positions: {
|
|
36467
|
-
x: xp,
|
|
36468
|
-
y: yp,
|
|
36469
|
-
w: w,
|
|
36470
|
-
h: h
|
|
36471
|
-
}
|
|
36574
|
+
data: item
|
|
36472
36575
|
});
|
|
36473
36576
|
}
|
|
36474
|
-
}
|
|
36475
36577
|
|
|
36476
|
-
|
|
36477
|
-
|
|
36478
|
-
|
|
36479
|
-
|
|
36578
|
+
if (isHighlight) {
|
|
36579
|
+
_this2.itemHighlight({
|
|
36580
|
+
data: item
|
|
36581
|
+
}, overlayCtx);
|
|
36582
|
+
}
|
|
36583
|
+
}
|
|
36480
36584
|
}
|
|
36481
36585
|
});
|
|
36482
36586
|
}
|
|
@@ -36491,18 +36595,18 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
36491
36595
|
key: "drawValueLabels",
|
|
36492
36596
|
value: function drawValueLabels(_ref) {
|
|
36493
36597
|
var context = _ref.context,
|
|
36494
|
-
data = _ref.data
|
|
36495
|
-
positions = _ref.positions;
|
|
36598
|
+
data = _ref.data;
|
|
36496
36599
|
var _this$showValue = this.showValue,
|
|
36497
36600
|
fontSize = _this$showValue.fontSize,
|
|
36498
36601
|
textColor = _this$showValue.textColor,
|
|
36499
36602
|
align = _this$showValue.align,
|
|
36500
36603
|
formatter = _this$showValue.formatter,
|
|
36501
36604
|
decimalPoint = _this$showValue.decimalPoint;
|
|
36502
|
-
var x =
|
|
36503
|
-
y =
|
|
36504
|
-
w =
|
|
36505
|
-
h =
|
|
36605
|
+
var x = data.xp,
|
|
36606
|
+
y = data.yp,
|
|
36607
|
+
w = data.w,
|
|
36608
|
+
h = data.h,
|
|
36609
|
+
value = data.o;
|
|
36506
36610
|
var ctx = context;
|
|
36507
36611
|
ctx.save();
|
|
36508
36612
|
ctx.beginPath();
|
|
@@ -36511,7 +36615,6 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
36511
36615
|
ctx.lineWidth = 1;
|
|
36512
36616
|
ctx.textBaseline = 'middle';
|
|
36513
36617
|
ctx.textAlign = align !== 'center' ? 'left' : 'center';
|
|
36514
|
-
var value = data.o;
|
|
36515
36618
|
var formattedTxt;
|
|
36516
36619
|
|
|
36517
36620
|
if (formatter) {
|
|
@@ -36613,8 +36716,6 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
36613
36716
|
}, {
|
|
36614
36717
|
key: "itemHighlight",
|
|
36615
36718
|
value: function itemHighlight(item, context) {
|
|
36616
|
-
var _this$colorAxis$find;
|
|
36617
|
-
|
|
36618
36719
|
var gdata = item.data;
|
|
36619
36720
|
var ctx = context;
|
|
36620
36721
|
var x = gdata.xp;
|
|
@@ -36622,34 +36723,46 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
36622
36723
|
var w = gdata.w;
|
|
36623
36724
|
var h = gdata.h;
|
|
36624
36725
|
var cId = gdata.cId;
|
|
36625
|
-
var isShow
|
|
36626
|
-
|
|
36627
|
-
|
|
36628
|
-
|
|
36726
|
+
var isShow;
|
|
36727
|
+
|
|
36728
|
+
if (this.isGradient) {
|
|
36729
|
+
var _this$valueOpt3 = this.valueOpt,
|
|
36730
|
+
min = _this$valueOpt3.min,
|
|
36731
|
+
max = _this$valueOpt3.max;
|
|
36732
|
+
var ratio = convertToPercent(gdata.o - min, max - min);
|
|
36733
|
+
var _this$colorState$3 = this.colorState[0],
|
|
36734
|
+
start = _this$colorState$3.start,
|
|
36735
|
+
end = _this$colorState$3.end;
|
|
36736
|
+
isShow = start <= ratio && ratio <= end || gdata.o === -1;
|
|
36737
|
+
} else {
|
|
36738
|
+
var _this$colorState$find;
|
|
36739
|
+
|
|
36740
|
+
isShow = (_this$colorState$find = this.colorState.find(function (_ref4) {
|
|
36741
|
+
var id = _ref4.id;
|
|
36742
|
+
return id === cId;
|
|
36743
|
+
})) === null || _this$colorState$find === void 0 ? void 0 : _this$colorState$find.show;
|
|
36744
|
+
}
|
|
36745
|
+
|
|
36629
36746
|
ctx.save();
|
|
36747
|
+
ctx.shadowOffsetX = 2;
|
|
36748
|
+
ctx.shadowOffsetY = 2;
|
|
36749
|
+
ctx.shadowBlur = 4;
|
|
36630
36750
|
|
|
36631
36751
|
if (x !== null && y !== null && isShow) {
|
|
36632
36752
|
var color = gdata.dataColor;
|
|
36633
|
-
ctx.
|
|
36634
|
-
ctx.
|
|
36635
|
-
ctx.
|
|
36636
|
-
this.drawItem(ctx, x, y, w, h);
|
|
36753
|
+
ctx.shadowColor = helpers_util.colorStringToRgba('#605F5F');
|
|
36754
|
+
ctx.strokeStyle = helpers_util.colorStringToRgba(color);
|
|
36755
|
+
ctx.fillStyle = helpers_util.colorStringToRgba(color);
|
|
36756
|
+
this.drawItem(ctx, x - 2, y - 2, w + 4, h + 4);
|
|
36757
|
+
ctx.restore();
|
|
36637
36758
|
|
|
36638
36759
|
if (this.showValue.use) {
|
|
36639
36760
|
this.drawValueLabels({
|
|
36640
36761
|
context: ctx,
|
|
36641
|
-
data: gdata
|
|
36642
|
-
positions: {
|
|
36643
|
-
x: x,
|
|
36644
|
-
y: y,
|
|
36645
|
-
w: w,
|
|
36646
|
-
h: h
|
|
36647
|
-
}
|
|
36762
|
+
data: gdata
|
|
36648
36763
|
});
|
|
36649
36764
|
}
|
|
36650
36765
|
}
|
|
36651
|
-
|
|
36652
|
-
ctx.restore();
|
|
36653
36766
|
}
|
|
36654
36767
|
/**
|
|
36655
36768
|
* Find graph item for tooltip
|
|
@@ -36868,7 +36981,11 @@ var model_series_modules = {
|
|
|
36868
36981
|
return new element_pie(id, opt, index);
|
|
36869
36982
|
} else if (type === 'heatMap') {
|
|
36870
36983
|
this.seriesInfo.charts.heatMap.push(id);
|
|
36871
|
-
|
|
36984
|
+
var _this$options = this.options,
|
|
36985
|
+
heatMapColor = _this$options.heatMapColor,
|
|
36986
|
+
legend = _this$options.legend;
|
|
36987
|
+
var isGradient = legend.type === 'gradient';
|
|
36988
|
+
return new element_heatmap(id, opt, heatMapColor, isGradient);
|
|
36872
36989
|
}
|
|
36873
36990
|
|
|
36874
36991
|
return false;
|
|
@@ -38920,18 +39037,18 @@ var plugins_legend_modules = {
|
|
|
38920
39037
|
var seriesList = this.seriesList;
|
|
38921
39038
|
Object.values(seriesList).forEach(function (series) {
|
|
38922
39039
|
if (!series.isExistGrp && series.showLegend) {
|
|
38923
|
-
var
|
|
39040
|
+
var colorState = series.colorState,
|
|
38924
39041
|
valueOpt = series.valueOpt;
|
|
38925
39042
|
var min = valueOpt.min,
|
|
38926
39043
|
max = valueOpt.max,
|
|
38927
39044
|
interval = valueOpt.interval,
|
|
38928
39045
|
existError = valueOpt.existError,
|
|
38929
39046
|
decimalPoint = valueOpt.decimalPoint;
|
|
38930
|
-
var length =
|
|
39047
|
+
var length = colorState.length;
|
|
38931
39048
|
var endIndex = existError ? length - 2 : length - 1;
|
|
38932
39049
|
|
|
38933
39050
|
for (var index = 0; index < length; index++) {
|
|
38934
|
-
var colorItem =
|
|
39051
|
+
var colorItem = colorState[index];
|
|
38935
39052
|
var minValue = min + interval * index;
|
|
38936
39053
|
var maxValue = minValue + interval;
|
|
38937
39054
|
|
|
@@ -38959,7 +39076,7 @@ var plugins_legend_modules = {
|
|
|
38959
39076
|
|
|
38960
39077
|
_this2.addLegend({
|
|
38961
39078
|
cId: colorItem.id,
|
|
38962
|
-
color: colorItem.
|
|
39079
|
+
color: colorItem.color,
|
|
38963
39080
|
name: name
|
|
38964
39081
|
});
|
|
38965
39082
|
}
|
|
@@ -39164,7 +39281,7 @@ var plugins_legend_modules = {
|
|
|
39164
39281
|
var nameDOM = (_targetDOM4 = targetDOM) === null || _targetDOM4 === void 0 ? void 0 : _targetDOM4.getElementsByClassName('ev-chart-legend-name')[0];
|
|
39165
39282
|
var isActive = !(colorDOM !== null && colorDOM !== void 0 && colorDOM.className.includes('inactive'));
|
|
39166
39283
|
var targetId = nameDOM.series.cId;
|
|
39167
|
-
var activeCount = series.
|
|
39284
|
+
var activeCount = series.colorState.filter(function (colorItem) {
|
|
39168
39285
|
return colorItem.show;
|
|
39169
39286
|
}).length;
|
|
39170
39287
|
|
|
@@ -39185,12 +39302,12 @@ var plugins_legend_modules = {
|
|
|
39185
39302
|
nameDOM.style.color = opt.color;
|
|
39186
39303
|
}
|
|
39187
39304
|
|
|
39188
|
-
var targetIndex = series.
|
|
39305
|
+
var targetIndex = series.colorState.findIndex(function (colorItem) {
|
|
39189
39306
|
return colorItem.id === targetId;
|
|
39190
39307
|
});
|
|
39191
39308
|
|
|
39192
39309
|
if (targetIndex > -1) {
|
|
39193
|
-
series.
|
|
39310
|
+
series.colorState[targetIndex].show = !isActive;
|
|
39194
39311
|
}
|
|
39195
39312
|
|
|
39196
39313
|
colorDOM.classList.toggle('inactive');
|
|
@@ -39226,7 +39343,7 @@ var plugins_legend_modules = {
|
|
|
39226
39343
|
|
|
39227
39344
|
var nameDOM = targetDOM.getElementsByClassName('ev-chart-legend-name')[0];
|
|
39228
39345
|
var targetId = nameDOM.series.cId;
|
|
39229
|
-
series.
|
|
39346
|
+
series.colorState.forEach(function (colorItem) {
|
|
39230
39347
|
colorItem.state = colorItem.id === targetId ? 'highlight' : 'downplay';
|
|
39231
39348
|
});
|
|
39232
39349
|
|
|
@@ -39247,7 +39364,7 @@ var plugins_legend_modules = {
|
|
|
39247
39364
|
|
|
39248
39365
|
this.onLegendBoxLeave = function () {
|
|
39249
39366
|
var series = Object.values(_this4.seriesList)[0];
|
|
39250
|
-
series.
|
|
39367
|
+
series.colorState.forEach(function (item) {
|
|
39251
39368
|
item.state = 'normal';
|
|
39252
39369
|
});
|
|
39253
39370
|
|
|
@@ -39400,6 +39517,7 @@ var plugins_legend_modules = {
|
|
|
39400
39517
|
|
|
39401
39518
|
containerDOM.style.height = '18px';
|
|
39402
39519
|
containerDOM.style.display = 'inline-block';
|
|
39520
|
+
containerDOM.style.overflow = 'hidden';
|
|
39403
39521
|
containerDOM.dataset.type = 'container';
|
|
39404
39522
|
this.legendBoxDOM.appendChild(containerDOM);
|
|
39405
39523
|
this.seriesInfo.count++;
|
|
@@ -39766,6 +39884,592 @@ var plugins_legend_modules = {
|
|
|
39766
39884
|
}
|
|
39767
39885
|
};
|
|
39768
39886
|
/* harmony default export */ var plugins_legend = (plugins_legend_modules);
|
|
39887
|
+
// CONCATENATED MODULE: ./src/components/chart/plugins/plugins.legend.gradient.js
|
|
39888
|
+
|
|
39889
|
+
|
|
39890
|
+
|
|
39891
|
+
|
|
39892
|
+
|
|
39893
|
+
|
|
39894
|
+
|
|
39895
|
+
|
|
39896
|
+
var MAX_HANDLE_SIZE = 28;
|
|
39897
|
+
var MIN_BOX_SIZE = {
|
|
39898
|
+
width: 70,
|
|
39899
|
+
height: 60
|
|
39900
|
+
};
|
|
39901
|
+
var plugins_legend_gradient_modules = {
|
|
39902
|
+
/**
|
|
39903
|
+
* Create legend DOM
|
|
39904
|
+
*
|
|
39905
|
+
* @returns {undefined}
|
|
39906
|
+
*/
|
|
39907
|
+
createLegendLayout: function createLegendLayout() {
|
|
39908
|
+
this.legendDOM = document.createElement('div');
|
|
39909
|
+
this.legendDOM.className = 'ev-chart-legend';
|
|
39910
|
+
this.legendBoxDOM = document.createElement('div');
|
|
39911
|
+
this.legendBoxDOM.className = 'ev-chart-legend-box';
|
|
39912
|
+
this.containerDOM = document.createElement('div');
|
|
39913
|
+
this.containerDOM.className = 'ev-chart-legend-container';
|
|
39914
|
+
this.legendBoxDOM.appendChild(this.containerDOM);
|
|
39915
|
+
this.legendDOM.appendChild(this.legendBoxDOM);
|
|
39916
|
+
this.wrapperDOM.appendChild(this.legendDOM);
|
|
39917
|
+
},
|
|
39918
|
+
|
|
39919
|
+
/**
|
|
39920
|
+
* Initialize legend
|
|
39921
|
+
* If there was no initialization, create DOM and set default layout.
|
|
39922
|
+
* It not, there will already be set layout, so add a legend for each series with group
|
|
39923
|
+
*
|
|
39924
|
+
* @returns {undefined}
|
|
39925
|
+
*/
|
|
39926
|
+
initLegend: function initLegend() {
|
|
39927
|
+
if (!this.isInitLegend) {
|
|
39928
|
+
this.createLegendLayout();
|
|
39929
|
+
this.createLegend();
|
|
39930
|
+
}
|
|
39931
|
+
|
|
39932
|
+
var series = Object.values(this.seriesList)[0];
|
|
39933
|
+
this.setLegendStyle(series);
|
|
39934
|
+
this.initEvent();
|
|
39935
|
+
this.isInitLegend = true;
|
|
39936
|
+
this.legendDragInfo = {
|
|
39937
|
+
dragging: false,
|
|
39938
|
+
isStart: true
|
|
39939
|
+
};
|
|
39940
|
+
},
|
|
39941
|
+
|
|
39942
|
+
/**
|
|
39943
|
+
* Initialize legend event
|
|
39944
|
+
*
|
|
39945
|
+
* @returns {undefined}
|
|
39946
|
+
*/
|
|
39947
|
+
initEvent: function initEvent() {
|
|
39948
|
+
var _this = this;
|
|
39949
|
+
|
|
39950
|
+
if (this.isInitLegend) {
|
|
39951
|
+
return;
|
|
39952
|
+
}
|
|
39953
|
+
|
|
39954
|
+
this.onLegendMouseDown = function (e) {
|
|
39955
|
+
e.stopPropagation();
|
|
39956
|
+
e.preventDefault();
|
|
39957
|
+
var type = e.target.dataset.type;
|
|
39958
|
+
var targetDOM;
|
|
39959
|
+
|
|
39960
|
+
if (type === 'handle') {
|
|
39961
|
+
targetDOM = e.target;
|
|
39962
|
+
} else if (type === 'handle-btn') {
|
|
39963
|
+
targetDOM = e.target.parentElement;
|
|
39964
|
+
} else if (type === 'handle-btn-color') {
|
|
39965
|
+
targetDOM = e.target.parentElement.parentElement;
|
|
39966
|
+
} else {
|
|
39967
|
+
return;
|
|
39968
|
+
}
|
|
39969
|
+
|
|
39970
|
+
var colorState = Object.values(_this.seriesList)[0].colorState;
|
|
39971
|
+
var _colorState$ = colorState[0],
|
|
39972
|
+
start = _colorState$.start,
|
|
39973
|
+
end = _colorState$.end;
|
|
39974
|
+
colorState[0].selectedValue = null;
|
|
39975
|
+
|
|
39976
|
+
_this.clearOverlay();
|
|
39977
|
+
|
|
39978
|
+
_this.legendDragInfo.dragging = true;
|
|
39979
|
+
_this.legendDragInfo.isStart = start !== end ? targetDOM.className.includes('start') : _this.legendDragInfo.isStart;
|
|
39980
|
+
targetDOM.classList.add('dragging');
|
|
39981
|
+
|
|
39982
|
+
_this.legendBoxDOM.addEventListener('mousemove', _this.onLegendMouseMove, false);
|
|
39983
|
+
|
|
39984
|
+
_this.legendBoxDOM.addEventListener('mouseup', _this.onLegendMouseUp, false);
|
|
39985
|
+
};
|
|
39986
|
+
|
|
39987
|
+
this.onLegendMouseMove = function (e) {
|
|
39988
|
+
e.stopPropagation();
|
|
39989
|
+
e.preventDefault();
|
|
39990
|
+
var _this$legendDragInfo = _this.legendDragInfo,
|
|
39991
|
+
dragging = _this$legendDragInfo.dragging,
|
|
39992
|
+
isStart = _this$legendDragInfo.isStart;
|
|
39993
|
+
|
|
39994
|
+
if (dragging) {
|
|
39995
|
+
var value = _this.getSelectedValue(e);
|
|
39996
|
+
|
|
39997
|
+
value = _this.isSide ? 100 - value : value;
|
|
39998
|
+
var dir = isStart ? 'start' : 'end';
|
|
39999
|
+
var colorState = Object.values(_this.seriesList)[0].colorState;
|
|
40000
|
+
var _colorState$2 = colorState[0],
|
|
40001
|
+
start = _colorState$2.start,
|
|
40002
|
+
end = _colorState$2.end;
|
|
40003
|
+
|
|
40004
|
+
if (isStart && value > end || !isStart && value < start) {
|
|
40005
|
+
return;
|
|
40006
|
+
}
|
|
40007
|
+
|
|
40008
|
+
colorState[0][dir] = value;
|
|
40009
|
+
|
|
40010
|
+
_this.update({
|
|
40011
|
+
updateSeries: false,
|
|
40012
|
+
updateSelTip: {
|
|
40013
|
+
update: false,
|
|
40014
|
+
keepDomain: false
|
|
40015
|
+
}
|
|
40016
|
+
});
|
|
40017
|
+
}
|
|
40018
|
+
};
|
|
40019
|
+
|
|
40020
|
+
this.onLegendMouseUp = function () {
|
|
40021
|
+
_this.legendDragInfo.dragging = false;
|
|
40022
|
+
|
|
40023
|
+
var targetDOM = _this.containerDOM.getElementsByClassName('ev-chart-legend-handle dragging')[0];
|
|
40024
|
+
|
|
40025
|
+
targetDOM === null || targetDOM === void 0 ? void 0 : targetDOM.classList.remove('dragging');
|
|
40026
|
+
|
|
40027
|
+
_this.legendBoxDOM.removeEventListener('mouseup', _this.onLegendMouseUp, false);
|
|
40028
|
+
};
|
|
40029
|
+
/**
|
|
40030
|
+
* callback for legendBoxDOM hovering
|
|
40031
|
+
*
|
|
40032
|
+
* @returns {undefined}
|
|
40033
|
+
*/
|
|
40034
|
+
|
|
40035
|
+
|
|
40036
|
+
this.onLegendBoxOver = function (e) {
|
|
40037
|
+
var type = e.target.dataset.type;
|
|
40038
|
+
var _Object$values$ = Object.values(_this.seriesList)[0],
|
|
40039
|
+
colorState = _Object$values$.colorState,
|
|
40040
|
+
valueOpt = _Object$values$.valueOpt;
|
|
40041
|
+
var state = colorState[0];
|
|
40042
|
+
|
|
40043
|
+
var value = _this.getSelectedValue(e);
|
|
40044
|
+
|
|
40045
|
+
value = _this.isSide ? 100 - value : value;
|
|
40046
|
+
|
|
40047
|
+
if (['line', 'thumb', 'layer', 'overlay', 'overlay-item'].includes(type)) {
|
|
40048
|
+
if (state.start <= value && value <= state.end) {
|
|
40049
|
+
state.selectedValue = value;
|
|
40050
|
+
|
|
40051
|
+
_this.createLegendOverlay(value, valueOpt);
|
|
40052
|
+
} else {
|
|
40053
|
+
return;
|
|
40054
|
+
}
|
|
40055
|
+
} else if (['handle', 'handle-btn', 'handle-btn-color'].includes(type)) {
|
|
40056
|
+
var isStart = e.target.className.includes('start');
|
|
40057
|
+
state.selectedValue = isStart ? state.start : state.end;
|
|
40058
|
+
|
|
40059
|
+
_this.clearOverlay();
|
|
40060
|
+
} else {
|
|
40061
|
+
return;
|
|
40062
|
+
}
|
|
40063
|
+
|
|
40064
|
+
_this.update({
|
|
40065
|
+
updateSeries: false,
|
|
40066
|
+
updateSelTip: {
|
|
40067
|
+
update: false,
|
|
40068
|
+
keepDomain: false
|
|
40069
|
+
}
|
|
40070
|
+
});
|
|
40071
|
+
};
|
|
40072
|
+
/**
|
|
40073
|
+
* callback for mouseleave event on legendBoxDOM
|
|
40074
|
+
*
|
|
40075
|
+
* @returns {undefined}
|
|
40076
|
+
*/
|
|
40077
|
+
|
|
40078
|
+
|
|
40079
|
+
this.onLegendBoxLeave = function () {
|
|
40080
|
+
_this.legendDragInfo.dragging = false;
|
|
40081
|
+
|
|
40082
|
+
var lineDOM = _this.containerDOM.getElementsByClassName('ev-chart-legend-line')[0];
|
|
40083
|
+
|
|
40084
|
+
var targetDOM = lineDOM.getElementsByClassName('ev-chart-legend-thumb')[0];
|
|
40085
|
+
|
|
40086
|
+
_this.clearOverlay(targetDOM);
|
|
40087
|
+
|
|
40088
|
+
var colorState = Object.values(_this.seriesList)[0].colorState;
|
|
40089
|
+
colorState[0].selectedValue = null;
|
|
40090
|
+
|
|
40091
|
+
_this.update({
|
|
40092
|
+
updateSeries: false,
|
|
40093
|
+
updateSelTip: {
|
|
40094
|
+
update: false,
|
|
40095
|
+
keepDomain: false
|
|
40096
|
+
}
|
|
40097
|
+
});
|
|
40098
|
+
};
|
|
40099
|
+
|
|
40100
|
+
this.legendBoxDOM.addEventListener('mousedown', this.onLegendMouseDown);
|
|
40101
|
+
this.legendBoxDOM.addEventListener('mouseover', this.onLegendBoxOver);
|
|
40102
|
+
this.legendBoxDOM.addEventListener('mouseleave', this.onLegendBoxLeave);
|
|
40103
|
+
},
|
|
40104
|
+
getSelectedValue: function getSelectedValue(evt) {
|
|
40105
|
+
var _this$containerDOM$ge = this.containerDOM.getBoundingClientRect(),
|
|
40106
|
+
x = _this$containerDOM$ge.x,
|
|
40107
|
+
y = _this$containerDOM$ge.y,
|
|
40108
|
+
width = _this$containerDOM$ge.width,
|
|
40109
|
+
height = _this$containerDOM$ge.height;
|
|
40110
|
+
|
|
40111
|
+
var isTop = !this.isSide;
|
|
40112
|
+
var sp = isTop ? x : y;
|
|
40113
|
+
var size = isTop ? width : height;
|
|
40114
|
+
var movePoint = isTop ? evt.clientX : evt.clientY;
|
|
40115
|
+
|
|
40116
|
+
if (movePoint < sp) {
|
|
40117
|
+
movePoint = sp;
|
|
40118
|
+
} else if (movePoint > sp + size) {
|
|
40119
|
+
movePoint = sp + size;
|
|
40120
|
+
}
|
|
40121
|
+
|
|
40122
|
+
var move = movePoint - sp;
|
|
40123
|
+
return +convertToPercent(move, size);
|
|
40124
|
+
},
|
|
40125
|
+
|
|
40126
|
+
/**
|
|
40127
|
+
* To update legend, reset all process.
|
|
40128
|
+
*
|
|
40129
|
+
* @returns {undefined}
|
|
40130
|
+
*/
|
|
40131
|
+
updateLegend: function updateLegend() {
|
|
40132
|
+
this.resetLegend();
|
|
40133
|
+
this.createLegend();
|
|
40134
|
+
var series = Object.values(this.seriesList)[0];
|
|
40135
|
+
this.setLegendStyle(series);
|
|
40136
|
+
},
|
|
40137
|
+
|
|
40138
|
+
/**
|
|
40139
|
+
* To update legend, remove all of legendBoxDOM's children
|
|
40140
|
+
*
|
|
40141
|
+
* @returns {undefined}
|
|
40142
|
+
*/
|
|
40143
|
+
resetLegend: function resetLegend() {
|
|
40144
|
+
var containerDOM = this.containerDOM;
|
|
40145
|
+
|
|
40146
|
+
if (!containerDOM) {
|
|
40147
|
+
return;
|
|
40148
|
+
}
|
|
40149
|
+
|
|
40150
|
+
while (containerDOM.hasChildNodes()) {
|
|
40151
|
+
containerDOM.removeChild(containerDOM.firstChild);
|
|
40152
|
+
}
|
|
40153
|
+
},
|
|
40154
|
+
clearOverlay: function clearOverlay() {
|
|
40155
|
+
var targetDOM = this.containerDOM.getElementsByClassName('ev-chart-legend-line')[0];
|
|
40156
|
+
var overlayDOM = targetDOM.getElementsByClassName('ev-chart-legend-overlay')[0];
|
|
40157
|
+
|
|
40158
|
+
if (overlayDOM) {
|
|
40159
|
+
targetDOM.removeChild(overlayDOM);
|
|
40160
|
+
var thumbDOM = targetDOM.getElementsByClassName('ev-chart-legend-thumb')[0];
|
|
40161
|
+
var labels = thumbDOM.children;
|
|
40162
|
+
labels.forEach(function (labelDOM) {
|
|
40163
|
+
labelDOM.style.opacity = 1;
|
|
40164
|
+
});
|
|
40165
|
+
}
|
|
40166
|
+
},
|
|
40167
|
+
createLegendOverlay: function createLegendOverlay(value, opt) {
|
|
40168
|
+
this.clearOverlay();
|
|
40169
|
+
var handleSize = this.legendHandleSize;
|
|
40170
|
+
var min = opt.min,
|
|
40171
|
+
max = opt.max;
|
|
40172
|
+
var targetDOM = this.containerDOM.getElementsByClassName('ev-chart-legend-line')[0];
|
|
40173
|
+
var overlayDOM = document.createElement('div');
|
|
40174
|
+
overlayDOM.className = 'ev-chart-legend-overlay';
|
|
40175
|
+
overlayDOM.dataset.type = 'overlay';
|
|
40176
|
+
var tooltipDOM = document.createElement('div');
|
|
40177
|
+
tooltipDOM.className = 'ev-chart-legend-overlay-tooltip';
|
|
40178
|
+
tooltipDOM.innerText = Math.floor(min + (max - min) * (value / 100));
|
|
40179
|
+
var itemDOM = document.createElement('span');
|
|
40180
|
+
itemDOM.className = 'ev-chart-legend-overlay-item';
|
|
40181
|
+
itemDOM.dataset.type = 'overlay-item';
|
|
40182
|
+
var itemStyle;
|
|
40183
|
+
var tooltipStyle;
|
|
40184
|
+
var position = Math.floor(handleSize / 2) + 14;
|
|
40185
|
+
|
|
40186
|
+
if (this.isSide) {
|
|
40187
|
+
tooltipStyle = "top:".concat(100 - value, "%;left:").concat(position, "px;transform:translateY(-50%);");
|
|
40188
|
+
itemStyle = "top:".concat(100 - value, "%;transform:translateY(-50%);");
|
|
40189
|
+
} else {
|
|
40190
|
+
tooltipStyle = "top:-".concat(position, "px;left:").concat(value, "%;transform:translateX(-50%);");
|
|
40191
|
+
itemStyle = "left:".concat(value, "%;transform:translateX(-50%);");
|
|
40192
|
+
}
|
|
40193
|
+
|
|
40194
|
+
itemStyle += "width:".concat(handleSize - 10, "px;height:").concat(handleSize - 10, "px;");
|
|
40195
|
+
tooltipDOM.style.cssText = tooltipStyle;
|
|
40196
|
+
itemDOM.style.cssText = itemStyle;
|
|
40197
|
+
overlayDOM.appendChild(tooltipDOM);
|
|
40198
|
+
overlayDOM.appendChild(itemDOM);
|
|
40199
|
+
targetDOM.appendChild(overlayDOM);
|
|
40200
|
+
var thumbDOM = targetDOM.getElementsByClassName('ev-chart-legend-thumb')[0];
|
|
40201
|
+
var labels = thumbDOM.children;
|
|
40202
|
+
labels.forEach(function (labelDOM) {
|
|
40203
|
+
labelDOM.style.opacity = 0.2;
|
|
40204
|
+
});
|
|
40205
|
+
},
|
|
40206
|
+
createLegendHandle: function createLegendHandle(type) {
|
|
40207
|
+
var colorBtnDOM = document.createElement('span');
|
|
40208
|
+
colorBtnDOM.className = "ev-chart-legend-handle-btn-color ".concat(type);
|
|
40209
|
+
colorBtnDOM.dataset.type = 'handle-btn-color';
|
|
40210
|
+
var btnDOM = document.createElement('div');
|
|
40211
|
+
btnDOM.className = "ev-chart-legend-handle-btn ".concat(type);
|
|
40212
|
+
btnDOM.dataset.type = 'handle-btn';
|
|
40213
|
+
btnDOM.appendChild(colorBtnDOM);
|
|
40214
|
+
var handleDOM = document.createElement('div');
|
|
40215
|
+
handleDOM.className = "ev-chart-legend-handle ".concat(type);
|
|
40216
|
+
handleDOM.dataset.type = 'handle';
|
|
40217
|
+
handleDOM.appendChild(btnDOM);
|
|
40218
|
+
return handleDOM;
|
|
40219
|
+
},
|
|
40220
|
+
createLegendLabel: function createLegendLabel() {
|
|
40221
|
+
var textDOM = document.createElement('span');
|
|
40222
|
+
textDOM.className = 'ev-chart-legend-label-text';
|
|
40223
|
+
var labelDOM = document.createElement('div');
|
|
40224
|
+
labelDOM.className = 'ev-chart-legend-label';
|
|
40225
|
+
return labelDOM;
|
|
40226
|
+
},
|
|
40227
|
+
|
|
40228
|
+
/**
|
|
40229
|
+
* Create legend DOM
|
|
40230
|
+
*
|
|
40231
|
+
* @returns {undefined}
|
|
40232
|
+
*/
|
|
40233
|
+
createLegend: function createLegend() {
|
|
40234
|
+
var opt = this.options.legend;
|
|
40235
|
+
this.isSide = !['top', 'bottom'].includes(opt.position);
|
|
40236
|
+
var legendSize = this.isSide ? opt.width : opt.height;
|
|
40237
|
+
this.legendHandleSize = legendSize > MAX_HANDLE_SIZE ? MAX_HANDLE_SIZE : legendSize;
|
|
40238
|
+
var handleSize = this.legendHandleSize;
|
|
40239
|
+
var startHandleDOM = this.createLegendHandle(this.isSide ? 'end' : 'start', handleSize);
|
|
40240
|
+
var endHandleDOM = this.createLegendHandle(this.isSide ? 'start' : 'end', handleSize);
|
|
40241
|
+
var lineLayerDOM = document.createElement('div');
|
|
40242
|
+
lineLayerDOM.className = 'ev-chart-legend-line-layer';
|
|
40243
|
+
lineLayerDOM.dataset.type = 'line-layer';
|
|
40244
|
+
var thumbDOM = document.createElement('div');
|
|
40245
|
+
thumbDOM.className = 'ev-chart-legend-thumb';
|
|
40246
|
+
thumbDOM.dataset.type = 'thumb';
|
|
40247
|
+
thumbDOM.appendChild(this.createLegendLabel());
|
|
40248
|
+
thumbDOM.appendChild(this.createLegendLabel());
|
|
40249
|
+
var lineDOM = document.createElement('div');
|
|
40250
|
+
lineDOM.className = 'ev-chart-legend-line';
|
|
40251
|
+
lineDOM.dataset.type = 'line';
|
|
40252
|
+
lineDOM.appendChild(lineLayerDOM);
|
|
40253
|
+
lineDOM.appendChild(thumbDOM);
|
|
40254
|
+
this.containerDOM.appendChild(lineDOM);
|
|
40255
|
+
this.containerDOM.appendChild(startHandleDOM);
|
|
40256
|
+
this.containerDOM.appendChild(endHandleDOM);
|
|
40257
|
+
},
|
|
40258
|
+
setLegendStyle: function setLegendStyle(series) {
|
|
40259
|
+
var dir = this.isSide ? 'top' : 'right';
|
|
40260
|
+
var handleSize = this.legendHandleSize;
|
|
40261
|
+
var valueOpt = series.valueOpt,
|
|
40262
|
+
colorState = series.colorState;
|
|
40263
|
+
var min = valueOpt.min,
|
|
40264
|
+
max = valueOpt.max,
|
|
40265
|
+
decimalPoint = valueOpt.decimalPoint;
|
|
40266
|
+
var _colorState$3 = colorState[0],
|
|
40267
|
+
start = _colorState$3.start,
|
|
40268
|
+
end = _colorState$3.end;
|
|
40269
|
+
var startColor = series.getColorForGradient(start);
|
|
40270
|
+
var endColor = series.getColorForGradient(end);
|
|
40271
|
+
var gradient = "linear-gradient(to ".concat(dir, ", ");
|
|
40272
|
+
gradient += "".concat(startColor, ", ").concat(endColor, ")");
|
|
40273
|
+
var labelPosition = Math.floor(handleSize / 2) + 14;
|
|
40274
|
+
var defaultHandleStyle = "width:".concat(handleSize, "px;height:").concat(handleSize, "px;");
|
|
40275
|
+
var labelStyle;
|
|
40276
|
+
var startStyle;
|
|
40277
|
+
var endStyle;
|
|
40278
|
+
var thumbStyle = "background:".concat(gradient, ";");
|
|
40279
|
+
|
|
40280
|
+
if (this.isSide) {
|
|
40281
|
+
defaultHandleStyle += "margin-top:-".concat(handleSize / 2, "px;");
|
|
40282
|
+
labelStyle = "left:".concat(labelPosition, "px;transform:translateY(-50%);top:");
|
|
40283
|
+
startStyle = "top:".concat(100 - end, "%;");
|
|
40284
|
+
endStyle = "top:".concat(100 - start, "%;");
|
|
40285
|
+
thumbStyle += "top:".concat(100 - end, "%;height:").concat(end - start, "%;");
|
|
40286
|
+
} else {
|
|
40287
|
+
defaultHandleStyle += "margin-left:-".concat(handleSize / 2, "px;");
|
|
40288
|
+
labelStyle = "top:-".concat(labelPosition, "px;transform:translateX(-50%);left:");
|
|
40289
|
+
startStyle = "left:".concat(start, "%;");
|
|
40290
|
+
endStyle = "left:".concat(end, "%;");
|
|
40291
|
+
thumbStyle += "left:".concat(start, "%;width:").concat(end - start, "%;");
|
|
40292
|
+
}
|
|
40293
|
+
|
|
40294
|
+
var minText = (min + (max - min) * (start / 100)).toFixed(decimalPoint);
|
|
40295
|
+
var maxText = (min + (max - min) * (end / 100)).toFixed(decimalPoint);
|
|
40296
|
+
var thumbDOM = this.containerDOM.getElementsByClassName('ev-chart-legend-thumb')[0];
|
|
40297
|
+
thumbDOM.style.cssText = thumbStyle;
|
|
40298
|
+
var labelDOM = thumbDOM.getElementsByClassName('ev-chart-legend-label');
|
|
40299
|
+
labelDOM[0].style.cssText = "".concat(labelStyle, "0%;");
|
|
40300
|
+
labelDOM[1].style.cssText = "".concat(labelStyle, "100%;");
|
|
40301
|
+
labelDOM[0].innerText = this.isSide ? maxText : minText;
|
|
40302
|
+
labelDOM[1].innerText = this.isSide ? minText : maxText;
|
|
40303
|
+
var handleDOM = this.containerDOM.getElementsByClassName('ev-chart-legend-handle');
|
|
40304
|
+
handleDOM[0].style.cssText = defaultHandleStyle + startStyle;
|
|
40305
|
+
handleDOM[1].style.cssText = defaultHandleStyle + endStyle;
|
|
40306
|
+
var btnDOM = this.containerDOM.getElementsByClassName('ev-chart-legend-handle-btn-color');
|
|
40307
|
+
btnDOM[0].style.backgroundColor = this.isSide ? endColor : startColor;
|
|
40308
|
+
btnDOM[1].style.backgroundColor = this.isSide ? startColor : endColor;
|
|
40309
|
+
},
|
|
40310
|
+
|
|
40311
|
+
/**
|
|
40312
|
+
* Set legend components position by option
|
|
40313
|
+
*
|
|
40314
|
+
* @returns {undefined}
|
|
40315
|
+
*/
|
|
40316
|
+
setLegendPosition: function setLegendPosition() {
|
|
40317
|
+
var _opt$legend, _opt$title, _opt$title2, _opt$legend$padding, _opt$legend2;
|
|
40318
|
+
|
|
40319
|
+
var opt = this.options;
|
|
40320
|
+
var position = opt === null || opt === void 0 ? void 0 : (_opt$legend = opt.legend) === null || _opt$legend === void 0 ? void 0 : _opt$legend.position;
|
|
40321
|
+
var minWidth = MIN_BOX_SIZE.width,
|
|
40322
|
+
minHeight = MIN_BOX_SIZE.height;
|
|
40323
|
+
var handleSize = this.legendHandleSize;
|
|
40324
|
+
var title = opt !== null && opt !== void 0 && (_opt$title = opt.title) !== null && _opt$title !== void 0 && _opt$title.show ? opt === null || opt === void 0 ? void 0 : (_opt$title2 = opt.title) === null || _opt$title2 === void 0 ? void 0 : _opt$title2.height : 0;
|
|
40325
|
+
var positionTop = title + minHeight;
|
|
40326
|
+
|
|
40327
|
+
var _ref = (_opt$legend$padding = opt === null || opt === void 0 ? void 0 : (_opt$legend2 = opt.legend) === null || _opt$legend2 === void 0 ? void 0 : _opt$legend2.padding) !== null && _opt$legend$padding !== void 0 ? _opt$legend$padding : {},
|
|
40328
|
+
_ref$top = _ref.top,
|
|
40329
|
+
top = _ref$top === void 0 ? 0 : _ref$top,
|
|
40330
|
+
_ref$bottom = _ref.bottom,
|
|
40331
|
+
bottom = _ref$bottom === void 0 ? 0 : _ref$bottom,
|
|
40332
|
+
_ref$left = _ref.left,
|
|
40333
|
+
left = _ref$left === void 0 ? 0 : _ref$left,
|
|
40334
|
+
_ref$right = _ref.right,
|
|
40335
|
+
right = _ref$right === void 0 ? 0 : _ref$right;
|
|
40336
|
+
|
|
40337
|
+
var wrapperStyle = this.wrapperDOM.style;
|
|
40338
|
+
|
|
40339
|
+
if (!wrapperStyle) {
|
|
40340
|
+
return;
|
|
40341
|
+
}
|
|
40342
|
+
|
|
40343
|
+
var legendStyle;
|
|
40344
|
+
var boxStyle;
|
|
40345
|
+
var containerStyle;
|
|
40346
|
+
var chartRect;
|
|
40347
|
+
|
|
40348
|
+
switch (position) {
|
|
40349
|
+
case 'top':
|
|
40350
|
+
wrapperStyle.padding = "".concat(positionTop, "px 0 0 0");
|
|
40351
|
+
chartRect = this.chartDOM.getBoundingClientRect();
|
|
40352
|
+
boxStyle = "padding:".concat(handleSize + 7, "px ").concat(right, "px ").concat(bottom, "px ").concat(left, "px;");
|
|
40353
|
+
boxStyle += 'width:100%';
|
|
40354
|
+
boxStyle += "height".concat(minHeight, "px;");
|
|
40355
|
+
legendStyle = "width:".concat(chartRect.width, "px;");
|
|
40356
|
+
legendStyle += "height:".concat(minHeight, "px;");
|
|
40357
|
+
legendStyle += "top:".concat(title, "px;");
|
|
40358
|
+
break;
|
|
40359
|
+
|
|
40360
|
+
case 'right':
|
|
40361
|
+
wrapperStyle.padding = "".concat(title, "px ").concat(minWidth, "px 0 0");
|
|
40362
|
+
chartRect = this.chartDOM.getBoundingClientRect();
|
|
40363
|
+
boxStyle = "padding:".concat(top, "px ").concat(right, "px ").concat(bottom, "px ").concat(left, "px;");
|
|
40364
|
+
boxStyle += "width:".concat(minWidth, "px;");
|
|
40365
|
+
boxStyle += 'height:100%;';
|
|
40366
|
+
boxStyle += "max-height:".concat(chartRect.height, "px;");
|
|
40367
|
+
legendStyle = "width:".concat(minWidth, "px;");
|
|
40368
|
+
legendStyle += "height:".concat(chartRect.height, "px;");
|
|
40369
|
+
legendStyle += "top:".concat(title, "px;right:0px;");
|
|
40370
|
+
break;
|
|
40371
|
+
|
|
40372
|
+
case 'bottom':
|
|
40373
|
+
wrapperStyle.padding = "".concat(title, "px 0 ").concat(minHeight, "px 0");
|
|
40374
|
+
chartRect = this.chartDOM.getBoundingClientRect();
|
|
40375
|
+
boxStyle = "padding:".concat(handleSize + 7, "px ").concat(right, "px ").concat(bottom, "px ").concat(left, "px;");
|
|
40376
|
+
boxStyle += 'width:100%;';
|
|
40377
|
+
boxStyle += "height:".concat(minHeight, "px;");
|
|
40378
|
+
legendStyle = "width:".concat(chartRect.width, "px;");
|
|
40379
|
+
legendStyle += "height:".concat(minHeight, "px;");
|
|
40380
|
+
legendStyle += 'bottom:0px;left:0px;';
|
|
40381
|
+
break;
|
|
40382
|
+
|
|
40383
|
+
case 'left':
|
|
40384
|
+
wrapperStyle.padding = "".concat(title, "px 0 0 ").concat(minWidth, "px");
|
|
40385
|
+
chartRect = this.chartDOM.getBoundingClientRect();
|
|
40386
|
+
boxStyle = "padding:".concat(top, "px ").concat(right, "px ").concat(bottom, "px ").concat(left, "px;");
|
|
40387
|
+
boxStyle += 'display:absolute;';
|
|
40388
|
+
boxStyle += 'bottom:0px;';
|
|
40389
|
+
boxStyle += "width:".concat(minWidth, "px;");
|
|
40390
|
+
boxStyle += 'height:100%;';
|
|
40391
|
+
boxStyle += "maxHeight:".concat(chartRect.height, "px;");
|
|
40392
|
+
legendStyle = "width:".concat(minWidth, "px;");
|
|
40393
|
+
legendStyle += "height:".concat(chartRect.height, "px;");
|
|
40394
|
+
legendStyle += "top:".concat(title, "px;left:0px");
|
|
40395
|
+
break;
|
|
40396
|
+
|
|
40397
|
+
default:
|
|
40398
|
+
break;
|
|
40399
|
+
}
|
|
40400
|
+
|
|
40401
|
+
if (['top', 'bottom'].includes(position)) {
|
|
40402
|
+
var containerSize = chartRect.width / 2;
|
|
40403
|
+
containerStyle = "left:".concat(chartRect.width / 2 - containerSize / 2, "px;");
|
|
40404
|
+
containerStyle += "width:".concat(containerSize, "px;");
|
|
40405
|
+
containerStyle += "height:".concat(handleSize, "px;");
|
|
40406
|
+
containerStyle += 'padding:4px 0;';
|
|
40407
|
+
containerStyle += 'margin:0 4px;';
|
|
40408
|
+
} else {
|
|
40409
|
+
var _containerSize = chartRect.height / 2;
|
|
40410
|
+
|
|
40411
|
+
containerStyle = "top:".concat(chartRect.height / 2 - _containerSize / 2, "px;");
|
|
40412
|
+
containerStyle += 'left:5px;';
|
|
40413
|
+
containerStyle += "width:".concat(handleSize, "px;");
|
|
40414
|
+
containerStyle += "height:".concat(_containerSize, "px;");
|
|
40415
|
+
containerStyle += 'padding:0 4px;';
|
|
40416
|
+
containerStyle += 'margin:4px 0;';
|
|
40417
|
+
}
|
|
40418
|
+
|
|
40419
|
+
this.containerDOM.style.cssText = containerStyle;
|
|
40420
|
+
this.legendBoxDOM.style.cssText = boxStyle;
|
|
40421
|
+
this.legendDOM.style.cssText = legendStyle;
|
|
40422
|
+
},
|
|
40423
|
+
|
|
40424
|
+
/**
|
|
40425
|
+
* Update legend components size
|
|
40426
|
+
*
|
|
40427
|
+
* @returns {undefined}
|
|
40428
|
+
*/
|
|
40429
|
+
updateLegendContainerSize: function updateLegendContainerSize() {
|
|
40430
|
+
var series = Object.values(this.seriesList)[0];
|
|
40431
|
+
this.setLegendStyle(series);
|
|
40432
|
+
},
|
|
40433
|
+
|
|
40434
|
+
/**
|
|
40435
|
+
* Show legend components by manipulating css
|
|
40436
|
+
*
|
|
40437
|
+
* @returns {undefined}
|
|
40438
|
+
*/
|
|
40439
|
+
showLegend: function showLegend() {
|
|
40440
|
+
if (this.resizeDOM) {
|
|
40441
|
+
this.resizeDOM.style.display = 'block';
|
|
40442
|
+
}
|
|
40443
|
+
|
|
40444
|
+
if (this.legendDOM) {
|
|
40445
|
+
this.legendDOM.style.display = 'block';
|
|
40446
|
+
}
|
|
40447
|
+
},
|
|
40448
|
+
|
|
40449
|
+
/**
|
|
40450
|
+
* Hide legend components by manipulating css
|
|
40451
|
+
*
|
|
40452
|
+
* @returns {undefined}
|
|
40453
|
+
*/
|
|
40454
|
+
hideLegend: function hideLegend() {
|
|
40455
|
+
var _this$wrapperDOM, _this$legendDOM, _opt$title3, _opt$title4;
|
|
40456
|
+
|
|
40457
|
+
var opt = this.options;
|
|
40458
|
+
var wrapperStyle = (_this$wrapperDOM = this.wrapperDOM) === null || _this$wrapperDOM === void 0 ? void 0 : _this$wrapperDOM.style;
|
|
40459
|
+
var legendStyle = (_this$legendDOM = this.legendDOM) === null || _this$legendDOM === void 0 ? void 0 : _this$legendDOM.style;
|
|
40460
|
+
var title = opt !== null && opt !== void 0 && (_opt$title3 = opt.title) !== null && _opt$title3 !== void 0 && _opt$title3.show ? opt === null || opt === void 0 ? void 0 : (_opt$title4 = opt.title) === null || _opt$title4 === void 0 ? void 0 : _opt$title4.height : 0;
|
|
40461
|
+
|
|
40462
|
+
if (!legendStyle || !wrapperStyle) {
|
|
40463
|
+
return;
|
|
40464
|
+
}
|
|
40465
|
+
|
|
40466
|
+
legendStyle.display = 'none';
|
|
40467
|
+
legendStyle.width = '0';
|
|
40468
|
+
legendStyle.height = '0';
|
|
40469
|
+
wrapperStyle.padding = "".concat(title, "px 0 0 0");
|
|
40470
|
+
}
|
|
40471
|
+
};
|
|
40472
|
+
/* harmony default export */ var plugins_legend_gradient = (plugins_legend_gradient_modules);
|
|
39769
40473
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.from-entries.js
|
|
39770
40474
|
var es_object_from_entries = __webpack_require__("c1f9");
|
|
39771
40475
|
|
|
@@ -40591,6 +41295,7 @@ var plugins_interaction_modules = {
|
|
|
40591
41295
|
|
|
40592
41296
|
|
|
40593
41297
|
|
|
41298
|
+
|
|
40594
41299
|
var TITLE_HEIGHT = 30;
|
|
40595
41300
|
var TEXT_HEIGHT = 14;
|
|
40596
41301
|
var LINE_SPACING = 8;
|
|
@@ -40937,7 +41642,7 @@ var plugins_tooltip_modules = {
|
|
|
40937
41642
|
* @returns {undefined}
|
|
40938
41643
|
*/
|
|
40939
41644
|
drawToolTipForHeatMap: function drawToolTipForHeatMap(hitInfo, context) {
|
|
40940
|
-
var _opt$formatter3, _opt$formatter4
|
|
41645
|
+
var _opt$formatter3, _opt$formatter4;
|
|
40941
41646
|
|
|
40942
41647
|
var ctx = context;
|
|
40943
41648
|
var items = hitInfo.items;
|
|
@@ -40955,11 +41660,28 @@ var plugins_tooltip_modules = {
|
|
|
40955
41660
|
var opt = this.options.tooltip;
|
|
40956
41661
|
var valueFormatter = typeof opt.formatter === 'function' ? opt.formatter : (_opt$formatter3 = opt.formatter) === null || _opt$formatter3 === void 0 ? void 0 : _opt$formatter3.value;
|
|
40957
41662
|
var titleFormatter = (_opt$formatter4 = opt.formatter) === null || _opt$formatter4 === void 0 ? void 0 : _opt$formatter4.title;
|
|
40958
|
-
var
|
|
40959
|
-
var isShow =
|
|
40960
|
-
|
|
40961
|
-
|
|
40962
|
-
|
|
41663
|
+
var series = Object.values(this.seriesList)[0];
|
|
41664
|
+
var isShow = false;
|
|
41665
|
+
var colorState = series.colorState,
|
|
41666
|
+
isGradient = series.isGradient;
|
|
41667
|
+
|
|
41668
|
+
if (isGradient) {
|
|
41669
|
+
var _series$valueOpt = series.valueOpt,
|
|
41670
|
+
min = _series$valueOpt.min,
|
|
41671
|
+
max = _series$valueOpt.max;
|
|
41672
|
+
var ratio = convertToPercent(hitItem.o - min, max - min);
|
|
41673
|
+
var _colorState$ = colorState[0],
|
|
41674
|
+
start = _colorState$.start,
|
|
41675
|
+
end = _colorState$.end;
|
|
41676
|
+
isShow = start <= ratio && ratio <= end || hitItem.o === -1;
|
|
41677
|
+
} else {
|
|
41678
|
+
var _colorState$find;
|
|
41679
|
+
|
|
41680
|
+
isShow = (_colorState$find = colorState.find(function (_ref) {
|
|
41681
|
+
var id = _ref.id;
|
|
41682
|
+
return id === hitItem.cId;
|
|
41683
|
+
})) === null || _colorState$find === void 0 ? void 0 : _colorState$find.show;
|
|
41684
|
+
}
|
|
40963
41685
|
|
|
40964
41686
|
if (!isShow) {
|
|
40965
41687
|
this.tooltipClear();
|
|
@@ -42214,6 +42936,7 @@ var element_tip_modules = {
|
|
|
42214
42936
|
|
|
42215
42937
|
|
|
42216
42938
|
|
|
42939
|
+
|
|
42217
42940
|
|
|
42218
42941
|
|
|
42219
42942
|
var chart_core_EvChart = /*#__PURE__*/function () {
|
|
@@ -42231,6 +42954,11 @@ var chart_core_EvChart = /*#__PURE__*/function () {
|
|
|
42231
42954
|
Object.assign(this, plugins_tooltip);
|
|
42232
42955
|
Object.assign(this, plugins_pie);
|
|
42233
42956
|
Object.assign(this, element_tip);
|
|
42957
|
+
|
|
42958
|
+
if (options.type === 'heatMap' && options.legend.type === 'gradient') {
|
|
42959
|
+
Object.assign(this, plugins_legend_gradient);
|
|
42960
|
+
}
|
|
42961
|
+
|
|
42234
42962
|
this.target = target;
|
|
42235
42963
|
this.data = data;
|
|
42236
42964
|
this.options = options;
|
|
@@ -42403,7 +43131,8 @@ var chart_core_EvChart = /*#__PURE__*/function () {
|
|
|
42403
43131
|
selectSeries: {
|
|
42404
43132
|
option: selectSeries,
|
|
42405
43133
|
selected: this.defaultSelectInfo
|
|
42406
|
-
}
|
|
43134
|
+
},
|
|
43135
|
+
overlayCtx: this.overlayCtx
|
|
42407
43136
|
};
|
|
42408
43137
|
var showIndex = 0;
|
|
42409
43138
|
var showSeriesCount = 0;
|
|
@@ -43183,6 +43912,7 @@ var DEFAULT_OPTIONS = {
|
|
|
43183
43912
|
},
|
|
43184
43913
|
legend: {
|
|
43185
43914
|
show: true,
|
|
43915
|
+
type: 'icon',
|
|
43186
43916
|
position: 'right',
|
|
43187
43917
|
color: '#353740',
|
|
43188
43918
|
inactive: '#aaa',
|
|
@@ -43270,12 +44000,13 @@ var DEFAULT_OPTIONS = {
|
|
|
43270
44000
|
heatMapColor: {
|
|
43271
44001
|
min: '#FFFFFF',
|
|
43272
44002
|
max: '#0052FF',
|
|
43273
|
-
categoryCnt:
|
|
44003
|
+
categoryCnt: 1,
|
|
43274
44004
|
stroke: {
|
|
43275
44005
|
show: false,
|
|
43276
44006
|
color: '#FFFFFF',
|
|
43277
44007
|
lineWidth: 1,
|
|
43278
|
-
opacity: 1
|
|
44008
|
+
opacity: 1,
|
|
44009
|
+
radius: 0
|
|
43279
44010
|
},
|
|
43280
44011
|
error: '#FF0000',
|
|
43281
44012
|
decimalPoint: 0
|
|
@@ -43684,32 +44415,32 @@ Chart.install = function (app) {
|
|
|
43684
44415
|
};
|
|
43685
44416
|
|
|
43686
44417
|
/* harmony default export */ var chart = (Chart);
|
|
43687
|
-
// 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/treeGrid/TreeGrid.vue?vue&type=template&id=
|
|
44418
|
+
// 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/treeGrid/TreeGrid.vue?vue&type=template&id=89cff218&scoped=true
|
|
43688
44419
|
|
|
43689
44420
|
|
|
43690
|
-
var
|
|
44421
|
+
var TreeGridvue_type_template_id_89cff218_scoped_true_withId = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withScopeId"])("data-v-89cff218");
|
|
43691
44422
|
|
|
43692
|
-
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-
|
|
44423
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-89cff218");
|
|
43693
44424
|
|
|
43694
|
-
var
|
|
44425
|
+
var TreeGridvue_type_template_id_89cff218_scoped_true_hoisted_1 = {
|
|
43695
44426
|
class: "column-list"
|
|
43696
44427
|
};
|
|
43697
|
-
var
|
|
44428
|
+
var TreeGridvue_type_template_id_89cff218_scoped_true_hoisted_2 = {
|
|
43698
44429
|
key: 0
|
|
43699
44430
|
};
|
|
43700
44431
|
|
|
43701
|
-
var
|
|
44432
|
+
var TreeGridvue_type_template_id_89cff218_scoped_true_hoisted_3 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("td", {
|
|
43702
44433
|
class: "is-empty"
|
|
43703
44434
|
}, "No records", -1);
|
|
43704
44435
|
|
|
43705
|
-
var
|
|
44436
|
+
var TreeGridvue_type_template_id_89cff218_scoped_true_hoisted_4 = {
|
|
43706
44437
|
ref: "resizeLine",
|
|
43707
44438
|
class: "table-resize-line"
|
|
43708
44439
|
};
|
|
43709
44440
|
|
|
43710
44441
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])();
|
|
43711
44442
|
|
|
43712
|
-
var
|
|
44443
|
+
var TreeGridvue_type_template_id_89cff218_scoped_true_render = /*#__PURE__*/TreeGridvue_type_template_id_89cff218_scoped_true_withId(function (_ctx, _cache, $props, $setup, $data, $options) {
|
|
43713
44444
|
var _component_toolbar = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("toolbar");
|
|
43714
44445
|
|
|
43715
44446
|
var _component_ev_checkbox = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ev-checkbox");
|
|
@@ -43731,7 +44462,7 @@ var TreeGridvue_type_template_id_1aab6f12_scoped_true_render = /*#__PURE__*/Tree
|
|
|
43731
44462
|
class: "toolbar-wrapper",
|
|
43732
44463
|
style: "width: ".concat(_ctx.gridWidth, ";")
|
|
43733
44464
|
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_toolbar, null, {
|
|
43734
|
-
toolbarWrapper:
|
|
44465
|
+
toolbarWrapper: TreeGridvue_type_template_id_89cff218_scoped_true_withId(function () {
|
|
43735
44466
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "toolbar", {
|
|
43736
44467
|
item: {
|
|
43737
44468
|
onSearch: $setup.onSearch
|
|
@@ -43748,7 +44479,7 @@ var TreeGridvue_type_template_id_1aab6f12_scoped_true_render = /*#__PURE__*/Tree
|
|
|
43748
44479
|
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("div", {
|
|
43749
44480
|
ref: "header",
|
|
43750
44481
|
class: $setup.headerClass
|
|
43751
|
-
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("ul",
|
|
44482
|
+
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("ul", TreeGridvue_type_template_id_89cff218_scoped_true_hoisted_1, [_ctx.useCheckbox.use ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("li", {
|
|
43752
44483
|
key: 0,
|
|
43753
44484
|
class: $setup.headerCheckboxClass,
|
|
43754
44485
|
style: "width: ".concat(_ctx.minWidth, "px;")
|
|
@@ -43817,7 +44548,7 @@ var TreeGridvue_type_template_id_1aab6f12_scoped_true_render = /*#__PURE__*/Tree
|
|
|
43817
44548
|
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.orderedColumns, function (column, cellIndex) {
|
|
43818
44549
|
return {
|
|
43819
44550
|
name: $setup.getSlotName(column.field),
|
|
43820
|
-
fn:
|
|
44551
|
+
fn: TreeGridvue_type_template_id_89cff218_scoped_true_withId(function (_ref) {
|
|
43821
44552
|
var item = _ref.item;
|
|
43822
44553
|
return [!!_ctx.$slots[column.field] ? Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, column.field, {
|
|
43823
44554
|
key: 0,
|
|
@@ -43832,13 +44563,13 @@ var TreeGridvue_type_template_id_1aab6f12_scoped_true_render = /*#__PURE__*/Tree
|
|
|
43832
44563
|
})
|
|
43833
44564
|
};
|
|
43834
44565
|
})]), 1032, ["selected-data", "node-data", "use-checkbox", "ordered-columns", "expand-icon", "collapse-icon", "parent-icon", "child-icon", "is-resize", "row-height", "min-width", "highlight-index", "border-style", "onCheckTreeData", "onExpandTreeData", "onClickTreeData", "onDblClickTreeData"]);
|
|
43835
|
-
}), 128)), !_ctx.viewStore.length ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("tr",
|
|
44566
|
+
}), 128)), !_ctx.viewStore.length ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("tr", TreeGridvue_type_template_id_89cff218_scoped_true_hoisted_2, [TreeGridvue_type_template_id_89cff218_scoped_true_hoisted_3])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("div", {
|
|
43836
44567
|
style: "height: ".concat(_ctx.vScrollBottomHeight, "px;"),
|
|
43837
44568
|
class: "vscroll-spacer"
|
|
43838
44569
|
}, null, 4), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_ev_context_menu, {
|
|
43839
44570
|
ref: "menu",
|
|
43840
44571
|
items: _ctx.contextMenuItems
|
|
43841
|
-
}, null, 8, ["items"])], 34), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("div",
|
|
44572
|
+
}, null, 8, ["items"])], 34), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("div", TreeGridvue_type_template_id_89cff218_scoped_true_hoisted_4, null, 512), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], _ctx.showResizeLine]])], 2)], 4), [[_directive_resize, $setup.onResize], [_directive_observe_visibility, {
|
|
43842
44573
|
callback: $setup.onShow,
|
|
43843
44574
|
once: true
|
|
43844
44575
|
}]]), $setup.useSummary ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_grid_summary, {
|
|
@@ -43866,7 +44597,7 @@ var TreeGridvue_type_template_id_1aab6f12_scoped_true_render = /*#__PURE__*/Tree
|
|
|
43866
44597
|
order: _ctx.order
|
|
43867
44598
|
}, null, 8, ["modelValue", "total", "per-page", "visible-page", "show-page-info", "order"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64);
|
|
43868
44599
|
});
|
|
43869
|
-
// CONCATENATED MODULE: ./src/components/treeGrid/TreeGrid.vue?vue&type=template&id=
|
|
44600
|
+
// CONCATENATED MODULE: ./src/components/treeGrid/TreeGrid.vue?vue&type=template&id=89cff218&scoped=true
|
|
43870
44601
|
|
|
43871
44602
|
// 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/treeGrid/TreeGridNode.vue?vue&type=template&id=89ae5faa&scoped=true
|
|
43872
44603
|
|
|
@@ -45744,6 +46475,7 @@ var treeGrid_uses_pagingEvent = function pagingEvent(params) {
|
|
|
45744
46475
|
|
|
45745
46476
|
setParentShow = function setParentShow(data) {
|
|
45746
46477
|
if (!(data !== null && data !== void 0 && data.parent)) {
|
|
46478
|
+
setChildShow(data);
|
|
45747
46479
|
return;
|
|
45748
46480
|
}
|
|
45749
46481
|
|
|
@@ -46004,8 +46736,8 @@ var treeGrid_uses_pagingEvent = function pagingEvent(params) {
|
|
|
46004
46736
|
});
|
|
46005
46737
|
// CONCATENATED MODULE: ./src/components/treeGrid/TreeGrid.vue?vue&type=script&lang=js
|
|
46006
46738
|
|
|
46007
|
-
// EXTERNAL MODULE: ./src/components/treeGrid/TreeGrid.vue?vue&type=style&index=0&id=
|
|
46008
|
-
var
|
|
46739
|
+
// EXTERNAL MODULE: ./src/components/treeGrid/TreeGrid.vue?vue&type=style&index=0&id=89cff218&lang=scss&scoped=true
|
|
46740
|
+
var TreeGridvue_type_style_index_0_id_89cff218_lang_scss_scoped_true = __webpack_require__("ca6f");
|
|
46009
46741
|
|
|
46010
46742
|
// CONCATENATED MODULE: ./src/components/treeGrid/TreeGrid.vue
|
|
46011
46743
|
|
|
@@ -46013,8 +46745,8 @@ var TreeGridvue_type_style_index_0_id_1aab6f12_lang_scss_scoped_true = __webpack
|
|
|
46013
46745
|
|
|
46014
46746
|
|
|
46015
46747
|
|
|
46016
|
-
TreeGridvue_type_script_lang_js.render =
|
|
46017
|
-
TreeGridvue_type_script_lang_js.__scopeId = "data-v-
|
|
46748
|
+
TreeGridvue_type_script_lang_js.render = TreeGridvue_type_template_id_89cff218_scoped_true_render
|
|
46749
|
+
TreeGridvue_type_script_lang_js.__scopeId = "data-v-89cff218"
|
|
46018
46750
|
|
|
46019
46751
|
/* harmony default export */ var TreeGrid = (TreeGridvue_type_script_lang_js);
|
|
46020
46752
|
// CONCATENATED MODULE: ./src/components/treeGrid/index.js
|