evui 3.3.17 → 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 +1020 -182
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +1020 -182
- 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 +25 -3
- package/src/components/chart/element/element.heatmap.js +132 -61
- package/src/components/chart/helpers/helpers.constant.js +11 -0
- package/src/components/chart/helpers/helpers.util.js +8 -1
- 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 +49 -24
- package/src/components/chart/scale/scale.js +48 -0
- package/src/components/chart/scale/scale.step.js +2 -0
- package/src/components/chart/scale/scale.time.category.js +2 -0
- 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.umd.js
CHANGED
|
@@ -105,6 +105,21 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
105
105
|
/* unused harmony reexport * */
|
|
106
106
|
|
|
107
107
|
|
|
108
|
+
/***/ }),
|
|
109
|
+
|
|
110
|
+
/***/ "009b":
|
|
111
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
112
|
+
|
|
113
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
114
|
+
|
|
115
|
+
// load the styles
|
|
116
|
+
var content = __webpack_require__("95d6");
|
|
117
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
118
|
+
if(content.locals) module.exports = content.locals;
|
|
119
|
+
// add the styles to the DOM
|
|
120
|
+
var add = __webpack_require__("499e").default
|
|
121
|
+
var update = add("550a9dee", content, true, {"sourceMap":false,"shadowMode":false});
|
|
122
|
+
|
|
108
123
|
/***/ }),
|
|
109
124
|
|
|
110
125
|
/***/ "00ee":
|
|
@@ -173,21 +188,6 @@ module.exports = function (fn, that, length) {
|
|
|
173
188
|
/* unused harmony reexport * */
|
|
174
189
|
|
|
175
190
|
|
|
176
|
-
/***/ }),
|
|
177
|
-
|
|
178
|
-
/***/ "044f":
|
|
179
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
180
|
-
|
|
181
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
182
|
-
|
|
183
|
-
// load the styles
|
|
184
|
-
var content = __webpack_require__("4890");
|
|
185
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
186
|
-
if(content.locals) module.exports = content.locals;
|
|
187
|
-
// add the styles to the DOM
|
|
188
|
-
var add = __webpack_require__("499e").default
|
|
189
|
-
var update = add("1fe9e43e", content, true, {"sourceMap":false,"shadowMode":false});
|
|
190
|
-
|
|
191
191
|
/***/ }),
|
|
192
192
|
|
|
193
193
|
/***/ "0538":
|
|
@@ -5369,20 +5369,6 @@ module.exports = function (O, defaultConstructor) {
|
|
|
5369
5369
|
};
|
|
5370
5370
|
|
|
5371
5371
|
|
|
5372
|
-
/***/ }),
|
|
5373
|
-
|
|
5374
|
-
/***/ "4890":
|
|
5375
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
5376
|
-
|
|
5377
|
-
// Imports
|
|
5378
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
5379
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
5380
|
-
// Module
|
|
5381
|
-
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}", ""]);
|
|
5382
|
-
// Exports
|
|
5383
|
-
module.exports = exports;
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
5372
|
/***/ }),
|
|
5387
5373
|
|
|
5388
5374
|
/***/ "4930":
|
|
@@ -6933,7 +6919,7 @@ module.exports = {
|
|
|
6933
6919
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
6934
6920
|
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
6935
6921
|
// Module
|
|
6936
|
-
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
|
|
6922
|
+
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}", ""]);
|
|
6937
6923
|
// Exports
|
|
6938
6924
|
module.exports = exports;
|
|
6939
6925
|
|
|
@@ -7966,7 +7952,7 @@ $({ target: 'Number', stat: true }, {
|
|
|
7966
7952
|
/***/ "9224":
|
|
7967
7953
|
/***/ (function(module) {
|
|
7968
7954
|
|
|
7969
|
-
module.exports = JSON.parse("{\"a\":\"3.3.
|
|
7955
|
+
module.exports = JSON.parse("{\"a\":\"3.3.20\"}");
|
|
7970
7956
|
|
|
7971
7957
|
/***/ }),
|
|
7972
7958
|
|
|
@@ -8105,6 +8091,20 @@ exports.push([module.i, ".ev-tree-view li ul{padding:0 0 0 18px;margin:0}.ev-tre
|
|
|
8105
8091
|
module.exports = exports;
|
|
8106
8092
|
|
|
8107
8093
|
|
|
8094
|
+
/***/ }),
|
|
8095
|
+
|
|
8096
|
+
/***/ "95d6":
|
|
8097
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
8098
|
+
|
|
8099
|
+
// Imports
|
|
8100
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
8101
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
8102
|
+
// Module
|
|
8103
|
+
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}", ""]);
|
|
8104
|
+
// Exports
|
|
8105
|
+
module.exports = exports;
|
|
8106
|
+
|
|
8107
|
+
|
|
8108
8108
|
/***/ }),
|
|
8109
8109
|
|
|
8110
8110
|
/***/ "96cf":
|
|
@@ -9860,17 +9860,6 @@ module.exports = {
|
|
|
9860
9860
|
};
|
|
9861
9861
|
|
|
9862
9862
|
|
|
9863
|
-
/***/ }),
|
|
9864
|
-
|
|
9865
|
-
/***/ "af65":
|
|
9866
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9867
|
-
|
|
9868
|
-
"use strict";
|
|
9869
|
-
/* 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");
|
|
9870
|
-
/* 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__);
|
|
9871
|
-
/* unused harmony reexport * */
|
|
9872
|
-
|
|
9873
|
-
|
|
9874
9863
|
/***/ }),
|
|
9875
9864
|
|
|
9876
9865
|
/***/ "afaf":
|
|
@@ -10606,6 +10595,17 @@ $({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD || !US
|
|
|
10606
10595
|
});
|
|
10607
10596
|
|
|
10608
10597
|
|
|
10598
|
+
/***/ }),
|
|
10599
|
+
|
|
10600
|
+
/***/ "ca6f":
|
|
10601
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10602
|
+
|
|
10603
|
+
"use strict";
|
|
10604
|
+
/* 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");
|
|
10605
|
+
/* 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__);
|
|
10606
|
+
/* unused harmony reexport * */
|
|
10607
|
+
|
|
10608
|
+
|
|
10609
10609
|
/***/ }),
|
|
10610
10610
|
|
|
10611
10611
|
/***/ "ca84":
|
|
@@ -32003,7 +32003,15 @@ function reverse(array) {
|
|
|
32003
32003
|
* @returns {string} computed value
|
|
32004
32004
|
*/
|
|
32005
32005
|
getLabelStyle: function getLabelStyle(style) {
|
|
32006
|
-
|
|
32006
|
+
var _style$fontStyle = style.fontStyle,
|
|
32007
|
+
fontStyle = _style$fontStyle === void 0 ? 'normal' : _style$fontStyle,
|
|
32008
|
+
_style$fontWeight = style.fontWeight,
|
|
32009
|
+
fontWeight = _style$fontWeight === void 0 ? 'norma' : _style$fontWeight,
|
|
32010
|
+
_style$fontSize = style.fontSize,
|
|
32011
|
+
fontSize = _style$fontSize === void 0 ? '12' : _style$fontSize,
|
|
32012
|
+
_style$fontFamily = style.fontFamily,
|
|
32013
|
+
fontFamily = _style$fontFamily === void 0 ? 'Roboto' : _style$fontFamily;
|
|
32014
|
+
return "".concat(fontStyle, " normal ").concat(fontWeight, " ").concat(fontSize, "px ").concat(fontFamily);
|
|
32007
32015
|
},
|
|
32008
32016
|
|
|
32009
32017
|
/**
|
|
@@ -32747,7 +32755,9 @@ var modules = {
|
|
|
32747
32755
|
return def;
|
|
32748
32756
|
},
|
|
32749
32757
|
getSeriesValueOptForHeatMap: function getSeriesValueOptForHeatMap(series) {
|
|
32750
|
-
var data = series.data
|
|
32758
|
+
var data = series.data,
|
|
32759
|
+
colorState = series.colorState,
|
|
32760
|
+
isGradient = series.isGradient;
|
|
32751
32761
|
var colorOpt = this.options.heatMapColor;
|
|
32752
32762
|
var categoryCnt = colorOpt.categoryCnt;
|
|
32753
32763
|
var decimalPoint = colorOpt.decimalPoint;
|
|
@@ -32770,10 +32780,10 @@ var modules = {
|
|
|
32770
32780
|
}
|
|
32771
32781
|
});
|
|
32772
32782
|
|
|
32773
|
-
if (isExistError &&
|
|
32774
|
-
|
|
32783
|
+
if (isExistError && !isGradient && colorState.length === categoryCnt) {
|
|
32784
|
+
colorState.push({
|
|
32775
32785
|
id: "color#".concat(categoryCnt),
|
|
32776
|
-
|
|
32786
|
+
color: colorOpt.error,
|
|
32777
32787
|
state: 'normal',
|
|
32778
32788
|
show: true
|
|
32779
32789
|
});
|
|
@@ -34185,6 +34195,16 @@ var AXIS_OPTION = {
|
|
|
34185
34195
|
fontWeight: 400,
|
|
34186
34196
|
fitWidth: false,
|
|
34187
34197
|
fitDir: 'right'
|
|
34198
|
+
},
|
|
34199
|
+
title: {
|
|
34200
|
+
use: false,
|
|
34201
|
+
text: null,
|
|
34202
|
+
fontWeight: 400,
|
|
34203
|
+
fontSize: 12,
|
|
34204
|
+
fontFamily: 'Roboto',
|
|
34205
|
+
textAlign: 'right',
|
|
34206
|
+
fontStyle: 'normal',
|
|
34207
|
+
color: '#808080'
|
|
34188
34208
|
}
|
|
34189
34209
|
};
|
|
34190
34210
|
var PLOT_LINE_OPTION = {
|
|
@@ -34212,7 +34232,8 @@ var PLOT_BAND_OPTION = {
|
|
|
34212
34232
|
var HEAT_MAP_OPTION = {
|
|
34213
34233
|
show: true,
|
|
34214
34234
|
highlight: {
|
|
34215
|
-
maxShadowOpacity: 0.4
|
|
34235
|
+
maxShadowOpacity: 0.4,
|
|
34236
|
+
brightness: 150
|
|
34216
34237
|
},
|
|
34217
34238
|
xAxisIndex: 0,
|
|
34218
34239
|
yAxisIndex: 0,
|
|
@@ -36262,10 +36283,13 @@ var element_pie_Pie = /*#__PURE__*/function () {
|
|
|
36262
36283
|
|
|
36263
36284
|
|
|
36264
36285
|
|
|
36286
|
+
|
|
36287
|
+
|
|
36288
|
+
|
|
36265
36289
|
|
|
36266
36290
|
|
|
36267
36291
|
var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
36268
|
-
function HeatMap(sId, opt, colorOpt) {
|
|
36292
|
+
function HeatMap(sId, opt, colorOpt, isGradient) {
|
|
36269
36293
|
var _this = this;
|
|
36270
36294
|
|
|
36271
36295
|
_classCallCheck(this, HeatMap);
|
|
@@ -36274,7 +36298,8 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
36274
36298
|
Object.keys(merged).forEach(function (key) {
|
|
36275
36299
|
_this[key] = merged[key];
|
|
36276
36300
|
});
|
|
36277
|
-
this.
|
|
36301
|
+
this.isGradient = isGradient;
|
|
36302
|
+
this.createColorState(colorOpt);
|
|
36278
36303
|
this.sId = sId;
|
|
36279
36304
|
this.data = [];
|
|
36280
36305
|
this.labels = {};
|
|
@@ -36293,16 +36318,17 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
36293
36318
|
|
|
36294
36319
|
|
|
36295
36320
|
_createClass(HeatMap, [{
|
|
36296
|
-
key: "
|
|
36297
|
-
value: function
|
|
36298
|
-
var
|
|
36321
|
+
key: "createColorState",
|
|
36322
|
+
value: function createColorState(colorOpt) {
|
|
36323
|
+
var colorState = [];
|
|
36324
|
+
var regex = /[^0-9]&[^,]/g;
|
|
36299
36325
|
var min = colorOpt.min,
|
|
36300
36326
|
max = colorOpt.max,
|
|
36301
36327
|
categoryCnt = colorOpt.categoryCnt,
|
|
36302
36328
|
error = colorOpt.error,
|
|
36303
36329
|
stroke = colorOpt.stroke;
|
|
36304
|
-
var minColor = min.includes('#') ? helpers_util.hexToRgb(min) : min;
|
|
36305
|
-
var maxColor = max.includes('#') ? helpers_util.hexToRgb(max) : max;
|
|
36330
|
+
var minColor = min.includes('#') ? helpers_util.hexToRgb(min) : min.replace(regex, '');
|
|
36331
|
+
var maxColor = max.includes('#') ? helpers_util.hexToRgb(max) : max.replace(regex, '');
|
|
36306
36332
|
|
|
36307
36333
|
var _minColor$split = minColor.split(','),
|
|
36308
36334
|
_minColor$split2 = _slicedToArray(_minColor$split, 3),
|
|
@@ -36316,35 +36342,71 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
36316
36342
|
maxG = _maxColor$split2[1],
|
|
36317
36343
|
maxB = _maxColor$split2[2];
|
|
36318
36344
|
|
|
36319
|
-
|
|
36320
|
-
|
|
36321
|
-
|
|
36322
|
-
|
|
36323
|
-
|
|
36324
|
-
|
|
36325
|
-
|
|
36326
|
-
|
|
36327
|
-
|
|
36328
|
-
|
|
36329
|
-
|
|
36330
|
-
|
|
36331
|
-
|
|
36345
|
+
if (this.isGradient) {
|
|
36346
|
+
colorState.push({
|
|
36347
|
+
minColor: {
|
|
36348
|
+
minR: minR,
|
|
36349
|
+
minG: minG,
|
|
36350
|
+
minB: minB
|
|
36351
|
+
},
|
|
36352
|
+
maxColor: {
|
|
36353
|
+
maxR: maxR,
|
|
36354
|
+
maxG: maxG,
|
|
36355
|
+
maxB: maxB
|
|
36356
|
+
},
|
|
36357
|
+
categoryCnt: categoryCnt,
|
|
36358
|
+
start: 0,
|
|
36359
|
+
end: 100,
|
|
36360
|
+
selectedValue: null
|
|
36332
36361
|
});
|
|
36362
|
+
} else {
|
|
36363
|
+
var unitR = Math.floor((minR - maxR) / (categoryCnt - 1));
|
|
36364
|
+
var unitG = Math.floor((minG - maxG) / (categoryCnt - 1));
|
|
36365
|
+
var unitB = Math.floor((minB - maxB) / (categoryCnt - 1));
|
|
36366
|
+
|
|
36367
|
+
for (var ix = 0; ix < categoryCnt; ix++) {
|
|
36368
|
+
var r = +minR - unitR * ix;
|
|
36369
|
+
var g = +minG - unitG * ix;
|
|
36370
|
+
var b = +minB - unitB * ix;
|
|
36371
|
+
colorState.push({
|
|
36372
|
+
id: "color#".concat(ix),
|
|
36373
|
+
color: "rgb(".concat(r, ",").concat(g, ",").concat(b, ")"),
|
|
36374
|
+
state: 'normal',
|
|
36375
|
+
show: true
|
|
36376
|
+
});
|
|
36377
|
+
}
|
|
36333
36378
|
}
|
|
36334
36379
|
|
|
36335
|
-
this.
|
|
36380
|
+
this.colorState = colorState;
|
|
36336
36381
|
this.errorColor = error;
|
|
36337
36382
|
this.stroke = stroke;
|
|
36338
36383
|
}
|
|
36339
36384
|
}, {
|
|
36340
|
-
key: "
|
|
36341
|
-
value: function
|
|
36385
|
+
key: "getColorForGradient",
|
|
36386
|
+
value: function getColorForGradient(value) {
|
|
36387
|
+
var _this$colorState$ = this.colorState[0],
|
|
36388
|
+
minColor = _this$colorState$.minColor,
|
|
36389
|
+
maxColor = _this$colorState$.maxColor;
|
|
36390
|
+
var minR = minColor.minR,
|
|
36391
|
+
minG = minColor.minG,
|
|
36392
|
+
minB = minColor.minB;
|
|
36393
|
+
var maxR = maxColor.maxR,
|
|
36394
|
+
maxG = maxColor.maxG,
|
|
36395
|
+
maxB = maxColor.maxB;
|
|
36396
|
+
var r = +minR - Math.floor((minR - maxR) * value / 100);
|
|
36397
|
+
var g = +minG - Math.floor((minG - maxG) * value / 100);
|
|
36398
|
+
var b = +minB - Math.floor((minB - maxB) * value / 100);
|
|
36399
|
+
return "rgb(".concat(r, ",").concat(g, ",").concat(b, ")");
|
|
36400
|
+
}
|
|
36401
|
+
}, {
|
|
36402
|
+
key: "getColorIndexForIcon",
|
|
36403
|
+
value: function getColorIndexForIcon(value) {
|
|
36342
36404
|
var _this$valueOpt = this.valueOpt,
|
|
36343
36405
|
existError = _this$valueOpt.existError,
|
|
36344
36406
|
min = _this$valueOpt.min,
|
|
36345
36407
|
interval = _this$valueOpt.interval,
|
|
36346
36408
|
decimalPoint = _this$valueOpt.decimalPoint;
|
|
36347
|
-
var maxIndex = this.
|
|
36409
|
+
var maxIndex = this.colorState.length - 1;
|
|
36348
36410
|
|
|
36349
36411
|
if (existError && value < 0) {
|
|
36350
36412
|
return maxIndex;
|
|
@@ -36358,14 +36420,67 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
36358
36420
|
|
|
36359
36421
|
return colorIndex;
|
|
36360
36422
|
}
|
|
36423
|
+
}, {
|
|
36424
|
+
key: "getItemInfo",
|
|
36425
|
+
value: function getItemInfo(value) {
|
|
36426
|
+
var _this$valueOpt2 = this.valueOpt,
|
|
36427
|
+
min = _this$valueOpt2.min,
|
|
36428
|
+
max = _this$valueOpt2.max;
|
|
36429
|
+
var itemInfo = {
|
|
36430
|
+
show: false,
|
|
36431
|
+
opacity: 0,
|
|
36432
|
+
dataColor: null,
|
|
36433
|
+
id: null,
|
|
36434
|
+
isHighlight: null
|
|
36435
|
+
};
|
|
36436
|
+
|
|
36437
|
+
if (this.isGradient) {
|
|
36438
|
+
var ratio = convertToPercent(value - min, max - min);
|
|
36439
|
+
var _this$colorState$2 = this.colorState[0],
|
|
36440
|
+
start = _this$colorState$2.start,
|
|
36441
|
+
end = _this$colorState$2.end,
|
|
36442
|
+
selectedValue = _this$colorState$2.selectedValue;
|
|
36443
|
+
|
|
36444
|
+
if (value < 0 || start <= ratio && ratio <= end) {
|
|
36445
|
+
itemInfo.show = true;
|
|
36446
|
+
itemInfo.isHighlight = selectedValue !== null && Math.floor(value) === Math.floor(min + (max - min) * (selectedValue / 100));
|
|
36447
|
+
itemInfo.opacity = 1;
|
|
36448
|
+
itemInfo.dataColor = value < 0 ? this.errorColor : this.getColorForGradient(ratio);
|
|
36449
|
+
}
|
|
36450
|
+
} else {
|
|
36451
|
+
var colorIndex = this.getColorIndexForIcon(value);
|
|
36452
|
+
var _this$colorState$colo = this.colorState[colorIndex],
|
|
36453
|
+
show = _this$colorState$colo.show,
|
|
36454
|
+
state = _this$colorState$colo.state,
|
|
36455
|
+
color = _this$colorState$colo.color,
|
|
36456
|
+
id = _this$colorState$colo.id;
|
|
36457
|
+
itemInfo.show = show;
|
|
36458
|
+
itemInfo.opacity = state === 'downplay' ? 0.1 : 1;
|
|
36459
|
+
itemInfo.dataColor = value < 0 ? this.errorColor : color;
|
|
36460
|
+
itemInfo.id = id;
|
|
36461
|
+
}
|
|
36462
|
+
|
|
36463
|
+
return itemInfo;
|
|
36464
|
+
}
|
|
36361
36465
|
}, {
|
|
36362
36466
|
key: "drawItem",
|
|
36363
36467
|
value: function drawItem(ctx, x, y, w, h) {
|
|
36364
36468
|
ctx.beginPath();
|
|
36365
36469
|
|
|
36366
36470
|
if (this.stroke.show) {
|
|
36367
|
-
|
|
36368
|
-
|
|
36471
|
+
var radius = this.stroke.radius;
|
|
36472
|
+
|
|
36473
|
+
if (radius > 0) {
|
|
36474
|
+
ctx.moveTo(x + radius, y);
|
|
36475
|
+
ctx.arcTo(x + w, y, x + w, y + h, radius);
|
|
36476
|
+
ctx.arcTo(x + w, y + h, x, y + h, radius);
|
|
36477
|
+
ctx.arcTo(x, y + h, x, y, radius);
|
|
36478
|
+
ctx.arcTo(x, y, x + w, y, radius);
|
|
36479
|
+
ctx.fill();
|
|
36480
|
+
} else {
|
|
36481
|
+
ctx.strokeRect(x, y, w, h);
|
|
36482
|
+
ctx.fillRect(x, y, w, h);
|
|
36483
|
+
}
|
|
36369
36484
|
} else {
|
|
36370
36485
|
var aliasPixel = helpers_util.aliasPixel(1);
|
|
36371
36486
|
ctx.fillRect(x, y - aliasPixel, w + aliasPixel, h + aliasPixel);
|
|
@@ -36409,7 +36524,8 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
36409
36524
|
|
|
36410
36525
|
var ctx = param.ctx,
|
|
36411
36526
|
chartRect = param.chartRect,
|
|
36412
|
-
labelOffset = param.labelOffset
|
|
36527
|
+
labelOffset = param.labelOffset,
|
|
36528
|
+
overlayCtx = param.overlayCtx;
|
|
36413
36529
|
var xArea = chartRect.chartWidth - (labelOffset.left + labelOffset.right);
|
|
36414
36530
|
var yArea = chartRect.chartHeight - (labelOffset.top + labelOffset.bottom);
|
|
36415
36531
|
var xsp = chartRect.x1 + labelOffset.left;
|
|
@@ -36426,13 +36542,18 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
36426
36542
|
var value = item.o;
|
|
36427
36543
|
|
|
36428
36544
|
if (xp !== null && yp !== null && value !== null && value !== undefined) {
|
|
36429
|
-
var
|
|
36430
|
-
|
|
36431
|
-
|
|
36432
|
-
|
|
36433
|
-
|
|
36545
|
+
var _this2$getItemInfo = _this2.getItemInfo(value),
|
|
36546
|
+
show = _this2$getItemInfo.show,
|
|
36547
|
+
opacity = _this2$getItemInfo.opacity,
|
|
36548
|
+
dataColor = _this2$getItemInfo.dataColor,
|
|
36549
|
+
id = _this2$getItemInfo.id,
|
|
36550
|
+
isHighlight = _this2$getItemInfo.isHighlight;
|
|
36551
|
+
|
|
36552
|
+
item.dataColor = dataColor;
|
|
36553
|
+
item.cId = id;
|
|
36554
|
+
ctx.save();
|
|
36434
36555
|
|
|
36435
|
-
if (
|
|
36556
|
+
if (show) {
|
|
36436
36557
|
ctx.fillStyle = helpers_util.colorStringToRgba(item.dataColor, opacity);
|
|
36437
36558
|
|
|
36438
36559
|
if (_this2.stroke.show) {
|
|
@@ -36450,24 +36571,25 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
36450
36571
|
|
|
36451
36572
|
_this2.drawItem(ctx, xp, yp, w, h);
|
|
36452
36573
|
|
|
36574
|
+
ctx.restore();
|
|
36575
|
+
item.xp = xp;
|
|
36576
|
+
item.yp = yp;
|
|
36577
|
+
item.w = w;
|
|
36578
|
+
item.h = h;
|
|
36579
|
+
|
|
36453
36580
|
if (_this2.showValue.use) {
|
|
36454
36581
|
_this2.drawValueLabels({
|
|
36455
36582
|
context: ctx,
|
|
36456
|
-
data: item
|
|
36457
|
-
positions: {
|
|
36458
|
-
x: xp,
|
|
36459
|
-
y: yp,
|
|
36460
|
-
w: w,
|
|
36461
|
-
h: h
|
|
36462
|
-
}
|
|
36583
|
+
data: item
|
|
36463
36584
|
});
|
|
36464
36585
|
}
|
|
36465
|
-
}
|
|
36466
36586
|
|
|
36467
|
-
|
|
36468
|
-
|
|
36469
|
-
|
|
36470
|
-
|
|
36587
|
+
if (isHighlight) {
|
|
36588
|
+
_this2.itemHighlight({
|
|
36589
|
+
data: item
|
|
36590
|
+
}, overlayCtx);
|
|
36591
|
+
}
|
|
36592
|
+
}
|
|
36471
36593
|
}
|
|
36472
36594
|
});
|
|
36473
36595
|
}
|
|
@@ -36482,18 +36604,18 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
36482
36604
|
key: "drawValueLabels",
|
|
36483
36605
|
value: function drawValueLabels(_ref) {
|
|
36484
36606
|
var context = _ref.context,
|
|
36485
|
-
data = _ref.data
|
|
36486
|
-
positions = _ref.positions;
|
|
36607
|
+
data = _ref.data;
|
|
36487
36608
|
var _this$showValue = this.showValue,
|
|
36488
36609
|
fontSize = _this$showValue.fontSize,
|
|
36489
36610
|
textColor = _this$showValue.textColor,
|
|
36490
36611
|
align = _this$showValue.align,
|
|
36491
36612
|
formatter = _this$showValue.formatter,
|
|
36492
36613
|
decimalPoint = _this$showValue.decimalPoint;
|
|
36493
|
-
var x =
|
|
36494
|
-
y =
|
|
36495
|
-
w =
|
|
36496
|
-
h =
|
|
36614
|
+
var x = data.xp,
|
|
36615
|
+
y = data.yp,
|
|
36616
|
+
w = data.w,
|
|
36617
|
+
h = data.h,
|
|
36618
|
+
value = data.o;
|
|
36497
36619
|
var ctx = context;
|
|
36498
36620
|
ctx.save();
|
|
36499
36621
|
ctx.beginPath();
|
|
@@ -36502,7 +36624,6 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
36502
36624
|
ctx.lineWidth = 1;
|
|
36503
36625
|
ctx.textBaseline = 'middle';
|
|
36504
36626
|
ctx.textAlign = align !== 'center' ? 'left' : 'center';
|
|
36505
|
-
var value = data.o;
|
|
36506
36627
|
var formattedTxt;
|
|
36507
36628
|
|
|
36508
36629
|
if (formatter) {
|
|
@@ -36604,8 +36725,6 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
36604
36725
|
}, {
|
|
36605
36726
|
key: "itemHighlight",
|
|
36606
36727
|
value: function itemHighlight(item, context) {
|
|
36607
|
-
var _this$colorAxis$find;
|
|
36608
|
-
|
|
36609
36728
|
var gdata = item.data;
|
|
36610
36729
|
var ctx = context;
|
|
36611
36730
|
var x = gdata.xp;
|
|
@@ -36613,34 +36732,46 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
36613
36732
|
var w = gdata.w;
|
|
36614
36733
|
var h = gdata.h;
|
|
36615
36734
|
var cId = gdata.cId;
|
|
36616
|
-
var isShow
|
|
36617
|
-
|
|
36618
|
-
|
|
36619
|
-
|
|
36735
|
+
var isShow;
|
|
36736
|
+
|
|
36737
|
+
if (this.isGradient) {
|
|
36738
|
+
var _this$valueOpt3 = this.valueOpt,
|
|
36739
|
+
min = _this$valueOpt3.min,
|
|
36740
|
+
max = _this$valueOpt3.max;
|
|
36741
|
+
var ratio = convertToPercent(gdata.o - min, max - min);
|
|
36742
|
+
var _this$colorState$3 = this.colorState[0],
|
|
36743
|
+
start = _this$colorState$3.start,
|
|
36744
|
+
end = _this$colorState$3.end;
|
|
36745
|
+
isShow = start <= ratio && ratio <= end || gdata.o === -1;
|
|
36746
|
+
} else {
|
|
36747
|
+
var _this$colorState$find;
|
|
36748
|
+
|
|
36749
|
+
isShow = (_this$colorState$find = this.colorState.find(function (_ref4) {
|
|
36750
|
+
var id = _ref4.id;
|
|
36751
|
+
return id === cId;
|
|
36752
|
+
})) === null || _this$colorState$find === void 0 ? void 0 : _this$colorState$find.show;
|
|
36753
|
+
}
|
|
36754
|
+
|
|
36620
36755
|
ctx.save();
|
|
36756
|
+
ctx.shadowOffsetX = 2;
|
|
36757
|
+
ctx.shadowOffsetY = 2;
|
|
36758
|
+
ctx.shadowBlur = 4;
|
|
36621
36759
|
|
|
36622
36760
|
if (x !== null && y !== null && isShow) {
|
|
36623
36761
|
var color = gdata.dataColor;
|
|
36624
|
-
ctx.
|
|
36625
|
-
ctx.
|
|
36626
|
-
ctx.
|
|
36627
|
-
this.drawItem(ctx, x, y, w, h);
|
|
36762
|
+
ctx.shadowColor = helpers_util.colorStringToRgba('#605F5F');
|
|
36763
|
+
ctx.strokeStyle = helpers_util.colorStringToRgba(color);
|
|
36764
|
+
ctx.fillStyle = helpers_util.colorStringToRgba(color);
|
|
36765
|
+
this.drawItem(ctx, x - 2, y - 2, w + 4, h + 4);
|
|
36766
|
+
ctx.restore();
|
|
36628
36767
|
|
|
36629
36768
|
if (this.showValue.use) {
|
|
36630
36769
|
this.drawValueLabels({
|
|
36631
36770
|
context: ctx,
|
|
36632
|
-
data: gdata
|
|
36633
|
-
positions: {
|
|
36634
|
-
x: x,
|
|
36635
|
-
y: y,
|
|
36636
|
-
w: w,
|
|
36637
|
-
h: h
|
|
36638
|
-
}
|
|
36771
|
+
data: gdata
|
|
36639
36772
|
});
|
|
36640
36773
|
}
|
|
36641
36774
|
}
|
|
36642
|
-
|
|
36643
|
-
ctx.restore();
|
|
36644
36775
|
}
|
|
36645
36776
|
/**
|
|
36646
36777
|
* Find graph item for tooltip
|
|
@@ -36859,7 +36990,11 @@ var model_series_modules = {
|
|
|
36859
36990
|
return new element_pie(id, opt, index);
|
|
36860
36991
|
} else if (type === 'heatMap') {
|
|
36861
36992
|
this.seriesInfo.charts.heatMap.push(id);
|
|
36862
|
-
|
|
36993
|
+
var _this$options = this.options,
|
|
36994
|
+
heatMapColor = _this$options.heatMapColor,
|
|
36995
|
+
legend = _this$options.legend;
|
|
36996
|
+
var isGradient = legend.type === 'gradient';
|
|
36997
|
+
return new element_heatmap(id, opt, heatMapColor, isGradient);
|
|
36863
36998
|
}
|
|
36864
36999
|
|
|
36865
37000
|
return false;
|
|
@@ -37078,6 +37213,52 @@ var scale_Scale = /*#__PURE__*/function () {
|
|
|
37078
37213
|
graphMax: graphMax
|
|
37079
37214
|
};
|
|
37080
37215
|
}
|
|
37216
|
+
/**
|
|
37217
|
+
* Draw Axis Title
|
|
37218
|
+
*
|
|
37219
|
+
* @param {object} chartRect min/max information
|
|
37220
|
+
* @param {object} labelOffset label offset information
|
|
37221
|
+
*
|
|
37222
|
+
* @returns {undefined}
|
|
37223
|
+
*/
|
|
37224
|
+
|
|
37225
|
+
}, {
|
|
37226
|
+
key: "drawAxisTitle",
|
|
37227
|
+
value: function drawAxisTitle(chartRect, labelOffset) {
|
|
37228
|
+
var titleOpt = this.title;
|
|
37229
|
+
|
|
37230
|
+
if (!(titleOpt !== null && titleOpt !== void 0 && titleOpt.use) || isNaN(titleOpt.fontSize)) {
|
|
37231
|
+
return;
|
|
37232
|
+
}
|
|
37233
|
+
|
|
37234
|
+
var ctx = this.ctx;
|
|
37235
|
+
ctx.save();
|
|
37236
|
+
ctx.font = helpers_util.getLabelStyle(titleOpt);
|
|
37237
|
+
ctx.fillStyle = titleOpt.color;
|
|
37238
|
+
ctx.textAlign = titleOpt.textAlign;
|
|
37239
|
+
var axisLinePosition = {
|
|
37240
|
+
xLeft: chartRect.x1 + labelOffset.left,
|
|
37241
|
+
xRight: chartRect.x2 - labelOffset.right,
|
|
37242
|
+
yTop: chartRect.y1
|
|
37243
|
+
};
|
|
37244
|
+
var titleXPos;
|
|
37245
|
+
var titleYPos;
|
|
37246
|
+
var margin = 10;
|
|
37247
|
+
|
|
37248
|
+
if (this.type === 'x') {
|
|
37249
|
+
titleXPos = axisLinePosition.xRight;
|
|
37250
|
+
titleYPos = chartRect.y2 + titleOpt.fontSize + margin;
|
|
37251
|
+
} else {
|
|
37252
|
+
titleYPos = axisLinePosition.yTop - titleOpt.fontSize - margin;
|
|
37253
|
+
titleXPos = axisLinePosition.xLeft;
|
|
37254
|
+
}
|
|
37255
|
+
|
|
37256
|
+
if (titleXPos > 0 && titleYPos > 0) {
|
|
37257
|
+
ctx.fillText(titleOpt.text, titleXPos, titleYPos);
|
|
37258
|
+
}
|
|
37259
|
+
|
|
37260
|
+
ctx.restore();
|
|
37261
|
+
}
|
|
37081
37262
|
/**
|
|
37082
37263
|
* Draw axis
|
|
37083
37264
|
* @param {object} chartRect min/max information
|
|
@@ -37111,7 +37292,8 @@ var scale_Scale = /*#__PURE__*/function () {
|
|
|
37111
37292
|
var endPoint = aPos[this.units.rectEnd];
|
|
37112
37293
|
var offsetPoint = aPos[this.units.rectOffset(this.position)];
|
|
37113
37294
|
var offsetCounterPoint = aPos[this.units.rectOffsetCounter(this.position)];
|
|
37114
|
-
var aliasPixel;
|
|
37295
|
+
var aliasPixel;
|
|
37296
|
+
this.drawAxisTitle(chartRect, labelOffset); // label font 설정
|
|
37115
37297
|
|
|
37116
37298
|
ctx.font = helpers_util.getLabelStyle(this.labelStyle);
|
|
37117
37299
|
ctx.fillStyle = this.labelStyle.color;
|
|
@@ -38148,6 +38330,7 @@ var scale_step_StepScale = /*#__PURE__*/function (_Scale) {
|
|
|
38148
38330
|
var offsetPoint = aPos[this.units.rectOffset(this.position)];
|
|
38149
38331
|
var offsetCounterPoint = aPos[this.units.rectOffsetCounter(this.position)];
|
|
38150
38332
|
var maxWidth = chartRect.chartWidth / (this.labels.length + 2);
|
|
38333
|
+
this.drawAxisTitle(chartRect, labelOffset);
|
|
38151
38334
|
|
|
38152
38335
|
if ((_this$labelStyle = this.labelStyle) !== null && _this$labelStyle !== void 0 && _this$labelStyle.show) {
|
|
38153
38336
|
// label font 설정
|
|
@@ -38561,7 +38744,8 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
|
|
|
38561
38744
|
var startPoint = aPos[this.units.rectStart];
|
|
38562
38745
|
var endPoint = aPos[this.units.rectEnd];
|
|
38563
38746
|
var offsetPoint = aPos[this.units.rectOffset(this.position)];
|
|
38564
|
-
var offsetCounterPoint = aPos[this.units.rectOffsetCounter(this.position)];
|
|
38747
|
+
var offsetCounterPoint = aPos[this.units.rectOffsetCounter(this.position)];
|
|
38748
|
+
this.drawAxisTitle(chartRect, labelOffset); // label font 설정
|
|
38565
38749
|
|
|
38566
38750
|
ctx.font = helpers_util.getLabelStyle(this.labelStyle);
|
|
38567
38751
|
|
|
@@ -38862,18 +39046,18 @@ var plugins_legend_modules = {
|
|
|
38862
39046
|
var seriesList = this.seriesList;
|
|
38863
39047
|
Object.values(seriesList).forEach(function (series) {
|
|
38864
39048
|
if (!series.isExistGrp && series.showLegend) {
|
|
38865
|
-
var
|
|
39049
|
+
var colorState = series.colorState,
|
|
38866
39050
|
valueOpt = series.valueOpt;
|
|
38867
39051
|
var min = valueOpt.min,
|
|
38868
39052
|
max = valueOpt.max,
|
|
38869
39053
|
interval = valueOpt.interval,
|
|
38870
39054
|
existError = valueOpt.existError,
|
|
38871
39055
|
decimalPoint = valueOpt.decimalPoint;
|
|
38872
|
-
var length =
|
|
39056
|
+
var length = colorState.length;
|
|
38873
39057
|
var endIndex = existError ? length - 2 : length - 1;
|
|
38874
39058
|
|
|
38875
39059
|
for (var index = 0; index < length; index++) {
|
|
38876
|
-
var colorItem =
|
|
39060
|
+
var colorItem = colorState[index];
|
|
38877
39061
|
var minValue = min + interval * index;
|
|
38878
39062
|
var maxValue = minValue + interval;
|
|
38879
39063
|
|
|
@@ -38901,7 +39085,7 @@ var plugins_legend_modules = {
|
|
|
38901
39085
|
|
|
38902
39086
|
_this2.addLegend({
|
|
38903
39087
|
cId: colorItem.id,
|
|
38904
|
-
color: colorItem.
|
|
39088
|
+
color: colorItem.color,
|
|
38905
39089
|
name: name
|
|
38906
39090
|
});
|
|
38907
39091
|
}
|
|
@@ -39106,7 +39290,7 @@ var plugins_legend_modules = {
|
|
|
39106
39290
|
var nameDOM = (_targetDOM4 = targetDOM) === null || _targetDOM4 === void 0 ? void 0 : _targetDOM4.getElementsByClassName('ev-chart-legend-name')[0];
|
|
39107
39291
|
var isActive = !(colorDOM !== null && colorDOM !== void 0 && colorDOM.className.includes('inactive'));
|
|
39108
39292
|
var targetId = nameDOM.series.cId;
|
|
39109
|
-
var activeCount = series.
|
|
39293
|
+
var activeCount = series.colorState.filter(function (colorItem) {
|
|
39110
39294
|
return colorItem.show;
|
|
39111
39295
|
}).length;
|
|
39112
39296
|
|
|
@@ -39127,12 +39311,12 @@ var plugins_legend_modules = {
|
|
|
39127
39311
|
nameDOM.style.color = opt.color;
|
|
39128
39312
|
}
|
|
39129
39313
|
|
|
39130
|
-
var targetIndex = series.
|
|
39314
|
+
var targetIndex = series.colorState.findIndex(function (colorItem) {
|
|
39131
39315
|
return colorItem.id === targetId;
|
|
39132
39316
|
});
|
|
39133
39317
|
|
|
39134
39318
|
if (targetIndex > -1) {
|
|
39135
|
-
series.
|
|
39319
|
+
series.colorState[targetIndex].show = !isActive;
|
|
39136
39320
|
}
|
|
39137
39321
|
|
|
39138
39322
|
colorDOM.classList.toggle('inactive');
|
|
@@ -39168,7 +39352,7 @@ var plugins_legend_modules = {
|
|
|
39168
39352
|
|
|
39169
39353
|
var nameDOM = targetDOM.getElementsByClassName('ev-chart-legend-name')[0];
|
|
39170
39354
|
var targetId = nameDOM.series.cId;
|
|
39171
|
-
series.
|
|
39355
|
+
series.colorState.forEach(function (colorItem) {
|
|
39172
39356
|
colorItem.state = colorItem.id === targetId ? 'highlight' : 'downplay';
|
|
39173
39357
|
});
|
|
39174
39358
|
|
|
@@ -39189,7 +39373,7 @@ var plugins_legend_modules = {
|
|
|
39189
39373
|
|
|
39190
39374
|
this.onLegendBoxLeave = function () {
|
|
39191
39375
|
var series = Object.values(_this4.seriesList)[0];
|
|
39192
|
-
series.
|
|
39376
|
+
series.colorState.forEach(function (item) {
|
|
39193
39377
|
item.state = 'normal';
|
|
39194
39378
|
});
|
|
39195
39379
|
|
|
@@ -39342,6 +39526,7 @@ var plugins_legend_modules = {
|
|
|
39342
39526
|
|
|
39343
39527
|
containerDOM.style.height = '18px';
|
|
39344
39528
|
containerDOM.style.display = 'inline-block';
|
|
39529
|
+
containerDOM.style.overflow = 'hidden';
|
|
39345
39530
|
containerDOM.dataset.type = 'container';
|
|
39346
39531
|
this.legendBoxDOM.appendChild(containerDOM);
|
|
39347
39532
|
this.seriesInfo.count++;
|
|
@@ -39708,6 +39893,592 @@ var plugins_legend_modules = {
|
|
|
39708
39893
|
}
|
|
39709
39894
|
};
|
|
39710
39895
|
/* harmony default export */ var plugins_legend = (plugins_legend_modules);
|
|
39896
|
+
// CONCATENATED MODULE: ./src/components/chart/plugins/plugins.legend.gradient.js
|
|
39897
|
+
|
|
39898
|
+
|
|
39899
|
+
|
|
39900
|
+
|
|
39901
|
+
|
|
39902
|
+
|
|
39903
|
+
|
|
39904
|
+
|
|
39905
|
+
var MAX_HANDLE_SIZE = 28;
|
|
39906
|
+
var MIN_BOX_SIZE = {
|
|
39907
|
+
width: 70,
|
|
39908
|
+
height: 60
|
|
39909
|
+
};
|
|
39910
|
+
var plugins_legend_gradient_modules = {
|
|
39911
|
+
/**
|
|
39912
|
+
* Create legend DOM
|
|
39913
|
+
*
|
|
39914
|
+
* @returns {undefined}
|
|
39915
|
+
*/
|
|
39916
|
+
createLegendLayout: function createLegendLayout() {
|
|
39917
|
+
this.legendDOM = document.createElement('div');
|
|
39918
|
+
this.legendDOM.className = 'ev-chart-legend';
|
|
39919
|
+
this.legendBoxDOM = document.createElement('div');
|
|
39920
|
+
this.legendBoxDOM.className = 'ev-chart-legend-box';
|
|
39921
|
+
this.containerDOM = document.createElement('div');
|
|
39922
|
+
this.containerDOM.className = 'ev-chart-legend-container';
|
|
39923
|
+
this.legendBoxDOM.appendChild(this.containerDOM);
|
|
39924
|
+
this.legendDOM.appendChild(this.legendBoxDOM);
|
|
39925
|
+
this.wrapperDOM.appendChild(this.legendDOM);
|
|
39926
|
+
},
|
|
39927
|
+
|
|
39928
|
+
/**
|
|
39929
|
+
* Initialize legend
|
|
39930
|
+
* If there was no initialization, create DOM and set default layout.
|
|
39931
|
+
* It not, there will already be set layout, so add a legend for each series with group
|
|
39932
|
+
*
|
|
39933
|
+
* @returns {undefined}
|
|
39934
|
+
*/
|
|
39935
|
+
initLegend: function initLegend() {
|
|
39936
|
+
if (!this.isInitLegend) {
|
|
39937
|
+
this.createLegendLayout();
|
|
39938
|
+
this.createLegend();
|
|
39939
|
+
}
|
|
39940
|
+
|
|
39941
|
+
var series = Object.values(this.seriesList)[0];
|
|
39942
|
+
this.setLegendStyle(series);
|
|
39943
|
+
this.initEvent();
|
|
39944
|
+
this.isInitLegend = true;
|
|
39945
|
+
this.legendDragInfo = {
|
|
39946
|
+
dragging: false,
|
|
39947
|
+
isStart: true
|
|
39948
|
+
};
|
|
39949
|
+
},
|
|
39950
|
+
|
|
39951
|
+
/**
|
|
39952
|
+
* Initialize legend event
|
|
39953
|
+
*
|
|
39954
|
+
* @returns {undefined}
|
|
39955
|
+
*/
|
|
39956
|
+
initEvent: function initEvent() {
|
|
39957
|
+
var _this = this;
|
|
39958
|
+
|
|
39959
|
+
if (this.isInitLegend) {
|
|
39960
|
+
return;
|
|
39961
|
+
}
|
|
39962
|
+
|
|
39963
|
+
this.onLegendMouseDown = function (e) {
|
|
39964
|
+
e.stopPropagation();
|
|
39965
|
+
e.preventDefault();
|
|
39966
|
+
var type = e.target.dataset.type;
|
|
39967
|
+
var targetDOM;
|
|
39968
|
+
|
|
39969
|
+
if (type === 'handle') {
|
|
39970
|
+
targetDOM = e.target;
|
|
39971
|
+
} else if (type === 'handle-btn') {
|
|
39972
|
+
targetDOM = e.target.parentElement;
|
|
39973
|
+
} else if (type === 'handle-btn-color') {
|
|
39974
|
+
targetDOM = e.target.parentElement.parentElement;
|
|
39975
|
+
} else {
|
|
39976
|
+
return;
|
|
39977
|
+
}
|
|
39978
|
+
|
|
39979
|
+
var colorState = Object.values(_this.seriesList)[0].colorState;
|
|
39980
|
+
var _colorState$ = colorState[0],
|
|
39981
|
+
start = _colorState$.start,
|
|
39982
|
+
end = _colorState$.end;
|
|
39983
|
+
colorState[0].selectedValue = null;
|
|
39984
|
+
|
|
39985
|
+
_this.clearOverlay();
|
|
39986
|
+
|
|
39987
|
+
_this.legendDragInfo.dragging = true;
|
|
39988
|
+
_this.legendDragInfo.isStart = start !== end ? targetDOM.className.includes('start') : _this.legendDragInfo.isStart;
|
|
39989
|
+
targetDOM.classList.add('dragging');
|
|
39990
|
+
|
|
39991
|
+
_this.legendBoxDOM.addEventListener('mousemove', _this.onLegendMouseMove, false);
|
|
39992
|
+
|
|
39993
|
+
_this.legendBoxDOM.addEventListener('mouseup', _this.onLegendMouseUp, false);
|
|
39994
|
+
};
|
|
39995
|
+
|
|
39996
|
+
this.onLegendMouseMove = function (e) {
|
|
39997
|
+
e.stopPropagation();
|
|
39998
|
+
e.preventDefault();
|
|
39999
|
+
var _this$legendDragInfo = _this.legendDragInfo,
|
|
40000
|
+
dragging = _this$legendDragInfo.dragging,
|
|
40001
|
+
isStart = _this$legendDragInfo.isStart;
|
|
40002
|
+
|
|
40003
|
+
if (dragging) {
|
|
40004
|
+
var value = _this.getSelectedValue(e);
|
|
40005
|
+
|
|
40006
|
+
value = _this.isSide ? 100 - value : value;
|
|
40007
|
+
var dir = isStart ? 'start' : 'end';
|
|
40008
|
+
var colorState = Object.values(_this.seriesList)[0].colorState;
|
|
40009
|
+
var _colorState$2 = colorState[0],
|
|
40010
|
+
start = _colorState$2.start,
|
|
40011
|
+
end = _colorState$2.end;
|
|
40012
|
+
|
|
40013
|
+
if (isStart && value > end || !isStart && value < start) {
|
|
40014
|
+
return;
|
|
40015
|
+
}
|
|
40016
|
+
|
|
40017
|
+
colorState[0][dir] = value;
|
|
40018
|
+
|
|
40019
|
+
_this.update({
|
|
40020
|
+
updateSeries: false,
|
|
40021
|
+
updateSelTip: {
|
|
40022
|
+
update: false,
|
|
40023
|
+
keepDomain: false
|
|
40024
|
+
}
|
|
40025
|
+
});
|
|
40026
|
+
}
|
|
40027
|
+
};
|
|
40028
|
+
|
|
40029
|
+
this.onLegendMouseUp = function () {
|
|
40030
|
+
_this.legendDragInfo.dragging = false;
|
|
40031
|
+
|
|
40032
|
+
var targetDOM = _this.containerDOM.getElementsByClassName('ev-chart-legend-handle dragging')[0];
|
|
40033
|
+
|
|
40034
|
+
targetDOM === null || targetDOM === void 0 ? void 0 : targetDOM.classList.remove('dragging');
|
|
40035
|
+
|
|
40036
|
+
_this.legendBoxDOM.removeEventListener('mouseup', _this.onLegendMouseUp, false);
|
|
40037
|
+
};
|
|
40038
|
+
/**
|
|
40039
|
+
* callback for legendBoxDOM hovering
|
|
40040
|
+
*
|
|
40041
|
+
* @returns {undefined}
|
|
40042
|
+
*/
|
|
40043
|
+
|
|
40044
|
+
|
|
40045
|
+
this.onLegendBoxOver = function (e) {
|
|
40046
|
+
var type = e.target.dataset.type;
|
|
40047
|
+
var _Object$values$ = Object.values(_this.seriesList)[0],
|
|
40048
|
+
colorState = _Object$values$.colorState,
|
|
40049
|
+
valueOpt = _Object$values$.valueOpt;
|
|
40050
|
+
var state = colorState[0];
|
|
40051
|
+
|
|
40052
|
+
var value = _this.getSelectedValue(e);
|
|
40053
|
+
|
|
40054
|
+
value = _this.isSide ? 100 - value : value;
|
|
40055
|
+
|
|
40056
|
+
if (['line', 'thumb', 'layer', 'overlay', 'overlay-item'].includes(type)) {
|
|
40057
|
+
if (state.start <= value && value <= state.end) {
|
|
40058
|
+
state.selectedValue = value;
|
|
40059
|
+
|
|
40060
|
+
_this.createLegendOverlay(value, valueOpt);
|
|
40061
|
+
} else {
|
|
40062
|
+
return;
|
|
40063
|
+
}
|
|
40064
|
+
} else if (['handle', 'handle-btn', 'handle-btn-color'].includes(type)) {
|
|
40065
|
+
var isStart = e.target.className.includes('start');
|
|
40066
|
+
state.selectedValue = isStart ? state.start : state.end;
|
|
40067
|
+
|
|
40068
|
+
_this.clearOverlay();
|
|
40069
|
+
} else {
|
|
40070
|
+
return;
|
|
40071
|
+
}
|
|
40072
|
+
|
|
40073
|
+
_this.update({
|
|
40074
|
+
updateSeries: false,
|
|
40075
|
+
updateSelTip: {
|
|
40076
|
+
update: false,
|
|
40077
|
+
keepDomain: false
|
|
40078
|
+
}
|
|
40079
|
+
});
|
|
40080
|
+
};
|
|
40081
|
+
/**
|
|
40082
|
+
* callback for mouseleave event on legendBoxDOM
|
|
40083
|
+
*
|
|
40084
|
+
* @returns {undefined}
|
|
40085
|
+
*/
|
|
40086
|
+
|
|
40087
|
+
|
|
40088
|
+
this.onLegendBoxLeave = function () {
|
|
40089
|
+
_this.legendDragInfo.dragging = false;
|
|
40090
|
+
|
|
40091
|
+
var lineDOM = _this.containerDOM.getElementsByClassName('ev-chart-legend-line')[0];
|
|
40092
|
+
|
|
40093
|
+
var targetDOM = lineDOM.getElementsByClassName('ev-chart-legend-thumb')[0];
|
|
40094
|
+
|
|
40095
|
+
_this.clearOverlay(targetDOM);
|
|
40096
|
+
|
|
40097
|
+
var colorState = Object.values(_this.seriesList)[0].colorState;
|
|
40098
|
+
colorState[0].selectedValue = null;
|
|
40099
|
+
|
|
40100
|
+
_this.update({
|
|
40101
|
+
updateSeries: false,
|
|
40102
|
+
updateSelTip: {
|
|
40103
|
+
update: false,
|
|
40104
|
+
keepDomain: false
|
|
40105
|
+
}
|
|
40106
|
+
});
|
|
40107
|
+
};
|
|
40108
|
+
|
|
40109
|
+
this.legendBoxDOM.addEventListener('mousedown', this.onLegendMouseDown);
|
|
40110
|
+
this.legendBoxDOM.addEventListener('mouseover', this.onLegendBoxOver);
|
|
40111
|
+
this.legendBoxDOM.addEventListener('mouseleave', this.onLegendBoxLeave);
|
|
40112
|
+
},
|
|
40113
|
+
getSelectedValue: function getSelectedValue(evt) {
|
|
40114
|
+
var _this$containerDOM$ge = this.containerDOM.getBoundingClientRect(),
|
|
40115
|
+
x = _this$containerDOM$ge.x,
|
|
40116
|
+
y = _this$containerDOM$ge.y,
|
|
40117
|
+
width = _this$containerDOM$ge.width,
|
|
40118
|
+
height = _this$containerDOM$ge.height;
|
|
40119
|
+
|
|
40120
|
+
var isTop = !this.isSide;
|
|
40121
|
+
var sp = isTop ? x : y;
|
|
40122
|
+
var size = isTop ? width : height;
|
|
40123
|
+
var movePoint = isTop ? evt.clientX : evt.clientY;
|
|
40124
|
+
|
|
40125
|
+
if (movePoint < sp) {
|
|
40126
|
+
movePoint = sp;
|
|
40127
|
+
} else if (movePoint > sp + size) {
|
|
40128
|
+
movePoint = sp + size;
|
|
40129
|
+
}
|
|
40130
|
+
|
|
40131
|
+
var move = movePoint - sp;
|
|
40132
|
+
return +convertToPercent(move, size);
|
|
40133
|
+
},
|
|
40134
|
+
|
|
40135
|
+
/**
|
|
40136
|
+
* To update legend, reset all process.
|
|
40137
|
+
*
|
|
40138
|
+
* @returns {undefined}
|
|
40139
|
+
*/
|
|
40140
|
+
updateLegend: function updateLegend() {
|
|
40141
|
+
this.resetLegend();
|
|
40142
|
+
this.createLegend();
|
|
40143
|
+
var series = Object.values(this.seriesList)[0];
|
|
40144
|
+
this.setLegendStyle(series);
|
|
40145
|
+
},
|
|
40146
|
+
|
|
40147
|
+
/**
|
|
40148
|
+
* To update legend, remove all of legendBoxDOM's children
|
|
40149
|
+
*
|
|
40150
|
+
* @returns {undefined}
|
|
40151
|
+
*/
|
|
40152
|
+
resetLegend: function resetLegend() {
|
|
40153
|
+
var containerDOM = this.containerDOM;
|
|
40154
|
+
|
|
40155
|
+
if (!containerDOM) {
|
|
40156
|
+
return;
|
|
40157
|
+
}
|
|
40158
|
+
|
|
40159
|
+
while (containerDOM.hasChildNodes()) {
|
|
40160
|
+
containerDOM.removeChild(containerDOM.firstChild);
|
|
40161
|
+
}
|
|
40162
|
+
},
|
|
40163
|
+
clearOverlay: function clearOverlay() {
|
|
40164
|
+
var targetDOM = this.containerDOM.getElementsByClassName('ev-chart-legend-line')[0];
|
|
40165
|
+
var overlayDOM = targetDOM.getElementsByClassName('ev-chart-legend-overlay')[0];
|
|
40166
|
+
|
|
40167
|
+
if (overlayDOM) {
|
|
40168
|
+
targetDOM.removeChild(overlayDOM);
|
|
40169
|
+
var thumbDOM = targetDOM.getElementsByClassName('ev-chart-legend-thumb')[0];
|
|
40170
|
+
var labels = thumbDOM.children;
|
|
40171
|
+
labels.forEach(function (labelDOM) {
|
|
40172
|
+
labelDOM.style.opacity = 1;
|
|
40173
|
+
});
|
|
40174
|
+
}
|
|
40175
|
+
},
|
|
40176
|
+
createLegendOverlay: function createLegendOverlay(value, opt) {
|
|
40177
|
+
this.clearOverlay();
|
|
40178
|
+
var handleSize = this.legendHandleSize;
|
|
40179
|
+
var min = opt.min,
|
|
40180
|
+
max = opt.max;
|
|
40181
|
+
var targetDOM = this.containerDOM.getElementsByClassName('ev-chart-legend-line')[0];
|
|
40182
|
+
var overlayDOM = document.createElement('div');
|
|
40183
|
+
overlayDOM.className = 'ev-chart-legend-overlay';
|
|
40184
|
+
overlayDOM.dataset.type = 'overlay';
|
|
40185
|
+
var tooltipDOM = document.createElement('div');
|
|
40186
|
+
tooltipDOM.className = 'ev-chart-legend-overlay-tooltip';
|
|
40187
|
+
tooltipDOM.innerText = Math.floor(min + (max - min) * (value / 100));
|
|
40188
|
+
var itemDOM = document.createElement('span');
|
|
40189
|
+
itemDOM.className = 'ev-chart-legend-overlay-item';
|
|
40190
|
+
itemDOM.dataset.type = 'overlay-item';
|
|
40191
|
+
var itemStyle;
|
|
40192
|
+
var tooltipStyle;
|
|
40193
|
+
var position = Math.floor(handleSize / 2) + 14;
|
|
40194
|
+
|
|
40195
|
+
if (this.isSide) {
|
|
40196
|
+
tooltipStyle = "top:".concat(100 - value, "%;left:").concat(position, "px;transform:translateY(-50%);");
|
|
40197
|
+
itemStyle = "top:".concat(100 - value, "%;transform:translateY(-50%);");
|
|
40198
|
+
} else {
|
|
40199
|
+
tooltipStyle = "top:-".concat(position, "px;left:").concat(value, "%;transform:translateX(-50%);");
|
|
40200
|
+
itemStyle = "left:".concat(value, "%;transform:translateX(-50%);");
|
|
40201
|
+
}
|
|
40202
|
+
|
|
40203
|
+
itemStyle += "width:".concat(handleSize - 10, "px;height:").concat(handleSize - 10, "px;");
|
|
40204
|
+
tooltipDOM.style.cssText = tooltipStyle;
|
|
40205
|
+
itemDOM.style.cssText = itemStyle;
|
|
40206
|
+
overlayDOM.appendChild(tooltipDOM);
|
|
40207
|
+
overlayDOM.appendChild(itemDOM);
|
|
40208
|
+
targetDOM.appendChild(overlayDOM);
|
|
40209
|
+
var thumbDOM = targetDOM.getElementsByClassName('ev-chart-legend-thumb')[0];
|
|
40210
|
+
var labels = thumbDOM.children;
|
|
40211
|
+
labels.forEach(function (labelDOM) {
|
|
40212
|
+
labelDOM.style.opacity = 0.2;
|
|
40213
|
+
});
|
|
40214
|
+
},
|
|
40215
|
+
createLegendHandle: function createLegendHandle(type) {
|
|
40216
|
+
var colorBtnDOM = document.createElement('span');
|
|
40217
|
+
colorBtnDOM.className = "ev-chart-legend-handle-btn-color ".concat(type);
|
|
40218
|
+
colorBtnDOM.dataset.type = 'handle-btn-color';
|
|
40219
|
+
var btnDOM = document.createElement('div');
|
|
40220
|
+
btnDOM.className = "ev-chart-legend-handle-btn ".concat(type);
|
|
40221
|
+
btnDOM.dataset.type = 'handle-btn';
|
|
40222
|
+
btnDOM.appendChild(colorBtnDOM);
|
|
40223
|
+
var handleDOM = document.createElement('div');
|
|
40224
|
+
handleDOM.className = "ev-chart-legend-handle ".concat(type);
|
|
40225
|
+
handleDOM.dataset.type = 'handle';
|
|
40226
|
+
handleDOM.appendChild(btnDOM);
|
|
40227
|
+
return handleDOM;
|
|
40228
|
+
},
|
|
40229
|
+
createLegendLabel: function createLegendLabel() {
|
|
40230
|
+
var textDOM = document.createElement('span');
|
|
40231
|
+
textDOM.className = 'ev-chart-legend-label-text';
|
|
40232
|
+
var labelDOM = document.createElement('div');
|
|
40233
|
+
labelDOM.className = 'ev-chart-legend-label';
|
|
40234
|
+
return labelDOM;
|
|
40235
|
+
},
|
|
40236
|
+
|
|
40237
|
+
/**
|
|
40238
|
+
* Create legend DOM
|
|
40239
|
+
*
|
|
40240
|
+
* @returns {undefined}
|
|
40241
|
+
*/
|
|
40242
|
+
createLegend: function createLegend() {
|
|
40243
|
+
var opt = this.options.legend;
|
|
40244
|
+
this.isSide = !['top', 'bottom'].includes(opt.position);
|
|
40245
|
+
var legendSize = this.isSide ? opt.width : opt.height;
|
|
40246
|
+
this.legendHandleSize = legendSize > MAX_HANDLE_SIZE ? MAX_HANDLE_SIZE : legendSize;
|
|
40247
|
+
var handleSize = this.legendHandleSize;
|
|
40248
|
+
var startHandleDOM = this.createLegendHandle(this.isSide ? 'end' : 'start', handleSize);
|
|
40249
|
+
var endHandleDOM = this.createLegendHandle(this.isSide ? 'start' : 'end', handleSize);
|
|
40250
|
+
var lineLayerDOM = document.createElement('div');
|
|
40251
|
+
lineLayerDOM.className = 'ev-chart-legend-line-layer';
|
|
40252
|
+
lineLayerDOM.dataset.type = 'line-layer';
|
|
40253
|
+
var thumbDOM = document.createElement('div');
|
|
40254
|
+
thumbDOM.className = 'ev-chart-legend-thumb';
|
|
40255
|
+
thumbDOM.dataset.type = 'thumb';
|
|
40256
|
+
thumbDOM.appendChild(this.createLegendLabel());
|
|
40257
|
+
thumbDOM.appendChild(this.createLegendLabel());
|
|
40258
|
+
var lineDOM = document.createElement('div');
|
|
40259
|
+
lineDOM.className = 'ev-chart-legend-line';
|
|
40260
|
+
lineDOM.dataset.type = 'line';
|
|
40261
|
+
lineDOM.appendChild(lineLayerDOM);
|
|
40262
|
+
lineDOM.appendChild(thumbDOM);
|
|
40263
|
+
this.containerDOM.appendChild(lineDOM);
|
|
40264
|
+
this.containerDOM.appendChild(startHandleDOM);
|
|
40265
|
+
this.containerDOM.appendChild(endHandleDOM);
|
|
40266
|
+
},
|
|
40267
|
+
setLegendStyle: function setLegendStyle(series) {
|
|
40268
|
+
var dir = this.isSide ? 'top' : 'right';
|
|
40269
|
+
var handleSize = this.legendHandleSize;
|
|
40270
|
+
var valueOpt = series.valueOpt,
|
|
40271
|
+
colorState = series.colorState;
|
|
40272
|
+
var min = valueOpt.min,
|
|
40273
|
+
max = valueOpt.max,
|
|
40274
|
+
decimalPoint = valueOpt.decimalPoint;
|
|
40275
|
+
var _colorState$3 = colorState[0],
|
|
40276
|
+
start = _colorState$3.start,
|
|
40277
|
+
end = _colorState$3.end;
|
|
40278
|
+
var startColor = series.getColorForGradient(start);
|
|
40279
|
+
var endColor = series.getColorForGradient(end);
|
|
40280
|
+
var gradient = "linear-gradient(to ".concat(dir, ", ");
|
|
40281
|
+
gradient += "".concat(startColor, ", ").concat(endColor, ")");
|
|
40282
|
+
var labelPosition = Math.floor(handleSize / 2) + 14;
|
|
40283
|
+
var defaultHandleStyle = "width:".concat(handleSize, "px;height:").concat(handleSize, "px;");
|
|
40284
|
+
var labelStyle;
|
|
40285
|
+
var startStyle;
|
|
40286
|
+
var endStyle;
|
|
40287
|
+
var thumbStyle = "background:".concat(gradient, ";");
|
|
40288
|
+
|
|
40289
|
+
if (this.isSide) {
|
|
40290
|
+
defaultHandleStyle += "margin-top:-".concat(handleSize / 2, "px;");
|
|
40291
|
+
labelStyle = "left:".concat(labelPosition, "px;transform:translateY(-50%);top:");
|
|
40292
|
+
startStyle = "top:".concat(100 - end, "%;");
|
|
40293
|
+
endStyle = "top:".concat(100 - start, "%;");
|
|
40294
|
+
thumbStyle += "top:".concat(100 - end, "%;height:").concat(end - start, "%;");
|
|
40295
|
+
} else {
|
|
40296
|
+
defaultHandleStyle += "margin-left:-".concat(handleSize / 2, "px;");
|
|
40297
|
+
labelStyle = "top:-".concat(labelPosition, "px;transform:translateX(-50%);left:");
|
|
40298
|
+
startStyle = "left:".concat(start, "%;");
|
|
40299
|
+
endStyle = "left:".concat(end, "%;");
|
|
40300
|
+
thumbStyle += "left:".concat(start, "%;width:").concat(end - start, "%;");
|
|
40301
|
+
}
|
|
40302
|
+
|
|
40303
|
+
var minText = (min + (max - min) * (start / 100)).toFixed(decimalPoint);
|
|
40304
|
+
var maxText = (min + (max - min) * (end / 100)).toFixed(decimalPoint);
|
|
40305
|
+
var thumbDOM = this.containerDOM.getElementsByClassName('ev-chart-legend-thumb')[0];
|
|
40306
|
+
thumbDOM.style.cssText = thumbStyle;
|
|
40307
|
+
var labelDOM = thumbDOM.getElementsByClassName('ev-chart-legend-label');
|
|
40308
|
+
labelDOM[0].style.cssText = "".concat(labelStyle, "0%;");
|
|
40309
|
+
labelDOM[1].style.cssText = "".concat(labelStyle, "100%;");
|
|
40310
|
+
labelDOM[0].innerText = this.isSide ? maxText : minText;
|
|
40311
|
+
labelDOM[1].innerText = this.isSide ? minText : maxText;
|
|
40312
|
+
var handleDOM = this.containerDOM.getElementsByClassName('ev-chart-legend-handle');
|
|
40313
|
+
handleDOM[0].style.cssText = defaultHandleStyle + startStyle;
|
|
40314
|
+
handleDOM[1].style.cssText = defaultHandleStyle + endStyle;
|
|
40315
|
+
var btnDOM = this.containerDOM.getElementsByClassName('ev-chart-legend-handle-btn-color');
|
|
40316
|
+
btnDOM[0].style.backgroundColor = this.isSide ? endColor : startColor;
|
|
40317
|
+
btnDOM[1].style.backgroundColor = this.isSide ? startColor : endColor;
|
|
40318
|
+
},
|
|
40319
|
+
|
|
40320
|
+
/**
|
|
40321
|
+
* Set legend components position by option
|
|
40322
|
+
*
|
|
40323
|
+
* @returns {undefined}
|
|
40324
|
+
*/
|
|
40325
|
+
setLegendPosition: function setLegendPosition() {
|
|
40326
|
+
var _opt$legend, _opt$title, _opt$title2, _opt$legend$padding, _opt$legend2;
|
|
40327
|
+
|
|
40328
|
+
var opt = this.options;
|
|
40329
|
+
var position = opt === null || opt === void 0 ? void 0 : (_opt$legend = opt.legend) === null || _opt$legend === void 0 ? void 0 : _opt$legend.position;
|
|
40330
|
+
var minWidth = MIN_BOX_SIZE.width,
|
|
40331
|
+
minHeight = MIN_BOX_SIZE.height;
|
|
40332
|
+
var handleSize = this.legendHandleSize;
|
|
40333
|
+
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;
|
|
40334
|
+
var positionTop = title + minHeight;
|
|
40335
|
+
|
|
40336
|
+
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 : {},
|
|
40337
|
+
_ref$top = _ref.top,
|
|
40338
|
+
top = _ref$top === void 0 ? 0 : _ref$top,
|
|
40339
|
+
_ref$bottom = _ref.bottom,
|
|
40340
|
+
bottom = _ref$bottom === void 0 ? 0 : _ref$bottom,
|
|
40341
|
+
_ref$left = _ref.left,
|
|
40342
|
+
left = _ref$left === void 0 ? 0 : _ref$left,
|
|
40343
|
+
_ref$right = _ref.right,
|
|
40344
|
+
right = _ref$right === void 0 ? 0 : _ref$right;
|
|
40345
|
+
|
|
40346
|
+
var wrapperStyle = this.wrapperDOM.style;
|
|
40347
|
+
|
|
40348
|
+
if (!wrapperStyle) {
|
|
40349
|
+
return;
|
|
40350
|
+
}
|
|
40351
|
+
|
|
40352
|
+
var legendStyle;
|
|
40353
|
+
var boxStyle;
|
|
40354
|
+
var containerStyle;
|
|
40355
|
+
var chartRect;
|
|
40356
|
+
|
|
40357
|
+
switch (position) {
|
|
40358
|
+
case 'top':
|
|
40359
|
+
wrapperStyle.padding = "".concat(positionTop, "px 0 0 0");
|
|
40360
|
+
chartRect = this.chartDOM.getBoundingClientRect();
|
|
40361
|
+
boxStyle = "padding:".concat(handleSize + 7, "px ").concat(right, "px ").concat(bottom, "px ").concat(left, "px;");
|
|
40362
|
+
boxStyle += 'width:100%';
|
|
40363
|
+
boxStyle += "height".concat(minHeight, "px;");
|
|
40364
|
+
legendStyle = "width:".concat(chartRect.width, "px;");
|
|
40365
|
+
legendStyle += "height:".concat(minHeight, "px;");
|
|
40366
|
+
legendStyle += "top:".concat(title, "px;");
|
|
40367
|
+
break;
|
|
40368
|
+
|
|
40369
|
+
case 'right':
|
|
40370
|
+
wrapperStyle.padding = "".concat(title, "px ").concat(minWidth, "px 0 0");
|
|
40371
|
+
chartRect = this.chartDOM.getBoundingClientRect();
|
|
40372
|
+
boxStyle = "padding:".concat(top, "px ").concat(right, "px ").concat(bottom, "px ").concat(left, "px;");
|
|
40373
|
+
boxStyle += "width:".concat(minWidth, "px;");
|
|
40374
|
+
boxStyle += 'height:100%;';
|
|
40375
|
+
boxStyle += "max-height:".concat(chartRect.height, "px;");
|
|
40376
|
+
legendStyle = "width:".concat(minWidth, "px;");
|
|
40377
|
+
legendStyle += "height:".concat(chartRect.height, "px;");
|
|
40378
|
+
legendStyle += "top:".concat(title, "px;right:0px;");
|
|
40379
|
+
break;
|
|
40380
|
+
|
|
40381
|
+
case 'bottom':
|
|
40382
|
+
wrapperStyle.padding = "".concat(title, "px 0 ").concat(minHeight, "px 0");
|
|
40383
|
+
chartRect = this.chartDOM.getBoundingClientRect();
|
|
40384
|
+
boxStyle = "padding:".concat(handleSize + 7, "px ").concat(right, "px ").concat(bottom, "px ").concat(left, "px;");
|
|
40385
|
+
boxStyle += 'width:100%;';
|
|
40386
|
+
boxStyle += "height:".concat(minHeight, "px;");
|
|
40387
|
+
legendStyle = "width:".concat(chartRect.width, "px;");
|
|
40388
|
+
legendStyle += "height:".concat(minHeight, "px;");
|
|
40389
|
+
legendStyle += 'bottom:0px;left:0px;';
|
|
40390
|
+
break;
|
|
40391
|
+
|
|
40392
|
+
case 'left':
|
|
40393
|
+
wrapperStyle.padding = "".concat(title, "px 0 0 ").concat(minWidth, "px");
|
|
40394
|
+
chartRect = this.chartDOM.getBoundingClientRect();
|
|
40395
|
+
boxStyle = "padding:".concat(top, "px ").concat(right, "px ").concat(bottom, "px ").concat(left, "px;");
|
|
40396
|
+
boxStyle += 'display:absolute;';
|
|
40397
|
+
boxStyle += 'bottom:0px;';
|
|
40398
|
+
boxStyle += "width:".concat(minWidth, "px;");
|
|
40399
|
+
boxStyle += 'height:100%;';
|
|
40400
|
+
boxStyle += "maxHeight:".concat(chartRect.height, "px;");
|
|
40401
|
+
legendStyle = "width:".concat(minWidth, "px;");
|
|
40402
|
+
legendStyle += "height:".concat(chartRect.height, "px;");
|
|
40403
|
+
legendStyle += "top:".concat(title, "px;left:0px");
|
|
40404
|
+
break;
|
|
40405
|
+
|
|
40406
|
+
default:
|
|
40407
|
+
break;
|
|
40408
|
+
}
|
|
40409
|
+
|
|
40410
|
+
if (['top', 'bottom'].includes(position)) {
|
|
40411
|
+
var containerSize = chartRect.width / 2;
|
|
40412
|
+
containerStyle = "left:".concat(chartRect.width / 2 - containerSize / 2, "px;");
|
|
40413
|
+
containerStyle += "width:".concat(containerSize, "px;");
|
|
40414
|
+
containerStyle += "height:".concat(handleSize, "px;");
|
|
40415
|
+
containerStyle += 'padding:4px 0;';
|
|
40416
|
+
containerStyle += 'margin:0 4px;';
|
|
40417
|
+
} else {
|
|
40418
|
+
var _containerSize = chartRect.height / 2;
|
|
40419
|
+
|
|
40420
|
+
containerStyle = "top:".concat(chartRect.height / 2 - _containerSize / 2, "px;");
|
|
40421
|
+
containerStyle += 'left:5px;';
|
|
40422
|
+
containerStyle += "width:".concat(handleSize, "px;");
|
|
40423
|
+
containerStyle += "height:".concat(_containerSize, "px;");
|
|
40424
|
+
containerStyle += 'padding:0 4px;';
|
|
40425
|
+
containerStyle += 'margin:4px 0;';
|
|
40426
|
+
}
|
|
40427
|
+
|
|
40428
|
+
this.containerDOM.style.cssText = containerStyle;
|
|
40429
|
+
this.legendBoxDOM.style.cssText = boxStyle;
|
|
40430
|
+
this.legendDOM.style.cssText = legendStyle;
|
|
40431
|
+
},
|
|
40432
|
+
|
|
40433
|
+
/**
|
|
40434
|
+
* Update legend components size
|
|
40435
|
+
*
|
|
40436
|
+
* @returns {undefined}
|
|
40437
|
+
*/
|
|
40438
|
+
updateLegendContainerSize: function updateLegendContainerSize() {
|
|
40439
|
+
var series = Object.values(this.seriesList)[0];
|
|
40440
|
+
this.setLegendStyle(series);
|
|
40441
|
+
},
|
|
40442
|
+
|
|
40443
|
+
/**
|
|
40444
|
+
* Show legend components by manipulating css
|
|
40445
|
+
*
|
|
40446
|
+
* @returns {undefined}
|
|
40447
|
+
*/
|
|
40448
|
+
showLegend: function showLegend() {
|
|
40449
|
+
if (this.resizeDOM) {
|
|
40450
|
+
this.resizeDOM.style.display = 'block';
|
|
40451
|
+
}
|
|
40452
|
+
|
|
40453
|
+
if (this.legendDOM) {
|
|
40454
|
+
this.legendDOM.style.display = 'block';
|
|
40455
|
+
}
|
|
40456
|
+
},
|
|
40457
|
+
|
|
40458
|
+
/**
|
|
40459
|
+
* Hide legend components by manipulating css
|
|
40460
|
+
*
|
|
40461
|
+
* @returns {undefined}
|
|
40462
|
+
*/
|
|
40463
|
+
hideLegend: function hideLegend() {
|
|
40464
|
+
var _this$wrapperDOM, _this$legendDOM, _opt$title3, _opt$title4;
|
|
40465
|
+
|
|
40466
|
+
var opt = this.options;
|
|
40467
|
+
var wrapperStyle = (_this$wrapperDOM = this.wrapperDOM) === null || _this$wrapperDOM === void 0 ? void 0 : _this$wrapperDOM.style;
|
|
40468
|
+
var legendStyle = (_this$legendDOM = this.legendDOM) === null || _this$legendDOM === void 0 ? void 0 : _this$legendDOM.style;
|
|
40469
|
+
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;
|
|
40470
|
+
|
|
40471
|
+
if (!legendStyle || !wrapperStyle) {
|
|
40472
|
+
return;
|
|
40473
|
+
}
|
|
40474
|
+
|
|
40475
|
+
legendStyle.display = 'none';
|
|
40476
|
+
legendStyle.width = '0';
|
|
40477
|
+
legendStyle.height = '0';
|
|
40478
|
+
wrapperStyle.padding = "".concat(title, "px 0 0 0");
|
|
40479
|
+
}
|
|
40480
|
+
};
|
|
40481
|
+
/* harmony default export */ var plugins_legend_gradient = (plugins_legend_gradient_modules);
|
|
39711
40482
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.from-entries.js
|
|
39712
40483
|
var es_object_from_entries = __webpack_require__("c1f9");
|
|
39713
40484
|
|
|
@@ -40533,6 +41304,7 @@ var plugins_interaction_modules = {
|
|
|
40533
41304
|
|
|
40534
41305
|
|
|
40535
41306
|
|
|
41307
|
+
|
|
40536
41308
|
var TITLE_HEIGHT = 30;
|
|
40537
41309
|
var TEXT_HEIGHT = 14;
|
|
40538
41310
|
var LINE_SPACING = 8;
|
|
@@ -40687,6 +41459,8 @@ var plugins_tooltip_modules = {
|
|
|
40687
41459
|
* @returns {undefined}
|
|
40688
41460
|
*/
|
|
40689
41461
|
drawTooltip: function drawTooltip(hitInfo, context) {
|
|
41462
|
+
var _opt$formatter, _opt$formatter2;
|
|
41463
|
+
|
|
40690
41464
|
var ctx = context;
|
|
40691
41465
|
var items = hitInfo.items;
|
|
40692
41466
|
var sId = hitInfo.hitId;
|
|
@@ -40704,10 +41478,19 @@ var plugins_tooltip_modules = {
|
|
|
40704
41478
|
l: 16
|
|
40705
41479
|
};
|
|
40706
41480
|
var isHorizontal = this.options.horizontal;
|
|
40707
|
-
var opt = this.options.tooltip;
|
|
41481
|
+
var opt = this.options.tooltip;
|
|
41482
|
+
var valueFormatter = typeof opt.formatter === 'function' ? opt.formatter : (_opt$formatter = opt.formatter) === null || _opt$formatter === void 0 ? void 0 : _opt$formatter.value;
|
|
41483
|
+
var titleFormatter = (_opt$formatter2 = opt.formatter) === null || _opt$formatter2 === void 0 ? void 0 : _opt$formatter2.title; // draw tooltip Title(axis label) and add style class for wrap line about too much long label.
|
|
40708
41484
|
|
|
40709
41485
|
if (this.axesX.length && this.axesY.length) {
|
|
40710
|
-
|
|
41486
|
+
if (titleFormatter) {
|
|
41487
|
+
this.tooltipHeaderDOM.textContent = titleFormatter({
|
|
41488
|
+
x: hitItem.x,
|
|
41489
|
+
y: hitItem.y
|
|
41490
|
+
});
|
|
41491
|
+
} else {
|
|
41492
|
+
this.tooltipHeaderDOM.textContent = this.options.horizontal ? this.axesY[hitAxis.y].getLabelFormat(hitItem.y) : this.axesX[hitAxis.x].getLabelFormat(hitItem.x);
|
|
41493
|
+
}
|
|
40711
41494
|
}
|
|
40712
41495
|
|
|
40713
41496
|
if (opt.textOverflow) {
|
|
@@ -40828,14 +41611,14 @@ var plugins_tooltip_modules = {
|
|
|
40828
41611
|
|
|
40829
41612
|
var formattedTxt = void 0;
|
|
40830
41613
|
|
|
40831
|
-
if (
|
|
41614
|
+
if (valueFormatter) {
|
|
40832
41615
|
if (this.options.type === 'pie') {
|
|
40833
|
-
formattedTxt =
|
|
41616
|
+
formattedTxt = valueFormatter({
|
|
40834
41617
|
value: value,
|
|
40835
41618
|
name: name
|
|
40836
41619
|
});
|
|
40837
41620
|
} else {
|
|
40838
|
-
formattedTxt =
|
|
41621
|
+
formattedTxt = valueFormatter({
|
|
40839
41622
|
x: this.options.horizontal ? value : hitItem.x,
|
|
40840
41623
|
y: this.options.horizontal ? hitItem.y : value,
|
|
40841
41624
|
name: name
|
|
@@ -40843,7 +41626,7 @@ var plugins_tooltip_modules = {
|
|
|
40843
41626
|
}
|
|
40844
41627
|
}
|
|
40845
41628
|
|
|
40846
|
-
if (!
|
|
41629
|
+
if (!valueFormatter || typeof formattedTxt !== 'string') {
|
|
40847
41630
|
formattedTxt = numberWithComma(value);
|
|
40848
41631
|
}
|
|
40849
41632
|
|
|
@@ -40868,7 +41651,7 @@ var plugins_tooltip_modules = {
|
|
|
40868
41651
|
* @returns {undefined}
|
|
40869
41652
|
*/
|
|
40870
41653
|
drawToolTipForHeatMap: function drawToolTipForHeatMap(hitInfo, context) {
|
|
40871
|
-
var
|
|
41654
|
+
var _opt$formatter3, _opt$formatter4;
|
|
40872
41655
|
|
|
40873
41656
|
var ctx = context;
|
|
40874
41657
|
var items = hitInfo.items;
|
|
@@ -40884,23 +41667,46 @@ var plugins_tooltip_modules = {
|
|
|
40884
41667
|
};
|
|
40885
41668
|
var isHorizontal = this.options.horizontal;
|
|
40886
41669
|
var opt = this.options.tooltip;
|
|
40887
|
-
var
|
|
40888
|
-
var
|
|
40889
|
-
|
|
40890
|
-
|
|
40891
|
-
|
|
41670
|
+
var valueFormatter = typeof opt.formatter === 'function' ? opt.formatter : (_opt$formatter3 = opt.formatter) === null || _opt$formatter3 === void 0 ? void 0 : _opt$formatter3.value;
|
|
41671
|
+
var titleFormatter = (_opt$formatter4 = opt.formatter) === null || _opt$formatter4 === void 0 ? void 0 : _opt$formatter4.title;
|
|
41672
|
+
var series = Object.values(this.seriesList)[0];
|
|
41673
|
+
var isShow = false;
|
|
41674
|
+
var colorState = series.colorState,
|
|
41675
|
+
isGradient = series.isGradient;
|
|
41676
|
+
|
|
41677
|
+
if (isGradient) {
|
|
41678
|
+
var _series$valueOpt = series.valueOpt,
|
|
41679
|
+
min = _series$valueOpt.min,
|
|
41680
|
+
max = _series$valueOpt.max;
|
|
41681
|
+
var ratio = convertToPercent(hitItem.o - min, max - min);
|
|
41682
|
+
var _colorState$ = colorState[0],
|
|
41683
|
+
start = _colorState$.start,
|
|
41684
|
+
end = _colorState$.end;
|
|
41685
|
+
isShow = start <= ratio && ratio <= end || hitItem.o === -1;
|
|
41686
|
+
} else {
|
|
41687
|
+
var _colorState$find;
|
|
41688
|
+
|
|
41689
|
+
isShow = (_colorState$find = colorState.find(function (_ref) {
|
|
41690
|
+
var id = _ref.id;
|
|
41691
|
+
return id === hitItem.cId;
|
|
41692
|
+
})) === null || _colorState$find === void 0 ? void 0 : _colorState$find.show;
|
|
41693
|
+
}
|
|
40892
41694
|
|
|
40893
41695
|
if (!isShow) {
|
|
40894
41696
|
this.tooltipClear();
|
|
40895
41697
|
return;
|
|
40896
|
-
}
|
|
41698
|
+
} // draw tooltip Title(axis label) and add style class for wrap line about too much long label.
|
|
40897
41699
|
|
|
40898
|
-
var xValue = '';
|
|
40899
|
-
var yValue = ''; // draw tooltip Title(axis label) and add style class for wrap line about too much long label.
|
|
40900
41700
|
|
|
40901
41701
|
if (this.axesX.length) {
|
|
40902
|
-
|
|
40903
|
-
|
|
41702
|
+
if (titleFormatter) {
|
|
41703
|
+
this.tooltipHeaderDOM.textContent = titleFormatter({
|
|
41704
|
+
x: hitItem.x,
|
|
41705
|
+
y: hitItem.y
|
|
41706
|
+
});
|
|
41707
|
+
} else {
|
|
41708
|
+
this.tooltipHeaderDOM.textContent = this.axesX[hitAxis.x].getLabelFormat(hitItem.x);
|
|
41709
|
+
}
|
|
40904
41710
|
}
|
|
40905
41711
|
|
|
40906
41712
|
if (opt.textOverflow) {
|
|
@@ -40939,22 +41745,21 @@ var plugins_tooltip_modules = {
|
|
|
40939
41745
|
ctx.textBaseline = 'Bottom';
|
|
40940
41746
|
|
|
40941
41747
|
if (this.axesY.length) {
|
|
40942
|
-
|
|
40943
|
-
ctx.fillText(yValue, itemX + COLOR_MARGIN, itemY);
|
|
41748
|
+
ctx.fillText(this.axesY[hitAxis.y].getLabelFormat(hitItem.y), itemX + COLOR_MARGIN, itemY);
|
|
40944
41749
|
} // 3. Draw value
|
|
40945
41750
|
|
|
40946
41751
|
|
|
40947
41752
|
var formattedTxt = itemValue;
|
|
40948
41753
|
|
|
40949
|
-
if (
|
|
40950
|
-
formattedTxt =
|
|
40951
|
-
x:
|
|
40952
|
-
y:
|
|
41754
|
+
if (valueFormatter) {
|
|
41755
|
+
formattedTxt = valueFormatter({
|
|
41756
|
+
x: hitItem.x,
|
|
41757
|
+
y: hitItem.y,
|
|
40953
41758
|
value: itemValue
|
|
40954
41759
|
});
|
|
40955
41760
|
}
|
|
40956
41761
|
|
|
40957
|
-
if ((!
|
|
41762
|
+
if ((!valueFormatter || typeof formattedTxt !== 'string') && itemValue !== 'error') {
|
|
40958
41763
|
formattedTxt = numberWithComma(itemValue);
|
|
40959
41764
|
}
|
|
40960
41765
|
|
|
@@ -41028,6 +41833,8 @@ var plugins_tooltip_modules = {
|
|
|
41028
41833
|
var textLineCnt = 1;
|
|
41029
41834
|
|
|
41030
41835
|
for (var ix = 0; ix < seriesList.length; ix++) {
|
|
41836
|
+
var _opt$formatter5;
|
|
41837
|
+
|
|
41031
41838
|
var gdata = seriesList[ix].data;
|
|
41032
41839
|
var color = seriesList[ix].color;
|
|
41033
41840
|
var name = seriesList[ix].name;
|
|
@@ -41098,16 +41905,17 @@ var plugins_tooltip_modules = {
|
|
|
41098
41905
|
ctx.save(); // 3. Draw value
|
|
41099
41906
|
|
|
41100
41907
|
var formattedTxt = void 0;
|
|
41908
|
+
var formatter = typeof opt.formatter === 'function' ? opt.formatter : (_opt$formatter5 = opt.formatter) === null || _opt$formatter5 === void 0 ? void 0 : _opt$formatter5.value;
|
|
41101
41909
|
|
|
41102
|
-
if (
|
|
41103
|
-
formattedTxt =
|
|
41910
|
+
if (formatter) {
|
|
41911
|
+
formattedTxt = formatter({
|
|
41104
41912
|
x: xValue,
|
|
41105
41913
|
y: yValue,
|
|
41106
41914
|
name: name
|
|
41107
41915
|
});
|
|
41108
41916
|
}
|
|
41109
41917
|
|
|
41110
|
-
if (!
|
|
41918
|
+
if (!formatter || typeof formattedTxt !== 'string') {
|
|
41111
41919
|
var formattedXValue = xAxisOpt.type === 'time' ? dayjs_min_default()(xValue).format(xAxisOpt.timeFormat) : numberWithComma(xValue);
|
|
41112
41920
|
var formattedYValue = numberWithComma(yValue);
|
|
41113
41921
|
formattedTxt = "".concat(formattedXValue, ", ").concat(formattedYValue);
|
|
@@ -42137,6 +42945,7 @@ var element_tip_modules = {
|
|
|
42137
42945
|
|
|
42138
42946
|
|
|
42139
42947
|
|
|
42948
|
+
|
|
42140
42949
|
|
|
42141
42950
|
|
|
42142
42951
|
var chart_core_EvChart = /*#__PURE__*/function () {
|
|
@@ -42154,6 +42963,11 @@ var chart_core_EvChart = /*#__PURE__*/function () {
|
|
|
42154
42963
|
Object.assign(this, plugins_tooltip);
|
|
42155
42964
|
Object.assign(this, plugins_pie);
|
|
42156
42965
|
Object.assign(this, element_tip);
|
|
42966
|
+
|
|
42967
|
+
if (options.type === 'heatMap' && options.legend.type === 'gradient') {
|
|
42968
|
+
Object.assign(this, plugins_legend_gradient);
|
|
42969
|
+
}
|
|
42970
|
+
|
|
42157
42971
|
this.target = target;
|
|
42158
42972
|
this.data = data;
|
|
42159
42973
|
this.options = options;
|
|
@@ -42326,7 +43140,8 @@ var chart_core_EvChart = /*#__PURE__*/function () {
|
|
|
42326
43140
|
selectSeries: {
|
|
42327
43141
|
option: selectSeries,
|
|
42328
43142
|
selected: this.defaultSelectInfo
|
|
42329
|
-
}
|
|
43143
|
+
},
|
|
43144
|
+
overlayCtx: this.overlayCtx
|
|
42330
43145
|
};
|
|
42331
43146
|
var showIndex = 0;
|
|
42332
43147
|
var showSeriesCount = 0;
|
|
@@ -42650,19 +43465,39 @@ var chart_core_EvChart = /*#__PURE__*/function () {
|
|
|
42650
43465
|
}, {
|
|
42651
43466
|
key: "getChartRect",
|
|
42652
43467
|
value: function getChartRect() {
|
|
43468
|
+
var _this$options$axesX, _this$options$axesX$, _this$options$axesY, _this$options$axesY$;
|
|
43469
|
+
|
|
42653
43470
|
var _this$getChartDOMRect = this.getChartDOMRect(),
|
|
42654
43471
|
width = _this$getChartDOMRect.width,
|
|
42655
43472
|
height = _this$getChartDOMRect.height;
|
|
42656
43473
|
|
|
42657
43474
|
var padding = this.options.padding;
|
|
43475
|
+
var xAxisTitleOpt = (_this$options$axesX = this.options.axesX) === null || _this$options$axesX === void 0 ? void 0 : (_this$options$axesX$ = _this$options$axesX[0]) === null || _this$options$axesX$ === void 0 ? void 0 : _this$options$axesX$.title;
|
|
43476
|
+
var yAxisTitleOpt = (_this$options$axesY = this.options.axesY) === null || _this$options$axesY === void 0 ? void 0 : (_this$options$axesY$ = _this$options$axesY[0]) === null || _this$options$axesY$ === void 0 ? void 0 : _this$options$axesY$.title;
|
|
43477
|
+
var titleMargin = 10;
|
|
43478
|
+
var xAxisTitleHeight = 0;
|
|
43479
|
+
|
|
43480
|
+
if (xAxisTitleOpt !== null && xAxisTitleOpt !== void 0 && xAxisTitleOpt.use && xAxisTitleOpt !== null && xAxisTitleOpt !== void 0 && xAxisTitleOpt.text) {
|
|
43481
|
+
var fontSize = isNaN(xAxisTitleOpt === null || xAxisTitleOpt === void 0 ? void 0 : xAxisTitleOpt.fontSize) ? 12 : xAxisTitleOpt === null || xAxisTitleOpt === void 0 ? void 0 : xAxisTitleOpt.fontSize;
|
|
43482
|
+
xAxisTitleHeight = fontSize + titleMargin;
|
|
43483
|
+
}
|
|
43484
|
+
|
|
43485
|
+
var yAxisTitleHeight = 0;
|
|
43486
|
+
|
|
43487
|
+
if (yAxisTitleOpt !== null && yAxisTitleOpt !== void 0 && yAxisTitleOpt.use && yAxisTitleOpt !== null && yAxisTitleOpt !== void 0 && yAxisTitleOpt.text) {
|
|
43488
|
+
var _fontSize = isNaN(yAxisTitleOpt === null || yAxisTitleOpt === void 0 ? void 0 : yAxisTitleOpt.fontSize) ? 12 : yAxisTitleOpt === null || yAxisTitleOpt === void 0 ? void 0 : yAxisTitleOpt.fontSize;
|
|
43489
|
+
|
|
43490
|
+
yAxisTitleHeight = _fontSize + titleMargin;
|
|
43491
|
+
}
|
|
43492
|
+
|
|
42658
43493
|
var horizontalPadding = padding.left + padding.right;
|
|
42659
|
-
var verticalPadding = padding.top + padding.bottom;
|
|
43494
|
+
var verticalPadding = padding.top + padding.bottom + xAxisTitleHeight + yAxisTitleHeight;
|
|
42660
43495
|
var chartWidth = width > horizontalPadding ? width - horizontalPadding : width;
|
|
42661
43496
|
var chartHeight = height > verticalPadding ? height - verticalPadding : height;
|
|
42662
43497
|
var x1 = padding.left;
|
|
42663
43498
|
var x2 = Math.max(width - padding.right, x1 + 2);
|
|
42664
|
-
var y1 = padding.top;
|
|
42665
|
-
var y2 = Math.max(height - padding.bottom, y1 + 2);
|
|
43499
|
+
var y1 = padding.top + yAxisTitleHeight;
|
|
43500
|
+
var y2 = Math.max(height - padding.bottom - xAxisTitleHeight, y1 + 2);
|
|
42666
43501
|
return {
|
|
42667
43502
|
x1: x1,
|
|
42668
43503
|
x2: x2,
|
|
@@ -43086,6 +43921,7 @@ var DEFAULT_OPTIONS = {
|
|
|
43086
43921
|
},
|
|
43087
43922
|
legend: {
|
|
43088
43923
|
show: true,
|
|
43924
|
+
type: 'icon',
|
|
43089
43925
|
position: 'right',
|
|
43090
43926
|
color: '#353740',
|
|
43091
43927
|
inactive: '#aaa',
|
|
@@ -43173,12 +44009,13 @@ var DEFAULT_OPTIONS = {
|
|
|
43173
44009
|
heatMapColor: {
|
|
43174
44010
|
min: '#FFFFFF',
|
|
43175
44011
|
max: '#0052FF',
|
|
43176
|
-
categoryCnt:
|
|
44012
|
+
categoryCnt: 1,
|
|
43177
44013
|
stroke: {
|
|
43178
44014
|
show: false,
|
|
43179
44015
|
color: '#FFFFFF',
|
|
43180
44016
|
lineWidth: 1,
|
|
43181
|
-
opacity: 1
|
|
44017
|
+
opacity: 1,
|
|
44018
|
+
radius: 0
|
|
43182
44019
|
},
|
|
43183
44020
|
error: '#FF0000',
|
|
43184
44021
|
decimalPoint: 0
|
|
@@ -43587,32 +44424,32 @@ Chart.install = function (app) {
|
|
|
43587
44424
|
};
|
|
43588
44425
|
|
|
43589
44426
|
/* harmony default export */ var chart = (Chart);
|
|
43590
|
-
// 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=
|
|
44427
|
+
// 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
|
|
43591
44428
|
|
|
43592
44429
|
|
|
43593
|
-
var
|
|
44430
|
+
var TreeGridvue_type_template_id_89cff218_scoped_true_withId = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withScopeId"])("data-v-89cff218");
|
|
43594
44431
|
|
|
43595
|
-
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-
|
|
44432
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-89cff218");
|
|
43596
44433
|
|
|
43597
|
-
var
|
|
44434
|
+
var TreeGridvue_type_template_id_89cff218_scoped_true_hoisted_1 = {
|
|
43598
44435
|
class: "column-list"
|
|
43599
44436
|
};
|
|
43600
|
-
var
|
|
44437
|
+
var TreeGridvue_type_template_id_89cff218_scoped_true_hoisted_2 = {
|
|
43601
44438
|
key: 0
|
|
43602
44439
|
};
|
|
43603
44440
|
|
|
43604
|
-
var
|
|
44441
|
+
var TreeGridvue_type_template_id_89cff218_scoped_true_hoisted_3 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("td", {
|
|
43605
44442
|
class: "is-empty"
|
|
43606
44443
|
}, "No records", -1);
|
|
43607
44444
|
|
|
43608
|
-
var
|
|
44445
|
+
var TreeGridvue_type_template_id_89cff218_scoped_true_hoisted_4 = {
|
|
43609
44446
|
ref: "resizeLine",
|
|
43610
44447
|
class: "table-resize-line"
|
|
43611
44448
|
};
|
|
43612
44449
|
|
|
43613
44450
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])();
|
|
43614
44451
|
|
|
43615
|
-
var
|
|
44452
|
+
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) {
|
|
43616
44453
|
var _component_toolbar = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("toolbar");
|
|
43617
44454
|
|
|
43618
44455
|
var _component_ev_checkbox = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ev-checkbox");
|
|
@@ -43634,7 +44471,7 @@ var TreeGridvue_type_template_id_1aab6f12_scoped_true_render = /*#__PURE__*/Tree
|
|
|
43634
44471
|
class: "toolbar-wrapper",
|
|
43635
44472
|
style: "width: ".concat(_ctx.gridWidth, ";")
|
|
43636
44473
|
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_toolbar, null, {
|
|
43637
|
-
toolbarWrapper:
|
|
44474
|
+
toolbarWrapper: TreeGridvue_type_template_id_89cff218_scoped_true_withId(function () {
|
|
43638
44475
|
return [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, "toolbar", {
|
|
43639
44476
|
item: {
|
|
43640
44477
|
onSearch: $setup.onSearch
|
|
@@ -43651,7 +44488,7 @@ var TreeGridvue_type_template_id_1aab6f12_scoped_true_render = /*#__PURE__*/Tree
|
|
|
43651
44488
|
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("div", {
|
|
43652
44489
|
ref: "header",
|
|
43653
44490
|
class: $setup.headerClass
|
|
43654
|
-
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("ul",
|
|
44491
|
+
}, [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", {
|
|
43655
44492
|
key: 0,
|
|
43656
44493
|
class: $setup.headerCheckboxClass,
|
|
43657
44494
|
style: "width: ".concat(_ctx.minWidth, "px;")
|
|
@@ -43720,7 +44557,7 @@ var TreeGridvue_type_template_id_1aab6f12_scoped_true_render = /*#__PURE__*/Tree
|
|
|
43720
44557
|
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.orderedColumns, function (column, cellIndex) {
|
|
43721
44558
|
return {
|
|
43722
44559
|
name: $setup.getSlotName(column.field),
|
|
43723
|
-
fn:
|
|
44560
|
+
fn: TreeGridvue_type_template_id_89cff218_scoped_true_withId(function (_ref) {
|
|
43724
44561
|
var item = _ref.item;
|
|
43725
44562
|
return [!!_ctx.$slots[column.field] ? Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, column.field, {
|
|
43726
44563
|
key: 0,
|
|
@@ -43735,13 +44572,13 @@ var TreeGridvue_type_template_id_1aab6f12_scoped_true_render = /*#__PURE__*/Tree
|
|
|
43735
44572
|
})
|
|
43736
44573
|
};
|
|
43737
44574
|
})]), 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"]);
|
|
43738
|
-
}), 128)), !_ctx.viewStore.length ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("tr",
|
|
44575
|
+
}), 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", {
|
|
43739
44576
|
style: "height: ".concat(_ctx.vScrollBottomHeight, "px;"),
|
|
43740
44577
|
class: "vscroll-spacer"
|
|
43741
44578
|
}, null, 4), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_ev_context_menu, {
|
|
43742
44579
|
ref: "menu",
|
|
43743
44580
|
items: _ctx.contextMenuItems
|
|
43744
|
-
}, null, 8, ["items"])], 34), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("div",
|
|
44581
|
+
}, 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, {
|
|
43745
44582
|
callback: $setup.onShow,
|
|
43746
44583
|
once: true
|
|
43747
44584
|
}]]), $setup.useSummary ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_grid_summary, {
|
|
@@ -43769,7 +44606,7 @@ var TreeGridvue_type_template_id_1aab6f12_scoped_true_render = /*#__PURE__*/Tree
|
|
|
43769
44606
|
order: _ctx.order
|
|
43770
44607
|
}, null, 8, ["modelValue", "total", "per-page", "visible-page", "show-page-info", "order"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64);
|
|
43771
44608
|
});
|
|
43772
|
-
// CONCATENATED MODULE: ./src/components/treeGrid/TreeGrid.vue?vue&type=template&id=
|
|
44609
|
+
// CONCATENATED MODULE: ./src/components/treeGrid/TreeGrid.vue?vue&type=template&id=89cff218&scoped=true
|
|
43773
44610
|
|
|
43774
44611
|
// 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
|
|
43775
44612
|
|
|
@@ -45647,6 +46484,7 @@ var treeGrid_uses_pagingEvent = function pagingEvent(params) {
|
|
|
45647
46484
|
|
|
45648
46485
|
setParentShow = function setParentShow(data) {
|
|
45649
46486
|
if (!(data !== null && data !== void 0 && data.parent)) {
|
|
46487
|
+
setChildShow(data);
|
|
45650
46488
|
return;
|
|
45651
46489
|
}
|
|
45652
46490
|
|
|
@@ -45907,8 +46745,8 @@ var treeGrid_uses_pagingEvent = function pagingEvent(params) {
|
|
|
45907
46745
|
});
|
|
45908
46746
|
// CONCATENATED MODULE: ./src/components/treeGrid/TreeGrid.vue?vue&type=script&lang=js
|
|
45909
46747
|
|
|
45910
|
-
// EXTERNAL MODULE: ./src/components/treeGrid/TreeGrid.vue?vue&type=style&index=0&id=
|
|
45911
|
-
var
|
|
46748
|
+
// EXTERNAL MODULE: ./src/components/treeGrid/TreeGrid.vue?vue&type=style&index=0&id=89cff218&lang=scss&scoped=true
|
|
46749
|
+
var TreeGridvue_type_style_index_0_id_89cff218_lang_scss_scoped_true = __webpack_require__("ca6f");
|
|
45912
46750
|
|
|
45913
46751
|
// CONCATENATED MODULE: ./src/components/treeGrid/TreeGrid.vue
|
|
45914
46752
|
|
|
@@ -45916,8 +46754,8 @@ var TreeGridvue_type_style_index_0_id_1aab6f12_lang_scss_scoped_true = __webpack
|
|
|
45916
46754
|
|
|
45917
46755
|
|
|
45918
46756
|
|
|
45919
|
-
TreeGridvue_type_script_lang_js.render =
|
|
45920
|
-
TreeGridvue_type_script_lang_js.__scopeId = "data-v-
|
|
46757
|
+
TreeGridvue_type_script_lang_js.render = TreeGridvue_type_template_id_89cff218_scoped_true_render
|
|
46758
|
+
TreeGridvue_type_script_lang_js.__scopeId = "data-v-89cff218"
|
|
45921
46759
|
|
|
45922
46760
|
/* harmony default export */ var TreeGrid = (TreeGridvue_type_script_lang_js);
|
|
45923
46761
|
// CONCATENATED MODULE: ./src/components/treeGrid/index.js
|