evui 3.4.69 → 3.4.71
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 +355 -159
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +355 -159
- 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 +13 -0
- package/src/components/chart/element/element.line.js +2 -2
- package/src/components/chart/plugins/plugins.legend.js +178 -23
- package/src/components/chart/uses.js +1 -0
- package/src/components/grid/Grid.vue +3 -3
package/dist/evui.common.js
CHANGED
|
@@ -4348,6 +4348,21 @@ module.exports = function (url, options) {
|
|
|
4348
4348
|
|
|
4349
4349
|
/***/ }),
|
|
4350
4350
|
|
|
4351
|
+
/***/ "21f1":
|
|
4352
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4353
|
+
|
|
4354
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
4355
|
+
|
|
4356
|
+
// load the styles
|
|
4357
|
+
var content = __webpack_require__("e2e3");
|
|
4358
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
4359
|
+
if(content.locals) module.exports = content.locals;
|
|
4360
|
+
// add the styles to the DOM
|
|
4361
|
+
var add = __webpack_require__("499e").default
|
|
4362
|
+
var update = add("7d2d3b95", content, true, {"sourceMap":false,"shadowMode":false});
|
|
4363
|
+
|
|
4364
|
+
/***/ }),
|
|
4365
|
+
|
|
4351
4366
|
/***/ "2226":
|
|
4352
4367
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4353
4368
|
|
|
@@ -5139,20 +5154,6 @@ module.exports = DESCRIPTORS ? Object.defineProperties : function defineProperti
|
|
|
5139
5154
|
};
|
|
5140
5155
|
|
|
5141
5156
|
|
|
5142
|
-
/***/ }),
|
|
5143
|
-
|
|
5144
|
-
/***/ "37ed":
|
|
5145
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
5146
|
-
|
|
5147
|
-
// Imports
|
|
5148
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
5149
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
5150
|
-
// Module
|
|
5151
|
-
exports.push([module.i, ".ev-grid[data-v-a92acb9a]{position:relative;width:100%;height:100%;padding-top:33px}.ev-grid--empty[data-v-a92acb9a]{overflow:auto}.ev-grid--empty .table-header[data-v-a92acb9a]{display:table}.ev-grid.non-header[data-v-a92acb9a]{padding-top:0}.ev-grid .table-header[data-v-a92acb9a]{overflow:hidden;position:absolute;top:0;width:100%;height:33px;border-top:2px solid #7f7f7f;border-bottom:1px solid #cfcfcf}.dark .ev-grid .table-header[data-v-a92acb9a]{border-top:2px solid;border-bottom:1px solid}.ev-grid .table-header.non-border[data-v-a92acb9a]{border-bottom:2px solid #7f7f7f!important}.ev-grid .row-contextmenu__btn[data-v-a92acb9a]{display:none;position:absolute;right:10px;vertical-align:middle;transform:translateY(-50%)}.column-list[data-v-a92acb9a]{width:100%;white-space:nowrap;list-style-type:none}.column[data-v-a92acb9a],.column-list[data-v-a92acb9a]{position:relative;height:100%}.column[data-v-a92acb9a]{display:inline-flex;padding:0 10px;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}.column.checkbox-all[data-v-a92acb9a]{padding:0}.column.checkbox-all .ev-checkbox[data-v-a92acb9a]{display:inline-flex;width:100%;height:100%;justify-content:center;align-items:center}.column .column-sort__icon[data-v-a92acb9a]{position:absolute;top:50%;right:0;width:24px;height:24px;background-size:contain;transform:translateY(-50%)}.column .column-sort__icon[data-v-a92acb9a]:hover{cursor:pointer}.column .column-sort__icon--basic[data-v-a92acb9a]{visibility:hidden}.column :hover .column-sort__icon--basic[data-v-a92acb9a]{visibility:visible}.column-name[data-v-a92acb9a]{display:-webkit-box;float:left;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:1;font-weight:700;font-size:14px;cursor:pointer}.column-resize[data-v-a92acb9a]{position:absolute;bottom:0;right:-5px;width:10px;height:100%}.column-resize[data-v-a92acb9a]:hover{cursor:col-resize}.table-body[data-v-a92acb9a]{position:relative;width:100%;height:100%;overflow:auto;overflow-anchor:none}.table-body table[data-v-a92acb9a]{clear:both;border-spacing:0;border-collapse:collapse;width:inherit}.table-body.stripe tr[data-v-a92acb9a]:nth-child(2n){background:#e5e5e5}.table-body.bottom-border[data-v-a92acb9a]{border-bottom:1px solid #cfcfcf}.dark .table-body.bottom-border[data-v-a92acb9a]{border-bottom:1px solid}.table-body .row[data-v-a92acb9a]{position:relative;color:inherit;white-space:nowrap;border-bottom:1px solid #cfcfcf}.table-body .row[disabled=true][data-v-a92acb9a]{cursor:not-allowed}.dark .table-body .row[data-v-a92acb9a]{border-bottom:1px solid}.table-body .row.selected[data-v-a92acb9a]{background:#dbf0f9}.dark .table-body .row.selected[data-v-a92acb9a],.table-body .row.selected[data-v-a92acb9a]{color:inherit;font-size:inherit}.table-body .row.highlight[data-v-a92acb9a]{background:#5ab7ff;color:#fff}.table-body .row:hover .row-contextmenu__btn[data-v-a92acb9a]:not([disabled=true]){display:grid}.table-body .row:hover .row-contextmenu__btn[data-v-a92acb9a]:not([disabled=true]):hover{cursor:pointer;opacity:.6}.table-body .cell[data-v-a92acb9a]{display:inline-block;padding:0 10px;text-align:center;max-width:100%}.table-body .cell[data-v-a92acb9a],.table-body .cell div[data-v-a92acb9a]{white-space:nowrap;text-overflow:ellipsis}.table-body .cell div[data-v-a92acb9a]{overflow:hidden}.table-body .cell.row-checkbox[data-v-a92acb9a]{display:inline-flex;padding:0;justify-content:center;align-items:center}.table-body .cell.row-checkbox .ev-checkbox[data-v-a92acb9a]{display:inline-flex;width:100%;height:100%;justify-content:center;align-items:center}.table-body .cell.row-detail-toggle[data-v-a92acb9a]{padding:0}.table-body .cell.row-detail-toggle .row-detail-toggle-icon[data-v-a92acb9a]{display:inline-flex;width:100%;height:100%;justify-content:center;align-items:center;cursor:pointer;transition:transform .2s ease-in-out}.table-body .cell.row-detail-toggle--expanded .row-detail-toggle-icon[data-v-a92acb9a]{transform:rotate(90deg)}.table-body .cell.render[data-v-a92acb9a]{overflow:initial}.table-body .cell.float[data-v-a92acb9a],.table-body .cell.number[data-v-a92acb9a]{text-align:right}.table-body .cell.string[data-v-a92acb9a],.table-body .cell.stringNumber[data-v-a92acb9a]{text-align:left}.table-body .cell.center[data-v-a92acb9a]{text-align:center}.table-body .cell.left[data-v-a92acb9a]{text-align:left}.table-body .cell.left .wrap[data-v-a92acb9a]{justify-content:flex-start}.table-body .cell.right[data-v-a92acb9a]{text-align:right}.table-body .cell.right .wrap[data-v-a92acb9a]{justify-content:flex-end}.table-resize-line[data-v-a92acb9a]{position:absolute;top:0;bottom:0;width:1px;border-right:1px solid #cfcfcf}.dark .table-resize-line[data-v-a92acb9a]{border-right:1px solid}.vscroll-spacer[data-v-a92acb9a]{opacity:0;clear:both}[v-cloak][data-v-a92acb9a]{display:none}.ev-checkbox[data-v-a92acb9a]{margin:0}.non-border[data-v-a92acb9a]{border:none!important}.is-empty[data-v-a92acb9a]{height:30px;text-align:center}.filtering[data-v-a92acb9a]{position:relative}.filtering-items[data-v-a92acb9a]{display:flex;position:absolute;width:inherit;flex-flow:row wrap;gap:10px;padding:8px;flex-direction:row;align-items:center;z-index:1;border-radius:4px;max-height:120px;background:none}.filtering-items--used[data-v-a92acb9a]{padding-top:16px}.filtering-items__hidden-items[data-v-a92acb9a]{max-height:106px;overflow-y:auto;border:1px solid #cfcfcf;background:#fff}.dark .filtering-items__hidden-items[data-v-a92acb9a]{border:1px solid;background:#0d0d0d}.filtering-items-expand[data-v-a92acb9a]:hover{cursor:pointer;color:#07f}.filtering-items--count[data-v-a92acb9a]{position:absolute;top:10px;right:0;padding:4px;border-radius:4px;background:#eaf2fa}.filtering-items--count[data-v-a92acb9a]:hover{cursor:pointer;padding:3.5px;border:1px solid #198fff!important;box-sizing:border-box}.filtering-items__item[data-v-a92acb9a]{height:26px;line-height:26px;padding:0 10px;border:1px solid #ced4da;border-radius:4px;background:#eaf2fa;font-size:13px;text-align:center}.filtering-items__item[data-v-a92acb9a]:hover{cursor:pointer;border:1px solid #198fff}.filtering-items__item--filter[data-v-a92acb9a]{font-weight:700;border:1px solid #198fff;color:#198fff}.filtering-items__item--filter i[data-v-a92acb9a]:not(.filtering-items-expand){vertical-align:middle}.filtering-items__item--title[data-v-a92acb9a]{margin-right:6px;vertical-align:middle}.filtering-items__item--value[data-v-a92acb9a]{display:inline-block;max-width:80px;color:#198fff;text-overflow:ellipsis;overflow:hidden;vertical-align:middle;white-space:nowrap}.filtering-items__item--remove[data-v-a92acb9a]{color:initial;vertical-align:middle;margin-left:6px}.filtering-items__item--remove[data-v-a92acb9a]:hover{opacity:.6}.filtering-items__item--operator[data-v-a92acb9a]{width:80px}.filtering-items__item--operator[data-v-a92acb9a] .ev-input{height:26px!important}.filtering-items__item.non-display[data-v-a92acb9a]{display:none}.ev-grid-filtering-items[data-v-a92acb9a]{display:flex;flex-flow:row wrap;gap:10px;position:relative;padding:10px;align-items:center;border:1px solid #ced4da;background:#fff;border-radius:4px;overflow:auto;max-width:500px;max-height:100px}", ""]);
|
|
5152
|
-
// Exports
|
|
5153
|
-
module.exports = exports;
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
5157
|
/***/ }),
|
|
5157
5158
|
|
|
5158
5159
|
/***/ "3888":
|
|
@@ -5429,6 +5430,17 @@ module.exports = function (it) {
|
|
|
5429
5430
|
};
|
|
5430
5431
|
|
|
5431
5432
|
|
|
5433
|
+
/***/ }),
|
|
5434
|
+
|
|
5435
|
+
/***/ "450e":
|
|
5436
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5437
|
+
|
|
5438
|
+
"use strict";
|
|
5439
|
+
/* 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_Grid_vue_vue_type_style_index_0_id_becd72f4_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("21f1");
|
|
5440
|
+
/* 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_Grid_vue_vue_type_style_index_0_id_becd72f4_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_Grid_vue_vue_type_style_index_0_id_becd72f4_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
5441
|
+
/* unused harmony reexport * */
|
|
5442
|
+
|
|
5443
|
+
|
|
5432
5444
|
/***/ }),
|
|
5433
5445
|
|
|
5434
5446
|
/***/ "45da":
|
|
@@ -11212,7 +11224,7 @@ $({ target: 'Number', stat: true }, {
|
|
|
11212
11224
|
/***/ "9224":
|
|
11213
11225
|
/***/ (function(module) {
|
|
11214
11226
|
|
|
11215
|
-
module.exports = JSON.parse("{\"a\":\"3.4.
|
|
11227
|
+
module.exports = JSON.parse("{\"a\":\"3.4.71\"}");
|
|
11216
11228
|
|
|
11217
11229
|
/***/ }),
|
|
11218
11230
|
|
|
@@ -11309,17 +11321,6 @@ if (PATCH) {
|
|
|
11309
11321
|
module.exports = patchedExec;
|
|
11310
11322
|
|
|
11311
11323
|
|
|
11312
|
-
/***/ }),
|
|
11313
|
-
|
|
11314
|
-
/***/ "930b":
|
|
11315
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
11316
|
-
|
|
11317
|
-
"use strict";
|
|
11318
|
-
/* 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_Grid_vue_vue_type_style_index_0_id_a92acb9a_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("ea63");
|
|
11319
|
-
/* 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_Grid_vue_vue_type_style_index_0_id_a92acb9a_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_Grid_vue_vue_type_style_index_0_id_a92acb9a_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
11320
|
-
/* unused harmony reexport * */
|
|
11321
|
-
|
|
11322
|
-
|
|
11323
11324
|
/***/ }),
|
|
11324
11325
|
|
|
11325
11326
|
/***/ "940e":
|
|
@@ -14943,6 +14944,20 @@ module.exports = function (target, src, options) {
|
|
|
14943
14944
|
};
|
|
14944
14945
|
|
|
14945
14946
|
|
|
14947
|
+
/***/ }),
|
|
14948
|
+
|
|
14949
|
+
/***/ "e2e3":
|
|
14950
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
14951
|
+
|
|
14952
|
+
// Imports
|
|
14953
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
14954
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
14955
|
+
// Module
|
|
14956
|
+
exports.push([module.i, ".ev-grid[data-v-becd72f4]{position:relative;width:100%;height:100%;padding-top:33px}.ev-grid--empty[data-v-becd72f4]{overflow:auto}.ev-grid--empty .table-header[data-v-becd72f4]{display:table}.ev-grid.non-header[data-v-becd72f4]{padding-top:0}.ev-grid .table-header[data-v-becd72f4]{overflow:hidden;position:absolute;top:0;width:100%;height:33px;border-top:2px solid #7f7f7f;border-bottom:1px solid #cfcfcf}.dark .ev-grid .table-header[data-v-becd72f4]{border-top:2px solid;border-bottom:1px solid}.ev-grid .table-header.non-border[data-v-becd72f4]{border-bottom:2px solid #7f7f7f!important}.ev-grid .row-contextmenu__btn[data-v-becd72f4]{display:none;position:absolute;right:10px;vertical-align:middle;transform:translateY(-50%)}.column-list[data-v-becd72f4]{width:100%;white-space:nowrap;list-style-type:none}.column[data-v-becd72f4],.column-list[data-v-becd72f4]{position:relative;height:100%}.column[data-v-becd72f4]{display:inline-flex;padding:0 10px;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}.column.checkbox-all[data-v-becd72f4]{padding:0}.column.checkbox-all .ev-checkbox[data-v-becd72f4]{display:inline-flex;width:100%;height:100%;justify-content:center;align-items:center}.column .column-sort__icon[data-v-becd72f4]{position:absolute;top:50%;right:0;width:24px;height:24px;background-size:contain;transform:translateY(-50%)}.column .column-sort__icon[data-v-becd72f4]:hover{cursor:pointer}.column .column-sort__icon--basic[data-v-becd72f4]{visibility:hidden}.column :hover .column-sort__icon--basic[data-v-becd72f4]{visibility:visible}.column-name[data-v-becd72f4]{display:-webkit-box;float:left;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:1;font-weight:700;font-size:14px;cursor:pointer}.column-resize[data-v-becd72f4]{position:absolute;bottom:0;right:-5px;width:10px;height:100%}.column-resize[data-v-becd72f4]:hover{cursor:col-resize}.table-body[data-v-becd72f4]{position:relative;width:100%;height:100%;overflow:auto;overflow-anchor:none}.table-body table[data-v-becd72f4]{clear:both;border-spacing:0;border-collapse:collapse;width:inherit}.table-body.stripe tr[data-v-becd72f4]:nth-child(2n){background:#e5e5e5}.table-body.bottom-border[data-v-becd72f4]{border-bottom:1px solid #cfcfcf}.dark .table-body.bottom-border[data-v-becd72f4]{border-bottom:1px solid}.table-body .row[data-v-becd72f4]{position:relative;color:inherit;white-space:nowrap;border-bottom:1px solid #cfcfcf}.table-body .row[disabled=true][data-v-becd72f4]{cursor:not-allowed}.dark .table-body .row[data-v-becd72f4]{border-bottom:1px solid}.table-body .row.selected[data-v-becd72f4]{background:#dbf0f9}.dark .table-body .row.selected[data-v-becd72f4],.table-body .row.selected[data-v-becd72f4]{color:inherit;font-size:inherit}.table-body .row.highlight[data-v-becd72f4]{background:#5ab7ff;color:#fff}.table-body .row:hover .row-contextmenu__btn[data-v-becd72f4]:not([disabled=true]){display:grid}.table-body .row:hover .row-contextmenu__btn[data-v-becd72f4]:not([disabled=true]):hover{cursor:pointer;opacity:.6}.table-body .cell[data-v-becd72f4]{display:inline-block;padding:0 10px;text-align:center;max-width:100%}.table-body .cell[data-v-becd72f4],.table-body .cell div[data-v-becd72f4]{white-space:nowrap;text-overflow:ellipsis}.table-body .cell div[data-v-becd72f4]{overflow:hidden}.table-body .cell.row-checkbox[data-v-becd72f4]{display:inline-flex;padding:0;justify-content:center;align-items:center}.table-body .cell.row-checkbox .ev-checkbox[data-v-becd72f4]{display:inline-flex;width:100%;height:100%;justify-content:center;align-items:center}.table-body .cell.row-detail-toggle[data-v-becd72f4]{padding:0}.table-body .cell.row-detail-toggle .row-detail-toggle-icon[data-v-becd72f4]{display:inline-flex;width:100%;height:100%;justify-content:center;align-items:center;cursor:pointer;transition:transform .2s ease-in-out}.table-body .cell.row-detail-toggle--expanded .row-detail-toggle-icon[data-v-becd72f4]{transform:rotate(90deg)}.table-body .cell.render[data-v-becd72f4]{overflow:initial}.table-body .cell.float[data-v-becd72f4],.table-body .cell.number[data-v-becd72f4]{text-align:right}.table-body .cell.string[data-v-becd72f4],.table-body .cell.stringNumber[data-v-becd72f4]{text-align:left}.table-body .cell.center[data-v-becd72f4]{text-align:center}.table-body .cell.left[data-v-becd72f4]{text-align:left}.table-body .cell.left .wrap[data-v-becd72f4]{justify-content:flex-start}.table-body .cell.right[data-v-becd72f4]{text-align:right}.table-body .cell.right .wrap[data-v-becd72f4]{justify-content:flex-end}.table-resize-line[data-v-becd72f4]{position:absolute;top:0;bottom:0;width:1px;border-right:1px solid #cfcfcf}.dark .table-resize-line[data-v-becd72f4]{border-right:1px solid}.vscroll-spacer[data-v-becd72f4]{opacity:0;clear:both}[v-cloak][data-v-becd72f4]{display:none}.ev-checkbox[data-v-becd72f4]{margin:0}.non-border[data-v-becd72f4]{border:none!important}.is-empty[data-v-becd72f4]{height:30px;text-align:center}.filtering[data-v-becd72f4]{position:relative}.filtering-items[data-v-becd72f4]{display:flex;position:absolute;width:inherit;flex-flow:row wrap;gap:10px;padding:8px;flex-direction:row;align-items:center;z-index:1;border-radius:4px;max-height:120px;background:none}.filtering-items--used[data-v-becd72f4]{padding-top:16px}.filtering-items__hidden-items[data-v-becd72f4]{max-height:106px;overflow-y:auto;border:1px solid #cfcfcf;background:#fff}.dark .filtering-items__hidden-items[data-v-becd72f4]{border:1px solid;background:#0d0d0d}.filtering-items-expand[data-v-becd72f4]:hover{cursor:pointer;color:#07f}.filtering-items--count[data-v-becd72f4]{position:absolute;top:10px;right:0;padding:4px;border-radius:4px;background:#eaf2fa}.filtering-items--count[data-v-becd72f4]:hover{cursor:pointer;padding:3.5px;border:1px solid #198fff!important;box-sizing:border-box}.filtering-items__item[data-v-becd72f4]{height:26px;line-height:26px;padding:0 10px;border:1px solid #ced4da;border-radius:4px;background:#eaf2fa;font-size:13px;text-align:center}.filtering-items__item[data-v-becd72f4]:hover{cursor:pointer;border:1px solid #198fff}.filtering-items__item--filter[data-v-becd72f4]{font-weight:700;border:1px solid #198fff;color:#198fff}.filtering-items__item--filter i[data-v-becd72f4]:not(.filtering-items-expand){vertical-align:middle}.filtering-items__item--title[data-v-becd72f4]{margin-right:6px;vertical-align:middle}.filtering-items__item--value[data-v-becd72f4]{display:inline-block;max-width:80px;color:#198fff;text-overflow:ellipsis;overflow:hidden;vertical-align:middle;white-space:nowrap}.filtering-items__item--remove[data-v-becd72f4]{color:initial;vertical-align:middle;margin-left:6px}.filtering-items__item--remove[data-v-becd72f4]:hover{opacity:.6}.filtering-items__item--operator[data-v-becd72f4]{width:80px}.filtering-items__item--operator[data-v-becd72f4] .ev-input{height:26px!important}.filtering-items__item.non-display[data-v-becd72f4]{display:none}.ev-grid-filtering-items[data-v-becd72f4]{display:flex;flex-flow:row wrap;gap:10px;position:relative;padding:10px;align-items:center;border:1px solid #ced4da;background:#fff;border-radius:4px;overflow:auto;max-width:500px;max-height:100px}", ""]);
|
|
14957
|
+
// Exports
|
|
14958
|
+
module.exports = exports;
|
|
14959
|
+
|
|
14960
|
+
|
|
14946
14961
|
/***/ }),
|
|
14947
14962
|
|
|
14948
14963
|
/***/ "e371":
|
|
@@ -15695,21 +15710,6 @@ module.exports = function (it) {
|
|
|
15695
15710
|
};
|
|
15696
15711
|
|
|
15697
15712
|
|
|
15698
|
-
/***/ }),
|
|
15699
|
-
|
|
15700
|
-
/***/ "ea63":
|
|
15701
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
15702
|
-
|
|
15703
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
15704
|
-
|
|
15705
|
-
// load the styles
|
|
15706
|
-
var content = __webpack_require__("37ed");
|
|
15707
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
15708
|
-
if(content.locals) module.exports = content.locals;
|
|
15709
|
-
// add the styles to the DOM
|
|
15710
|
-
var add = __webpack_require__("499e").default
|
|
15711
|
-
var update = add("1e334474", content, true, {"sourceMap":false,"shadowMode":false});
|
|
15712
|
-
|
|
15713
15713
|
/***/ }),
|
|
15714
15714
|
|
|
15715
15715
|
/***/ "eb15":
|
|
@@ -30854,68 +30854,68 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
|
|
|
30854
30854
|
var vue3_observe_visibility_common = __webpack_require__("196e");
|
|
30855
30855
|
var vue3_observe_visibility_common_default = /*#__PURE__*/__webpack_require__.n(vue3_observe_visibility_common);
|
|
30856
30856
|
|
|
30857
|
-
// 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/grid/Grid.vue?vue&type=template&id=
|
|
30857
|
+
// 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/grid/Grid.vue?vue&type=template&id=becd72f4&scoped=true
|
|
30858
30858
|
|
|
30859
30859
|
|
|
30860
30860
|
|
|
30861
30861
|
|
|
30862
30862
|
|
|
30863
|
-
var _withId = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withScopeId"])("data-v-
|
|
30863
|
+
var _withId = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withScopeId"])("data-v-becd72f4");
|
|
30864
30864
|
|
|
30865
|
-
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-
|
|
30865
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-becd72f4");
|
|
30866
30866
|
|
|
30867
|
-
var
|
|
30867
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_1 = {
|
|
30868
30868
|
key: 0,
|
|
30869
30869
|
class: "filtering-items filtering-items--used"
|
|
30870
30870
|
};
|
|
30871
30871
|
|
|
30872
|
-
var
|
|
30872
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_2 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("span", null, "Filter", -1);
|
|
30873
30873
|
|
|
30874
|
-
var
|
|
30874
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_3 = {
|
|
30875
30875
|
key: 1,
|
|
30876
30876
|
ref: "filteringItemsRef",
|
|
30877
30877
|
class: "filtering-items"
|
|
30878
30878
|
};
|
|
30879
|
-
var
|
|
30879
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_4 = {
|
|
30880
30880
|
class: "filtering-items__item--title"
|
|
30881
30881
|
};
|
|
30882
|
-
var
|
|
30882
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_5 = {
|
|
30883
30883
|
key: 1,
|
|
30884
30884
|
class: "filtering-items__item--value"
|
|
30885
30885
|
};
|
|
30886
|
-
var
|
|
30886
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_6 = {
|
|
30887
30887
|
class: "filtering-items__item--title"
|
|
30888
30888
|
};
|
|
30889
|
-
var
|
|
30889
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_7 = {
|
|
30890
30890
|
key: 1,
|
|
30891
30891
|
class: "filtering-items__item--value"
|
|
30892
30892
|
};
|
|
30893
|
-
var
|
|
30893
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_8 = {
|
|
30894
30894
|
class: "column-list"
|
|
30895
30895
|
};
|
|
30896
|
-
var
|
|
30896
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_9 = {
|
|
30897
30897
|
ref: "table"
|
|
30898
30898
|
};
|
|
30899
|
-
var
|
|
30899
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_10 = {
|
|
30900
30900
|
key: 0
|
|
30901
30901
|
};
|
|
30902
|
-
var
|
|
30902
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_11 = {
|
|
30903
30903
|
key: 0
|
|
30904
30904
|
};
|
|
30905
|
-
var
|
|
30905
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_12 = {
|
|
30906
30906
|
key: 0
|
|
30907
30907
|
};
|
|
30908
|
-
var
|
|
30908
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_13 = {
|
|
30909
30909
|
class: "is-empty"
|
|
30910
30910
|
};
|
|
30911
|
-
var
|
|
30911
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_14 = {
|
|
30912
30912
|
ref: "resizeLine",
|
|
30913
30913
|
class: "table-resize-line"
|
|
30914
30914
|
};
|
|
30915
30915
|
|
|
30916
30916
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])();
|
|
30917
30917
|
|
|
30918
|
-
var
|
|
30918
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_render = /*#__PURE__*/_withId(function (_ctx, _cache, $props, $setup, $data, $options) {
|
|
30919
30919
|
var _ctx$$props$option$cu;
|
|
30920
30920
|
|
|
30921
30921
|
var _component_ev_icon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ev-icon");
|
|
@@ -30958,9 +30958,9 @@ var Gridvue_type_template_id_a92acb9a_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
30958
30958
|
style: {
|
|
30959
30959
|
width: "".concat($setup.filteringItemsWidth, "px")
|
|
30960
30960
|
}
|
|
30961
|
-
}, [_ctx.isFiltering && !Object.keys(_ctx.filteringItemsByColumn).length ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div",
|
|
30961
|
+
}, [_ctx.isFiltering && !Object.keys(_ctx.filteringItemsByColumn).length ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div", Gridvue_type_template_id_becd72f4_scoped_true_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_ev_icon, {
|
|
30962
30962
|
icon: "ev-icon-filter-list"
|
|
30963
|
-
}),
|
|
30963
|
+
}), Gridvue_type_template_id_becd72f4_scoped_true_hoisted_2])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.isFiltering && Object.keys(_ctx.filteringItemsByColumn).length ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div", Gridvue_type_template_id_becd72f4_scoped_true_hoisted_3, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(Object.keys(_ctx.filteringItemsByColumn), function (field, idx) {
|
|
30964
30964
|
var _$setup$getFilteringI2, _$setup$getFilteringI3, _$setup$getFilteringI4, _$setup$getFilteringI5;
|
|
30965
30965
|
|
|
30966
30966
|
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], {
|
|
@@ -31001,11 +31001,11 @@ var Gridvue_type_template_id_a92acb9a_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
31001
31001
|
field: field
|
|
31002
31002
|
}, _ctx.filteringItemsByColumn[field]);
|
|
31003
31003
|
}, ["stop"])
|
|
31004
|
-
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("span",
|
|
31004
|
+
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("span", Gridvue_type_template_id_becd72f4_scoped_true_hoisted_4, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])((_$setup$getFilteringI2 = $setup.getFilteringItemByField(field)) === null || _$setup$getFilteringI2 === void 0 ? void 0 : _$setup$getFilteringI2.caption) + " " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])((_$setup$getFilteringI3 = $setup.getFilteringItemByField(field)) === null || _$setup$getFilteringI3 === void 0 ? void 0 : _$setup$getFilteringI3.comparison), 1), _ctx.filteringItemsByColumn[field].length < 2 ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("span", {
|
|
31005
31005
|
key: 0,
|
|
31006
31006
|
class: "filtering-items__item--value",
|
|
31007
31007
|
title: (_$setup$getFilteringI4 = $setup.getFilteringItemByField(field)) === null || _$setup$getFilteringI4 === void 0 ? void 0 : _$setup$getFilteringI4.value
|
|
31008
|
-
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])((_$setup$getFilteringI5 = $setup.getFilteringItemByField(field)) === null || _$setup$getFilteringI5 === void 0 ? void 0 : _$setup$getFilteringI5.value), 9, ["title"])) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("span",
|
|
31008
|
+
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])((_$setup$getFilteringI5 = $setup.getFilteringItemByField(field)) === null || _$setup$getFilteringI5 === void 0 ? void 0 : _$setup$getFilteringI5.value), 9, ["title"])) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("span", Gridvue_type_template_id_becd72f4_scoped_true_hoisted_5, " + " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])(_ctx.filteringItemsByColumn[field].length), 1)), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_ev_icon, {
|
|
31009
31009
|
class: "filtering-items__item--remove",
|
|
31010
31010
|
icon: "ev-icon-s-close",
|
|
31011
31011
|
onClick: function onClick($event) {
|
|
@@ -31037,11 +31037,11 @@ var Gridvue_type_template_id_a92acb9a_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
31037
31037
|
field: field
|
|
31038
31038
|
}, $setup.hiddenFilteringItemsByColumn[field]);
|
|
31039
31039
|
}, ["stop"])
|
|
31040
|
-
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("span",
|
|
31040
|
+
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("span", Gridvue_type_template_id_becd72f4_scoped_true_hoisted_6, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])((_$setup$getFilteringI7 = $setup.getFilteringItemByField(field)) === null || _$setup$getFilteringI7 === void 0 ? void 0 : _$setup$getFilteringI7.caption) + " " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])((_$setup$getFilteringI8 = $setup.getFilteringItemByField(field)) === null || _$setup$getFilteringI8 === void 0 ? void 0 : _$setup$getFilteringI8.comparison), 1), $setup.hiddenFilteringItemsByColumn[field].length < 2 ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("span", {
|
|
31041
31041
|
key: 0,
|
|
31042
31042
|
class: "filtering-items__item--value",
|
|
31043
31043
|
title: (_$setup$getFilteringI9 = $setup.getFilteringItemByField(field)) === null || _$setup$getFilteringI9 === void 0 ? void 0 : _$setup$getFilteringI9.value
|
|
31044
|
-
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])((_$setup$getFilteringI10 = $setup.getFilteringItemByField(field)) === null || _$setup$getFilteringI10 === void 0 ? void 0 : _$setup$getFilteringI10.value), 9, ["title"])) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("span",
|
|
31044
|
+
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])((_$setup$getFilteringI10 = $setup.getFilteringItemByField(field)) === null || _$setup$getFilteringI10 === void 0 ? void 0 : _$setup$getFilteringI10.value), 9, ["title"])) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("span", Gridvue_type_template_id_becd72f4_scoped_true_hoisted_7, " + " + Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])($setup.hiddenFilteringItemsByColumn[field].length), 1)), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_ev_icon, {
|
|
31045
31045
|
class: "filtering-items__item--remove",
|
|
31046
31046
|
icon: "ev-icon-s-close",
|
|
31047
31047
|
onClick: function onClick($event) {
|
|
@@ -31083,7 +31083,7 @@ var Gridvue_type_template_id_a92acb9a_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
31083
31083
|
'table-header': true,
|
|
31084
31084
|
'non-border': !!$setup.borderStyle
|
|
31085
31085
|
}
|
|
31086
|
-
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("ul",
|
|
31086
|
+
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("ul", Gridvue_type_template_id_becd72f4_scoped_true_hoisted_8, [_ctx.useCheckbox.use ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("li", {
|
|
31087
31087
|
key: 0,
|
|
31088
31088
|
class: {
|
|
31089
31089
|
'column': true,
|
|
@@ -31234,11 +31234,11 @@ var Gridvue_type_template_id_a92acb9a_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
31234
31234
|
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("div", {
|
|
31235
31235
|
style: "height: ".concat(_ctx.vScrollTopHeight, "px;"),
|
|
31236
31236
|
class: "vscroll-spacer"
|
|
31237
|
-
}, null, 4), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("table",
|
|
31237
|
+
}, null, 4), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("table", Gridvue_type_template_id_becd72f4_scoped_true_hoisted_9, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("tbody", null, [(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], null, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderList"])(_ctx.viewStore, function (row, rowIndex) {
|
|
31238
31238
|
var _ctx$$props$option$cu2, _ctx$$slots;
|
|
31239
31239
|
|
|
31240
31240
|
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], {
|
|
31241
|
-
key: $setup.idColIndex
|
|
31241
|
+
key: $setup.idColIndex != null ? row[2][$setup.idColIndex] : rowIndex
|
|
31242
31242
|
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("tr", {
|
|
31243
31243
|
"data-index": row[0],
|
|
31244
31244
|
class: {
|
|
@@ -31306,7 +31306,7 @@ var Gridvue_type_template_id_a92acb9a_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
31306
31306
|
var _class2;
|
|
31307
31307
|
|
|
31308
31308
|
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(external_commonjs_vue_commonjs2_vue_root_Vue_["Fragment"], {
|
|
31309
|
-
key: "".concat($setup.idColIndex
|
|
31309
|
+
key: "".concat($setup.idColIndex != null ? row[2][$setup.idColIndex] : rowIndex, "-").concat(cellIndex)
|
|
31310
31310
|
}, [!column.hide && !column.hiddenDisplay ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("td", {
|
|
31311
31311
|
key: 0,
|
|
31312
31312
|
"data-name": column.field,
|
|
@@ -31323,7 +31323,7 @@ var Gridvue_type_template_id_a92acb9a_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
31323
31323
|
'border-right': _ctx.orderedColumns.length - 1 === cellIndex ? 'none' : '1px solid #CFCFCF'
|
|
31324
31324
|
},
|
|
31325
31325
|
disabled: row[$setup.ROW_DISABLED_INDEX]
|
|
31326
|
-
}, [!!_ctx.$slots[column.field] ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div",
|
|
31326
|
+
}, [!!_ctx.$slots[column.field] ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div", Gridvue_type_template_id_becd72f4_scoped_true_hoisted_10, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["renderSlot"])(_ctx.$slots, column.field, {
|
|
31327
31327
|
item: {
|
|
31328
31328
|
row: row,
|
|
31329
31329
|
column: column
|
|
@@ -31363,7 +31363,7 @@ var Gridvue_type_template_id_a92acb9a_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
31363
31363
|
onClick: _cache[11] || (_cache[11] = function ($event) {
|
|
31364
31364
|
return $setup.onContextMenu($event);
|
|
31365
31365
|
})
|
|
31366
|
-
}, null, 8, ["disabled"]))], 14, ["disabled"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 42, ["data-index", "disabled", "onClick", "onContextmenu", "onDblclick"]), _ctx.useRowDetail && (_ctx$$slots = _ctx.$slots) !== null && _ctx$$slots !== void 0 && _ctx$$slots.rowDetail && row[4] ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("tr",
|
|
31366
|
+
}, null, 8, ["disabled"]))], 14, ["disabled"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 42, ["data-index", "disabled", "onClick", "onContextmenu", "onDblclick"]), _ctx.useRowDetail && (_ctx$$slots = _ctx.$slots) !== null && _ctx$$slots !== void 0 && _ctx$$slots.rowDetail && row[4] ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("tr", Gridvue_type_template_id_becd72f4_scoped_true_hoisted_11, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("td", {
|
|
31367
31367
|
colspan: row.length
|
|
31368
31368
|
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("div", {
|
|
31369
31369
|
style: {
|
|
@@ -31377,7 +31377,7 @@ var Gridvue_type_template_id_a92acb9a_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
31377
31377
|
row: row
|
|
31378
31378
|
}
|
|
31379
31379
|
})], 4)], 8, ["colspan"])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64);
|
|
31380
|
-
}), 128)), !_ctx.viewStore.length ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("tr",
|
|
31380
|
+
}), 128)), !_ctx.viewStore.length ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("tr", Gridvue_type_template_id_becd72f4_scoped_true_hoisted_12, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("td", Gridvue_type_template_id_becd72f4_scoped_true_hoisted_13, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])($setup.emptyText), 1)])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)])], 512), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("div", {
|
|
31381
31381
|
style: "height: ".concat(_ctx.vScrollBottomHeight, "px;"),
|
|
31382
31382
|
class: "vscroll-spacer"
|
|
31383
31383
|
}, null, 4), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_ev_context_menu, {
|
|
@@ -31391,7 +31391,7 @@ var Gridvue_type_template_id_a92acb9a_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
31391
31391
|
ref: "gridSettingMenu",
|
|
31392
31392
|
items: _ctx.gridSettingContextMenuItems,
|
|
31393
31393
|
"is-show-menu-on-click": _ctx.isShowMenuOnClick
|
|
31394
|
-
}, null, 8, ["items", "is-show-menu-on-click"])], 34), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("div",
|
|
31394
|
+
}, null, 8, ["items", "is-show-menu-on-click"])], 34), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("div", Gridvue_type_template_id_becd72f4_scoped_true_hoisted_14, null, 512), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], _ctx.showResizeLine]])], 2)], 16), [[_directive_resize, $setup.onResize], [_directive_observe_visibility, {
|
|
31395
31395
|
callback: $setup.onShow,
|
|
31396
31396
|
once: true
|
|
31397
31397
|
}]]), $setup.useSummary ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_grid_summary, {
|
|
@@ -31444,7 +31444,7 @@ var Gridvue_type_template_id_a92acb9a_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
31444
31444
|
onApplyColumn: $setup.onApplyColumn
|
|
31445
31445
|
}, null, 8, ["is-show", "is-show-menu-on-click", "columns", "hidden-column", "position", "text-info", "onApplyColumn"])], 64);
|
|
31446
31446
|
});
|
|
31447
|
-
// CONCATENATED MODULE: ./src/components/grid/Grid.vue?vue&type=template&id=
|
|
31447
|
+
// CONCATENATED MODULE: ./src/components/grid/Grid.vue?vue&type=template&id=becd72f4&scoped=true
|
|
31448
31448
|
|
|
31449
31449
|
// CONCATENATED MODULE: ./node_modules/lodash-es/_arrayEach.js
|
|
31450
31450
|
/**
|
|
@@ -38023,9 +38023,11 @@ var uses_dragEvent = function dragEvent(_ref4) {
|
|
|
38023
38023
|
return initWrapperDiv();
|
|
38024
38024
|
});
|
|
38025
38025
|
var idColIndex = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
38026
|
-
|
|
38026
|
+
var _stores$orderedColumn;
|
|
38027
|
+
|
|
38028
|
+
return (_stores$orderedColumn = stores.orderedColumns.find(function (c) {
|
|
38027
38029
|
return c.field === 'id';
|
|
38028
|
-
});
|
|
38030
|
+
})) === null || _stores$orderedColumn === void 0 ? void 0 : _stores$orderedColumn.index;
|
|
38029
38031
|
});
|
|
38030
38032
|
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
|
|
38031
38033
|
idColIndex: idColIndex,
|
|
@@ -38096,8 +38098,8 @@ var uses_dragEvent = function dragEvent(_ref4) {
|
|
|
38096
38098
|
});
|
|
38097
38099
|
// CONCATENATED MODULE: ./src/components/grid/Grid.vue?vue&type=script&lang=js
|
|
38098
38100
|
|
|
38099
|
-
// EXTERNAL MODULE: ./src/components/grid/Grid.vue?vue&type=style&index=0&id=
|
|
38100
|
-
var
|
|
38101
|
+
// EXTERNAL MODULE: ./src/components/grid/Grid.vue?vue&type=style&index=0&id=becd72f4&lang=scss&scoped=true
|
|
38102
|
+
var Gridvue_type_style_index_0_id_becd72f4_lang_scss_scoped_true = __webpack_require__("450e");
|
|
38101
38103
|
|
|
38102
38104
|
// CONCATENATED MODULE: ./src/components/grid/Grid.vue
|
|
38103
38105
|
|
|
@@ -38107,7 +38109,7 @@ var Gridvue_type_style_index_0_id_a92acb9a_lang_scss_scoped_true = __webpack_req
|
|
|
38107
38109
|
|
|
38108
38110
|
|
|
38109
38111
|
|
|
38110
|
-
const Grid_exports_ = /*#__PURE__*/exportHelper_default()(Gridvue_type_script_lang_js, [['render',
|
|
38112
|
+
const Grid_exports_ = /*#__PURE__*/exportHelper_default()(Gridvue_type_script_lang_js, [['render',Gridvue_type_template_id_becd72f4_scoped_true_render],['__scopeId',"data-v-becd72f4"]])
|
|
38111
38113
|
|
|
38112
38114
|
/* harmony default export */ var Grid = (Grid_exports_);
|
|
38113
38115
|
// CONCATENATED MODULE: ./src/components/grid/index.js
|
|
@@ -41503,7 +41505,7 @@ var element_line_Line = /*#__PURE__*/function () {
|
|
|
41503
41505
|
|
|
41504
41506
|
['color', 'pointFill', 'fillColor'].forEach(function (colorProp) {
|
|
41505
41507
|
if (_this[colorProp] === undefined) {
|
|
41506
|
-
_this[colorProp] = colorProp === 'pointFill' ? _this.color : COLOR[sIdx];
|
|
41508
|
+
_this[colorProp] = colorProp === 'pointFill' ? _this.color : COLOR[sIdx % COLOR.length];
|
|
41507
41509
|
}
|
|
41508
41510
|
});
|
|
41509
41511
|
this.type = 'line';
|
|
@@ -41582,7 +41584,7 @@ var element_line_Line = /*#__PURE__*/function () {
|
|
|
41582
41584
|
}
|
|
41583
41585
|
|
|
41584
41586
|
var getOpacity = function getOpacity(colorStr) {
|
|
41585
|
-
return colorStr.includes('rgba') ? helpers_util.getOpacity(colorStr) : extent.opacity;
|
|
41587
|
+
return colorStr !== null && colorStr !== void 0 && colorStr.includes('rgba') ? helpers_util.getOpacity(colorStr) : extent.opacity;
|
|
41586
41588
|
};
|
|
41587
41589
|
|
|
41588
41590
|
var mainColor = this.color;
|
|
@@ -46544,6 +46546,9 @@ var plugins_title_modules = {
|
|
|
46544
46546
|
|
|
46545
46547
|
|
|
46546
46548
|
|
|
46549
|
+
|
|
46550
|
+
|
|
46551
|
+
|
|
46547
46552
|
|
|
46548
46553
|
|
|
46549
46554
|
var plugins_legend_modules = {
|
|
@@ -46553,7 +46558,9 @@ var plugins_legend_modules = {
|
|
|
46553
46558
|
* @returns {undefined}
|
|
46554
46559
|
*/
|
|
46555
46560
|
createLegendLayout: function createLegendLayout() {
|
|
46556
|
-
var _this$options,
|
|
46561
|
+
var _this$options,
|
|
46562
|
+
_this$options$legend,
|
|
46563
|
+
_this = this;
|
|
46557
46564
|
|
|
46558
46565
|
this.legendDOM = document.createElement('div');
|
|
46559
46566
|
this.legendDOM.className = 'ev-chart-legend';
|
|
@@ -46577,10 +46584,27 @@ var plugins_legend_modules = {
|
|
|
46577
46584
|
} else {
|
|
46578
46585
|
this.legendBoxDOM.style.overflowX = 'hidden';
|
|
46579
46586
|
this.legendBoxDOM.style.overflowY = 'auto';
|
|
46587
|
+
this.legendBoxDOM.style.height = '100%';
|
|
46580
46588
|
}
|
|
46581
46589
|
|
|
46582
46590
|
this.legendDOM.appendChild(this.legendBoxDOM);
|
|
46583
46591
|
this.wrapperDOM.appendChild(this.legendDOM);
|
|
46592
|
+
|
|
46593
|
+
if (this.options.legend.virtualScroll && !this.useTable) {
|
|
46594
|
+
this.legendTopSpacer = document.createElement('div');
|
|
46595
|
+
this.legendTopSpacer.className = 'ev-chart-legend--top-spacer';
|
|
46596
|
+
this.legendTopSpacer.style.clear = 'both';
|
|
46597
|
+
this.legendTopSpacer.style.opacity = 0;
|
|
46598
|
+
this.legendBottomSpacer = document.createElement('div');
|
|
46599
|
+
this.legendBottomSpacer.className = 'ev-chart-legend--bottom-spacer';
|
|
46600
|
+
this.legendBottomSpacer.style.clear = 'both';
|
|
46601
|
+
this.legendBottomSpacer.style.opacity = 0;
|
|
46602
|
+
this.legendBoxDOM.appendChild(this.legendTopSpacer);
|
|
46603
|
+
this.legendBoxDOM.appendChild(this.legendBottomSpacer);
|
|
46604
|
+
this.updateVisibleRowCountFrameId = requestAnimationFrame(function () {
|
|
46605
|
+
_this.updateVisibleRowCount();
|
|
46606
|
+
});
|
|
46607
|
+
}
|
|
46584
46608
|
},
|
|
46585
46609
|
|
|
46586
46610
|
/**
|
|
@@ -46591,7 +46615,7 @@ var plugins_legend_modules = {
|
|
|
46591
46615
|
*/
|
|
46592
46616
|
setLegendColumnHeader: function setLegendColumnHeader() {
|
|
46593
46617
|
var _this$options$legend2,
|
|
46594
|
-
|
|
46618
|
+
_this2 = this;
|
|
46595
46619
|
|
|
46596
46620
|
var tableOpt = (_this$options$legend2 = this.options.legend) === null || _this$options$legend2 === void 0 ? void 0 : _this$options$legend2.table;
|
|
46597
46621
|
var columns = tableOpt.columns;
|
|
@@ -46612,7 +46636,7 @@ var plugins_legend_modules = {
|
|
|
46612
46636
|
columnNameDOM.dataset.type = keyText;
|
|
46613
46637
|
helpers_util.setDOMStyle(columnNameDOM, tableOpt === null || tableOpt === void 0 ? void 0 : (_tableOpt$style = tableOpt.style) === null || _tableOpt$style === void 0 ? void 0 : _tableOpt$style.header);
|
|
46614
46638
|
|
|
46615
|
-
|
|
46639
|
+
_this2.legendTableDOM.append(columnNameDOM);
|
|
46616
46640
|
}
|
|
46617
46641
|
});
|
|
46618
46642
|
},
|
|
@@ -46629,6 +46653,7 @@ var plugins_legend_modules = {
|
|
|
46629
46653
|
|
|
46630
46654
|
this.isHeatMapType = this.options.type === 'heatMap';
|
|
46631
46655
|
this.useTable = !!((_this$options$legend3 = this.options.legend) !== null && _this$options$legend3 !== void 0 && (_this$options$legend4 = _this$options$legend3.table) !== null && _this$options$legend4 !== void 0 && _this$options$legend4.use) && this.options.type !== 'heatmap' && this.options.type !== 'scatter';
|
|
46656
|
+
this.legendItemHeight = 18;
|
|
46632
46657
|
|
|
46633
46658
|
if (!this.isInitLegend) {
|
|
46634
46659
|
this.createLegendLayout();
|
|
@@ -46647,6 +46672,90 @@ var plugins_legend_modules = {
|
|
|
46647
46672
|
this.isLegendMove = false;
|
|
46648
46673
|
},
|
|
46649
46674
|
|
|
46675
|
+
/**
|
|
46676
|
+
* Calculate and update the number of rows and items per row that are visible
|
|
46677
|
+
* within the legend container based on its dimensions and the layout of the legend.
|
|
46678
|
+
* If the legend is positioned on the right or left, only one item per row is shown.
|
|
46679
|
+
* Otherwise, the number of items per row is determined by dividing the container width
|
|
46680
|
+
* by the item width.
|
|
46681
|
+
*
|
|
46682
|
+
* @returns {undefined}
|
|
46683
|
+
*/
|
|
46684
|
+
updateVisibleRowCount: function updateVisibleRowCount() {
|
|
46685
|
+
var isLeftOrRight = this.options.legend.position === 'right' || this.options.legend.position === 'left';
|
|
46686
|
+
var legendBoxHeight = this.legendBoxDOM.clientHeight;
|
|
46687
|
+
var legendBoxWidth = this.legendBoxDOM.clientWidth;
|
|
46688
|
+
var itemWidth = Math.max(this.options.legend.width - 8, 1);
|
|
46689
|
+
var useLegendSeriesCount = Object.values(this.seriesList).filter(function (series) {
|
|
46690
|
+
return series.showLegend !== false;
|
|
46691
|
+
}).length;
|
|
46692
|
+
this.itemsPerRow = isLeftOrRight ? 1 : Math.floor(legendBoxWidth / itemWidth);
|
|
46693
|
+
this.totalRowCount = Math.ceil(useLegendSeriesCount / this.itemsPerRow);
|
|
46694
|
+
this.visibleRowCount = legendBoxHeight > this.legendItemHeight ? Math.round(legendBoxHeight / this.legendItemHeight) + 1 : this.totalRowCount;
|
|
46695
|
+
},
|
|
46696
|
+
|
|
46697
|
+
/**
|
|
46698
|
+
* Calculate and set the start and end row indexes for visible items within the
|
|
46699
|
+
* scrollable legend area. Determines the row range that should be displayed based
|
|
46700
|
+
* on the current scroll position and the height of each legend item.
|
|
46701
|
+
*
|
|
46702
|
+
* @returns {undefined}
|
|
46703
|
+
*/
|
|
46704
|
+
updateStartEndRowIndex: function updateStartEndRowIndex() {
|
|
46705
|
+
var index = Math.max(Math.floor(this.legendBoxDOM.scrollTop / this.legendItemHeight), 0);
|
|
46706
|
+
this.startRowIndex = index > this.totalRowCount - 1 ? 0 : index;
|
|
46707
|
+
this.endRowIndex = this.startRowIndex + this.visibleRowCount;
|
|
46708
|
+
},
|
|
46709
|
+
|
|
46710
|
+
/**
|
|
46711
|
+
* Render only the visible legend items in the legend container based on the
|
|
46712
|
+
* calculated start and end row indexes. Removes existing legend items,
|
|
46713
|
+
* adjusts spacer heights to enable smooth scrolling, and adds only the items
|
|
46714
|
+
* within the visible range.
|
|
46715
|
+
*
|
|
46716
|
+
* @returns {undefined}
|
|
46717
|
+
*/
|
|
46718
|
+
renderVisibleLegends: function renderVisibleLegends() {
|
|
46719
|
+
var _this3 = this;
|
|
46720
|
+
|
|
46721
|
+
this.updateStartEndRowIndex();
|
|
46722
|
+
var elementsToRemove = this.legendBoxDOM.querySelectorAll('.ev-chart-legend-container');
|
|
46723
|
+
elementsToRemove.forEach(function (element) {
|
|
46724
|
+
return element.remove();
|
|
46725
|
+
});
|
|
46726
|
+
var totalScrollHeight = this.totalRowCount * this.legendItemHeight;
|
|
46727
|
+
var top = this.startRowIndex * this.legendItemHeight;
|
|
46728
|
+
var bottom = Math.max(totalScrollHeight - this.visibleRowCount * this.legendItemHeight - top, 0);
|
|
46729
|
+
this.legendTopSpacer.style.height = "".concat(top, "px");
|
|
46730
|
+
this.legendBottomSpacer.style.height = "".concat(bottom, "px");
|
|
46731
|
+
var startIndex = this.startRowIndex * this.itemsPerRow;
|
|
46732
|
+
var endIndex = this.endRowIndex * this.itemsPerRow;
|
|
46733
|
+
var groups = this.data.groups.at(0);
|
|
46734
|
+
var useLegendSeries = [];
|
|
46735
|
+
|
|
46736
|
+
if (groups) {
|
|
46737
|
+
useLegendSeries = groups.slice().reverse().filter(function (sId) {
|
|
46738
|
+
return _this3.seriesList[sId].showLegend;
|
|
46739
|
+
}).map(function (sId) {
|
|
46740
|
+
return [sId, _this3.seriesList[sId]];
|
|
46741
|
+
});
|
|
46742
|
+
} else {
|
|
46743
|
+
useLegendSeries = Object.entries(this.seriesList).filter(function (_ref) {
|
|
46744
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
46745
|
+
series = _ref2[1];
|
|
46746
|
+
|
|
46747
|
+
return series.showLegend;
|
|
46748
|
+
});
|
|
46749
|
+
}
|
|
46750
|
+
|
|
46751
|
+
useLegendSeries.slice(startIndex, endIndex).forEach(function (_ref3) {
|
|
46752
|
+
var _ref4 = _slicedToArray(_ref3, 2),
|
|
46753
|
+
series = _ref4[1];
|
|
46754
|
+
|
|
46755
|
+
_this3.addLegend(series);
|
|
46756
|
+
});
|
|
46757
|
+
},
|
|
46758
|
+
|
|
46650
46759
|
/**
|
|
46651
46760
|
* Add legend with group information to align each series properly.
|
|
46652
46761
|
* Especially if a chart is stacked,
|
|
@@ -46655,36 +46764,86 @@ var plugins_legend_modules = {
|
|
|
46655
46764
|
* @returns {undefined}
|
|
46656
46765
|
*/
|
|
46657
46766
|
addLegendList: function addLegendList() {
|
|
46658
|
-
var
|
|
46767
|
+
var _this4 = this;
|
|
46659
46768
|
|
|
46660
46769
|
var groups = this.data.groups;
|
|
46661
46770
|
var seriesList = this.seriesList;
|
|
46771
|
+
|
|
46772
|
+
if (this.options.legend.virtualScroll) {
|
|
46773
|
+
if (this.useTable) {
|
|
46774
|
+
this.addLegendForGroups(groups, seriesList, true);
|
|
46775
|
+
this.addStandaloneLegends(seriesList, true);
|
|
46776
|
+
} else {
|
|
46777
|
+
this.renderVisibleLegendsFrameId = requestAnimationFrame(function () {
|
|
46778
|
+
_this4.renderVisibleLegends();
|
|
46779
|
+
});
|
|
46780
|
+
}
|
|
46781
|
+
} else {
|
|
46782
|
+
this.addLegendForGroups(groups, seriesList, this.useTable);
|
|
46783
|
+
this.addStandaloneLegends(seriesList, this.useTable);
|
|
46784
|
+
}
|
|
46785
|
+
},
|
|
46786
|
+
|
|
46787
|
+
/**
|
|
46788
|
+
* Adds legends for each group in `groups` array, iterating through each series
|
|
46789
|
+
* within the group in reverse order. This ensures the legends align with the series
|
|
46790
|
+
* order as displayed in the chart. Only adds series with `showLegend` set to `true`.
|
|
46791
|
+
*
|
|
46792
|
+
* @param {Array} groups - Array of groups containing series identifiers.
|
|
46793
|
+
* @param {Object} seriesList - Object containing all series, keyed by series ID.
|
|
46794
|
+
* @param {boolean} useTable - Determines whether to add legends with additional values.
|
|
46795
|
+
* @returns {undefined}
|
|
46796
|
+
*/
|
|
46797
|
+
addLegendForGroups: function addLegendForGroups(groups, seriesList, useTable) {
|
|
46798
|
+
var _this5 = this;
|
|
46799
|
+
|
|
46662
46800
|
groups.forEach(function (group) {
|
|
46663
46801
|
group.slice().reverse().forEach(function (sId) {
|
|
46664
46802
|
var series = seriesList[sId];
|
|
46665
46803
|
|
|
46666
46804
|
if (series && series.showLegend) {
|
|
46667
|
-
|
|
46668
|
-
_this2.addLegendWithValues(series);
|
|
46669
|
-
} else {
|
|
46670
|
-
_this2.addLegend(series);
|
|
46671
|
-
}
|
|
46805
|
+
_this5.addLegendBasedOnType(series, useTable);
|
|
46672
46806
|
}
|
|
46673
46807
|
});
|
|
46674
46808
|
});
|
|
46675
|
-
|
|
46676
|
-
if (series.isExistGrp || !series.showLegend) {
|
|
46677
|
-
return;
|
|
46678
|
-
}
|
|
46809
|
+
},
|
|
46679
46810
|
|
|
46680
|
-
|
|
46681
|
-
|
|
46682
|
-
|
|
46683
|
-
|
|
46811
|
+
/**
|
|
46812
|
+
* Adds legends for series that are not part of any group. Iterates through each series
|
|
46813
|
+
* in `seriesList` and only adds those that are not assigned to any group (based on `isExistGrp`)
|
|
46814
|
+
* and have `showLegend` set to `true`.
|
|
46815
|
+
*
|
|
46816
|
+
* @param {Object} seriesList - Object containing all series, keyed by series ID.
|
|
46817
|
+
* @param {boolean} useTable - Determines whether to add legends with additional values.
|
|
46818
|
+
* @returns {undefined}
|
|
46819
|
+
*/
|
|
46820
|
+
addStandaloneLegends: function addStandaloneLegends(seriesList, useTable) {
|
|
46821
|
+
var _this6 = this;
|
|
46822
|
+
|
|
46823
|
+
Object.values(seriesList).forEach(function (series) {
|
|
46824
|
+
if (!series.isExistGrp && series.showLegend) {
|
|
46825
|
+
_this6.addLegendBasedOnType(series, useTable);
|
|
46684
46826
|
}
|
|
46685
46827
|
});
|
|
46686
46828
|
},
|
|
46687
46829
|
|
|
46830
|
+
/**
|
|
46831
|
+
* Adds a legend item for a specific series, determining whether to include additional
|
|
46832
|
+
* values based on the `useTable` parameter. Calls `addLegendWithValues` if `useTable` is true,
|
|
46833
|
+
* otherwise calls `addLegend`.
|
|
46834
|
+
*
|
|
46835
|
+
* @param {Object} series - Series object containing data to display in the legend.
|
|
46836
|
+
* @param {boolean} useTable - Determines whether to add legends with additional values.
|
|
46837
|
+
* @returns {undefined}
|
|
46838
|
+
*/
|
|
46839
|
+
addLegendBasedOnType: function addLegendBasedOnType(series, useTable) {
|
|
46840
|
+
if (useTable) {
|
|
46841
|
+
this.addLegendWithValues(series);
|
|
46842
|
+
} else {
|
|
46843
|
+
this.addLegend(series);
|
|
46844
|
+
}
|
|
46845
|
+
},
|
|
46846
|
+
|
|
46688
46847
|
/**
|
|
46689
46848
|
* Add Legend with Color Information
|
|
46690
46849
|
* Only Heatmap chart
|
|
@@ -46692,7 +46851,7 @@ var plugins_legend_modules = {
|
|
|
46692
46851
|
* @returns {undefined}
|
|
46693
46852
|
*/
|
|
46694
46853
|
addColorLegendList: function addColorLegendList() {
|
|
46695
|
-
var
|
|
46854
|
+
var _this7 = this;
|
|
46696
46855
|
|
|
46697
46856
|
var seriesList = this.seriesList;
|
|
46698
46857
|
Object.values(seriesList).forEach(function (series) {
|
|
@@ -46740,7 +46899,7 @@ var plugins_legend_modules = {
|
|
|
46740
46899
|
}
|
|
46741
46900
|
}
|
|
46742
46901
|
|
|
46743
|
-
|
|
46902
|
+
_this7.addLegend({
|
|
46744
46903
|
cId: id,
|
|
46745
46904
|
color: color,
|
|
46746
46905
|
name: name,
|
|
@@ -46783,7 +46942,7 @@ var plugins_legend_modules = {
|
|
|
46783
46942
|
* @returns {undefined}
|
|
46784
46943
|
*/
|
|
46785
46944
|
initEvent: function initEvent() {
|
|
46786
|
-
var
|
|
46945
|
+
var _this8 = this;
|
|
46787
46946
|
|
|
46788
46947
|
if (this.isInitLegend) {
|
|
46789
46948
|
return;
|
|
@@ -46802,15 +46961,15 @@ var plugins_legend_modules = {
|
|
|
46802
46961
|
*/
|
|
46803
46962
|
|
|
46804
46963
|
this.onLegendBoxClick = function (e) {
|
|
46805
|
-
var opt =
|
|
46964
|
+
var opt = _this8.options.legend;
|
|
46806
46965
|
|
|
46807
46966
|
if (opt !== null && opt !== void 0 && opt.stopClickEvt) {
|
|
46808
46967
|
return;
|
|
46809
46968
|
}
|
|
46810
46969
|
|
|
46811
|
-
var chartIdx =
|
|
46970
|
+
var chartIdx = _this8.data.chartIdx;
|
|
46812
46971
|
|
|
46813
|
-
var targetDOM =
|
|
46972
|
+
var targetDOM = _this8.getContainerDOM(e);
|
|
46814
46973
|
|
|
46815
46974
|
if (!targetDOM) {
|
|
46816
46975
|
return;
|
|
@@ -46822,7 +46981,7 @@ var plugins_legend_modules = {
|
|
|
46822
46981
|
var valueDOMList = targetDOM === null || targetDOM === void 0 ? void 0 : targetDOM.getElementsByClassName(classList.value);
|
|
46823
46982
|
var isActive = !(targetDOM !== null && targetDOM !== void 0 && targetDOM.className.includes('inactive'));
|
|
46824
46983
|
|
|
46825
|
-
if (isActive &&
|
|
46984
|
+
if (isActive && _this8.seriesInfo.count === 1) {
|
|
46826
46985
|
return;
|
|
46827
46986
|
}
|
|
46828
46987
|
|
|
@@ -46831,7 +46990,7 @@ var plugins_legend_modules = {
|
|
|
46831
46990
|
}
|
|
46832
46991
|
|
|
46833
46992
|
if (isActive) {
|
|
46834
|
-
|
|
46993
|
+
_this8.seriesInfo.count--;
|
|
46835
46994
|
var inactiveColor = opt.inactive;
|
|
46836
46995
|
colorDOM.style.backgroundColor = inactiveColor;
|
|
46837
46996
|
colorDOM.style.borderColor = inactiveColor;
|
|
@@ -46840,7 +46999,7 @@ var plugins_legend_modules = {
|
|
|
46840
46999
|
dom.style.color = inactiveColor;
|
|
46841
47000
|
});
|
|
46842
47001
|
} else {
|
|
46843
|
-
|
|
47002
|
+
_this8.seriesInfo.count++;
|
|
46844
47003
|
var seriesColor;
|
|
46845
47004
|
|
|
46846
47005
|
if (typeof series.color !== 'string') {
|
|
@@ -46869,15 +47028,15 @@ var plugins_legend_modules = {
|
|
|
46869
47028
|
series.show = !series.show;
|
|
46870
47029
|
targetDOM.classList.toggle('inactive');
|
|
46871
47030
|
|
|
46872
|
-
if (
|
|
46873
|
-
var seriesList = _toConsumableArray(
|
|
47031
|
+
if (_this8.brushSeries) {
|
|
47032
|
+
var seriesList = _toConsumableArray(_this8.brushSeries.list);
|
|
46874
47033
|
|
|
46875
|
-
seriesList[chartIdx] =
|
|
46876
|
-
|
|
46877
|
-
|
|
47034
|
+
seriesList[chartIdx] = _this8.seriesList;
|
|
47035
|
+
_this8.brushSeries.list = seriesList;
|
|
47036
|
+
_this8.brushSeries.chartIdx = chartIdx;
|
|
46878
47037
|
}
|
|
46879
47038
|
|
|
46880
|
-
|
|
47039
|
+
_this8.update({
|
|
46881
47040
|
updateSeries: false,
|
|
46882
47041
|
updateSelTip: {
|
|
46883
47042
|
update: true,
|
|
@@ -46895,7 +47054,7 @@ var plugins_legend_modules = {
|
|
|
46895
47054
|
this.onLegendBoxOver = function (e) {
|
|
46896
47055
|
var _targetDOM$series;
|
|
46897
47056
|
|
|
46898
|
-
var targetDOM =
|
|
47057
|
+
var targetDOM = _this8.getContainerDOM(e);
|
|
46899
47058
|
|
|
46900
47059
|
if (!targetDOM) {
|
|
46901
47060
|
return;
|
|
@@ -46904,10 +47063,10 @@ var plugins_legend_modules = {
|
|
|
46904
47063
|
var targetId = targetDOM === null || targetDOM === void 0 ? void 0 : (_targetDOM$series = targetDOM.series) === null || _targetDOM$series === void 0 ? void 0 : _targetDOM$series.sId;
|
|
46905
47064
|
var legendHitInfo = {
|
|
46906
47065
|
sId: targetId,
|
|
46907
|
-
type:
|
|
47066
|
+
type: _this8.options.type
|
|
46908
47067
|
};
|
|
46909
47068
|
|
|
46910
|
-
|
|
47069
|
+
_this8.update({
|
|
46911
47070
|
updateSeries: false,
|
|
46912
47071
|
updateSelTip: {
|
|
46913
47072
|
update: false,
|
|
@@ -46926,7 +47085,7 @@ var plugins_legend_modules = {
|
|
|
46926
47085
|
|
|
46927
47086
|
|
|
46928
47087
|
this.onLegendBoxLeave = function () {
|
|
46929
|
-
|
|
47088
|
+
_this8.update({
|
|
46930
47089
|
updateSeries: false,
|
|
46931
47090
|
updateSelTip: {
|
|
46932
47091
|
update: false,
|
|
@@ -46941,6 +47100,12 @@ var plugins_legend_modules = {
|
|
|
46941
47100
|
this.legendBoxDOM.addEventListener('click', this.onLegendBoxClick);
|
|
46942
47101
|
this.legendBoxDOM.addEventListener('mouseover', this.onLegendBoxOver);
|
|
46943
47102
|
this.legendBoxDOM.addEventListener('mouseleave', this.onLegendBoxLeave);
|
|
47103
|
+
|
|
47104
|
+
if (this.options.legend.virtualScroll && !this.useTable) {
|
|
47105
|
+
this.legendBoxDOM.addEventListener('resize', this.updateVisibleRowCount);
|
|
47106
|
+
this.legendBoxDOM.addEventListener('scroll', this.renderVisibleLegends.bind(this));
|
|
47107
|
+
}
|
|
47108
|
+
|
|
46944
47109
|
this.initResizeEvent();
|
|
46945
47110
|
},
|
|
46946
47111
|
|
|
@@ -46949,7 +47114,7 @@ var plugins_legend_modules = {
|
|
|
46949
47114
|
* Only Heatmap
|
|
46950
47115
|
*/
|
|
46951
47116
|
initEventForColorLegend: function initEventForColorLegend() {
|
|
46952
|
-
var
|
|
47117
|
+
var _this9 = this;
|
|
46953
47118
|
|
|
46954
47119
|
if (this.isInitLegend) {
|
|
46955
47120
|
return;
|
|
@@ -46964,15 +47129,15 @@ var plugins_legend_modules = {
|
|
|
46964
47129
|
this.onLegendBoxClick = function (e) {
|
|
46965
47130
|
var _targetDOM$series2;
|
|
46966
47131
|
|
|
46967
|
-
var opt =
|
|
47132
|
+
var opt = _this9.options.legend;
|
|
46968
47133
|
|
|
46969
47134
|
if (opt !== null && opt !== void 0 && opt.stopClickEvt) {
|
|
46970
47135
|
return;
|
|
46971
47136
|
}
|
|
46972
47137
|
|
|
46973
|
-
var series = Object.values(
|
|
47138
|
+
var series = Object.values(_this9.seriesList)[0];
|
|
46974
47139
|
|
|
46975
|
-
var targetDOM =
|
|
47140
|
+
var targetDOM = _this9.getContainerDOM(e);
|
|
46976
47141
|
|
|
46977
47142
|
if (!targetDOM) {
|
|
46978
47143
|
return;
|
|
@@ -47016,7 +47181,7 @@ var plugins_legend_modules = {
|
|
|
47016
47181
|
colorDOM.classList.toggle('inactive');
|
|
47017
47182
|
nameDOM.classList.toggle('inactive');
|
|
47018
47183
|
|
|
47019
|
-
|
|
47184
|
+
_this9.update({
|
|
47020
47185
|
updateSeries: false,
|
|
47021
47186
|
updateSelTip: {
|
|
47022
47187
|
update: true,
|
|
@@ -47034,9 +47199,9 @@ var plugins_legend_modules = {
|
|
|
47034
47199
|
this.onLegendBoxOver = function (e) {
|
|
47035
47200
|
var _Object$values, _targetDOM$series4;
|
|
47036
47201
|
|
|
47037
|
-
var series = (_Object$values = Object.values(
|
|
47202
|
+
var series = (_Object$values = Object.values(_this9.seriesList)) === null || _Object$values === void 0 ? void 0 : _Object$values[0];
|
|
47038
47203
|
|
|
47039
|
-
var targetDOM =
|
|
47204
|
+
var targetDOM = _this9.getContainerDOM(e);
|
|
47040
47205
|
|
|
47041
47206
|
if (!targetDOM) {
|
|
47042
47207
|
return;
|
|
@@ -47045,13 +47210,13 @@ var plugins_legend_modules = {
|
|
|
47045
47210
|
var targetId = targetDOM === null || targetDOM === void 0 ? void 0 : (_targetDOM$series4 = targetDOM.series) === null || _targetDOM$series4 === void 0 ? void 0 : _targetDOM$series4.cId;
|
|
47046
47211
|
var legendHitInfo = {
|
|
47047
47212
|
sId: targetId,
|
|
47048
|
-
type:
|
|
47213
|
+
type: _this9.options.type
|
|
47049
47214
|
};
|
|
47050
47215
|
series.colorState.forEach(function (colorItem) {
|
|
47051
47216
|
colorItem.state = colorItem.id === targetId ? 'highlight' : 'downplay';
|
|
47052
47217
|
});
|
|
47053
47218
|
|
|
47054
|
-
|
|
47219
|
+
_this9.update({
|
|
47055
47220
|
updateSeries: false,
|
|
47056
47221
|
updateSelTip: {
|
|
47057
47222
|
update: false,
|
|
@@ -47070,12 +47235,12 @@ var plugins_legend_modules = {
|
|
|
47070
47235
|
|
|
47071
47236
|
|
|
47072
47237
|
this.onLegendBoxLeave = function () {
|
|
47073
|
-
var series = Object.values(
|
|
47238
|
+
var series = Object.values(_this9.seriesList)[0];
|
|
47074
47239
|
series.colorState.forEach(function (item) {
|
|
47075
47240
|
item.state = 'normal';
|
|
47076
47241
|
});
|
|
47077
47242
|
|
|
47078
|
-
|
|
47243
|
+
_this9.update({
|
|
47079
47244
|
updateSeries: false,
|
|
47080
47245
|
updateSelTip: {
|
|
47081
47246
|
update: false,
|
|
@@ -47090,7 +47255,7 @@ var plugins_legend_modules = {
|
|
|
47090
47255
|
this.initResizeEvent();
|
|
47091
47256
|
},
|
|
47092
47257
|
initResizeEvent: function initResizeEvent() {
|
|
47093
|
-
var
|
|
47258
|
+
var _this10 = this;
|
|
47094
47259
|
|
|
47095
47260
|
/**
|
|
47096
47261
|
* callback for resizeDOM click event
|
|
@@ -47102,33 +47267,33 @@ var plugins_legend_modules = {
|
|
|
47102
47267
|
this.onResizeMouseDown = function (e) {
|
|
47103
47268
|
e.stopPropagation();
|
|
47104
47269
|
e.preventDefault();
|
|
47105
|
-
var opt =
|
|
47270
|
+
var opt = _this10.options;
|
|
47106
47271
|
var pos = opt.legend.position;
|
|
47107
47272
|
var title = opt.title.show ? opt.title.height : 0;
|
|
47108
|
-
var ghostDOM =
|
|
47109
|
-
|
|
47273
|
+
var ghostDOM = _this10.ghostDOM;
|
|
47274
|
+
_this10.resizeDOM.style.display = 'none';
|
|
47110
47275
|
|
|
47111
|
-
|
|
47276
|
+
_this10.wrapperDOM.appendChild(ghostDOM); // mouse down 시, resizeDOM의 위치를 기반으로 ghostDOM의 위치를 세팅
|
|
47112
47277
|
|
|
47113
47278
|
|
|
47114
47279
|
if (pos === 'left' || pos === 'right') {
|
|
47115
47280
|
ghostDOM.style.top = "".concat(title, "px");
|
|
47116
|
-
ghostDOM.style.left =
|
|
47117
|
-
ghostDOM.style.right =
|
|
47118
|
-
ghostDOM.style.height =
|
|
47281
|
+
ghostDOM.style.left = _this10.resizeDOM.style.left;
|
|
47282
|
+
ghostDOM.style.right = _this10.resizeDOM.style.right;
|
|
47283
|
+
ghostDOM.style.height = _this10.resizeDOM.style.height;
|
|
47119
47284
|
} else {
|
|
47120
47285
|
ghostDOM.classList.add('horizontal');
|
|
47121
47286
|
|
|
47122
47287
|
if (pos === 'top') {
|
|
47123
|
-
ghostDOM.style.top =
|
|
47288
|
+
ghostDOM.style.top = _this10.resizeDOM.style.top;
|
|
47124
47289
|
} else if (pos === 'bottom') {
|
|
47125
|
-
ghostDOM.style.bottom =
|
|
47290
|
+
ghostDOM.style.bottom = _this10.resizeDOM.style.bottom;
|
|
47126
47291
|
}
|
|
47127
47292
|
}
|
|
47128
47293
|
|
|
47129
|
-
|
|
47294
|
+
_this10.wrapperDOM.addEventListener('mousemove', _this10.mouseMove, false);
|
|
47130
47295
|
|
|
47131
|
-
|
|
47296
|
+
_this10.wrapperDOM.addEventListener('mouseup', _this10.mouseUp, false);
|
|
47132
47297
|
};
|
|
47133
47298
|
|
|
47134
47299
|
if (this.resizeDOM) {
|
|
@@ -47165,7 +47330,7 @@ var plugins_legend_modules = {
|
|
|
47165
47330
|
_this$options2$legend,
|
|
47166
47331
|
_this$options2$legend2,
|
|
47167
47332
|
_this$legendBoxDOM,
|
|
47168
|
-
|
|
47333
|
+
_this11 = this;
|
|
47169
47334
|
|
|
47170
47335
|
var columns = (_this$options2 = this.options) === null || _this$options2 === void 0 ? void 0 : (_this$options2$legend = _this$options2.legend) === null || _this$options2$legend === void 0 ? void 0 : (_this$options2$legend2 = _this$options2$legend.table) === null || _this$options2$legend2 === void 0 ? void 0 : _this$options2$legend2.columns;
|
|
47171
47336
|
var aggregations = this.getAggregations();
|
|
@@ -47183,7 +47348,7 @@ var plugins_legend_modules = {
|
|
|
47183
47348
|
|
|
47184
47349
|
var seriesId = row.series.sId;
|
|
47185
47350
|
var value = aggregations === null || aggregations === void 0 ? void 0 : (_aggregations$seriesI = aggregations[seriesId]) === null || _aggregations$seriesI === void 0 ? void 0 : _aggregations$seriesI[key];
|
|
47186
|
-
dom.textContent =
|
|
47351
|
+
dom.textContent = _this11.getFormattedValue(columns[key], value);
|
|
47187
47352
|
});
|
|
47188
47353
|
});
|
|
47189
47354
|
},
|
|
@@ -47200,6 +47365,7 @@ var plugins_legend_modules = {
|
|
|
47200
47365
|
|
|
47201
47366
|
/**
|
|
47202
47367
|
* To update legend, remove all of legendBoxDOM's children
|
|
47368
|
+
* (except spacers when virtualScroll is enabled)
|
|
47203
47369
|
*
|
|
47204
47370
|
* @returns {undefined}
|
|
47205
47371
|
*/
|
|
@@ -47218,6 +47384,11 @@ var plugins_legend_modules = {
|
|
|
47218
47384
|
}
|
|
47219
47385
|
|
|
47220
47386
|
this.setLegendColumnHeader();
|
|
47387
|
+
} else if (this.options.legend.virtualScroll) {
|
|
47388
|
+
var elementsToRemove = this.legendBoxDOM.querySelectorAll('.ev-chart-legend-container');
|
|
47389
|
+
elementsToRemove.forEach(function (element) {
|
|
47390
|
+
return element.remove();
|
|
47391
|
+
});
|
|
47221
47392
|
} else {
|
|
47222
47393
|
while (legendBoxDOM.hasChildNodes()) {
|
|
47223
47394
|
legendBoxDOM.removeChild(legendBoxDOM.firstChild);
|
|
@@ -47235,6 +47406,16 @@ var plugins_legend_modules = {
|
|
|
47235
47406
|
destroyLegend: function destroyLegend() {
|
|
47236
47407
|
var legendDOM = this.legendDOM;
|
|
47237
47408
|
|
|
47409
|
+
if (this.renderVisibleLegendsFrameId != null) {
|
|
47410
|
+
cancelAnimationFrame(this.renderVisibleLegendsFrameId);
|
|
47411
|
+
this.renderVisibleLegendsFrameId = null;
|
|
47412
|
+
}
|
|
47413
|
+
|
|
47414
|
+
if (this.updateVisibleRowCountFrameId != null) {
|
|
47415
|
+
cancelAnimationFrame(this.updateVisibleRowCountFrameId);
|
|
47416
|
+
this.updateVisibleRowCountFrameId = null;
|
|
47417
|
+
}
|
|
47418
|
+
|
|
47238
47419
|
if (!legendDOM) {
|
|
47239
47420
|
return;
|
|
47240
47421
|
}
|
|
@@ -47290,7 +47471,6 @@ var plugins_legend_modules = {
|
|
|
47290
47471
|
nameDOM.textContent = series.name;
|
|
47291
47472
|
nameDOM.setAttribute('title', series.name);
|
|
47292
47473
|
nameDOM.dataset.type = 'name';
|
|
47293
|
-
this.legendDOM.style.padding = '5px 0 0 0';
|
|
47294
47474
|
containerDOM.appendChild(colorDOM);
|
|
47295
47475
|
containerDOM.appendChild(nameDOM);
|
|
47296
47476
|
|
|
@@ -47301,11 +47481,11 @@ var plugins_legend_modules = {
|
|
|
47301
47481
|
containerDOM.style.width = '100%';
|
|
47302
47482
|
}
|
|
47303
47483
|
|
|
47304
|
-
containerDOM.style.height =
|
|
47484
|
+
containerDOM.style.height = "".concat(this.legendItemHeight, "px");
|
|
47305
47485
|
containerDOM.style.display = 'inline-block';
|
|
47306
47486
|
containerDOM.style.overflow = 'hidden';
|
|
47307
47487
|
containerDOM.dataset.type = 'container';
|
|
47308
|
-
this.legendBoxDOM.
|
|
47488
|
+
this.legendBoxDOM.insertBefore(containerDOM, this.legendBottomSpacer);
|
|
47309
47489
|
|
|
47310
47490
|
if (series.show) {
|
|
47311
47491
|
this.seriesInfo.count++;
|
|
@@ -47323,7 +47503,7 @@ var plugins_legend_modules = {
|
|
|
47323
47503
|
_opt$table3,
|
|
47324
47504
|
_opt$table3$style,
|
|
47325
47505
|
_columns$name,
|
|
47326
|
-
|
|
47506
|
+
_this12 = this;
|
|
47327
47507
|
|
|
47328
47508
|
var opt = this.options.legend;
|
|
47329
47509
|
var columns = opt === null || opt === void 0 ? void 0 : (_opt$table2 = opt.table) === null || _opt$table2 === void 0 ? void 0 : _opt$table2.columns;
|
|
@@ -47419,7 +47599,7 @@ var plugins_legend_modules = {
|
|
|
47419
47599
|
if (columns[key].use) {
|
|
47420
47600
|
var _columns$key2;
|
|
47421
47601
|
|
|
47422
|
-
var formattedTxt =
|
|
47602
|
+
var formattedTxt = _this12.getFormattedValue(columns[key], aggregations[key]);
|
|
47423
47603
|
|
|
47424
47604
|
var valueDOM = document.createElement('td');
|
|
47425
47605
|
valueDOM.className = 'ev-chart-legend--table__value';
|
|
@@ -47461,15 +47641,15 @@ var plugins_legend_modules = {
|
|
|
47461
47641
|
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;
|
|
47462
47642
|
var positionTop = title + (opt === null || opt === void 0 ? void 0 : (_opt$legend2 = opt.legend) === null || _opt$legend2 === void 0 ? void 0 : _opt$legend2.height);
|
|
47463
47643
|
|
|
47464
|
-
var
|
|
47465
|
-
|
|
47466
|
-
top =
|
|
47467
|
-
|
|
47468
|
-
bottom =
|
|
47469
|
-
|
|
47470
|
-
left =
|
|
47471
|
-
|
|
47472
|
-
right =
|
|
47644
|
+
var _ref5 = (_opt$legend$padding = opt === null || opt === void 0 ? void 0 : (_opt$legend3 = opt.legend) === null || _opt$legend3 === void 0 ? void 0 : _opt$legend3.padding) !== null && _opt$legend$padding !== void 0 ? _opt$legend$padding : {},
|
|
47645
|
+
_ref5$top = _ref5.top,
|
|
47646
|
+
top = _ref5$top === void 0 ? 0 : _ref5$top,
|
|
47647
|
+
_ref5$bottom = _ref5.bottom,
|
|
47648
|
+
bottom = _ref5$bottom === void 0 ? 0 : _ref5$bottom,
|
|
47649
|
+
_ref5$left = _ref5.left,
|
|
47650
|
+
left = _ref5$left === void 0 ? 0 : _ref5$left,
|
|
47651
|
+
_ref5$right = _ref5.right,
|
|
47652
|
+
right = _ref5$right === void 0 ? 0 : _ref5$right;
|
|
47473
47653
|
|
|
47474
47654
|
if (!wrapperStyle || !legendStyle) {
|
|
47475
47655
|
return;
|
|
@@ -47813,9 +47993,9 @@ var plugins_legend_modules = {
|
|
|
47813
47993
|
* @param value
|
|
47814
47994
|
* @returns {string}
|
|
47815
47995
|
*/
|
|
47816
|
-
getFormattedValue: function getFormattedValue(
|
|
47817
|
-
var formatter =
|
|
47818
|
-
decimalPoint =
|
|
47996
|
+
getFormattedValue: function getFormattedValue(_ref6, value) {
|
|
47997
|
+
var formatter = _ref6.formatter,
|
|
47998
|
+
decimalPoint = _ref6.decimalPoint;
|
|
47819
47999
|
|
|
47820
48000
|
if (value === undefined || value === null) {
|
|
47821
48001
|
return 'Null';
|
|
@@ -54115,6 +54295,11 @@ var chart_core_EvChart = /*#__PURE__*/function () {
|
|
|
54115
54295
|
if (this.options.legend.type === 'gradient') {
|
|
54116
54296
|
this.legendBoxDOM.removeEventListener('mousedown', this.onLegendMouseDown);
|
|
54117
54297
|
}
|
|
54298
|
+
|
|
54299
|
+
if (this.options.legend.virtualScroll && !this.useTable) {
|
|
54300
|
+
this.legendBoxDOM.removeEventListener('resize', this.updateVisibleRowCount);
|
|
54301
|
+
this.legendBoxDOM.removeEventListener('scroll', this.renderVisibleLegends);
|
|
54302
|
+
}
|
|
54118
54303
|
}
|
|
54119
54304
|
|
|
54120
54305
|
if (this.resizeDOM) {
|
|
@@ -54139,6 +54324,16 @@ var chart_core_EvChart = /*#__PURE__*/function () {
|
|
|
54139
54324
|
this.tooltipDOM = null;
|
|
54140
54325
|
}
|
|
54141
54326
|
|
|
54327
|
+
if (this.renderVisibleLegendsFrameId != null) {
|
|
54328
|
+
cancelAnimationFrame(this.renderVisibleLegendsFrameId);
|
|
54329
|
+
this.renderVisibleLegendsFrameId = null;
|
|
54330
|
+
}
|
|
54331
|
+
|
|
54332
|
+
if (this.updateVisibleRowCountFrameId != null) {
|
|
54333
|
+
cancelAnimationFrame(this.updateVisibleRowCountFrameId);
|
|
54334
|
+
this.updateVisibleRowCountFrameId = null;
|
|
54335
|
+
}
|
|
54336
|
+
|
|
54142
54337
|
this.wrapperDOM = null;
|
|
54143
54338
|
this.chartDOM = null;
|
|
54144
54339
|
this.legendDOM = null;
|
|
@@ -54829,6 +55024,7 @@ var DEFAULT_OPTIONS = {
|
|
|
54829
55024
|
width: 140,
|
|
54830
55025
|
height: 24,
|
|
54831
55026
|
allowResize: false,
|
|
55027
|
+
virtualScroll: false,
|
|
54832
55028
|
table: {
|
|
54833
55029
|
use: false,
|
|
54834
55030
|
columns: {
|