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.umd.js
CHANGED
|
@@ -4357,6 +4357,21 @@ module.exports = function (url, options) {
|
|
|
4357
4357
|
|
|
4358
4358
|
/***/ }),
|
|
4359
4359
|
|
|
4360
|
+
/***/ "21f1":
|
|
4361
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4362
|
+
|
|
4363
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
4364
|
+
|
|
4365
|
+
// load the styles
|
|
4366
|
+
var content = __webpack_require__("e2e3");
|
|
4367
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
4368
|
+
if(content.locals) module.exports = content.locals;
|
|
4369
|
+
// add the styles to the DOM
|
|
4370
|
+
var add = __webpack_require__("499e").default
|
|
4371
|
+
var update = add("7d2d3b95", content, true, {"sourceMap":false,"shadowMode":false});
|
|
4372
|
+
|
|
4373
|
+
/***/ }),
|
|
4374
|
+
|
|
4360
4375
|
/***/ "2226":
|
|
4361
4376
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4362
4377
|
|
|
@@ -5148,20 +5163,6 @@ module.exports = DESCRIPTORS ? Object.defineProperties : function defineProperti
|
|
|
5148
5163
|
};
|
|
5149
5164
|
|
|
5150
5165
|
|
|
5151
|
-
/***/ }),
|
|
5152
|
-
|
|
5153
|
-
/***/ "37ed":
|
|
5154
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
5155
|
-
|
|
5156
|
-
// Imports
|
|
5157
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
5158
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
5159
|
-
// Module
|
|
5160
|
-
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}", ""]);
|
|
5161
|
-
// Exports
|
|
5162
|
-
module.exports = exports;
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
5166
|
/***/ }),
|
|
5166
5167
|
|
|
5167
5168
|
/***/ "3888":
|
|
@@ -5438,6 +5439,17 @@ module.exports = function (it) {
|
|
|
5438
5439
|
};
|
|
5439
5440
|
|
|
5440
5441
|
|
|
5442
|
+
/***/ }),
|
|
5443
|
+
|
|
5444
|
+
/***/ "450e":
|
|
5445
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5446
|
+
|
|
5447
|
+
"use strict";
|
|
5448
|
+
/* 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");
|
|
5449
|
+
/* 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__);
|
|
5450
|
+
/* unused harmony reexport * */
|
|
5451
|
+
|
|
5452
|
+
|
|
5441
5453
|
/***/ }),
|
|
5442
5454
|
|
|
5443
5455
|
/***/ "45da":
|
|
@@ -11221,7 +11233,7 @@ $({ target: 'Number', stat: true }, {
|
|
|
11221
11233
|
/***/ "9224":
|
|
11222
11234
|
/***/ (function(module) {
|
|
11223
11235
|
|
|
11224
|
-
module.exports = JSON.parse("{\"a\":\"3.4.
|
|
11236
|
+
module.exports = JSON.parse("{\"a\":\"3.4.71\"}");
|
|
11225
11237
|
|
|
11226
11238
|
/***/ }),
|
|
11227
11239
|
|
|
@@ -11318,17 +11330,6 @@ if (PATCH) {
|
|
|
11318
11330
|
module.exports = patchedExec;
|
|
11319
11331
|
|
|
11320
11332
|
|
|
11321
|
-
/***/ }),
|
|
11322
|
-
|
|
11323
|
-
/***/ "930b":
|
|
11324
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
11325
|
-
|
|
11326
|
-
"use strict";
|
|
11327
|
-
/* 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");
|
|
11328
|
-
/* 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__);
|
|
11329
|
-
/* unused harmony reexport * */
|
|
11330
|
-
|
|
11331
|
-
|
|
11332
11333
|
/***/ }),
|
|
11333
11334
|
|
|
11334
11335
|
/***/ "940e":
|
|
@@ -14952,6 +14953,20 @@ module.exports = function (target, src, options) {
|
|
|
14952
14953
|
};
|
|
14953
14954
|
|
|
14954
14955
|
|
|
14956
|
+
/***/ }),
|
|
14957
|
+
|
|
14958
|
+
/***/ "e2e3":
|
|
14959
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
14960
|
+
|
|
14961
|
+
// Imports
|
|
14962
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
14963
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
14964
|
+
// Module
|
|
14965
|
+
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}", ""]);
|
|
14966
|
+
// Exports
|
|
14967
|
+
module.exports = exports;
|
|
14968
|
+
|
|
14969
|
+
|
|
14955
14970
|
/***/ }),
|
|
14956
14971
|
|
|
14957
14972
|
/***/ "e371":
|
|
@@ -15704,21 +15719,6 @@ module.exports = function (it) {
|
|
|
15704
15719
|
};
|
|
15705
15720
|
|
|
15706
15721
|
|
|
15707
|
-
/***/ }),
|
|
15708
|
-
|
|
15709
|
-
/***/ "ea63":
|
|
15710
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
15711
|
-
|
|
15712
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
15713
|
-
|
|
15714
|
-
// load the styles
|
|
15715
|
-
var content = __webpack_require__("37ed");
|
|
15716
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
15717
|
-
if(content.locals) module.exports = content.locals;
|
|
15718
|
-
// add the styles to the DOM
|
|
15719
|
-
var add = __webpack_require__("499e").default
|
|
15720
|
-
var update = add("1e334474", content, true, {"sourceMap":false,"shadowMode":false});
|
|
15721
|
-
|
|
15722
15722
|
/***/ }),
|
|
15723
15723
|
|
|
15724
15724
|
/***/ "eb15":
|
|
@@ -30863,68 +30863,68 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
|
|
|
30863
30863
|
var vue3_observe_visibility_common = __webpack_require__("196e");
|
|
30864
30864
|
var vue3_observe_visibility_common_default = /*#__PURE__*/__webpack_require__.n(vue3_observe_visibility_common);
|
|
30865
30865
|
|
|
30866
|
-
// 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=
|
|
30866
|
+
// 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
|
|
30867
30867
|
|
|
30868
30868
|
|
|
30869
30869
|
|
|
30870
30870
|
|
|
30871
30871
|
|
|
30872
|
-
var _withId = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withScopeId"])("data-v-
|
|
30872
|
+
var _withId = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withScopeId"])("data-v-becd72f4");
|
|
30873
30873
|
|
|
30874
|
-
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-
|
|
30874
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-becd72f4");
|
|
30875
30875
|
|
|
30876
|
-
var
|
|
30876
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_1 = {
|
|
30877
30877
|
key: 0,
|
|
30878
30878
|
class: "filtering-items filtering-items--used"
|
|
30879
30879
|
};
|
|
30880
30880
|
|
|
30881
|
-
var
|
|
30881
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_2 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("span", null, "Filter", -1);
|
|
30882
30882
|
|
|
30883
|
-
var
|
|
30883
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_3 = {
|
|
30884
30884
|
key: 1,
|
|
30885
30885
|
ref: "filteringItemsRef",
|
|
30886
30886
|
class: "filtering-items"
|
|
30887
30887
|
};
|
|
30888
|
-
var
|
|
30888
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_4 = {
|
|
30889
30889
|
class: "filtering-items__item--title"
|
|
30890
30890
|
};
|
|
30891
|
-
var
|
|
30891
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_5 = {
|
|
30892
30892
|
key: 1,
|
|
30893
30893
|
class: "filtering-items__item--value"
|
|
30894
30894
|
};
|
|
30895
|
-
var
|
|
30895
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_6 = {
|
|
30896
30896
|
class: "filtering-items__item--title"
|
|
30897
30897
|
};
|
|
30898
|
-
var
|
|
30898
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_7 = {
|
|
30899
30899
|
key: 1,
|
|
30900
30900
|
class: "filtering-items__item--value"
|
|
30901
30901
|
};
|
|
30902
|
-
var
|
|
30902
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_8 = {
|
|
30903
30903
|
class: "column-list"
|
|
30904
30904
|
};
|
|
30905
|
-
var
|
|
30905
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_9 = {
|
|
30906
30906
|
ref: "table"
|
|
30907
30907
|
};
|
|
30908
|
-
var
|
|
30908
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_10 = {
|
|
30909
30909
|
key: 0
|
|
30910
30910
|
};
|
|
30911
|
-
var
|
|
30911
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_11 = {
|
|
30912
30912
|
key: 0
|
|
30913
30913
|
};
|
|
30914
|
-
var
|
|
30914
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_12 = {
|
|
30915
30915
|
key: 0
|
|
30916
30916
|
};
|
|
30917
|
-
var
|
|
30917
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_13 = {
|
|
30918
30918
|
class: "is-empty"
|
|
30919
30919
|
};
|
|
30920
|
-
var
|
|
30920
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_hoisted_14 = {
|
|
30921
30921
|
ref: "resizeLine",
|
|
30922
30922
|
class: "table-resize-line"
|
|
30923
30923
|
};
|
|
30924
30924
|
|
|
30925
30925
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])();
|
|
30926
30926
|
|
|
30927
|
-
var
|
|
30927
|
+
var Gridvue_type_template_id_becd72f4_scoped_true_render = /*#__PURE__*/_withId(function (_ctx, _cache, $props, $setup, $data, $options) {
|
|
30928
30928
|
var _ctx$$props$option$cu;
|
|
30929
30929
|
|
|
30930
30930
|
var _component_ev_icon = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ev-icon");
|
|
@@ -30967,9 +30967,9 @@ var Gridvue_type_template_id_a92acb9a_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
30967
30967
|
style: {
|
|
30968
30968
|
width: "".concat($setup.filteringItemsWidth, "px")
|
|
30969
30969
|
}
|
|
30970
|
-
}, [_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",
|
|
30970
|
+
}, [_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, {
|
|
30971
30971
|
icon: "ev-icon-filter-list"
|
|
30972
|
-
}),
|
|
30972
|
+
}), 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) {
|
|
30973
30973
|
var _$setup$getFilteringI2, _$setup$getFilteringI3, _$setup$getFilteringI4, _$setup$getFilteringI5;
|
|
30974
30974
|
|
|
30975
30975
|
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"], {
|
|
@@ -31010,11 +31010,11 @@ var Gridvue_type_template_id_a92acb9a_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
31010
31010
|
field: field
|
|
31011
31011
|
}, _ctx.filteringItemsByColumn[field]);
|
|
31012
31012
|
}, ["stop"])
|
|
31013
|
-
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("span",
|
|
31013
|
+
}, [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", {
|
|
31014
31014
|
key: 0,
|
|
31015
31015
|
class: "filtering-items__item--value",
|
|
31016
31016
|
title: (_$setup$getFilteringI4 = $setup.getFilteringItemByField(field)) === null || _$setup$getFilteringI4 === void 0 ? void 0 : _$setup$getFilteringI4.value
|
|
31017
|
-
}, 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",
|
|
31017
|
+
}, 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, {
|
|
31018
31018
|
class: "filtering-items__item--remove",
|
|
31019
31019
|
icon: "ev-icon-s-close",
|
|
31020
31020
|
onClick: function onClick($event) {
|
|
@@ -31046,11 +31046,11 @@ var Gridvue_type_template_id_a92acb9a_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
31046
31046
|
field: field
|
|
31047
31047
|
}, $setup.hiddenFilteringItemsByColumn[field]);
|
|
31048
31048
|
}, ["stop"])
|
|
31049
|
-
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("span",
|
|
31049
|
+
}, [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", {
|
|
31050
31050
|
key: 0,
|
|
31051
31051
|
class: "filtering-items__item--value",
|
|
31052
31052
|
title: (_$setup$getFilteringI9 = $setup.getFilteringItemByField(field)) === null || _$setup$getFilteringI9 === void 0 ? void 0 : _$setup$getFilteringI9.value
|
|
31053
|
-
}, 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",
|
|
31053
|
+
}, 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, {
|
|
31054
31054
|
class: "filtering-items__item--remove",
|
|
31055
31055
|
icon: "ev-icon-s-close",
|
|
31056
31056
|
onClick: function onClick($event) {
|
|
@@ -31092,7 +31092,7 @@ var Gridvue_type_template_id_a92acb9a_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
31092
31092
|
'table-header': true,
|
|
31093
31093
|
'non-border': !!$setup.borderStyle
|
|
31094
31094
|
}
|
|
31095
|
-
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("ul",
|
|
31095
|
+
}, [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", {
|
|
31096
31096
|
key: 0,
|
|
31097
31097
|
class: {
|
|
31098
31098
|
'column': true,
|
|
@@ -31243,11 +31243,11 @@ var Gridvue_type_template_id_a92acb9a_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
31243
31243
|
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("div", {
|
|
31244
31244
|
style: "height: ".concat(_ctx.vScrollTopHeight, "px;"),
|
|
31245
31245
|
class: "vscroll-spacer"
|
|
31246
|
-
}, null, 4), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("table",
|
|
31246
|
+
}, 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) {
|
|
31247
31247
|
var _ctx$$props$option$cu2, _ctx$$slots;
|
|
31248
31248
|
|
|
31249
31249
|
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"], {
|
|
31250
|
-
key: $setup.idColIndex
|
|
31250
|
+
key: $setup.idColIndex != null ? row[2][$setup.idColIndex] : rowIndex
|
|
31251
31251
|
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("tr", {
|
|
31252
31252
|
"data-index": row[0],
|
|
31253
31253
|
class: {
|
|
@@ -31315,7 +31315,7 @@ var Gridvue_type_template_id_a92acb9a_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
31315
31315
|
var _class2;
|
|
31316
31316
|
|
|
31317
31317
|
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"], {
|
|
31318
|
-
key: "".concat($setup.idColIndex
|
|
31318
|
+
key: "".concat($setup.idColIndex != null ? row[2][$setup.idColIndex] : rowIndex, "-").concat(cellIndex)
|
|
31319
31319
|
}, [!column.hide && !column.hiddenDisplay ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("td", {
|
|
31320
31320
|
key: 0,
|
|
31321
31321
|
"data-name": column.field,
|
|
@@ -31332,7 +31332,7 @@ var Gridvue_type_template_id_a92acb9a_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
31332
31332
|
'border-right': _ctx.orderedColumns.length - 1 === cellIndex ? 'none' : '1px solid #CFCFCF'
|
|
31333
31333
|
},
|
|
31334
31334
|
disabled: row[$setup.ROW_DISABLED_INDEX]
|
|
31335
|
-
}, [!!_ctx.$slots[column.field] ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div",
|
|
31335
|
+
}, [!!_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, {
|
|
31336
31336
|
item: {
|
|
31337
31337
|
row: row,
|
|
31338
31338
|
column: column
|
|
@@ -31372,7 +31372,7 @@ var Gridvue_type_template_id_a92acb9a_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
31372
31372
|
onClick: _cache[11] || (_cache[11] = function ($event) {
|
|
31373
31373
|
return $setup.onContextMenu($event);
|
|
31374
31374
|
})
|
|
31375
|
-
}, 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",
|
|
31375
|
+
}, 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", {
|
|
31376
31376
|
colspan: row.length
|
|
31377
31377
|
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("div", {
|
|
31378
31378
|
style: {
|
|
@@ -31386,7 +31386,7 @@ var Gridvue_type_template_id_a92acb9a_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
31386
31386
|
row: row
|
|
31387
31387
|
}
|
|
31388
31388
|
})], 4)], 8, ["colspan"])])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64);
|
|
31389
|
-
}), 128)), !_ctx.viewStore.length ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("tr",
|
|
31389
|
+
}), 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", {
|
|
31390
31390
|
style: "height: ".concat(_ctx.vScrollBottomHeight, "px;"),
|
|
31391
31391
|
class: "vscroll-spacer"
|
|
31392
31392
|
}, null, 4), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_ev_context_menu, {
|
|
@@ -31400,7 +31400,7 @@ var Gridvue_type_template_id_a92acb9a_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
31400
31400
|
ref: "gridSettingMenu",
|
|
31401
31401
|
items: _ctx.gridSettingContextMenuItems,
|
|
31402
31402
|
"is-show-menu-on-click": _ctx.isShowMenuOnClick
|
|
31403
|
-
}, 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",
|
|
31403
|
+
}, 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, {
|
|
31404
31404
|
callback: $setup.onShow,
|
|
31405
31405
|
once: true
|
|
31406
31406
|
}]]), $setup.useSummary ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_grid_summary, {
|
|
@@ -31453,7 +31453,7 @@ var Gridvue_type_template_id_a92acb9a_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
31453
31453
|
onApplyColumn: $setup.onApplyColumn
|
|
31454
31454
|
}, null, 8, ["is-show", "is-show-menu-on-click", "columns", "hidden-column", "position", "text-info", "onApplyColumn"])], 64);
|
|
31455
31455
|
});
|
|
31456
|
-
// CONCATENATED MODULE: ./src/components/grid/Grid.vue?vue&type=template&id=
|
|
31456
|
+
// CONCATENATED MODULE: ./src/components/grid/Grid.vue?vue&type=template&id=becd72f4&scoped=true
|
|
31457
31457
|
|
|
31458
31458
|
// CONCATENATED MODULE: ./node_modules/lodash-es/_arrayEach.js
|
|
31459
31459
|
/**
|
|
@@ -38032,9 +38032,11 @@ var uses_dragEvent = function dragEvent(_ref4) {
|
|
|
38032
38032
|
return initWrapperDiv();
|
|
38033
38033
|
});
|
|
38034
38034
|
var idColIndex = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
38035
|
-
|
|
38035
|
+
var _stores$orderedColumn;
|
|
38036
|
+
|
|
38037
|
+
return (_stores$orderedColumn = stores.orderedColumns.find(function (c) {
|
|
38036
38038
|
return c.field === 'id';
|
|
38037
|
-
});
|
|
38039
|
+
})) === null || _stores$orderedColumn === void 0 ? void 0 : _stores$orderedColumn.index;
|
|
38038
38040
|
});
|
|
38039
38041
|
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
|
|
38040
38042
|
idColIndex: idColIndex,
|
|
@@ -38105,8 +38107,8 @@ var uses_dragEvent = function dragEvent(_ref4) {
|
|
|
38105
38107
|
});
|
|
38106
38108
|
// CONCATENATED MODULE: ./src/components/grid/Grid.vue?vue&type=script&lang=js
|
|
38107
38109
|
|
|
38108
|
-
// EXTERNAL MODULE: ./src/components/grid/Grid.vue?vue&type=style&index=0&id=
|
|
38109
|
-
var
|
|
38110
|
+
// EXTERNAL MODULE: ./src/components/grid/Grid.vue?vue&type=style&index=0&id=becd72f4&lang=scss&scoped=true
|
|
38111
|
+
var Gridvue_type_style_index_0_id_becd72f4_lang_scss_scoped_true = __webpack_require__("450e");
|
|
38110
38112
|
|
|
38111
38113
|
// CONCATENATED MODULE: ./src/components/grid/Grid.vue
|
|
38112
38114
|
|
|
@@ -38116,7 +38118,7 @@ var Gridvue_type_style_index_0_id_a92acb9a_lang_scss_scoped_true = __webpack_req
|
|
|
38116
38118
|
|
|
38117
38119
|
|
|
38118
38120
|
|
|
38119
|
-
const Grid_exports_ = /*#__PURE__*/exportHelper_default()(Gridvue_type_script_lang_js, [['render',
|
|
38121
|
+
const Grid_exports_ = /*#__PURE__*/exportHelper_default()(Gridvue_type_script_lang_js, [['render',Gridvue_type_template_id_becd72f4_scoped_true_render],['__scopeId',"data-v-becd72f4"]])
|
|
38120
38122
|
|
|
38121
38123
|
/* harmony default export */ var Grid = (Grid_exports_);
|
|
38122
38124
|
// CONCATENATED MODULE: ./src/components/grid/index.js
|
|
@@ -41512,7 +41514,7 @@ var element_line_Line = /*#__PURE__*/function () {
|
|
|
41512
41514
|
|
|
41513
41515
|
['color', 'pointFill', 'fillColor'].forEach(function (colorProp) {
|
|
41514
41516
|
if (_this[colorProp] === undefined) {
|
|
41515
|
-
_this[colorProp] = colorProp === 'pointFill' ? _this.color : COLOR[sIdx];
|
|
41517
|
+
_this[colorProp] = colorProp === 'pointFill' ? _this.color : COLOR[sIdx % COLOR.length];
|
|
41516
41518
|
}
|
|
41517
41519
|
});
|
|
41518
41520
|
this.type = 'line';
|
|
@@ -41591,7 +41593,7 @@ var element_line_Line = /*#__PURE__*/function () {
|
|
|
41591
41593
|
}
|
|
41592
41594
|
|
|
41593
41595
|
var getOpacity = function getOpacity(colorStr) {
|
|
41594
|
-
return colorStr.includes('rgba') ? helpers_util.getOpacity(colorStr) : extent.opacity;
|
|
41596
|
+
return colorStr !== null && colorStr !== void 0 && colorStr.includes('rgba') ? helpers_util.getOpacity(colorStr) : extent.opacity;
|
|
41595
41597
|
};
|
|
41596
41598
|
|
|
41597
41599
|
var mainColor = this.color;
|
|
@@ -46553,6 +46555,9 @@ var plugins_title_modules = {
|
|
|
46553
46555
|
|
|
46554
46556
|
|
|
46555
46557
|
|
|
46558
|
+
|
|
46559
|
+
|
|
46560
|
+
|
|
46556
46561
|
|
|
46557
46562
|
|
|
46558
46563
|
var plugins_legend_modules = {
|
|
@@ -46562,7 +46567,9 @@ var plugins_legend_modules = {
|
|
|
46562
46567
|
* @returns {undefined}
|
|
46563
46568
|
*/
|
|
46564
46569
|
createLegendLayout: function createLegendLayout() {
|
|
46565
|
-
var _this$options,
|
|
46570
|
+
var _this$options,
|
|
46571
|
+
_this$options$legend,
|
|
46572
|
+
_this = this;
|
|
46566
46573
|
|
|
46567
46574
|
this.legendDOM = document.createElement('div');
|
|
46568
46575
|
this.legendDOM.className = 'ev-chart-legend';
|
|
@@ -46586,10 +46593,27 @@ var plugins_legend_modules = {
|
|
|
46586
46593
|
} else {
|
|
46587
46594
|
this.legendBoxDOM.style.overflowX = 'hidden';
|
|
46588
46595
|
this.legendBoxDOM.style.overflowY = 'auto';
|
|
46596
|
+
this.legendBoxDOM.style.height = '100%';
|
|
46589
46597
|
}
|
|
46590
46598
|
|
|
46591
46599
|
this.legendDOM.appendChild(this.legendBoxDOM);
|
|
46592
46600
|
this.wrapperDOM.appendChild(this.legendDOM);
|
|
46601
|
+
|
|
46602
|
+
if (this.options.legend.virtualScroll && !this.useTable) {
|
|
46603
|
+
this.legendTopSpacer = document.createElement('div');
|
|
46604
|
+
this.legendTopSpacer.className = 'ev-chart-legend--top-spacer';
|
|
46605
|
+
this.legendTopSpacer.style.clear = 'both';
|
|
46606
|
+
this.legendTopSpacer.style.opacity = 0;
|
|
46607
|
+
this.legendBottomSpacer = document.createElement('div');
|
|
46608
|
+
this.legendBottomSpacer.className = 'ev-chart-legend--bottom-spacer';
|
|
46609
|
+
this.legendBottomSpacer.style.clear = 'both';
|
|
46610
|
+
this.legendBottomSpacer.style.opacity = 0;
|
|
46611
|
+
this.legendBoxDOM.appendChild(this.legendTopSpacer);
|
|
46612
|
+
this.legendBoxDOM.appendChild(this.legendBottomSpacer);
|
|
46613
|
+
this.updateVisibleRowCountFrameId = requestAnimationFrame(function () {
|
|
46614
|
+
_this.updateVisibleRowCount();
|
|
46615
|
+
});
|
|
46616
|
+
}
|
|
46593
46617
|
},
|
|
46594
46618
|
|
|
46595
46619
|
/**
|
|
@@ -46600,7 +46624,7 @@ var plugins_legend_modules = {
|
|
|
46600
46624
|
*/
|
|
46601
46625
|
setLegendColumnHeader: function setLegendColumnHeader() {
|
|
46602
46626
|
var _this$options$legend2,
|
|
46603
|
-
|
|
46627
|
+
_this2 = this;
|
|
46604
46628
|
|
|
46605
46629
|
var tableOpt = (_this$options$legend2 = this.options.legend) === null || _this$options$legend2 === void 0 ? void 0 : _this$options$legend2.table;
|
|
46606
46630
|
var columns = tableOpt.columns;
|
|
@@ -46621,7 +46645,7 @@ var plugins_legend_modules = {
|
|
|
46621
46645
|
columnNameDOM.dataset.type = keyText;
|
|
46622
46646
|
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);
|
|
46623
46647
|
|
|
46624
|
-
|
|
46648
|
+
_this2.legendTableDOM.append(columnNameDOM);
|
|
46625
46649
|
}
|
|
46626
46650
|
});
|
|
46627
46651
|
},
|
|
@@ -46638,6 +46662,7 @@ var plugins_legend_modules = {
|
|
|
46638
46662
|
|
|
46639
46663
|
this.isHeatMapType = this.options.type === 'heatMap';
|
|
46640
46664
|
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';
|
|
46665
|
+
this.legendItemHeight = 18;
|
|
46641
46666
|
|
|
46642
46667
|
if (!this.isInitLegend) {
|
|
46643
46668
|
this.createLegendLayout();
|
|
@@ -46656,6 +46681,90 @@ var plugins_legend_modules = {
|
|
|
46656
46681
|
this.isLegendMove = false;
|
|
46657
46682
|
},
|
|
46658
46683
|
|
|
46684
|
+
/**
|
|
46685
|
+
* Calculate and update the number of rows and items per row that are visible
|
|
46686
|
+
* within the legend container based on its dimensions and the layout of the legend.
|
|
46687
|
+
* If the legend is positioned on the right or left, only one item per row is shown.
|
|
46688
|
+
* Otherwise, the number of items per row is determined by dividing the container width
|
|
46689
|
+
* by the item width.
|
|
46690
|
+
*
|
|
46691
|
+
* @returns {undefined}
|
|
46692
|
+
*/
|
|
46693
|
+
updateVisibleRowCount: function updateVisibleRowCount() {
|
|
46694
|
+
var isLeftOrRight = this.options.legend.position === 'right' || this.options.legend.position === 'left';
|
|
46695
|
+
var legendBoxHeight = this.legendBoxDOM.clientHeight;
|
|
46696
|
+
var legendBoxWidth = this.legendBoxDOM.clientWidth;
|
|
46697
|
+
var itemWidth = Math.max(this.options.legend.width - 8, 1);
|
|
46698
|
+
var useLegendSeriesCount = Object.values(this.seriesList).filter(function (series) {
|
|
46699
|
+
return series.showLegend !== false;
|
|
46700
|
+
}).length;
|
|
46701
|
+
this.itemsPerRow = isLeftOrRight ? 1 : Math.floor(legendBoxWidth / itemWidth);
|
|
46702
|
+
this.totalRowCount = Math.ceil(useLegendSeriesCount / this.itemsPerRow);
|
|
46703
|
+
this.visibleRowCount = legendBoxHeight > this.legendItemHeight ? Math.round(legendBoxHeight / this.legendItemHeight) + 1 : this.totalRowCount;
|
|
46704
|
+
},
|
|
46705
|
+
|
|
46706
|
+
/**
|
|
46707
|
+
* Calculate and set the start and end row indexes for visible items within the
|
|
46708
|
+
* scrollable legend area. Determines the row range that should be displayed based
|
|
46709
|
+
* on the current scroll position and the height of each legend item.
|
|
46710
|
+
*
|
|
46711
|
+
* @returns {undefined}
|
|
46712
|
+
*/
|
|
46713
|
+
updateStartEndRowIndex: function updateStartEndRowIndex() {
|
|
46714
|
+
var index = Math.max(Math.floor(this.legendBoxDOM.scrollTop / this.legendItemHeight), 0);
|
|
46715
|
+
this.startRowIndex = index > this.totalRowCount - 1 ? 0 : index;
|
|
46716
|
+
this.endRowIndex = this.startRowIndex + this.visibleRowCount;
|
|
46717
|
+
},
|
|
46718
|
+
|
|
46719
|
+
/**
|
|
46720
|
+
* Render only the visible legend items in the legend container based on the
|
|
46721
|
+
* calculated start and end row indexes. Removes existing legend items,
|
|
46722
|
+
* adjusts spacer heights to enable smooth scrolling, and adds only the items
|
|
46723
|
+
* within the visible range.
|
|
46724
|
+
*
|
|
46725
|
+
* @returns {undefined}
|
|
46726
|
+
*/
|
|
46727
|
+
renderVisibleLegends: function renderVisibleLegends() {
|
|
46728
|
+
var _this3 = this;
|
|
46729
|
+
|
|
46730
|
+
this.updateStartEndRowIndex();
|
|
46731
|
+
var elementsToRemove = this.legendBoxDOM.querySelectorAll('.ev-chart-legend-container');
|
|
46732
|
+
elementsToRemove.forEach(function (element) {
|
|
46733
|
+
return element.remove();
|
|
46734
|
+
});
|
|
46735
|
+
var totalScrollHeight = this.totalRowCount * this.legendItemHeight;
|
|
46736
|
+
var top = this.startRowIndex * this.legendItemHeight;
|
|
46737
|
+
var bottom = Math.max(totalScrollHeight - this.visibleRowCount * this.legendItemHeight - top, 0);
|
|
46738
|
+
this.legendTopSpacer.style.height = "".concat(top, "px");
|
|
46739
|
+
this.legendBottomSpacer.style.height = "".concat(bottom, "px");
|
|
46740
|
+
var startIndex = this.startRowIndex * this.itemsPerRow;
|
|
46741
|
+
var endIndex = this.endRowIndex * this.itemsPerRow;
|
|
46742
|
+
var groups = this.data.groups.at(0);
|
|
46743
|
+
var useLegendSeries = [];
|
|
46744
|
+
|
|
46745
|
+
if (groups) {
|
|
46746
|
+
useLegendSeries = groups.slice().reverse().filter(function (sId) {
|
|
46747
|
+
return _this3.seriesList[sId].showLegend;
|
|
46748
|
+
}).map(function (sId) {
|
|
46749
|
+
return [sId, _this3.seriesList[sId]];
|
|
46750
|
+
});
|
|
46751
|
+
} else {
|
|
46752
|
+
useLegendSeries = Object.entries(this.seriesList).filter(function (_ref) {
|
|
46753
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
46754
|
+
series = _ref2[1];
|
|
46755
|
+
|
|
46756
|
+
return series.showLegend;
|
|
46757
|
+
});
|
|
46758
|
+
}
|
|
46759
|
+
|
|
46760
|
+
useLegendSeries.slice(startIndex, endIndex).forEach(function (_ref3) {
|
|
46761
|
+
var _ref4 = _slicedToArray(_ref3, 2),
|
|
46762
|
+
series = _ref4[1];
|
|
46763
|
+
|
|
46764
|
+
_this3.addLegend(series);
|
|
46765
|
+
});
|
|
46766
|
+
},
|
|
46767
|
+
|
|
46659
46768
|
/**
|
|
46660
46769
|
* Add legend with group information to align each series properly.
|
|
46661
46770
|
* Especially if a chart is stacked,
|
|
@@ -46664,36 +46773,86 @@ var plugins_legend_modules = {
|
|
|
46664
46773
|
* @returns {undefined}
|
|
46665
46774
|
*/
|
|
46666
46775
|
addLegendList: function addLegendList() {
|
|
46667
|
-
var
|
|
46776
|
+
var _this4 = this;
|
|
46668
46777
|
|
|
46669
46778
|
var groups = this.data.groups;
|
|
46670
46779
|
var seriesList = this.seriesList;
|
|
46780
|
+
|
|
46781
|
+
if (this.options.legend.virtualScroll) {
|
|
46782
|
+
if (this.useTable) {
|
|
46783
|
+
this.addLegendForGroups(groups, seriesList, true);
|
|
46784
|
+
this.addStandaloneLegends(seriesList, true);
|
|
46785
|
+
} else {
|
|
46786
|
+
this.renderVisibleLegendsFrameId = requestAnimationFrame(function () {
|
|
46787
|
+
_this4.renderVisibleLegends();
|
|
46788
|
+
});
|
|
46789
|
+
}
|
|
46790
|
+
} else {
|
|
46791
|
+
this.addLegendForGroups(groups, seriesList, this.useTable);
|
|
46792
|
+
this.addStandaloneLegends(seriesList, this.useTable);
|
|
46793
|
+
}
|
|
46794
|
+
},
|
|
46795
|
+
|
|
46796
|
+
/**
|
|
46797
|
+
* Adds legends for each group in `groups` array, iterating through each series
|
|
46798
|
+
* within the group in reverse order. This ensures the legends align with the series
|
|
46799
|
+
* order as displayed in the chart. Only adds series with `showLegend` set to `true`.
|
|
46800
|
+
*
|
|
46801
|
+
* @param {Array} groups - Array of groups containing series identifiers.
|
|
46802
|
+
* @param {Object} seriesList - Object containing all series, keyed by series ID.
|
|
46803
|
+
* @param {boolean} useTable - Determines whether to add legends with additional values.
|
|
46804
|
+
* @returns {undefined}
|
|
46805
|
+
*/
|
|
46806
|
+
addLegendForGroups: function addLegendForGroups(groups, seriesList, useTable) {
|
|
46807
|
+
var _this5 = this;
|
|
46808
|
+
|
|
46671
46809
|
groups.forEach(function (group) {
|
|
46672
46810
|
group.slice().reverse().forEach(function (sId) {
|
|
46673
46811
|
var series = seriesList[sId];
|
|
46674
46812
|
|
|
46675
46813
|
if (series && series.showLegend) {
|
|
46676
|
-
|
|
46677
|
-
_this2.addLegendWithValues(series);
|
|
46678
|
-
} else {
|
|
46679
|
-
_this2.addLegend(series);
|
|
46680
|
-
}
|
|
46814
|
+
_this5.addLegendBasedOnType(series, useTable);
|
|
46681
46815
|
}
|
|
46682
46816
|
});
|
|
46683
46817
|
});
|
|
46684
|
-
|
|
46685
|
-
if (series.isExistGrp || !series.showLegend) {
|
|
46686
|
-
return;
|
|
46687
|
-
}
|
|
46818
|
+
},
|
|
46688
46819
|
|
|
46689
|
-
|
|
46690
|
-
|
|
46691
|
-
|
|
46692
|
-
|
|
46820
|
+
/**
|
|
46821
|
+
* Adds legends for series that are not part of any group. Iterates through each series
|
|
46822
|
+
* in `seriesList` and only adds those that are not assigned to any group (based on `isExistGrp`)
|
|
46823
|
+
* and have `showLegend` set to `true`.
|
|
46824
|
+
*
|
|
46825
|
+
* @param {Object} seriesList - Object containing all series, keyed by series ID.
|
|
46826
|
+
* @param {boolean} useTable - Determines whether to add legends with additional values.
|
|
46827
|
+
* @returns {undefined}
|
|
46828
|
+
*/
|
|
46829
|
+
addStandaloneLegends: function addStandaloneLegends(seriesList, useTable) {
|
|
46830
|
+
var _this6 = this;
|
|
46831
|
+
|
|
46832
|
+
Object.values(seriesList).forEach(function (series) {
|
|
46833
|
+
if (!series.isExistGrp && series.showLegend) {
|
|
46834
|
+
_this6.addLegendBasedOnType(series, useTable);
|
|
46693
46835
|
}
|
|
46694
46836
|
});
|
|
46695
46837
|
},
|
|
46696
46838
|
|
|
46839
|
+
/**
|
|
46840
|
+
* Adds a legend item for a specific series, determining whether to include additional
|
|
46841
|
+
* values based on the `useTable` parameter. Calls `addLegendWithValues` if `useTable` is true,
|
|
46842
|
+
* otherwise calls `addLegend`.
|
|
46843
|
+
*
|
|
46844
|
+
* @param {Object} series - Series object containing data to display in the legend.
|
|
46845
|
+
* @param {boolean} useTable - Determines whether to add legends with additional values.
|
|
46846
|
+
* @returns {undefined}
|
|
46847
|
+
*/
|
|
46848
|
+
addLegendBasedOnType: function addLegendBasedOnType(series, useTable) {
|
|
46849
|
+
if (useTable) {
|
|
46850
|
+
this.addLegendWithValues(series);
|
|
46851
|
+
} else {
|
|
46852
|
+
this.addLegend(series);
|
|
46853
|
+
}
|
|
46854
|
+
},
|
|
46855
|
+
|
|
46697
46856
|
/**
|
|
46698
46857
|
* Add Legend with Color Information
|
|
46699
46858
|
* Only Heatmap chart
|
|
@@ -46701,7 +46860,7 @@ var plugins_legend_modules = {
|
|
|
46701
46860
|
* @returns {undefined}
|
|
46702
46861
|
*/
|
|
46703
46862
|
addColorLegendList: function addColorLegendList() {
|
|
46704
|
-
var
|
|
46863
|
+
var _this7 = this;
|
|
46705
46864
|
|
|
46706
46865
|
var seriesList = this.seriesList;
|
|
46707
46866
|
Object.values(seriesList).forEach(function (series) {
|
|
@@ -46749,7 +46908,7 @@ var plugins_legend_modules = {
|
|
|
46749
46908
|
}
|
|
46750
46909
|
}
|
|
46751
46910
|
|
|
46752
|
-
|
|
46911
|
+
_this7.addLegend({
|
|
46753
46912
|
cId: id,
|
|
46754
46913
|
color: color,
|
|
46755
46914
|
name: name,
|
|
@@ -46792,7 +46951,7 @@ var plugins_legend_modules = {
|
|
|
46792
46951
|
* @returns {undefined}
|
|
46793
46952
|
*/
|
|
46794
46953
|
initEvent: function initEvent() {
|
|
46795
|
-
var
|
|
46954
|
+
var _this8 = this;
|
|
46796
46955
|
|
|
46797
46956
|
if (this.isInitLegend) {
|
|
46798
46957
|
return;
|
|
@@ -46811,15 +46970,15 @@ var plugins_legend_modules = {
|
|
|
46811
46970
|
*/
|
|
46812
46971
|
|
|
46813
46972
|
this.onLegendBoxClick = function (e) {
|
|
46814
|
-
var opt =
|
|
46973
|
+
var opt = _this8.options.legend;
|
|
46815
46974
|
|
|
46816
46975
|
if (opt !== null && opt !== void 0 && opt.stopClickEvt) {
|
|
46817
46976
|
return;
|
|
46818
46977
|
}
|
|
46819
46978
|
|
|
46820
|
-
var chartIdx =
|
|
46979
|
+
var chartIdx = _this8.data.chartIdx;
|
|
46821
46980
|
|
|
46822
|
-
var targetDOM =
|
|
46981
|
+
var targetDOM = _this8.getContainerDOM(e);
|
|
46823
46982
|
|
|
46824
46983
|
if (!targetDOM) {
|
|
46825
46984
|
return;
|
|
@@ -46831,7 +46990,7 @@ var plugins_legend_modules = {
|
|
|
46831
46990
|
var valueDOMList = targetDOM === null || targetDOM === void 0 ? void 0 : targetDOM.getElementsByClassName(classList.value);
|
|
46832
46991
|
var isActive = !(targetDOM !== null && targetDOM !== void 0 && targetDOM.className.includes('inactive'));
|
|
46833
46992
|
|
|
46834
|
-
if (isActive &&
|
|
46993
|
+
if (isActive && _this8.seriesInfo.count === 1) {
|
|
46835
46994
|
return;
|
|
46836
46995
|
}
|
|
46837
46996
|
|
|
@@ -46840,7 +46999,7 @@ var plugins_legend_modules = {
|
|
|
46840
46999
|
}
|
|
46841
47000
|
|
|
46842
47001
|
if (isActive) {
|
|
46843
|
-
|
|
47002
|
+
_this8.seriesInfo.count--;
|
|
46844
47003
|
var inactiveColor = opt.inactive;
|
|
46845
47004
|
colorDOM.style.backgroundColor = inactiveColor;
|
|
46846
47005
|
colorDOM.style.borderColor = inactiveColor;
|
|
@@ -46849,7 +47008,7 @@ var plugins_legend_modules = {
|
|
|
46849
47008
|
dom.style.color = inactiveColor;
|
|
46850
47009
|
});
|
|
46851
47010
|
} else {
|
|
46852
|
-
|
|
47011
|
+
_this8.seriesInfo.count++;
|
|
46853
47012
|
var seriesColor;
|
|
46854
47013
|
|
|
46855
47014
|
if (typeof series.color !== 'string') {
|
|
@@ -46878,15 +47037,15 @@ var plugins_legend_modules = {
|
|
|
46878
47037
|
series.show = !series.show;
|
|
46879
47038
|
targetDOM.classList.toggle('inactive');
|
|
46880
47039
|
|
|
46881
|
-
if (
|
|
46882
|
-
var seriesList = _toConsumableArray(
|
|
47040
|
+
if (_this8.brushSeries) {
|
|
47041
|
+
var seriesList = _toConsumableArray(_this8.brushSeries.list);
|
|
46883
47042
|
|
|
46884
|
-
seriesList[chartIdx] =
|
|
46885
|
-
|
|
46886
|
-
|
|
47043
|
+
seriesList[chartIdx] = _this8.seriesList;
|
|
47044
|
+
_this8.brushSeries.list = seriesList;
|
|
47045
|
+
_this8.brushSeries.chartIdx = chartIdx;
|
|
46887
47046
|
}
|
|
46888
47047
|
|
|
46889
|
-
|
|
47048
|
+
_this8.update({
|
|
46890
47049
|
updateSeries: false,
|
|
46891
47050
|
updateSelTip: {
|
|
46892
47051
|
update: true,
|
|
@@ -46904,7 +47063,7 @@ var plugins_legend_modules = {
|
|
|
46904
47063
|
this.onLegendBoxOver = function (e) {
|
|
46905
47064
|
var _targetDOM$series;
|
|
46906
47065
|
|
|
46907
|
-
var targetDOM =
|
|
47066
|
+
var targetDOM = _this8.getContainerDOM(e);
|
|
46908
47067
|
|
|
46909
47068
|
if (!targetDOM) {
|
|
46910
47069
|
return;
|
|
@@ -46913,10 +47072,10 @@ var plugins_legend_modules = {
|
|
|
46913
47072
|
var targetId = targetDOM === null || targetDOM === void 0 ? void 0 : (_targetDOM$series = targetDOM.series) === null || _targetDOM$series === void 0 ? void 0 : _targetDOM$series.sId;
|
|
46914
47073
|
var legendHitInfo = {
|
|
46915
47074
|
sId: targetId,
|
|
46916
|
-
type:
|
|
47075
|
+
type: _this8.options.type
|
|
46917
47076
|
};
|
|
46918
47077
|
|
|
46919
|
-
|
|
47078
|
+
_this8.update({
|
|
46920
47079
|
updateSeries: false,
|
|
46921
47080
|
updateSelTip: {
|
|
46922
47081
|
update: false,
|
|
@@ -46935,7 +47094,7 @@ var plugins_legend_modules = {
|
|
|
46935
47094
|
|
|
46936
47095
|
|
|
46937
47096
|
this.onLegendBoxLeave = function () {
|
|
46938
|
-
|
|
47097
|
+
_this8.update({
|
|
46939
47098
|
updateSeries: false,
|
|
46940
47099
|
updateSelTip: {
|
|
46941
47100
|
update: false,
|
|
@@ -46950,6 +47109,12 @@ var plugins_legend_modules = {
|
|
|
46950
47109
|
this.legendBoxDOM.addEventListener('click', this.onLegendBoxClick);
|
|
46951
47110
|
this.legendBoxDOM.addEventListener('mouseover', this.onLegendBoxOver);
|
|
46952
47111
|
this.legendBoxDOM.addEventListener('mouseleave', this.onLegendBoxLeave);
|
|
47112
|
+
|
|
47113
|
+
if (this.options.legend.virtualScroll && !this.useTable) {
|
|
47114
|
+
this.legendBoxDOM.addEventListener('resize', this.updateVisibleRowCount);
|
|
47115
|
+
this.legendBoxDOM.addEventListener('scroll', this.renderVisibleLegends.bind(this));
|
|
47116
|
+
}
|
|
47117
|
+
|
|
46953
47118
|
this.initResizeEvent();
|
|
46954
47119
|
},
|
|
46955
47120
|
|
|
@@ -46958,7 +47123,7 @@ var plugins_legend_modules = {
|
|
|
46958
47123
|
* Only Heatmap
|
|
46959
47124
|
*/
|
|
46960
47125
|
initEventForColorLegend: function initEventForColorLegend() {
|
|
46961
|
-
var
|
|
47126
|
+
var _this9 = this;
|
|
46962
47127
|
|
|
46963
47128
|
if (this.isInitLegend) {
|
|
46964
47129
|
return;
|
|
@@ -46973,15 +47138,15 @@ var plugins_legend_modules = {
|
|
|
46973
47138
|
this.onLegendBoxClick = function (e) {
|
|
46974
47139
|
var _targetDOM$series2;
|
|
46975
47140
|
|
|
46976
|
-
var opt =
|
|
47141
|
+
var opt = _this9.options.legend;
|
|
46977
47142
|
|
|
46978
47143
|
if (opt !== null && opt !== void 0 && opt.stopClickEvt) {
|
|
46979
47144
|
return;
|
|
46980
47145
|
}
|
|
46981
47146
|
|
|
46982
|
-
var series = Object.values(
|
|
47147
|
+
var series = Object.values(_this9.seriesList)[0];
|
|
46983
47148
|
|
|
46984
|
-
var targetDOM =
|
|
47149
|
+
var targetDOM = _this9.getContainerDOM(e);
|
|
46985
47150
|
|
|
46986
47151
|
if (!targetDOM) {
|
|
46987
47152
|
return;
|
|
@@ -47025,7 +47190,7 @@ var plugins_legend_modules = {
|
|
|
47025
47190
|
colorDOM.classList.toggle('inactive');
|
|
47026
47191
|
nameDOM.classList.toggle('inactive');
|
|
47027
47192
|
|
|
47028
|
-
|
|
47193
|
+
_this9.update({
|
|
47029
47194
|
updateSeries: false,
|
|
47030
47195
|
updateSelTip: {
|
|
47031
47196
|
update: true,
|
|
@@ -47043,9 +47208,9 @@ var plugins_legend_modules = {
|
|
|
47043
47208
|
this.onLegendBoxOver = function (e) {
|
|
47044
47209
|
var _Object$values, _targetDOM$series4;
|
|
47045
47210
|
|
|
47046
|
-
var series = (_Object$values = Object.values(
|
|
47211
|
+
var series = (_Object$values = Object.values(_this9.seriesList)) === null || _Object$values === void 0 ? void 0 : _Object$values[0];
|
|
47047
47212
|
|
|
47048
|
-
var targetDOM =
|
|
47213
|
+
var targetDOM = _this9.getContainerDOM(e);
|
|
47049
47214
|
|
|
47050
47215
|
if (!targetDOM) {
|
|
47051
47216
|
return;
|
|
@@ -47054,13 +47219,13 @@ var plugins_legend_modules = {
|
|
|
47054
47219
|
var targetId = targetDOM === null || targetDOM === void 0 ? void 0 : (_targetDOM$series4 = targetDOM.series) === null || _targetDOM$series4 === void 0 ? void 0 : _targetDOM$series4.cId;
|
|
47055
47220
|
var legendHitInfo = {
|
|
47056
47221
|
sId: targetId,
|
|
47057
|
-
type:
|
|
47222
|
+
type: _this9.options.type
|
|
47058
47223
|
};
|
|
47059
47224
|
series.colorState.forEach(function (colorItem) {
|
|
47060
47225
|
colorItem.state = colorItem.id === targetId ? 'highlight' : 'downplay';
|
|
47061
47226
|
});
|
|
47062
47227
|
|
|
47063
|
-
|
|
47228
|
+
_this9.update({
|
|
47064
47229
|
updateSeries: false,
|
|
47065
47230
|
updateSelTip: {
|
|
47066
47231
|
update: false,
|
|
@@ -47079,12 +47244,12 @@ var plugins_legend_modules = {
|
|
|
47079
47244
|
|
|
47080
47245
|
|
|
47081
47246
|
this.onLegendBoxLeave = function () {
|
|
47082
|
-
var series = Object.values(
|
|
47247
|
+
var series = Object.values(_this9.seriesList)[0];
|
|
47083
47248
|
series.colorState.forEach(function (item) {
|
|
47084
47249
|
item.state = 'normal';
|
|
47085
47250
|
});
|
|
47086
47251
|
|
|
47087
|
-
|
|
47252
|
+
_this9.update({
|
|
47088
47253
|
updateSeries: false,
|
|
47089
47254
|
updateSelTip: {
|
|
47090
47255
|
update: false,
|
|
@@ -47099,7 +47264,7 @@ var plugins_legend_modules = {
|
|
|
47099
47264
|
this.initResizeEvent();
|
|
47100
47265
|
},
|
|
47101
47266
|
initResizeEvent: function initResizeEvent() {
|
|
47102
|
-
var
|
|
47267
|
+
var _this10 = this;
|
|
47103
47268
|
|
|
47104
47269
|
/**
|
|
47105
47270
|
* callback for resizeDOM click event
|
|
@@ -47111,33 +47276,33 @@ var plugins_legend_modules = {
|
|
|
47111
47276
|
this.onResizeMouseDown = function (e) {
|
|
47112
47277
|
e.stopPropagation();
|
|
47113
47278
|
e.preventDefault();
|
|
47114
|
-
var opt =
|
|
47279
|
+
var opt = _this10.options;
|
|
47115
47280
|
var pos = opt.legend.position;
|
|
47116
47281
|
var title = opt.title.show ? opt.title.height : 0;
|
|
47117
|
-
var ghostDOM =
|
|
47118
|
-
|
|
47282
|
+
var ghostDOM = _this10.ghostDOM;
|
|
47283
|
+
_this10.resizeDOM.style.display = 'none';
|
|
47119
47284
|
|
|
47120
|
-
|
|
47285
|
+
_this10.wrapperDOM.appendChild(ghostDOM); // mouse down 시, resizeDOM의 위치를 기반으로 ghostDOM의 위치를 세팅
|
|
47121
47286
|
|
|
47122
47287
|
|
|
47123
47288
|
if (pos === 'left' || pos === 'right') {
|
|
47124
47289
|
ghostDOM.style.top = "".concat(title, "px");
|
|
47125
|
-
ghostDOM.style.left =
|
|
47126
|
-
ghostDOM.style.right =
|
|
47127
|
-
ghostDOM.style.height =
|
|
47290
|
+
ghostDOM.style.left = _this10.resizeDOM.style.left;
|
|
47291
|
+
ghostDOM.style.right = _this10.resizeDOM.style.right;
|
|
47292
|
+
ghostDOM.style.height = _this10.resizeDOM.style.height;
|
|
47128
47293
|
} else {
|
|
47129
47294
|
ghostDOM.classList.add('horizontal');
|
|
47130
47295
|
|
|
47131
47296
|
if (pos === 'top') {
|
|
47132
|
-
ghostDOM.style.top =
|
|
47297
|
+
ghostDOM.style.top = _this10.resizeDOM.style.top;
|
|
47133
47298
|
} else if (pos === 'bottom') {
|
|
47134
|
-
ghostDOM.style.bottom =
|
|
47299
|
+
ghostDOM.style.bottom = _this10.resizeDOM.style.bottom;
|
|
47135
47300
|
}
|
|
47136
47301
|
}
|
|
47137
47302
|
|
|
47138
|
-
|
|
47303
|
+
_this10.wrapperDOM.addEventListener('mousemove', _this10.mouseMove, false);
|
|
47139
47304
|
|
|
47140
|
-
|
|
47305
|
+
_this10.wrapperDOM.addEventListener('mouseup', _this10.mouseUp, false);
|
|
47141
47306
|
};
|
|
47142
47307
|
|
|
47143
47308
|
if (this.resizeDOM) {
|
|
@@ -47174,7 +47339,7 @@ var plugins_legend_modules = {
|
|
|
47174
47339
|
_this$options2$legend,
|
|
47175
47340
|
_this$options2$legend2,
|
|
47176
47341
|
_this$legendBoxDOM,
|
|
47177
|
-
|
|
47342
|
+
_this11 = this;
|
|
47178
47343
|
|
|
47179
47344
|
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;
|
|
47180
47345
|
var aggregations = this.getAggregations();
|
|
@@ -47192,7 +47357,7 @@ var plugins_legend_modules = {
|
|
|
47192
47357
|
|
|
47193
47358
|
var seriesId = row.series.sId;
|
|
47194
47359
|
var value = aggregations === null || aggregations === void 0 ? void 0 : (_aggregations$seriesI = aggregations[seriesId]) === null || _aggregations$seriesI === void 0 ? void 0 : _aggregations$seriesI[key];
|
|
47195
|
-
dom.textContent =
|
|
47360
|
+
dom.textContent = _this11.getFormattedValue(columns[key], value);
|
|
47196
47361
|
});
|
|
47197
47362
|
});
|
|
47198
47363
|
},
|
|
@@ -47209,6 +47374,7 @@ var plugins_legend_modules = {
|
|
|
47209
47374
|
|
|
47210
47375
|
/**
|
|
47211
47376
|
* To update legend, remove all of legendBoxDOM's children
|
|
47377
|
+
* (except spacers when virtualScroll is enabled)
|
|
47212
47378
|
*
|
|
47213
47379
|
* @returns {undefined}
|
|
47214
47380
|
*/
|
|
@@ -47227,6 +47393,11 @@ var plugins_legend_modules = {
|
|
|
47227
47393
|
}
|
|
47228
47394
|
|
|
47229
47395
|
this.setLegendColumnHeader();
|
|
47396
|
+
} else if (this.options.legend.virtualScroll) {
|
|
47397
|
+
var elementsToRemove = this.legendBoxDOM.querySelectorAll('.ev-chart-legend-container');
|
|
47398
|
+
elementsToRemove.forEach(function (element) {
|
|
47399
|
+
return element.remove();
|
|
47400
|
+
});
|
|
47230
47401
|
} else {
|
|
47231
47402
|
while (legendBoxDOM.hasChildNodes()) {
|
|
47232
47403
|
legendBoxDOM.removeChild(legendBoxDOM.firstChild);
|
|
@@ -47244,6 +47415,16 @@ var plugins_legend_modules = {
|
|
|
47244
47415
|
destroyLegend: function destroyLegend() {
|
|
47245
47416
|
var legendDOM = this.legendDOM;
|
|
47246
47417
|
|
|
47418
|
+
if (this.renderVisibleLegendsFrameId != null) {
|
|
47419
|
+
cancelAnimationFrame(this.renderVisibleLegendsFrameId);
|
|
47420
|
+
this.renderVisibleLegendsFrameId = null;
|
|
47421
|
+
}
|
|
47422
|
+
|
|
47423
|
+
if (this.updateVisibleRowCountFrameId != null) {
|
|
47424
|
+
cancelAnimationFrame(this.updateVisibleRowCountFrameId);
|
|
47425
|
+
this.updateVisibleRowCountFrameId = null;
|
|
47426
|
+
}
|
|
47427
|
+
|
|
47247
47428
|
if (!legendDOM) {
|
|
47248
47429
|
return;
|
|
47249
47430
|
}
|
|
@@ -47299,7 +47480,6 @@ var plugins_legend_modules = {
|
|
|
47299
47480
|
nameDOM.textContent = series.name;
|
|
47300
47481
|
nameDOM.setAttribute('title', series.name);
|
|
47301
47482
|
nameDOM.dataset.type = 'name';
|
|
47302
|
-
this.legendDOM.style.padding = '5px 0 0 0';
|
|
47303
47483
|
containerDOM.appendChild(colorDOM);
|
|
47304
47484
|
containerDOM.appendChild(nameDOM);
|
|
47305
47485
|
|
|
@@ -47310,11 +47490,11 @@ var plugins_legend_modules = {
|
|
|
47310
47490
|
containerDOM.style.width = '100%';
|
|
47311
47491
|
}
|
|
47312
47492
|
|
|
47313
|
-
containerDOM.style.height =
|
|
47493
|
+
containerDOM.style.height = "".concat(this.legendItemHeight, "px");
|
|
47314
47494
|
containerDOM.style.display = 'inline-block';
|
|
47315
47495
|
containerDOM.style.overflow = 'hidden';
|
|
47316
47496
|
containerDOM.dataset.type = 'container';
|
|
47317
|
-
this.legendBoxDOM.
|
|
47497
|
+
this.legendBoxDOM.insertBefore(containerDOM, this.legendBottomSpacer);
|
|
47318
47498
|
|
|
47319
47499
|
if (series.show) {
|
|
47320
47500
|
this.seriesInfo.count++;
|
|
@@ -47332,7 +47512,7 @@ var plugins_legend_modules = {
|
|
|
47332
47512
|
_opt$table3,
|
|
47333
47513
|
_opt$table3$style,
|
|
47334
47514
|
_columns$name,
|
|
47335
|
-
|
|
47515
|
+
_this12 = this;
|
|
47336
47516
|
|
|
47337
47517
|
var opt = this.options.legend;
|
|
47338
47518
|
var columns = opt === null || opt === void 0 ? void 0 : (_opt$table2 = opt.table) === null || _opt$table2 === void 0 ? void 0 : _opt$table2.columns;
|
|
@@ -47428,7 +47608,7 @@ var plugins_legend_modules = {
|
|
|
47428
47608
|
if (columns[key].use) {
|
|
47429
47609
|
var _columns$key2;
|
|
47430
47610
|
|
|
47431
|
-
var formattedTxt =
|
|
47611
|
+
var formattedTxt = _this12.getFormattedValue(columns[key], aggregations[key]);
|
|
47432
47612
|
|
|
47433
47613
|
var valueDOM = document.createElement('td');
|
|
47434
47614
|
valueDOM.className = 'ev-chart-legend--table__value';
|
|
@@ -47470,15 +47650,15 @@ var plugins_legend_modules = {
|
|
|
47470
47650
|
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;
|
|
47471
47651
|
var positionTop = title + (opt === null || opt === void 0 ? void 0 : (_opt$legend2 = opt.legend) === null || _opt$legend2 === void 0 ? void 0 : _opt$legend2.height);
|
|
47472
47652
|
|
|
47473
|
-
var
|
|
47474
|
-
|
|
47475
|
-
top =
|
|
47476
|
-
|
|
47477
|
-
bottom =
|
|
47478
|
-
|
|
47479
|
-
left =
|
|
47480
|
-
|
|
47481
|
-
right =
|
|
47653
|
+
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 : {},
|
|
47654
|
+
_ref5$top = _ref5.top,
|
|
47655
|
+
top = _ref5$top === void 0 ? 0 : _ref5$top,
|
|
47656
|
+
_ref5$bottom = _ref5.bottom,
|
|
47657
|
+
bottom = _ref5$bottom === void 0 ? 0 : _ref5$bottom,
|
|
47658
|
+
_ref5$left = _ref5.left,
|
|
47659
|
+
left = _ref5$left === void 0 ? 0 : _ref5$left,
|
|
47660
|
+
_ref5$right = _ref5.right,
|
|
47661
|
+
right = _ref5$right === void 0 ? 0 : _ref5$right;
|
|
47482
47662
|
|
|
47483
47663
|
if (!wrapperStyle || !legendStyle) {
|
|
47484
47664
|
return;
|
|
@@ -47822,9 +48002,9 @@ var plugins_legend_modules = {
|
|
|
47822
48002
|
* @param value
|
|
47823
48003
|
* @returns {string}
|
|
47824
48004
|
*/
|
|
47825
|
-
getFormattedValue: function getFormattedValue(
|
|
47826
|
-
var formatter =
|
|
47827
|
-
decimalPoint =
|
|
48005
|
+
getFormattedValue: function getFormattedValue(_ref6, value) {
|
|
48006
|
+
var formatter = _ref6.formatter,
|
|
48007
|
+
decimalPoint = _ref6.decimalPoint;
|
|
47828
48008
|
|
|
47829
48009
|
if (value === undefined || value === null) {
|
|
47830
48010
|
return 'Null';
|
|
@@ -54124,6 +54304,11 @@ var chart_core_EvChart = /*#__PURE__*/function () {
|
|
|
54124
54304
|
if (this.options.legend.type === 'gradient') {
|
|
54125
54305
|
this.legendBoxDOM.removeEventListener('mousedown', this.onLegendMouseDown);
|
|
54126
54306
|
}
|
|
54307
|
+
|
|
54308
|
+
if (this.options.legend.virtualScroll && !this.useTable) {
|
|
54309
|
+
this.legendBoxDOM.removeEventListener('resize', this.updateVisibleRowCount);
|
|
54310
|
+
this.legendBoxDOM.removeEventListener('scroll', this.renderVisibleLegends);
|
|
54311
|
+
}
|
|
54127
54312
|
}
|
|
54128
54313
|
|
|
54129
54314
|
if (this.resizeDOM) {
|
|
@@ -54148,6 +54333,16 @@ var chart_core_EvChart = /*#__PURE__*/function () {
|
|
|
54148
54333
|
this.tooltipDOM = null;
|
|
54149
54334
|
}
|
|
54150
54335
|
|
|
54336
|
+
if (this.renderVisibleLegendsFrameId != null) {
|
|
54337
|
+
cancelAnimationFrame(this.renderVisibleLegendsFrameId);
|
|
54338
|
+
this.renderVisibleLegendsFrameId = null;
|
|
54339
|
+
}
|
|
54340
|
+
|
|
54341
|
+
if (this.updateVisibleRowCountFrameId != null) {
|
|
54342
|
+
cancelAnimationFrame(this.updateVisibleRowCountFrameId);
|
|
54343
|
+
this.updateVisibleRowCountFrameId = null;
|
|
54344
|
+
}
|
|
54345
|
+
|
|
54151
54346
|
this.wrapperDOM = null;
|
|
54152
54347
|
this.chartDOM = null;
|
|
54153
54348
|
this.legendDOM = null;
|
|
@@ -54838,6 +55033,7 @@ var DEFAULT_OPTIONS = {
|
|
|
54838
55033
|
width: 140,
|
|
54839
55034
|
height: 24,
|
|
54840
55035
|
allowResize: false,
|
|
55036
|
+
virtualScroll: false,
|
|
54841
55037
|
table: {
|
|
54842
55038
|
use: false,
|
|
54843
55039
|
columns: {
|