evui 3.3.10 → 3.3.11
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 +1027 -335
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +1027 -335
- 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 +62 -23
- package/src/components/chart/element/element.heatmap.js +1 -1
- package/src/components/chart/element/element.scatter.js +26 -9
- package/src/components/chart/element/element.tip.js +34 -10
- package/src/components/chart/model/model.store.js +1 -1
- package/src/components/chart/plugins/plugins.interaction.js +5 -1
- package/src/components/chart/plugins/plugins.legend.js +1 -0
- package/src/components/chart/plugins/plugins.tooltip.js +175 -18
- package/src/components/chart/scale/scale.js +9 -1
- package/src/components/chart/scale/scale.step.js +9 -1
- package/src/components/chart/scale/scale.time.category.js +9 -1
- package/src/components/chart/uses.js +1 -0
- package/src/components/grid/Grid.vue +94 -33
- package/src/components/grid/grid.summary.vue +221 -0
- package/src/components/grid/style/grid.scss +0 -14
- package/src/components/grid/uses.js +54 -45
package/dist/evui.common.js
CHANGED
|
@@ -5024,6 +5024,29 @@ module.exports = function (it) {
|
|
|
5024
5024
|
};
|
|
5025
5025
|
|
|
5026
5026
|
|
|
5027
|
+
/***/ }),
|
|
5028
|
+
|
|
5029
|
+
/***/ "3c39":
|
|
5030
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5031
|
+
|
|
5032
|
+
// Imports
|
|
5033
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
5034
|
+
var ___CSS_LOADER_GET_URL_IMPORT___ = __webpack_require__("1de5");
|
|
5035
|
+
var ___CSS_LOADER_URL_IMPORT_0___ = __webpack_require__("f051");
|
|
5036
|
+
var ___CSS_LOADER_URL_IMPORT_1___ = __webpack_require__("0924");
|
|
5037
|
+
var ___CSS_LOADER_URL_IMPORT_2___ = __webpack_require__("eb91");
|
|
5038
|
+
var ___CSS_LOADER_URL_IMPORT_3___ = __webpack_require__("a884");
|
|
5039
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
5040
|
+
var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);
|
|
5041
|
+
var ___CSS_LOADER_URL_REPLACEMENT_1___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_1___);
|
|
5042
|
+
var ___CSS_LOADER_URL_REPLACEMENT_2___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_2___);
|
|
5043
|
+
var ___CSS_LOADER_URL_REPLACEMENT_3___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_3___);
|
|
5044
|
+
// Module
|
|
5045
|
+
exports.push([module.i, ".table[data-v-6493e3f4]{position:relative;width:100%;height:100%;padding-top:33px}.table.non-header[data-v-6493e3f4]{padding-top:0}.table .table-header[data-v-6493e3f4]{overflow:hidden;position:absolute;top:0;width:100%;height:33px;border-top:2px solid #7f7f7f;border-bottom:1px solid #cfcfcf}.dark .table .table-header[data-v-6493e3f4]{border-top:2px solid;border-bottom:1px solid}.table .table-header.non-border[data-v-6493e3f4]{border-bottom:2px solid #7f7f7f!important}.column-list[data-v-6493e3f4]{width:100%;white-space:nowrap;list-style-type:none}.column[data-v-6493e3f4],.column-list[data-v-6493e3f4]{position:relative;height:100%}.column[data-v-6493e3f4]{display:inline-flex;padding:0 10px;line-height:30px;justify-content:center;align-items:center;text-align:center;vertical-align:top;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-right:1px solid #cfcfcf}.dark .column[data-v-6493e3f4]{border-right:1px solid}.column[data-v-6493e3f4]:last-child{border-right:0;margin-right:20px}.column:last-child .column-resize[data-v-6493e3f4]{cursor:default!important}.column .sort-icon[data-v-6493e3f4]{display:inline-block;float:right;font-size:14px;line-height:30px}.column .ev-icon-filter[data-v-6493e3f4]{font-size:13px;color:#005cc8}.column-name[data-v-6493e3f4]{display:inline-block;float:left;overflow:hidden;text-overflow:ellipsis;font-weight:700;font-size:14px}.column-filter[data-v-6493e3f4]{display:none;position:absolute;right:0;background-color:transparent}.column-filter i[data-v-6493e3f4]{margin-right:2px;font-size:14px;vertical-align:middle}.column:hover .column-filter[data-v-6493e3f4]{display:block;cursor:pointer}.column-filter-status[data-v-6493e3f4]{position:absolute;left:0;background-color:transparent}.column-filter-status .ei[data-v-6493e3f4]{font-size:10px;vertical-align:top}.column-resize[data-v-6493e3f4]{position:absolute;bottom:0;right:-5px;width:10px;height:100%}.column-resize[data-v-6493e3f4]:hover{cursor:col-resize}.table-body[data-v-6493e3f4]{position:relative;width:100%;height:100%;overflow:auto;overflow-anchor:none}.table-body table[data-v-6493e3f4]{clear:both;border-spacing:0;border-collapse:collapse;width:inherit}.table-body.stripe tr[data-v-6493e3f4]:nth-child(2n){background:hsla(0,0%,89.8%,.6)}.table-body.bottom-border[data-v-6493e3f4]{border-bottom:1px solid #cfcfcf}.dark .table-body.bottom-border[data-v-6493e3f4]{border-bottom:1px solid}.table-body .row[data-v-6493e3f4]{white-space:nowrap;border-bottom:1px solid #cfcfcf}.dark .table-body .row[data-v-6493e3f4]{border-bottom:1px solid}.table-body .row.selected[data-v-6493e3f4]{background:rgba(219,240,249,.6)!important;color:inherit!important;font-size:inherit!important}.dark .table-body .row.selected[data-v-6493e3f4]{background:!important;color:inherit!important;font-size:inherit!important}.table-body .row.highlight[data-v-6493e3f4]{background:#5ab7ff;color:#fff}.table-body .cell[data-v-6493e3f4]{display:inline-block;padding:0 10px;text-align:center;max-width:100%;white-space:nowrap;text-overflow:ellipsis;border-right:1px solid #cfcfcf}.dark .table-body .cell[data-v-6493e3f4]{border-right:1px solid}.table-body .cell div[data-v-6493e3f4]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.table-body .cell.row-checkbox[data-v-6493e3f4]{display:inline-flex;justify-content:center;align-items:center}.table-body .cell.render[data-v-6493e3f4]{overflow:initial}.table-body .cell.float[data-v-6493e3f4],.table-body .cell.number[data-v-6493e3f4]{text-align:right}.table-body .cell.string[data-v-6493e3f4],.table-body .cell.stringNumber[data-v-6493e3f4]{text-align:left}.table-body .cell.center[data-v-6493e3f4]{text-align:center}.table-body .cell.left[data-v-6493e3f4]{text-align:left}.table-body .cell.left .wrap[data-v-6493e3f4]{justify-content:flex-start}.table-body .cell.right[data-v-6493e3f4]{text-align:right}.table-body .cell.right .wrap[data-v-6493e3f4]{justify-content:flex-end}.table-body .cell[data-v-6493e3f4]:last-child{border-right:0}.table-resize-line[data-v-6493e3f4]{position:absolute;top:0;bottom:0;width:1px;border-right:1px solid #cfcfcf}.dark .table-resize-line[data-v-6493e3f4]{border-right:1px solid}.vscroll-spacer[data-v-6493e3f4]{opacity:0;clear:both}[v-cloak][data-v-6493e3f4]{display:none}.ev-checkbox[data-v-6493e3f4]{margin:0}.non-border[data-v-6493e3f4]{border:none!important}.is-empty[data-v-6493e3f4]{height:30px;text-align:center}.postgresql[data-v-6493e3f4]{background:url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ") no-repeat 50%}.oracle[data-v-6493e3f4]{background:url(" + ___CSS_LOADER_URL_REPLACEMENT_1___ + ") no-repeat 50%}.mongodb[data-v-6493e3f4]{background:url(" + ___CSS_LOADER_URL_REPLACEMENT_2___ + ") no-repeat 50%}.mysql[data-v-6493e3f4]{background:url(" + ___CSS_LOADER_URL_REPLACEMENT_3___ + ") no-repeat 50%}", ""]);
|
|
5046
|
+
// Exports
|
|
5047
|
+
module.exports = exports;
|
|
5048
|
+
|
|
5049
|
+
|
|
5027
5050
|
/***/ }),
|
|
5028
5051
|
|
|
5029
5052
|
/***/ "3c48":
|
|
@@ -6487,6 +6510,21 @@ var update = add("e9f0be08", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
6487
6510
|
|
|
6488
6511
|
/***/ }),
|
|
6489
6512
|
|
|
6513
|
+
/***/ "6301":
|
|
6514
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
6515
|
+
|
|
6516
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
6517
|
+
|
|
6518
|
+
// load the styles
|
|
6519
|
+
var content = __webpack_require__("3c39");
|
|
6520
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
6521
|
+
if(content.locals) module.exports = content.locals;
|
|
6522
|
+
// add the styles to the DOM
|
|
6523
|
+
var add = __webpack_require__("499e").default
|
|
6524
|
+
var update = add("215a702e", content, true, {"sourceMap":false,"shadowMode":false});
|
|
6525
|
+
|
|
6526
|
+
/***/ }),
|
|
6527
|
+
|
|
6490
6528
|
/***/ "6360":
|
|
6491
6529
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6492
6530
|
|
|
@@ -6766,6 +6804,17 @@ module.exports = function (originalArray, length) {
|
|
|
6766
6804
|
};
|
|
6767
6805
|
|
|
6768
6806
|
|
|
6807
|
+
/***/ }),
|
|
6808
|
+
|
|
6809
|
+
/***/ "67bd":
|
|
6810
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6811
|
+
|
|
6812
|
+
"use strict";
|
|
6813
|
+
/* 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_6493e3f4_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6301");
|
|
6814
|
+
/* 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_6493e3f4_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_6493e3f4_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
6815
|
+
/* unused harmony reexport * */
|
|
6816
|
+
|
|
6817
|
+
|
|
6769
6818
|
/***/ }),
|
|
6770
6819
|
|
|
6771
6820
|
/***/ "67cc":
|
|
@@ -7375,6 +7424,17 @@ $({ target: 'Array', proto: true, forced: SKIPS_HOLES || !USES_TO_LENGTH }, {
|
|
|
7375
7424
|
addToUnscopables(FIND);
|
|
7376
7425
|
|
|
7377
7426
|
|
|
7427
|
+
/***/ }),
|
|
7428
|
+
|
|
7429
|
+
/***/ "7dc3":
|
|
7430
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
7431
|
+
|
|
7432
|
+
"use strict";
|
|
7433
|
+
/* 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_summary_vue_vue_type_style_index_0_id_85d2d498_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("de33");
|
|
7434
|
+
/* 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_summary_vue_vue_type_style_index_0_id_85d2d498_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_summary_vue_vue_type_style_index_0_id_85d2d498_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
7435
|
+
/* unused harmony reexport * */
|
|
7436
|
+
|
|
7437
|
+
|
|
7378
7438
|
/***/ }),
|
|
7379
7439
|
|
|
7380
7440
|
/***/ "7dca":
|
|
@@ -7790,21 +7850,6 @@ exports.push([module.i, "#ev-message-box-modal{display:flex;position:fixed;top:0
|
|
|
7790
7850
|
module.exports = exports;
|
|
7791
7851
|
|
|
7792
7852
|
|
|
7793
|
-
/***/ }),
|
|
7794
|
-
|
|
7795
|
-
/***/ "8e0f":
|
|
7796
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7797
|
-
|
|
7798
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
7799
|
-
|
|
7800
|
-
// load the styles
|
|
7801
|
-
var content = __webpack_require__("ded0");
|
|
7802
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
7803
|
-
if(content.locals) module.exports = content.locals;
|
|
7804
|
-
// add the styles to the DOM
|
|
7805
|
-
var add = __webpack_require__("499e").default
|
|
7806
|
-
var update = add("4194f44c", content, true, {"sourceMap":false,"shadowMode":false});
|
|
7807
|
-
|
|
7808
7853
|
/***/ }),
|
|
7809
7854
|
|
|
7810
7855
|
/***/ "8fef":
|
|
@@ -7898,7 +7943,7 @@ $({ target: 'Number', stat: true }, {
|
|
|
7898
7943
|
/***/ "9224":
|
|
7899
7944
|
/***/ (function(module) {
|
|
7900
7945
|
|
|
7901
|
-
module.exports = JSON.parse("{\"a\":\"3.3.
|
|
7946
|
+
module.exports = JSON.parse("{\"a\":\"3.3.11\"}");
|
|
7902
7947
|
|
|
7903
7948
|
/***/ }),
|
|
7904
7949
|
|
|
@@ -10213,13 +10258,16 @@ module.exports = !fails(function () {
|
|
|
10213
10258
|
|
|
10214
10259
|
/***/ }),
|
|
10215
10260
|
|
|
10216
|
-
/***/ "
|
|
10217
|
-
/***/ (function(module,
|
|
10261
|
+
/***/ "bd50":
|
|
10262
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
10218
10263
|
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
|
|
10222
|
-
|
|
10264
|
+
// Imports
|
|
10265
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
10266
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
10267
|
+
// Module
|
|
10268
|
+
exports.push([module.i, ".table[data-v-85d2d498]{position:relative;width:100%;height:100%;padding-top:33px}.table.non-header[data-v-85d2d498]{padding-top:0}.table .table-header[data-v-85d2d498]{overflow:hidden;position:absolute;top:0;width:100%;height:33px;border-top:2px solid #7f7f7f;border-bottom:1px solid #cfcfcf}.dark .table .table-header[data-v-85d2d498]{border-top:2px solid;border-bottom:1px solid}.table .table-header.non-border[data-v-85d2d498]{border-bottom:2px solid #7f7f7f!important}.column-list[data-v-85d2d498]{width:100%;white-space:nowrap;list-style-type:none}.column[data-v-85d2d498],.column-list[data-v-85d2d498]{position:relative;height:100%}.column[data-v-85d2d498]{display:inline-flex;padding:0 10px;line-height:30px;justify-content:center;align-items:center;text-align:center;vertical-align:top;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-right:1px solid #cfcfcf}.dark .column[data-v-85d2d498]{border-right:1px solid}.column[data-v-85d2d498]:last-child{border-right:0;margin-right:20px}.column:last-child .column-resize[data-v-85d2d498]{cursor:default!important}.column .sort-icon[data-v-85d2d498]{display:inline-block;float:right;font-size:14px;line-height:30px}.column .ev-icon-filter[data-v-85d2d498]{font-size:13px;color:#005cc8}.column-name[data-v-85d2d498]{display:inline-block;float:left;overflow:hidden;text-overflow:ellipsis;font-weight:700;font-size:14px}.column-filter[data-v-85d2d498]{display:none;position:absolute;right:0;background-color:transparent}.column-filter i[data-v-85d2d498]{margin-right:2px;font-size:14px;vertical-align:middle}.column:hover .column-filter[data-v-85d2d498]{display:block;cursor:pointer}.column-filter-status[data-v-85d2d498]{position:absolute;left:0;background-color:transparent}.column-filter-status .ei[data-v-85d2d498]{font-size:10px;vertical-align:top}.column-resize[data-v-85d2d498]{position:absolute;bottom:0;right:-5px;width:10px;height:100%}.column-resize[data-v-85d2d498]:hover{cursor:col-resize}.table-body[data-v-85d2d498]{position:relative;width:100%;height:100%;overflow:auto;overflow-anchor:none}.table-body table[data-v-85d2d498]{clear:both;border-spacing:0;border-collapse:collapse;width:inherit}.table-body.stripe tr[data-v-85d2d498]:nth-child(2n){background:hsla(0,0%,89.8%,.6)}.table-body.bottom-border[data-v-85d2d498]{border-bottom:1px solid #cfcfcf}.dark .table-body.bottom-border[data-v-85d2d498]{border-bottom:1px solid}.table-body .row[data-v-85d2d498]{white-space:nowrap;border-bottom:1px solid #cfcfcf}.dark .table-body .row[data-v-85d2d498]{border-bottom:1px solid}.table-body .row.selected[data-v-85d2d498]{background:rgba(219,240,249,.6)!important;color:inherit!important;font-size:inherit!important}.dark .table-body .row.selected[data-v-85d2d498]{background:!important;color:inherit!important;font-size:inherit!important}.table-body .row.highlight[data-v-85d2d498]{background:#5ab7ff;color:#fff}.table-body .cell[data-v-85d2d498]{display:inline-block;padding:0 10px;text-align:center;max-width:100%;white-space:nowrap;text-overflow:ellipsis;border-right:1px solid #cfcfcf}.dark .table-body .cell[data-v-85d2d498]{border-right:1px solid}.table-body .cell div[data-v-85d2d498]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.table-body .cell.row-checkbox[data-v-85d2d498]{display:inline-flex;justify-content:center;align-items:center}.table-body .cell.render[data-v-85d2d498]{overflow:initial}.table-body .cell.float[data-v-85d2d498],.table-body .cell.number[data-v-85d2d498]{text-align:right}.table-body .cell.string[data-v-85d2d498],.table-body .cell.stringNumber[data-v-85d2d498]{text-align:left}.table-body .cell.center[data-v-85d2d498]{text-align:center}.table-body .cell.left[data-v-85d2d498]{text-align:left}.table-body .cell.left .wrap[data-v-85d2d498]{justify-content:flex-start}.table-body .cell.right[data-v-85d2d498]{text-align:right}.table-body .cell.right .wrap[data-v-85d2d498]{justify-content:flex-end}.table-body .cell[data-v-85d2d498]:last-child{border-right:0}.table-resize-line[data-v-85d2d498]{position:absolute;top:0;bottom:0;width:1px;border-right:1px solid #cfcfcf}.dark .table-resize-line[data-v-85d2d498]{border-right:1px solid}.vscroll-spacer[data-v-85d2d498]{opacity:0;clear:both}[v-cloak][data-v-85d2d498]{display:none}.ev-checkbox[data-v-85d2d498]{margin:0}.non-border[data-v-85d2d498]{border:none!important}.is-empty[data-v-85d2d498]{height:30px;text-align:center}.grid-summary[data-v-85d2d498]{background-color:#f8f9f9;border-bottom:1px solid #cfcfcf}.grid-summary .non-border[data-v-85d2d498]{border-bottom:none!important}.grid-summary span[data-v-85d2d498]{display:inline-block;overflow:hidden;text-overflow:ellipsis;font-size:14px;color:#737373}.grid-summary .column.float[data-v-85d2d498],.grid-summary .column.number[data-v-85d2d498]{text-align:right}.grid-summary .column.string[data-v-85d2d498],.grid-summary .column.stringNumber[data-v-85d2d498]{text-align:left}.grid-summary .column.center[data-v-85d2d498]{text-align:center}.grid-summary .column.left[data-v-85d2d498]{text-align:left}.grid-summary .column.left .wrap[data-v-85d2d498]{justify-content:flex-start}.grid-summary .column.right[data-v-85d2d498]{text-align:right}.grid-summary .column.right .wrap[data-v-85d2d498]{justify-content:flex-end}", ""]);
|
|
10269
|
+
// Exports
|
|
10270
|
+
module.exports = exports;
|
|
10223
10271
|
|
|
10224
10272
|
|
|
10225
10273
|
/***/ }),
|
|
@@ -11203,6 +11251,21 @@ for (var COLLECTION_NAME in DOMIterables) {
|
|
|
11203
11251
|
}
|
|
11204
11252
|
|
|
11205
11253
|
|
|
11254
|
+
/***/ }),
|
|
11255
|
+
|
|
11256
|
+
/***/ "de33":
|
|
11257
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
11258
|
+
|
|
11259
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
11260
|
+
|
|
11261
|
+
// load the styles
|
|
11262
|
+
var content = __webpack_require__("bd50");
|
|
11263
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
11264
|
+
if(content.locals) module.exports = content.locals;
|
|
11265
|
+
// add the styles to the DOM
|
|
11266
|
+
var add = __webpack_require__("499e").default
|
|
11267
|
+
var update = add("542a12f8", content, true, {"sourceMap":false,"shadowMode":false});
|
|
11268
|
+
|
|
11206
11269
|
/***/ }),
|
|
11207
11270
|
|
|
11208
11271
|
/***/ "dea5":
|
|
@@ -11214,29 +11277,6 @@ for (var COLLECTION_NAME in DOMIterables) {
|
|
|
11214
11277
|
/* unused harmony reexport * */
|
|
11215
11278
|
|
|
11216
11279
|
|
|
11217
|
-
/***/ }),
|
|
11218
|
-
|
|
11219
|
-
/***/ "ded0":
|
|
11220
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
11221
|
-
|
|
11222
|
-
// Imports
|
|
11223
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
11224
|
-
var ___CSS_LOADER_GET_URL_IMPORT___ = __webpack_require__("1de5");
|
|
11225
|
-
var ___CSS_LOADER_URL_IMPORT_0___ = __webpack_require__("f051");
|
|
11226
|
-
var ___CSS_LOADER_URL_IMPORT_1___ = __webpack_require__("0924");
|
|
11227
|
-
var ___CSS_LOADER_URL_IMPORT_2___ = __webpack_require__("eb91");
|
|
11228
|
-
var ___CSS_LOADER_URL_IMPORT_3___ = __webpack_require__("a884");
|
|
11229
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
11230
|
-
var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);
|
|
11231
|
-
var ___CSS_LOADER_URL_REPLACEMENT_1___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_1___);
|
|
11232
|
-
var ___CSS_LOADER_URL_REPLACEMENT_2___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_2___);
|
|
11233
|
-
var ___CSS_LOADER_URL_REPLACEMENT_3___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_3___);
|
|
11234
|
-
// Module
|
|
11235
|
-
exports.push([module.i, ".table[data-v-247d3bf0]{position:relative;width:100%;height:100%;padding-top:33px}.table.non-header[data-v-247d3bf0]{padding-top:0}.table .table-header[data-v-247d3bf0]{overflow:hidden;position:absolute;top:0;width:100%;height:33px;border-top:2px solid #7f7f7f;border-bottom:1px solid #cfcfcf}.dark .table .table-header[data-v-247d3bf0]{border-top:2px solid;border-bottom:1px solid}.table .table-header.non-border[data-v-247d3bf0]{border-bottom:2px solid #7f7f7f!important}.column-list[data-v-247d3bf0]{width:100%;white-space:nowrap;list-style-type:none}.column[data-v-247d3bf0],.column-list[data-v-247d3bf0]{position:relative;height:100%}.column[data-v-247d3bf0]{display:inline-flex;padding:0 10px;line-height:30px;justify-content:center;align-items:center;text-align:center;vertical-align:top;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-right:1px solid #cfcfcf}.dark .column[data-v-247d3bf0]{border-right:1px solid}.column[data-v-247d3bf0]:last-child{border-right:0;margin-right:20px}.column:last-child .column-resize[data-v-247d3bf0]{cursor:default!important}.column .sort-icon[data-v-247d3bf0]{display:inline-block;float:right;font-size:14px;line-height:30px}.column .ev-icon-filter[data-v-247d3bf0]{font-size:13px;color:#005cc8}.column.db-icon[data-v-247d3bf0],.column.user-icon[data-v-247d3bf0]{width:42px!important;min-width:42px!important;border-right:0}.column-name[data-v-247d3bf0]{display:inline-block;float:left;overflow:hidden;text-overflow:ellipsis;font-weight:700;font-size:14px}.column-filter[data-v-247d3bf0]{display:none;position:absolute;right:0;background-color:transparent}.column-filter i[data-v-247d3bf0]{margin-right:2px;font-size:14px;vertical-align:middle}.column:hover .column-filter[data-v-247d3bf0]{display:block;cursor:pointer}.column-filter-status[data-v-247d3bf0]{position:absolute;left:0;background-color:transparent}.column-filter-status .ei[data-v-247d3bf0]{font-size:10px;vertical-align:top}.column-resize[data-v-247d3bf0]{position:absolute;bottom:0;right:-5px;width:10px;height:100%}.column-resize[data-v-247d3bf0]:hover{cursor:col-resize}.table-body[data-v-247d3bf0]{position:relative;width:100%;height:100%;overflow:auto;overflow-anchor:none}.table-body table[data-v-247d3bf0]{clear:both;border-spacing:0;border-collapse:collapse;width:inherit}.table-body.stripe tr[data-v-247d3bf0]:nth-child(2n){background:hsla(0,0%,89.8%,.6)}.table-body.bottom-border[data-v-247d3bf0]{border-bottom:1px solid #cfcfcf}.dark .table-body.bottom-border[data-v-247d3bf0]{border-bottom:1px solid}.table-body .row[data-v-247d3bf0]{white-space:nowrap;border-bottom:1px solid #cfcfcf}.dark .table-body .row[data-v-247d3bf0]{border-bottom:1px solid}.table-body .row.selected[data-v-247d3bf0]{background:rgba(219,240,249,.6)!important;color:inherit!important;font-size:inherit!important}.dark .table-body .row.selected[data-v-247d3bf0]{background:!important;color:inherit!important;font-size:inherit!important}.table-body .row.highlight[data-v-247d3bf0]{background:#5ab7ff;color:#fff}.table-body .cell[data-v-247d3bf0]{display:inline-block;padding:0 10px;text-align:center;max-width:100%;white-space:nowrap;text-overflow:ellipsis;border-right:1px solid #cfcfcf}.dark .table-body .cell[data-v-247d3bf0]{border-right:1px solid}.table-body .cell div[data-v-247d3bf0]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.table-body .cell.row-checkbox[data-v-247d3bf0]{display:inline-flex;justify-content:center;align-items:center}.table-body .cell.render[data-v-247d3bf0]{overflow:initial}.table-body .cell.float[data-v-247d3bf0],.table-body .cell.number[data-v-247d3bf0]{text-align:right}.table-body .cell.string[data-v-247d3bf0],.table-body .cell.stringNumber[data-v-247d3bf0]{text-align:left}.table-body .cell.center[data-v-247d3bf0]{text-align:center}.table-body .cell.left[data-v-247d3bf0]{text-align:left}.table-body .cell.left .wrap[data-v-247d3bf0]{justify-content:flex-start}.table-body .cell.right[data-v-247d3bf0]{text-align:right}.table-body .cell.right .wrap[data-v-247d3bf0]{justify-content:flex-end}.table-body .cell[data-v-247d3bf0]:last-child{border-right:0}.table-body .cell.user-icon[data-v-247d3bf0]{height:auto!important}.table-body .cell.db-icon[data-v-247d3bf0],.table-body .cell.user-icon[data-v-247d3bf0]{width:42px!important;min-width:42px!important;border-right:0}.table-resize-line[data-v-247d3bf0]{position:absolute;top:0;bottom:0;width:1px;border-right:1px solid #cfcfcf}.dark .table-resize-line[data-v-247d3bf0]{border-right:1px solid}.vscroll-spacer[data-v-247d3bf0]{opacity:0;clear:both}[v-cloak][data-v-247d3bf0]{display:none}.ev-checkbox[data-v-247d3bf0]{margin:0}.non-border[data-v-247d3bf0]{border:none!important}.is-empty[data-v-247d3bf0]{height:30px;text-align:center}.postgresql[data-v-247d3bf0]{background:url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ") no-repeat 50%}.oracle[data-v-247d3bf0]{background:url(" + ___CSS_LOADER_URL_REPLACEMENT_1___ + ") no-repeat 50%}.mongodb[data-v-247d3bf0]{background:url(" + ___CSS_LOADER_URL_REPLACEMENT_2___ + ") no-repeat 50%}.mysql[data-v-247d3bf0]{background:url(" + ___CSS_LOADER_URL_REPLACEMENT_3___ + ") no-repeat 50%}", ""]);
|
|
11236
|
-
// Exports
|
|
11237
|
-
module.exports = exports;
|
|
11238
|
-
|
|
11239
|
-
|
|
11240
11280
|
/***/ }),
|
|
11241
11281
|
|
|
11242
11282
|
/***/ "df60":
|
|
@@ -26251,39 +26291,39 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
|
|
|
26251
26291
|
var vue3_observe_visibility_common = __webpack_require__("196e");
|
|
26252
26292
|
var vue3_observe_visibility_common_default = /*#__PURE__*/__webpack_require__.n(vue3_observe_visibility_common);
|
|
26253
26293
|
|
|
26254
|
-
// 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=
|
|
26294
|
+
// 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=6493e3f4&scoped=true
|
|
26255
26295
|
|
|
26256
26296
|
|
|
26257
26297
|
|
|
26258
26298
|
|
|
26259
26299
|
|
|
26260
|
-
var _withId = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withScopeId"])("data-v-
|
|
26300
|
+
var _withId = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withScopeId"])("data-v-6493e3f4");
|
|
26261
26301
|
|
|
26262
|
-
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-
|
|
26302
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-6493e3f4");
|
|
26263
26303
|
|
|
26264
|
-
var
|
|
26304
|
+
var Gridvue_type_template_id_6493e3f4_scoped_true_hoisted_1 = {
|
|
26265
26305
|
class: "column-list"
|
|
26266
26306
|
};
|
|
26267
|
-
var
|
|
26307
|
+
var Gridvue_type_template_id_6493e3f4_scoped_true_hoisted_2 = {
|
|
26268
26308
|
key: 0,
|
|
26269
26309
|
class: "column-filter-status"
|
|
26270
26310
|
};
|
|
26271
|
-
var
|
|
26311
|
+
var Gridvue_type_template_id_6493e3f4_scoped_true_hoisted_3 = {
|
|
26272
26312
|
key: 0
|
|
26273
26313
|
};
|
|
26274
26314
|
|
|
26275
|
-
var
|
|
26315
|
+
var Gridvue_type_template_id_6493e3f4_scoped_true_hoisted_4 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("td", {
|
|
26276
26316
|
class: "is-empty"
|
|
26277
26317
|
}, "No records", -1);
|
|
26278
26318
|
|
|
26279
|
-
var
|
|
26319
|
+
var Gridvue_type_template_id_6493e3f4_scoped_true_hoisted_5 = {
|
|
26280
26320
|
ref: "resizeLine",
|
|
26281
26321
|
class: "table-resize-line"
|
|
26282
26322
|
};
|
|
26283
26323
|
|
|
26284
26324
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])();
|
|
26285
26325
|
|
|
26286
|
-
var
|
|
26326
|
+
var Gridvue_type_template_id_6493e3f4_scoped_true_render = /*#__PURE__*/_withId(function (_ctx, _cache, $props, $setup, $data, $options) {
|
|
26287
26327
|
var _component_toolbar = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("toolbar");
|
|
26288
26328
|
|
|
26289
26329
|
var _component_ev_checkbox = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ev-checkbox");
|
|
@@ -26294,7 +26334,9 @@ var Gridvue_type_template_id_247d3bf0_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
26294
26334
|
|
|
26295
26335
|
var _component_filter_window = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("filter-window");
|
|
26296
26336
|
|
|
26297
|
-
var
|
|
26337
|
+
var _component_grid_summary = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("grid-summary");
|
|
26338
|
+
|
|
26339
|
+
var _component_grid_pagination = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("grid-pagination");
|
|
26298
26340
|
|
|
26299
26341
|
var _directive_resize = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveDirective"])("resize");
|
|
26300
26342
|
|
|
@@ -26332,7 +26374,7 @@ var Gridvue_type_template_id_247d3bf0_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
26332
26374
|
'table-header': true,
|
|
26333
26375
|
'non-border': !!$setup.borderStyle
|
|
26334
26376
|
}
|
|
26335
|
-
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("ul",
|
|
26377
|
+
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("ul", Gridvue_type_template_id_6493e3f4_scoped_true_hoisted_1, [_ctx.useCheckbox.use ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("li", {
|
|
26336
26378
|
key: 0,
|
|
26337
26379
|
class: {
|
|
26338
26380
|
'column': true,
|
|
@@ -26365,7 +26407,7 @@ var Gridvue_type_template_id_247d3bf0_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
26365
26407
|
}
|
|
26366
26408
|
}, [_ctx.isFiltering && (_ctx$filterList$colum = _ctx.filterList[column.field]) !== null && _ctx$filterList$colum !== void 0 && _ctx$filterList$colum.find(function (item) {
|
|
26367
26409
|
return item.use;
|
|
26368
|
-
}) ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("span",
|
|
26410
|
+
}) ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("span", Gridvue_type_template_id_6493e3f4_scoped_true_hoisted_2, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_ev_icon, {
|
|
26369
26411
|
icon: "ev-icon-filter"
|
|
26370
26412
|
})])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("span", {
|
|
26371
26413
|
title: column.caption,
|
|
@@ -26381,7 +26423,7 @@ var Gridvue_type_template_id_247d3bf0_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
26381
26423
|
})) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.sortOrder === 'asc' ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_ev_icon, {
|
|
26382
26424
|
key: 1,
|
|
26383
26425
|
icon: "ev-icon-triangle-up"
|
|
26384
|
-
})) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true),
|
|
26426
|
+
})) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.isFiltering ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("span", {
|
|
26385
26427
|
key: 2,
|
|
26386
26428
|
class: "column-filter",
|
|
26387
26429
|
onClickCapture: function onClickCapture($event) {
|
|
@@ -26422,7 +26464,7 @@ var Gridvue_type_template_id_247d3bf0_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
26422
26464
|
"data-index": row[0],
|
|
26423
26465
|
class: {
|
|
26424
26466
|
row: true,
|
|
26425
|
-
selected: row[
|
|
26467
|
+
selected: row[3],
|
|
26426
26468
|
'non-border': !!$setup.borderStyle && $setup.borderStyle !== 'rows',
|
|
26427
26469
|
highlight: row[0] === $setup.highlightIdx
|
|
26428
26470
|
},
|
|
@@ -26475,16 +26517,16 @@ var Gridvue_type_template_id_247d3bf0_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
26475
26517
|
}
|
|
26476
26518
|
}) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div", {
|
|
26477
26519
|
key: 1,
|
|
26478
|
-
title: $setup.getConvertValue(column
|
|
26479
|
-
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])($setup.getConvertValue(column
|
|
26520
|
+
title: $setup.getConvertValue(column, row[2][column.index])
|
|
26521
|
+
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])($setup.getConvertValue(column, row[2][column.index])), 9, ["title"]))], 14, ["data-name", "data-index"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64);
|
|
26480
26522
|
}), 128))], 42, ["data-index", "onClick", "onDblclick"]);
|
|
26481
|
-
}), 128)), !_ctx.viewStore.length ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("tr",
|
|
26523
|
+
}), 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_6493e3f4_scoped_true_hoisted_3, [Gridvue_type_template_id_6493e3f4_scoped_true_hoisted_4])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)])]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("div", {
|
|
26482
26524
|
style: "height: ".concat(_ctx.vScrollBottomHeight, "px;"),
|
|
26483
26525
|
class: "vscroll-spacer"
|
|
26484
26526
|
}, null, 4), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_ev_context_menu, {
|
|
26485
26527
|
ref: "menu",
|
|
26486
26528
|
items: _ctx.contextMenuItems
|
|
26487
|
-
}, null, 8, ["items"])], 34), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("div",
|
|
26529
|
+
}, null, 8, ["items"])], 34), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("div", Gridvue_type_template_id_6493e3f4_scoped_true_hoisted_5, null, 512), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], _ctx.showResizeLine]]), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_filter_window, {
|
|
26488
26530
|
"is-show": _ctx.showFilterWindow,
|
|
26489
26531
|
"target-column": _ctx.currentFilter.column,
|
|
26490
26532
|
"filter-items": _ctx.currentFilter.items,
|
|
@@ -26493,8 +26535,18 @@ var Gridvue_type_template_id_247d3bf0_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
26493
26535
|
}, null, 8, ["is-show", "target-column", "filter-items", "onApplyFilter", "onBeforeClose"]), [[external_commonjs_vue_commonjs2_vue_root_Vue_["vShow"], _ctx.showFilterWindow]])], 2)], 16), [[_directive_resize, $setup.onResize], [_directive_observe_visibility, {
|
|
26494
26536
|
callback: $setup.onShow,
|
|
26495
26537
|
once: true
|
|
26496
|
-
}]]),
|
|
26538
|
+
}]]), $setup.useSummary ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_grid_summary, {
|
|
26497
26539
|
key: 1,
|
|
26540
|
+
"ordered-columns": _ctx.orderedColumns,
|
|
26541
|
+
stores: $setup.stores,
|
|
26542
|
+
"use-checkbox": _ctx.useCheckbox.use,
|
|
26543
|
+
"style-option": {
|
|
26544
|
+
borderStyle: $setup.borderStyle,
|
|
26545
|
+
minWidth: _ctx.minWidth,
|
|
26546
|
+
rowHeight: _ctx.rowHeight
|
|
26547
|
+
}
|
|
26548
|
+
}, null, 8, ["ordered-columns", "stores", "use-checkbox", "style-option"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), _ctx.usePage && !_ctx.isInfinite ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_grid_pagination, {
|
|
26549
|
+
key: 2,
|
|
26498
26550
|
modelValue: _ctx.currentPage,
|
|
26499
26551
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = function ($event) {
|
|
26500
26552
|
return _ctx.currentPage = $event;
|
|
@@ -26506,7 +26558,7 @@ var Gridvue_type_template_id_247d3bf0_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
26506
26558
|
order: _ctx.order
|
|
26507
26559
|
}, null, 8, ["modelValue", "total", "per-page", "visible-page", "show-page-info", "order"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64);
|
|
26508
26560
|
});
|
|
26509
|
-
// CONCATENATED MODULE: ./src/components/grid/Grid.vue?vue&type=template&id=
|
|
26561
|
+
// CONCATENATED MODULE: ./src/components/grid/Grid.vue?vue&type=template&id=6493e3f4&scoped=true
|
|
26510
26562
|
|
|
26511
26563
|
// 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.toolbar.vue?vue&type=template&id=3c245986
|
|
26512
26564
|
|
|
@@ -26536,110 +26588,6 @@ var grid_toolbarvue_type_style_index_0_id_3c245986_lang_scss = __webpack_require
|
|
|
26536
26588
|
grid_toolbarvue_type_script_lang_js.render = grid_toolbarvue_type_template_id_3c245986_render
|
|
26537
26589
|
|
|
26538
26590
|
/* harmony default export */ var grid_toolbar = (grid_toolbarvue_type_script_lang_js);
|
|
26539
|
-
// 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.pagination.vue?vue&type=template&id=210f4f6a&scoped=true
|
|
26540
|
-
|
|
26541
|
-
|
|
26542
|
-
var grid_paginationvue_type_template_id_210f4f6a_scoped_true_withId = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withScopeId"])("data-v-210f4f6a");
|
|
26543
|
-
|
|
26544
|
-
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-210f4f6a");
|
|
26545
|
-
|
|
26546
|
-
var grid_paginationvue_type_template_id_210f4f6a_scoped_true_hoisted_1 = {
|
|
26547
|
-
class: "grid-pagination"
|
|
26548
|
-
};
|
|
26549
|
-
|
|
26550
|
-
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])();
|
|
26551
|
-
|
|
26552
|
-
var grid_paginationvue_type_template_id_210f4f6a_scoped_true_render = /*#__PURE__*/grid_paginationvue_type_template_id_210f4f6a_scoped_true_withId(function (_ctx, _cache, $props, $setup, $data, $options) {
|
|
26553
|
-
var _component_ev_pagination = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ev-pagination");
|
|
26554
|
-
|
|
26555
|
-
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div", grid_paginationvue_type_template_id_210f4f6a_scoped_true_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_ev_pagination, {
|
|
26556
|
-
modelValue: $setup.currentValue,
|
|
26557
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = function ($event) {
|
|
26558
|
-
return $setup.currentValue = $event;
|
|
26559
|
-
}),
|
|
26560
|
-
total: $props.total,
|
|
26561
|
-
"per-page": $props.perPage,
|
|
26562
|
-
"visible-page": $props.visiblePage,
|
|
26563
|
-
"show-page-info": $props.showPageInfo,
|
|
26564
|
-
order: $props.order,
|
|
26565
|
-
onChange: $setup.changePage
|
|
26566
|
-
}, null, 8, ["modelValue", "total", "per-page", "visible-page", "show-page-info", "order", "onChange"])]);
|
|
26567
|
-
});
|
|
26568
|
-
// CONCATENATED MODULE: ./src/components/grid/grid.pagination.vue?vue&type=template&id=210f4f6a&scoped=true
|
|
26569
|
-
|
|
26570
|
-
// 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/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/components/grid/grid.pagination.vue?vue&type=script&lang=js
|
|
26571
|
-
|
|
26572
|
-
|
|
26573
|
-
|
|
26574
|
-
/* harmony default export */ var grid_paginationvue_type_script_lang_js = ({
|
|
26575
|
-
name: 'EvGridPagination',
|
|
26576
|
-
props: {
|
|
26577
|
-
total: {
|
|
26578
|
-
type: [Number, String],
|
|
26579
|
-
default: 0
|
|
26580
|
-
},
|
|
26581
|
-
visiblePage: {
|
|
26582
|
-
type: [Number, String],
|
|
26583
|
-
default: 8
|
|
26584
|
-
},
|
|
26585
|
-
perPage: {
|
|
26586
|
-
type: [Number, String],
|
|
26587
|
-
default: 20
|
|
26588
|
-
},
|
|
26589
|
-
modelValue: {
|
|
26590
|
-
type: [Number, String],
|
|
26591
|
-
default: 1
|
|
26592
|
-
},
|
|
26593
|
-
showPageInfo: {
|
|
26594
|
-
type: Boolean,
|
|
26595
|
-
default: false
|
|
26596
|
-
},
|
|
26597
|
-
order: {
|
|
26598
|
-
type: String,
|
|
26599
|
-
default: 'left',
|
|
26600
|
-
validator: function validator(val) {
|
|
26601
|
-
return ['left', 'right', 'center'].includes(val);
|
|
26602
|
-
}
|
|
26603
|
-
}
|
|
26604
|
-
},
|
|
26605
|
-
emits: {
|
|
26606
|
-
'update:modelValue': null
|
|
26607
|
-
},
|
|
26608
|
-
setup: function setup(props, _ref) {
|
|
26609
|
-
var emit = _ref.emit;
|
|
26610
|
-
var currentValue = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(props.modelValue);
|
|
26611
|
-
|
|
26612
|
-
var changePage = function changePage(page) {
|
|
26613
|
-
currentValue.value = page > 0 ? page : 1;
|
|
26614
|
-
emit('update:modelValue', currentValue.value);
|
|
26615
|
-
};
|
|
26616
|
-
|
|
26617
|
-
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
26618
|
-
return props.modelValue;
|
|
26619
|
-
}, function (value) {
|
|
26620
|
-
currentValue.value = value;
|
|
26621
|
-
});
|
|
26622
|
-
return {
|
|
26623
|
-
currentValue: currentValue,
|
|
26624
|
-
changePage: changePage
|
|
26625
|
-
};
|
|
26626
|
-
}
|
|
26627
|
-
});
|
|
26628
|
-
// CONCATENATED MODULE: ./src/components/grid/grid.pagination.vue?vue&type=script&lang=js
|
|
26629
|
-
|
|
26630
|
-
// EXTERNAL MODULE: ./src/components/grid/grid.pagination.vue?vue&type=style&index=0&id=210f4f6a&lang=scss&scoped=true
|
|
26631
|
-
var grid_paginationvue_type_style_index_0_id_210f4f6a_lang_scss_scoped_true = __webpack_require__("5e0f");
|
|
26632
|
-
|
|
26633
|
-
// CONCATENATED MODULE: ./src/components/grid/grid.pagination.vue
|
|
26634
|
-
|
|
26635
|
-
|
|
26636
|
-
|
|
26637
|
-
|
|
26638
|
-
|
|
26639
|
-
grid_paginationvue_type_script_lang_js.render = grid_paginationvue_type_template_id_210f4f6a_scoped_true_render
|
|
26640
|
-
grid_paginationvue_type_script_lang_js.__scopeId = "data-v-210f4f6a"
|
|
26641
|
-
|
|
26642
|
-
/* harmony default export */ var grid_pagination = (grid_paginationvue_type_script_lang_js);
|
|
26643
26591
|
// 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.filter.window.vue?vue&type=template&id=138f0008&scoped=true
|
|
26644
26592
|
|
|
26645
26593
|
|
|
@@ -27162,6 +27110,360 @@ grid_filter_windowvue_type_script_lang_js.render = grid_filter_windowvue_type_te
|
|
|
27162
27110
|
grid_filter_windowvue_type_script_lang_js.__scopeId = "data-v-138f0008"
|
|
27163
27111
|
|
|
27164
27112
|
/* harmony default export */ var grid_filter_window = (grid_filter_windowvue_type_script_lang_js);
|
|
27113
|
+
// 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.pagination.vue?vue&type=template&id=210f4f6a&scoped=true
|
|
27114
|
+
|
|
27115
|
+
|
|
27116
|
+
var grid_paginationvue_type_template_id_210f4f6a_scoped_true_withId = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withScopeId"])("data-v-210f4f6a");
|
|
27117
|
+
|
|
27118
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-210f4f6a");
|
|
27119
|
+
|
|
27120
|
+
var grid_paginationvue_type_template_id_210f4f6a_scoped_true_hoisted_1 = {
|
|
27121
|
+
class: "grid-pagination"
|
|
27122
|
+
};
|
|
27123
|
+
|
|
27124
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])();
|
|
27125
|
+
|
|
27126
|
+
var grid_paginationvue_type_template_id_210f4f6a_scoped_true_render = /*#__PURE__*/grid_paginationvue_type_template_id_210f4f6a_scoped_true_withId(function (_ctx, _cache, $props, $setup, $data, $options) {
|
|
27127
|
+
var _component_ev_pagination = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ev-pagination");
|
|
27128
|
+
|
|
27129
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div", grid_paginationvue_type_template_id_210f4f6a_scoped_true_hoisted_1, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_ev_pagination, {
|
|
27130
|
+
modelValue: $setup.currentValue,
|
|
27131
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = function ($event) {
|
|
27132
|
+
return $setup.currentValue = $event;
|
|
27133
|
+
}),
|
|
27134
|
+
total: $props.total,
|
|
27135
|
+
"per-page": $props.perPage,
|
|
27136
|
+
"visible-page": $props.visiblePage,
|
|
27137
|
+
"show-page-info": $props.showPageInfo,
|
|
27138
|
+
order: $props.order,
|
|
27139
|
+
onChange: $setup.changePage
|
|
27140
|
+
}, null, 8, ["modelValue", "total", "per-page", "visible-page", "show-page-info", "order", "onChange"])]);
|
|
27141
|
+
});
|
|
27142
|
+
// CONCATENATED MODULE: ./src/components/grid/grid.pagination.vue?vue&type=template&id=210f4f6a&scoped=true
|
|
27143
|
+
|
|
27144
|
+
// 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/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/components/grid/grid.pagination.vue?vue&type=script&lang=js
|
|
27145
|
+
|
|
27146
|
+
|
|
27147
|
+
|
|
27148
|
+
/* harmony default export */ var grid_paginationvue_type_script_lang_js = ({
|
|
27149
|
+
name: 'EvGridPagination',
|
|
27150
|
+
props: {
|
|
27151
|
+
total: {
|
|
27152
|
+
type: [Number, String],
|
|
27153
|
+
default: 0
|
|
27154
|
+
},
|
|
27155
|
+
visiblePage: {
|
|
27156
|
+
type: [Number, String],
|
|
27157
|
+
default: 8
|
|
27158
|
+
},
|
|
27159
|
+
perPage: {
|
|
27160
|
+
type: [Number, String],
|
|
27161
|
+
default: 20
|
|
27162
|
+
},
|
|
27163
|
+
modelValue: {
|
|
27164
|
+
type: [Number, String],
|
|
27165
|
+
default: 1
|
|
27166
|
+
},
|
|
27167
|
+
showPageInfo: {
|
|
27168
|
+
type: Boolean,
|
|
27169
|
+
default: false
|
|
27170
|
+
},
|
|
27171
|
+
order: {
|
|
27172
|
+
type: String,
|
|
27173
|
+
default: 'left',
|
|
27174
|
+
validator: function validator(val) {
|
|
27175
|
+
return ['left', 'right', 'center'].includes(val);
|
|
27176
|
+
}
|
|
27177
|
+
}
|
|
27178
|
+
},
|
|
27179
|
+
emits: {
|
|
27180
|
+
'update:modelValue': null
|
|
27181
|
+
},
|
|
27182
|
+
setup: function setup(props, _ref) {
|
|
27183
|
+
var emit = _ref.emit;
|
|
27184
|
+
var currentValue = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(props.modelValue);
|
|
27185
|
+
|
|
27186
|
+
var changePage = function changePage(page) {
|
|
27187
|
+
currentValue.value = page > 0 ? page : 1;
|
|
27188
|
+
emit('update:modelValue', currentValue.value);
|
|
27189
|
+
};
|
|
27190
|
+
|
|
27191
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
27192
|
+
return props.modelValue;
|
|
27193
|
+
}, function (value) {
|
|
27194
|
+
currentValue.value = value;
|
|
27195
|
+
});
|
|
27196
|
+
return {
|
|
27197
|
+
currentValue: currentValue,
|
|
27198
|
+
changePage: changePage
|
|
27199
|
+
};
|
|
27200
|
+
}
|
|
27201
|
+
});
|
|
27202
|
+
// CONCATENATED MODULE: ./src/components/grid/grid.pagination.vue?vue&type=script&lang=js
|
|
27203
|
+
|
|
27204
|
+
// EXTERNAL MODULE: ./src/components/grid/grid.pagination.vue?vue&type=style&index=0&id=210f4f6a&lang=scss&scoped=true
|
|
27205
|
+
var grid_paginationvue_type_style_index_0_id_210f4f6a_lang_scss_scoped_true = __webpack_require__("5e0f");
|
|
27206
|
+
|
|
27207
|
+
// CONCATENATED MODULE: ./src/components/grid/grid.pagination.vue
|
|
27208
|
+
|
|
27209
|
+
|
|
27210
|
+
|
|
27211
|
+
|
|
27212
|
+
|
|
27213
|
+
grid_paginationvue_type_script_lang_js.render = grid_paginationvue_type_template_id_210f4f6a_scoped_true_render
|
|
27214
|
+
grid_paginationvue_type_script_lang_js.__scopeId = "data-v-210f4f6a"
|
|
27215
|
+
|
|
27216
|
+
/* harmony default export */ var grid_pagination = (grid_paginationvue_type_script_lang_js);
|
|
27217
|
+
// 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.summary.vue?vue&type=template&id=85d2d498&scoped=true
|
|
27218
|
+
|
|
27219
|
+
|
|
27220
|
+
|
|
27221
|
+
var grid_summaryvue_type_template_id_85d2d498_scoped_true_withId = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withScopeId"])("data-v-85d2d498");
|
|
27222
|
+
|
|
27223
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-85d2d498");
|
|
27224
|
+
|
|
27225
|
+
var grid_summaryvue_type_template_id_85d2d498_scoped_true_hoisted_1 = {
|
|
27226
|
+
class: "column-list"
|
|
27227
|
+
};
|
|
27228
|
+
|
|
27229
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])();
|
|
27230
|
+
|
|
27231
|
+
var grid_summaryvue_type_template_id_85d2d498_scoped_true_render = /*#__PURE__*/grid_summaryvue_type_template_id_85d2d498_scoped_true_withId(function (_ctx, _cache, $props, $setup, $data, $options) {
|
|
27232
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div", {
|
|
27233
|
+
class: {
|
|
27234
|
+
'grid-summary': true,
|
|
27235
|
+
'non-border': $setup.styleInfo.borderStyle === 'none'
|
|
27236
|
+
}
|
|
27237
|
+
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("ul", grid_summaryvue_type_template_id_85d2d498_scoped_true_hoisted_1, [$setup.showCheckbox ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("li", {
|
|
27238
|
+
key: 0,
|
|
27239
|
+
class: {
|
|
27240
|
+
'column': true,
|
|
27241
|
+
'non-border': !!$setup.styleInfo.borderStyle
|
|
27242
|
+
},
|
|
27243
|
+
style: {
|
|
27244
|
+
'width': "".concat($setup.styleInfo.minWidth, "px"),
|
|
27245
|
+
'line-height': "".concat($setup.styleInfo.rowHeight, "px")
|
|
27246
|
+
}
|
|
27247
|
+
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("span", {
|
|
27248
|
+
style: {
|
|
27249
|
+
'height': "".concat($setup.styleInfo.rowHeight, "px")
|
|
27250
|
+
}
|
|
27251
|
+
}, null, 4)], 6)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), (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"])($setup.columns, function (column, index) {
|
|
27252
|
+
var _class;
|
|
27253
|
+
|
|
27254
|
+
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"], {
|
|
27255
|
+
key: "summary_".concat(index)
|
|
27256
|
+
}, [!column.hide ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("li", {
|
|
27257
|
+
key: 0,
|
|
27258
|
+
class: (_class = {
|
|
27259
|
+
column: true,
|
|
27260
|
+
'non-border': !!$setup.styleInfo.borderStyle
|
|
27261
|
+
}, _defineProperty(_class, column.type, column.type), _defineProperty(_class, column.align, column.align), _class),
|
|
27262
|
+
style: {
|
|
27263
|
+
width: "".concat(column.width, "px"),
|
|
27264
|
+
'min-width': "".concat($setup.styleInfo.minWidth, "px"),
|
|
27265
|
+
'line-height': "".concat($setup.styleInfo.rowHeight, "px")
|
|
27266
|
+
}
|
|
27267
|
+
}, [column.summaryType || column.summaryRenderer ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("span", {
|
|
27268
|
+
key: 0,
|
|
27269
|
+
style: {
|
|
27270
|
+
width: '100%',
|
|
27271
|
+
height: "".concat($setup.styleInfo.rowHeight, "px")
|
|
27272
|
+
}
|
|
27273
|
+
}, [column.summaryRenderer ? (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"], {
|
|
27274
|
+
key: 0
|
|
27275
|
+
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])($setup.getSummaryRenderer(column)), 1)], 64)) : (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"], {
|
|
27276
|
+
key: 1
|
|
27277
|
+
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createTextVNode"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])($setup.getSummaryValue(column, column.summaryType)), 1)], 64))], 4)) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("span", {
|
|
27278
|
+
key: 1,
|
|
27279
|
+
style: {
|
|
27280
|
+
'height': "".concat($setup.styleInfo.rowHeight, "px")
|
|
27281
|
+
}
|
|
27282
|
+
}, null, 4))], 6)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64);
|
|
27283
|
+
}), 128))])], 2);
|
|
27284
|
+
});
|
|
27285
|
+
// CONCATENATED MODULE: ./src/components/grid/grid.summary.vue?vue&type=template&id=85d2d498&scoped=true
|
|
27286
|
+
|
|
27287
|
+
// 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/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/components/grid/grid.summary.vue?vue&type=script&lang=js
|
|
27288
|
+
|
|
27289
|
+
|
|
27290
|
+
|
|
27291
|
+
|
|
27292
|
+
|
|
27293
|
+
|
|
27294
|
+
|
|
27295
|
+
|
|
27296
|
+
|
|
27297
|
+
|
|
27298
|
+
|
|
27299
|
+
|
|
27300
|
+
|
|
27301
|
+
|
|
27302
|
+
/* harmony default export */ var grid_summaryvue_type_script_lang_js = ({
|
|
27303
|
+
name: 'EvGridSummary',
|
|
27304
|
+
props: {
|
|
27305
|
+
stores: {
|
|
27306
|
+
type: Object,
|
|
27307
|
+
default: function _default() {
|
|
27308
|
+
return {};
|
|
27309
|
+
}
|
|
27310
|
+
},
|
|
27311
|
+
orderedColumns: {
|
|
27312
|
+
type: Object,
|
|
27313
|
+
default: function _default() {
|
|
27314
|
+
return {};
|
|
27315
|
+
}
|
|
27316
|
+
},
|
|
27317
|
+
useCheckbox: {
|
|
27318
|
+
type: Boolean,
|
|
27319
|
+
default: false
|
|
27320
|
+
},
|
|
27321
|
+
styleOption: {
|
|
27322
|
+
type: Object,
|
|
27323
|
+
default: function _default() {
|
|
27324
|
+
return {};
|
|
27325
|
+
}
|
|
27326
|
+
}
|
|
27327
|
+
},
|
|
27328
|
+
setup: function setup(props) {
|
|
27329
|
+
var ROW_DATA_INDEX = 2;
|
|
27330
|
+
var stores = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
27331
|
+
return props.stores;
|
|
27332
|
+
});
|
|
27333
|
+
var columns = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
27334
|
+
return props.orderedColumns;
|
|
27335
|
+
});
|
|
27336
|
+
var showCheckbox = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
27337
|
+
return props.useCheckbox;
|
|
27338
|
+
});
|
|
27339
|
+
var styleInfo = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
27340
|
+
return props.styleOption;
|
|
27341
|
+
});
|
|
27342
|
+
|
|
27343
|
+
var getConvertValue = function getConvertValue(column, value) {
|
|
27344
|
+
var convertValue = value;
|
|
27345
|
+
|
|
27346
|
+
if (column.type === 'number') {
|
|
27347
|
+
convertValue = numberWithComma(value);
|
|
27348
|
+
convertValue = convertValue === false ? value : convertValue;
|
|
27349
|
+
} else if (column.type === 'float') {
|
|
27350
|
+
var _column$decimal;
|
|
27351
|
+
|
|
27352
|
+
convertValue = convertValue.toFixed((_column$decimal = column.decimal) !== null && _column$decimal !== void 0 ? _column$decimal : 3);
|
|
27353
|
+
}
|
|
27354
|
+
|
|
27355
|
+
return convertValue;
|
|
27356
|
+
};
|
|
27357
|
+
|
|
27358
|
+
var getColumnIndex = function getColumnIndex(field) {
|
|
27359
|
+
return columns.value.findIndex(function (column) {
|
|
27360
|
+
return column.field === field;
|
|
27361
|
+
});
|
|
27362
|
+
};
|
|
27363
|
+
|
|
27364
|
+
var getSummaryValue = function getSummaryValue(column, summaryType) {
|
|
27365
|
+
var result = '';
|
|
27366
|
+
var columnIndex = getColumnIndex(column.field);
|
|
27367
|
+
|
|
27368
|
+
if (columnIndex >= 0) {
|
|
27369
|
+
if (summaryType === 'count') {
|
|
27370
|
+
return stores.value.store.length;
|
|
27371
|
+
}
|
|
27372
|
+
|
|
27373
|
+
if (column.type === 'number' || column.type === 'float') {
|
|
27374
|
+
var columnValues = stores.value.store.map(function (rows) {
|
|
27375
|
+
return rows[ROW_DATA_INDEX][columnIndex];
|
|
27376
|
+
});
|
|
27377
|
+
|
|
27378
|
+
switch (summaryType) {
|
|
27379
|
+
case 'sum':
|
|
27380
|
+
result = columnValues.reduce(function (prev, curr) {
|
|
27381
|
+
var value = Number(curr);
|
|
27382
|
+
|
|
27383
|
+
if (!Number.isNaN(value)) {
|
|
27384
|
+
return prev + curr;
|
|
27385
|
+
}
|
|
27386
|
+
|
|
27387
|
+
return prev;
|
|
27388
|
+
}, 0);
|
|
27389
|
+
break;
|
|
27390
|
+
|
|
27391
|
+
case 'average':
|
|
27392
|
+
result = columnValues.reduce(function (prev, curr) {
|
|
27393
|
+
var value = Number(curr);
|
|
27394
|
+
|
|
27395
|
+
if (!Number.isNaN(value)) {
|
|
27396
|
+
return prev + curr;
|
|
27397
|
+
}
|
|
27398
|
+
|
|
27399
|
+
return prev;
|
|
27400
|
+
}, 0) / columnValues.length;
|
|
27401
|
+
|
|
27402
|
+
if (result % 1 !== 0) {
|
|
27403
|
+
result = result.toFixed(1);
|
|
27404
|
+
}
|
|
27405
|
+
|
|
27406
|
+
break;
|
|
27407
|
+
|
|
27408
|
+
case 'max':
|
|
27409
|
+
result = Math.max.apply(Math, _toConsumableArray(columnValues));
|
|
27410
|
+
break;
|
|
27411
|
+
|
|
27412
|
+
case 'min':
|
|
27413
|
+
result = Math.min.apply(Math, _toConsumableArray(columnValues));
|
|
27414
|
+
break;
|
|
27415
|
+
|
|
27416
|
+
default:
|
|
27417
|
+
break;
|
|
27418
|
+
}
|
|
27419
|
+
|
|
27420
|
+
result = getConvertValue(column, result);
|
|
27421
|
+
}
|
|
27422
|
+
}
|
|
27423
|
+
|
|
27424
|
+
return result;
|
|
27425
|
+
};
|
|
27426
|
+
|
|
27427
|
+
var getSummaryRenderer = function getSummaryRenderer(column) {
|
|
27428
|
+
var str = column.summaryRenderer;
|
|
27429
|
+
var summaryData = column.summaryData ? column.summaryData : [];
|
|
27430
|
+
var fields = [column.field].concat(_toConsumableArray(summaryData));
|
|
27431
|
+
var result = str;
|
|
27432
|
+
fields.forEach(function (name, idx) {
|
|
27433
|
+
var columnIndex = getColumnIndex(name);
|
|
27434
|
+
|
|
27435
|
+
if (columnIndex >= 0) {
|
|
27436
|
+
var value = getSummaryValue(stores.value.orderedColumns[columnIndex], column.summaryType);
|
|
27437
|
+
result = result.replace("{".concat(idx, "}"), value);
|
|
27438
|
+
}
|
|
27439
|
+
});
|
|
27440
|
+
return result;
|
|
27441
|
+
};
|
|
27442
|
+
|
|
27443
|
+
return {
|
|
27444
|
+
columns: columns,
|
|
27445
|
+
styleInfo: styleInfo,
|
|
27446
|
+
showCheckbox: showCheckbox,
|
|
27447
|
+
getSummaryValue: getSummaryValue,
|
|
27448
|
+
getSummaryRenderer: getSummaryRenderer
|
|
27449
|
+
};
|
|
27450
|
+
}
|
|
27451
|
+
});
|
|
27452
|
+
// CONCATENATED MODULE: ./src/components/grid/grid.summary.vue?vue&type=script&lang=js
|
|
27453
|
+
|
|
27454
|
+
// EXTERNAL MODULE: ./src/components/grid/grid.summary.vue?vue&type=style&index=0&id=85d2d498&lang=scss&scoped=true
|
|
27455
|
+
var grid_summaryvue_type_style_index_0_id_85d2d498_lang_scss_scoped_true = __webpack_require__("7dc3");
|
|
27456
|
+
|
|
27457
|
+
// CONCATENATED MODULE: ./src/components/grid/grid.summary.vue
|
|
27458
|
+
|
|
27459
|
+
|
|
27460
|
+
|
|
27461
|
+
|
|
27462
|
+
|
|
27463
|
+
grid_summaryvue_type_script_lang_js.render = grid_summaryvue_type_template_id_85d2d498_scoped_true_render
|
|
27464
|
+
grid_summaryvue_type_script_lang_js.__scopeId = "data-v-85d2d498"
|
|
27465
|
+
|
|
27466
|
+
/* harmony default export */ var grid_summary = (grid_summaryvue_type_script_lang_js);
|
|
27165
27467
|
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseIsMatch.js
|
|
27166
27468
|
|
|
27167
27469
|
|
|
@@ -28237,9 +28539,10 @@ var uses_this = undefined;
|
|
|
28237
28539
|
|
|
28238
28540
|
|
|
28239
28541
|
|
|
28240
|
-
var
|
|
28542
|
+
var ROW_INDEX = 0;
|
|
28241
28543
|
var uses_ROW_CHECK_INDEX = 1;
|
|
28242
28544
|
var uses_ROW_DATA_INDEX = 2;
|
|
28545
|
+
var uses_ROW_SELECT_INDEX = 3;
|
|
28243
28546
|
var uses_commonFunctions = function commonFunctions() {
|
|
28244
28547
|
var _getCurrentInstance = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["getCurrentInstance"])(),
|
|
28245
28548
|
props = _getCurrentInstance.props;
|
|
@@ -28283,20 +28586,22 @@ var uses_commonFunctions = function commonFunctions() {
|
|
|
28283
28586
|
/**
|
|
28284
28587
|
* 데이터 타입에 따라 변환된 데이터을 반환한다.
|
|
28285
28588
|
*
|
|
28286
|
-
* @param {
|
|
28589
|
+
* @param {object} column - 컬럼 정보
|
|
28287
28590
|
* @param {number|string} value - 데이터
|
|
28288
28591
|
* @returns {number|string} 변환된 데이터
|
|
28289
28592
|
*/
|
|
28290
28593
|
|
|
28291
28594
|
|
|
28292
|
-
var getConvertValue = function getConvertValue(
|
|
28595
|
+
var getConvertValue = function getConvertValue(column, value) {
|
|
28293
28596
|
var convertValue = value;
|
|
28294
28597
|
|
|
28295
|
-
if (type === 'number') {
|
|
28598
|
+
if (column.type === 'number') {
|
|
28296
28599
|
convertValue = numberWithComma(value);
|
|
28297
28600
|
convertValue = convertValue === false ? value : convertValue;
|
|
28298
|
-
} else if (type === 'float') {
|
|
28299
|
-
|
|
28601
|
+
} else if (column.type === 'float') {
|
|
28602
|
+
var _column$decimal;
|
|
28603
|
+
|
|
28604
|
+
convertValue = convertValue.toFixed((_column$decimal = column.decimal) !== null && _column$decimal !== void 0 ? _column$decimal : 3);
|
|
28300
28605
|
}
|
|
28301
28606
|
|
|
28302
28607
|
return convertValue;
|
|
@@ -28366,7 +28671,7 @@ var scrollEvent = function scrollEvent(params) {
|
|
|
28366
28671
|
firstVisibleIndex = 0;
|
|
28367
28672
|
}
|
|
28368
28673
|
|
|
28369
|
-
var lastVisibleIndex = firstVisibleIndex + rowCount;
|
|
28674
|
+
var lastVisibleIndex = firstVisibleIndex + rowCount + 1;
|
|
28370
28675
|
var firstIndex = Math.max(firstVisibleIndex, 0);
|
|
28371
28676
|
var lastIndex = lastVisibleIndex;
|
|
28372
28677
|
stores.viewStore = store.slice(firstIndex, lastIndex);
|
|
@@ -28647,7 +28952,7 @@ var uses_clickEvent = function clickEvent(params) {
|
|
|
28647
28952
|
var _getCurrentInstance3 = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["getCurrentInstance"])(),
|
|
28648
28953
|
emit = _getCurrentInstance3.emit;
|
|
28649
28954
|
|
|
28650
|
-
var selectInfo = params;
|
|
28955
|
+
var selectInfo = params.selectInfo;
|
|
28651
28956
|
|
|
28652
28957
|
var getClickedRowData = function getClickedRowData(event, row) {
|
|
28653
28958
|
var tagName = event.target.tagName.toLowerCase();
|
|
@@ -28662,7 +28967,7 @@ var uses_clickEvent = function clickEvent(params) {
|
|
|
28662
28967
|
return {
|
|
28663
28968
|
event: event,
|
|
28664
28969
|
rowData: row[uses_ROW_DATA_INDEX],
|
|
28665
|
-
rowIndex: row[
|
|
28970
|
+
rowIndex: row[ROW_INDEX],
|
|
28666
28971
|
cellName: cellInfo.name,
|
|
28667
28972
|
cellIndex: cellInfo.index
|
|
28668
28973
|
};
|
|
@@ -28675,18 +28980,44 @@ var uses_clickEvent = function clickEvent(params) {
|
|
|
28675
28980
|
*/
|
|
28676
28981
|
|
|
28677
28982
|
|
|
28983
|
+
var timer = null;
|
|
28984
|
+
|
|
28678
28985
|
var onRowClick = function onRowClick(event, row) {
|
|
28679
28986
|
if (event.target && event.target.parentElement && event.target.parentElement.classList.contains('row-checkbox-input')) {
|
|
28680
28987
|
return false;
|
|
28681
28988
|
}
|
|
28682
28989
|
|
|
28683
|
-
|
|
28684
|
-
|
|
28685
|
-
selectInfo.
|
|
28686
|
-
|
|
28687
|
-
|
|
28688
|
-
|
|
28990
|
+
clearTimeout(timer);
|
|
28991
|
+
timer = setTimeout(function () {
|
|
28992
|
+
if (selectInfo.useSelect) {
|
|
28993
|
+
var rowData = row[uses_ROW_DATA_INDEX];
|
|
28994
|
+
|
|
28995
|
+
if (row[uses_ROW_SELECT_INDEX]) {
|
|
28996
|
+
row[uses_ROW_SELECT_INDEX] = false;
|
|
28997
|
+
|
|
28998
|
+
if (selectInfo.multiple) {
|
|
28999
|
+
if (event.ctrlKey) {
|
|
29000
|
+
selectInfo.selectedRow.splice(selectInfo.selectedRow.indexOf(row[uses_ROW_DATA_INDEX]), 1);
|
|
29001
|
+
} else {
|
|
29002
|
+
selectInfo.selectedRow = [rowData];
|
|
29003
|
+
}
|
|
29004
|
+
} else {
|
|
29005
|
+
selectInfo.selectedRow = [];
|
|
29006
|
+
}
|
|
29007
|
+
} else {
|
|
29008
|
+
row[uses_ROW_SELECT_INDEX] = true;
|
|
29009
|
+
|
|
29010
|
+
if (event.ctrlKey && selectInfo.multiple && (!selectInfo.limitCount || selectInfo.limitCount > selectInfo.selectedRow.length)) {
|
|
29011
|
+
selectInfo.selectedRow.push(rowData);
|
|
29012
|
+
} else {
|
|
29013
|
+
selectInfo.selectedRow = [rowData];
|
|
29014
|
+
}
|
|
29015
|
+
}
|
|
28689
29016
|
|
|
29017
|
+
emit('update:selected', selectInfo.selectedRow);
|
|
29018
|
+
emit('click-row', getClickedRowData(event, row));
|
|
29019
|
+
}
|
|
29020
|
+
}, 100);
|
|
28690
29021
|
return true;
|
|
28691
29022
|
};
|
|
28692
29023
|
/**
|
|
@@ -28698,9 +29029,7 @@ var uses_clickEvent = function clickEvent(params) {
|
|
|
28698
29029
|
|
|
28699
29030
|
|
|
28700
29031
|
var onRowDblClick = function onRowDblClick(event, row) {
|
|
28701
|
-
|
|
28702
|
-
selectInfo.selectedRow = rowData;
|
|
28703
|
-
emit('update:selected', rowData);
|
|
29032
|
+
clearTimeout(timer);
|
|
28704
29033
|
emit('dblclick-row', getClickedRowData(event, row));
|
|
28705
29034
|
};
|
|
28706
29035
|
|
|
@@ -28750,12 +29079,10 @@ var uses_checkEvent = function checkEvent(params) {
|
|
|
28750
29079
|
if (row[uses_ROW_CHECK_INDEX]) {
|
|
28751
29080
|
if (checkInfo.useCheckbox.mode === 'single') {
|
|
28752
29081
|
checkInfo.checkedRows = [row[uses_ROW_DATA_INDEX]];
|
|
28753
|
-
checkInfo.checkedIndex.clear();
|
|
28754
29082
|
} else {
|
|
28755
29083
|
checkInfo.checkedRows.push(row[uses_ROW_DATA_INDEX]);
|
|
28756
29084
|
}
|
|
28757
29085
|
|
|
28758
|
-
checkInfo.checkedIndex.add(row[uses_ROW_INDEX]);
|
|
28759
29086
|
var store = stores.store;
|
|
28760
29087
|
|
|
28761
29088
|
if (pageInfo.isClientPaging) {
|
|
@@ -28772,10 +29099,8 @@ var uses_checkEvent = function checkEvent(params) {
|
|
|
28772
29099
|
} else {
|
|
28773
29100
|
if (checkInfo.useCheckbox.mode === 'single') {
|
|
28774
29101
|
checkInfo.checkedRows = [];
|
|
28775
|
-
checkInfo.checkedIndex.clear();
|
|
28776
29102
|
} else {
|
|
28777
29103
|
checkInfo.checkedRows.splice(checkInfo.checkedRows.indexOf(row[uses_ROW_DATA_INDEX]), 1);
|
|
28778
|
-
checkInfo.checkedIndex.delete(row[uses_ROW_INDEX]);
|
|
28779
29104
|
}
|
|
28780
29105
|
|
|
28781
29106
|
checkInfo.isHeaderChecked = false;
|
|
@@ -28783,7 +29108,7 @@ var uses_checkEvent = function checkEvent(params) {
|
|
|
28783
29108
|
|
|
28784
29109
|
checkInfo.prevCheckedRow = row.slice();
|
|
28785
29110
|
emit('update:checked', checkInfo.checkedRows);
|
|
28786
|
-
emit('check-row', event, row[
|
|
29111
|
+
emit('check-row', event, row[ROW_INDEX], row[uses_ROW_DATA_INDEX]);
|
|
28787
29112
|
};
|
|
28788
29113
|
/**
|
|
28789
29114
|
* all checkbox click 이벤트를 처리한다.
|
|
@@ -28805,13 +29130,8 @@ var uses_checkEvent = function checkEvent(params) {
|
|
|
28805
29130
|
if (!checkInfo.checkedRows.includes(row[uses_ROW_DATA_INDEX])) {
|
|
28806
29131
|
checkInfo.checkedRows.push(row[uses_ROW_DATA_INDEX]);
|
|
28807
29132
|
}
|
|
28808
|
-
|
|
28809
|
-
if (!checkInfo.checkedIndex.has(row[uses_ROW_INDEX])) {
|
|
28810
|
-
checkInfo.checkedIndex.add(row[uses_ROW_INDEX]);
|
|
28811
|
-
}
|
|
28812
29133
|
} else {
|
|
28813
29134
|
checkInfo.checkedRows.splice(checkInfo.checkedRows.indexOf(row[uses_ROW_DATA_INDEX]), 1);
|
|
28814
|
-
checkInfo.checkedIndex.delete(row[uses_ROW_INDEX]);
|
|
28815
29135
|
}
|
|
28816
29136
|
|
|
28817
29137
|
row[uses_ROW_CHECK_INDEX] = isHeaderChecked;
|
|
@@ -28890,8 +29210,8 @@ var uses_sortEvent = function sortEvent(params) {
|
|
|
28890
29210
|
|
|
28891
29211
|
if (sortInfo.sortOrder === 'init' || !sortInfo.sortField && !sortInfo.isSorting) {
|
|
28892
29212
|
stores.store.sort(function (a, b) {
|
|
28893
|
-
if (typeof a[
|
|
28894
|
-
return setAsc(a[
|
|
29213
|
+
if (typeof a[ROW_INDEX] === 'number') {
|
|
29214
|
+
return setAsc(a[ROW_INDEX], b[ROW_INDEX]);
|
|
28895
29215
|
}
|
|
28896
29216
|
|
|
28897
29217
|
return 0;
|
|
@@ -29170,7 +29490,7 @@ var uses_filterEvent = function filterEvent(params) {
|
|
|
29170
29490
|
for (var ix = 0; ix < stores.orderedColumns.length; ix++) {
|
|
29171
29491
|
var column = stores.orderedColumns[ix] || {};
|
|
29172
29492
|
var columnValue = row[uses_ROW_DATA_INDEX][ix];
|
|
29173
|
-
|
|
29493
|
+
column.type = column.type || 'string';
|
|
29174
29494
|
|
|
29175
29495
|
if (columnValue) {
|
|
29176
29496
|
if (_typeof(columnValue) === 'object') {
|
|
@@ -29178,7 +29498,7 @@ var uses_filterEvent = function filterEvent(params) {
|
|
|
29178
29498
|
}
|
|
29179
29499
|
|
|
29180
29500
|
if (!column.hide && ((column === null || column === void 0 ? void 0 : column.searchable) === undefined || column !== null && column !== void 0 && column.searchable)) {
|
|
29181
|
-
columnValue = getConvertValue(
|
|
29501
|
+
columnValue = getConvertValue(column, columnValue).toString();
|
|
29182
29502
|
isShow = columnValue.toLowerCase().includes(searchWord.toString().toLowerCase());
|
|
29183
29503
|
|
|
29184
29504
|
if (isShow) {
|
|
@@ -29327,41 +29647,33 @@ var uses_storeEvent = function storeEvent(params) {
|
|
|
29327
29647
|
/**
|
|
29328
29648
|
* 전달된 데이터를 내부 store 및 속성에 저장한다.
|
|
29329
29649
|
*
|
|
29330
|
-
* @param {array}
|
|
29650
|
+
* @param {array} rows - row 데이터
|
|
29331
29651
|
* @param {boolean} isMakeIndex - 인덱스 생성 유무
|
|
29332
29652
|
*/
|
|
29333
29653
|
|
|
29334
|
-
var setStore = function setStore(
|
|
29654
|
+
var setStore = function setStore(rows) {
|
|
29335
29655
|
var _elementInfo$body2;
|
|
29336
29656
|
|
|
29337
29657
|
var isMakeIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
29338
|
-
var store = [];
|
|
29339
|
-
var checked;
|
|
29340
|
-
var selected = false;
|
|
29341
29658
|
|
|
29342
29659
|
if (isMakeIndex) {
|
|
29660
|
+
var store = [];
|
|
29343
29661
|
var hasUnChecked = false;
|
|
29662
|
+
rows.forEach(function (row, idx) {
|
|
29663
|
+
var checked = props.checked.includes(row);
|
|
29664
|
+
var selected = false;
|
|
29344
29665
|
|
|
29345
|
-
|
|
29346
|
-
|
|
29666
|
+
if (selectInfo.useSelect) {
|
|
29667
|
+
selected = props.selected.includes(row);
|
|
29668
|
+
}
|
|
29347
29669
|
|
|
29348
29670
|
if (!checked) {
|
|
29349
29671
|
hasUnChecked = true;
|
|
29350
29672
|
}
|
|
29351
29673
|
|
|
29352
|
-
|
|
29353
|
-
|
|
29354
|
-
|
|
29355
|
-
}
|
|
29356
|
-
|
|
29357
|
-
store.push([ix, checked, value[ix]]);
|
|
29358
|
-
}
|
|
29359
|
-
|
|
29360
|
-
if (!selected) {
|
|
29361
|
-
selectInfo.selectedRow = [];
|
|
29362
|
-
}
|
|
29363
|
-
|
|
29364
|
-
checkInfo.isHeaderChecked = value.length > 0 ? !hasUnChecked : false;
|
|
29674
|
+
store.push([idx, checked, row, selected]);
|
|
29675
|
+
});
|
|
29676
|
+
checkInfo.isHeaderChecked = rows.length > 0 ? !hasUnChecked : false;
|
|
29365
29677
|
stores.originStore = store;
|
|
29366
29678
|
}
|
|
29367
29679
|
|
|
@@ -29472,14 +29784,13 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29472
29784
|
|
|
29473
29785
|
|
|
29474
29786
|
|
|
29475
|
-
|
|
29476
|
-
|
|
29477
29787
|
/* harmony default export */ var Gridvue_type_script_lang_js = ({
|
|
29478
29788
|
name: 'EvGrid',
|
|
29479
29789
|
components: {
|
|
29480
29790
|
Toolbar: grid_toolbar,
|
|
29481
|
-
|
|
29482
|
-
|
|
29791
|
+
FilterWindow: grid_filter_window,
|
|
29792
|
+
GridPagination: grid_pagination,
|
|
29793
|
+
GridSummary: grid_summary
|
|
29483
29794
|
},
|
|
29484
29795
|
props: {
|
|
29485
29796
|
columns: {
|
|
@@ -29533,9 +29844,10 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29533
29844
|
setup: function setup(props) {
|
|
29534
29845
|
var _props$option$page2;
|
|
29535
29846
|
|
|
29536
|
-
|
|
29847
|
+
// const ROW_INDEX = 0;
|
|
29537
29848
|
var ROW_CHECK_INDEX = 1;
|
|
29538
29849
|
var ROW_DATA_INDEX = 2;
|
|
29850
|
+
var ROW_SELECT_INDEX = 3;
|
|
29539
29851
|
|
|
29540
29852
|
var _commonFunctions = uses_commonFunctions(),
|
|
29541
29853
|
isRenderer = _commonFunctions.isRenderer,
|
|
@@ -29545,7 +29857,14 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29545
29857
|
setPixelUnit = _commonFunctions.setPixelUnit;
|
|
29546
29858
|
|
|
29547
29859
|
var showHeader = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
29548
|
-
|
|
29860
|
+
var _props$option$showHea;
|
|
29861
|
+
|
|
29862
|
+
return (_props$option$showHea = props.option.showHeader) !== null && _props$option$showHea !== void 0 ? _props$option$showHea : true;
|
|
29863
|
+
});
|
|
29864
|
+
var useSummary = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
29865
|
+
var _props$option;
|
|
29866
|
+
|
|
29867
|
+
return ((_props$option = props.option) === null || _props$option === void 0 ? void 0 : _props$option.useSummary) || false;
|
|
29549
29868
|
});
|
|
29550
29869
|
var stripeStyle = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
29551
29870
|
var _props$option$style;
|
|
@@ -29558,9 +29877,9 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29558
29877
|
return ((_props$option$style2 = props.option.style) === null || _props$option$style2 === void 0 ? void 0 : _props$option$style2.border) || '';
|
|
29559
29878
|
});
|
|
29560
29879
|
var highlightIdx = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
29561
|
-
var _props$option$style3;
|
|
29880
|
+
var _props$option$style$h, _props$option$style3;
|
|
29562
29881
|
|
|
29563
|
-
return ((_props$option$style3 = props.option.style) === null || _props$option$style3 === void 0 ? void 0 : _props$option$style3.highlight)
|
|
29882
|
+
return (_props$option$style$h = (_props$option$style3 = props.option.style) === null || _props$option$style3 === void 0 ? void 0 : _props$option$style3.highlight) !== null && _props$option$style$h !== void 0 ? _props$option$style$h : -1;
|
|
29564
29883
|
});
|
|
29565
29884
|
var rowMinHeight = props.option.rowMinHeight || 35;
|
|
29566
29885
|
var elementInfo = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["reactive"])({
|
|
@@ -29572,7 +29891,9 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29572
29891
|
var filterInfo = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["reactive"])({
|
|
29573
29892
|
filterList: {},
|
|
29574
29893
|
isFiltering: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
29575
|
-
|
|
29894
|
+
var _props$option$useFilt;
|
|
29895
|
+
|
|
29896
|
+
return (_props$option$useFilt = props.option.useFilter) !== null && _props$option$useFilt !== void 0 ? _props$option$useFilt : false;
|
|
29576
29897
|
}),
|
|
29577
29898
|
setFiltering: false,
|
|
29578
29899
|
showFilterWindow: false,
|
|
@@ -29642,13 +29963,14 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29642
29963
|
}),
|
|
29643
29964
|
isClientPaging: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
29644
29965
|
return pageInfo.useClient && pageInfo.usePage && !pageInfo.isInfinite;
|
|
29645
|
-
})
|
|
29966
|
+
}),
|
|
29967
|
+
isHighlight: false,
|
|
29968
|
+
highlightPage: 0
|
|
29646
29969
|
});
|
|
29647
29970
|
var checkInfo = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["reactive"])({
|
|
29648
29971
|
prevCheckedRow: [],
|
|
29649
29972
|
isHeaderChecked: false,
|
|
29650
29973
|
checkedRows: props.checked,
|
|
29651
|
-
checkedIndex: new Set(),
|
|
29652
29974
|
useCheckbox: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
29653
29975
|
return props.option.useCheckbox || {};
|
|
29654
29976
|
})
|
|
@@ -29663,8 +29985,24 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29663
29985
|
hasVerticalScrollBar: false
|
|
29664
29986
|
});
|
|
29665
29987
|
var selectInfo = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["reactive"])({
|
|
29666
|
-
|
|
29667
|
-
|
|
29988
|
+
selectedRow: props.selected,
|
|
29989
|
+
useSelect: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
29990
|
+
var _props$option$useSele, _props$option2, _props$option2$useSel;
|
|
29991
|
+
|
|
29992
|
+
return (_props$option$useSele = (_props$option2 = props.option) === null || _props$option2 === void 0 ? void 0 : (_props$option2$useSel = _props$option2.useSelection) === null || _props$option2$useSel === void 0 ? void 0 : _props$option2$useSel.use) !== null && _props$option$useSele !== void 0 ? _props$option$useSele : true;
|
|
29993
|
+
}),
|
|
29994
|
+
limitCount: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
29995
|
+
var _props$option3, _props$option3$useSel;
|
|
29996
|
+
|
|
29997
|
+
var limit = (_props$option3 = props.option) === null || _props$option3 === void 0 ? void 0 : (_props$option3$useSel = _props$option3.useSelection) === null || _props$option3$useSel === void 0 ? void 0 : _props$option3$useSel.limitCount;
|
|
29998
|
+
limit = !!limit && limit >= 2 ? limit : 0;
|
|
29999
|
+
return limit;
|
|
30000
|
+
}),
|
|
30001
|
+
multiple: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
30002
|
+
var _props$option$useSele2, _props$option4, _props$option4$useSel;
|
|
30003
|
+
|
|
30004
|
+
return (_props$option$useSele2 = (_props$option4 = props.option) === null || _props$option4 === void 0 ? void 0 : (_props$option4$useSel = _props$option4.useSelection) === null || _props$option4$useSel === void 0 ? void 0 : _props$option4$useSel.multiple) !== null && _props$option$useSele2 !== void 0 ? _props$option$useSele2 : false;
|
|
30005
|
+
})
|
|
29668
30006
|
});
|
|
29669
30007
|
var sortInfo = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["reactive"])({
|
|
29670
30008
|
isSorting: false,
|
|
@@ -29699,13 +30037,19 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29699
30037
|
|
|
29700
30038
|
var clearCheckInfo = function clearCheckInfo() {
|
|
29701
30039
|
checkInfo.checkedRows = [];
|
|
29702
|
-
checkInfo.checkedIndex.clear();
|
|
29703
30040
|
checkInfo.isHeaderChecked = false;
|
|
29704
30041
|
stores.store.forEach(function (row) {
|
|
29705
30042
|
row[ROW_CHECK_INDEX] = false;
|
|
29706
30043
|
});
|
|
29707
30044
|
};
|
|
29708
30045
|
|
|
30046
|
+
var clearSelectInfo = function clearSelectInfo() {
|
|
30047
|
+
selectInfo.selectedRow = [];
|
|
30048
|
+
stores.store.forEach(function (row) {
|
|
30049
|
+
row[ROW_SELECT_INDEX] = false;
|
|
30050
|
+
});
|
|
30051
|
+
};
|
|
30052
|
+
|
|
29709
30053
|
var _pagingEvent = uses_pagingEvent({
|
|
29710
30054
|
stores: stores,
|
|
29711
30055
|
pageInfo: pageInfo,
|
|
@@ -29731,7 +30075,9 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29731
30075
|
updateHScroll = _scrollEvent.updateHScroll,
|
|
29732
30076
|
onScroll = _scrollEvent.onScroll;
|
|
29733
30077
|
|
|
29734
|
-
var _clickEvent = uses_clickEvent(
|
|
30078
|
+
var _clickEvent = uses_clickEvent({
|
|
30079
|
+
selectInfo: selectInfo
|
|
30080
|
+
}),
|
|
29735
30081
|
onRowClick = _clickEvent.onRowClick,
|
|
29736
30082
|
onRowDblClick = _clickEvent.onRowDblClick;
|
|
29737
30083
|
|
|
@@ -29862,7 +30208,6 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29862
30208
|
}, function (checkedList) {
|
|
29863
30209
|
checkInfo.checkedRows = checkedList;
|
|
29864
30210
|
checkInfo.isHeaderChecked = false;
|
|
29865
|
-
checkInfo.checkedIndex.clear();
|
|
29866
30211
|
var store = stores.store;
|
|
29867
30212
|
|
|
29868
30213
|
if (pageInfo.isClientPaging) {
|
|
@@ -29872,10 +30217,6 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29872
30217
|
if (store.length) {
|
|
29873
30218
|
store.forEach(function (row) {
|
|
29874
30219
|
row[ROW_CHECK_INDEX] = checkedList.includes(row[ROW_DATA_INDEX]);
|
|
29875
|
-
|
|
29876
|
-
if (row[ROW_CHECK_INDEX]) {
|
|
29877
|
-
checkInfo.checkedIndex.add(row[ROW_INDEX]);
|
|
29878
|
-
}
|
|
29879
30220
|
});
|
|
29880
30221
|
checkInfo.isHeaderChecked = checkedList.length === store.length;
|
|
29881
30222
|
}
|
|
@@ -29884,14 +30225,78 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29884
30225
|
});
|
|
29885
30226
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
29886
30227
|
return props.selected;
|
|
29887
|
-
}, function (
|
|
29888
|
-
selectInfo.
|
|
30228
|
+
}, function (selectedList) {
|
|
30229
|
+
if (selectInfo.useSelect) {
|
|
30230
|
+
selectInfo.selectedRow = selectedList;
|
|
30231
|
+
stores.store.forEach(function (row) {
|
|
30232
|
+
row[ROW_SELECT_INDEX] = selectInfo.selectedRow.includes(row[ROW_DATA_INDEX]);
|
|
30233
|
+
});
|
|
30234
|
+
updateVScroll();
|
|
30235
|
+
}
|
|
29889
30236
|
});
|
|
30237
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
30238
|
+
return highlightIdx.value;
|
|
30239
|
+
}, /*#__PURE__*/function () {
|
|
30240
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(index) {
|
|
30241
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
30242
|
+
while (1) {
|
|
30243
|
+
switch (_context.prev = _context.next) {
|
|
30244
|
+
case 0:
|
|
30245
|
+
_context.next = 2;
|
|
30246
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])();
|
|
30247
|
+
|
|
30248
|
+
case 2:
|
|
30249
|
+
if (!(index >= 0)) {
|
|
30250
|
+
_context.next = 10;
|
|
30251
|
+
break;
|
|
30252
|
+
}
|
|
30253
|
+
|
|
30254
|
+
if (!(pageInfo.usePage && !pageInfo.isInfinite)) {
|
|
30255
|
+
_context.next = 9;
|
|
30256
|
+
break;
|
|
30257
|
+
}
|
|
30258
|
+
|
|
30259
|
+
pageInfo.highlightPage = Math.ceil(index / pageInfo.perPage) || 1;
|
|
30260
|
+
|
|
30261
|
+
if (!(pageInfo.highlightPage !== pageInfo.currentPage)) {
|
|
30262
|
+
_context.next = 9;
|
|
30263
|
+
break;
|
|
30264
|
+
}
|
|
30265
|
+
|
|
30266
|
+
pageInfo.currentPage = pageInfo.highlightPage;
|
|
30267
|
+
pageInfo.isHighlight = true;
|
|
30268
|
+
return _context.abrupt("return");
|
|
30269
|
+
|
|
30270
|
+
case 9:
|
|
30271
|
+
elementInfo.body.scrollTop = resizeInfo.rowHeight * highlightIdx.value;
|
|
30272
|
+
|
|
30273
|
+
case 10:
|
|
30274
|
+
case "end":
|
|
30275
|
+
return _context.stop();
|
|
30276
|
+
}
|
|
30277
|
+
}
|
|
30278
|
+
}, _callee);
|
|
30279
|
+
}));
|
|
30280
|
+
|
|
30281
|
+
return function (_x) {
|
|
30282
|
+
return _ref.apply(this, arguments);
|
|
30283
|
+
};
|
|
30284
|
+
}());
|
|
29890
30285
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
29891
30286
|
return checkInfo.useCheckbox.mode;
|
|
29892
30287
|
}, function () {
|
|
29893
30288
|
clearCheckInfo();
|
|
29894
30289
|
});
|
|
30290
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
30291
|
+
return selectInfo.useSelect;
|
|
30292
|
+
}, function () {
|
|
30293
|
+
clearSelectInfo();
|
|
30294
|
+
});
|
|
30295
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
30296
|
+
return selectInfo.multiple;
|
|
30297
|
+
}, function () {
|
|
30298
|
+
clearSelectInfo();
|
|
30299
|
+
});
|
|
29895
30300
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
29896
30301
|
return props.checked.length;
|
|
29897
30302
|
}, function (checkedSize) {
|
|
@@ -29933,16 +30338,12 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29933
30338
|
|
|
29934
30339
|
if (pageInfo.isClientPaging) {
|
|
29935
30340
|
clearCheckInfo();
|
|
30341
|
+
clearSelectInfo();
|
|
29936
30342
|
}
|
|
29937
30343
|
}
|
|
29938
30344
|
}, {
|
|
29939
30345
|
immediate: true
|
|
29940
30346
|
});
|
|
29941
|
-
|
|
29942
|
-
var isFilterButton = function isFilterButton(field) {
|
|
29943
|
-
return filterInfo.isFiltering && field !== 'db-icon' && field !== 'user-icon';
|
|
29944
|
-
};
|
|
29945
|
-
|
|
29946
30347
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
29947
30348
|
var _props$option$page9;
|
|
29948
30349
|
|
|
@@ -29956,23 +30357,31 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29956
30357
|
immediate: true
|
|
29957
30358
|
});
|
|
29958
30359
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
29959
|
-
return
|
|
29960
|
-
}, function (
|
|
30360
|
+
return pageInfo.currentPage;
|
|
30361
|
+
}, function (current, before) {
|
|
29961
30362
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])(function () {
|
|
29962
|
-
changePage(
|
|
30363
|
+
changePage(before);
|
|
29963
30364
|
|
|
29964
|
-
if (pageInfo.isClientPaging &&
|
|
30365
|
+
if (pageInfo.isClientPaging && current !== before) {
|
|
29965
30366
|
clearCheckInfo();
|
|
30367
|
+
clearSelectInfo();
|
|
29966
30368
|
}
|
|
29967
30369
|
|
|
29968
30370
|
updateVScroll();
|
|
30371
|
+
|
|
30372
|
+
if (current === pageInfo.highlightPage && pageInfo.isHighlight) {
|
|
30373
|
+
elementInfo.body.scrollTop = resizeInfo.rowHeight * highlightIdx.value;
|
|
30374
|
+
pageInfo.isHighlight = !pageInfo.isHighlight;
|
|
30375
|
+
}
|
|
29969
30376
|
});
|
|
29970
30377
|
});
|
|
29971
30378
|
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
|
|
29972
30379
|
showHeader: showHeader,
|
|
29973
30380
|
stripeStyle: stripeStyle,
|
|
29974
30381
|
borderStyle: borderStyle,
|
|
29975
|
-
highlightIdx: highlightIdx
|
|
30382
|
+
highlightIdx: highlightIdx,
|
|
30383
|
+
useSummary: useSummary,
|
|
30384
|
+
stores: stores
|
|
29976
30385
|
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toRefs"])(elementInfo)), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toRefs"])(stores)), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toRefs"])(filterInfo)), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toRefs"])(scrollInfo)), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toRefs"])(pageInfo)), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toRefs"])(resizeInfo)), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toRefs"])(selectInfo)), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toRefs"])(checkInfo)), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toRefs"])(sortInfo)), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toRefs"])(contextInfo)), {}, {
|
|
29977
30386
|
isRenderer: isRenderer,
|
|
29978
30387
|
getComponentName: getComponentName,
|
|
@@ -29999,15 +30408,14 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29999
30408
|
setStore: setStore,
|
|
30000
30409
|
setContextMenu: setContextMenu,
|
|
30001
30410
|
onContextMenu: onContextMenu,
|
|
30002
|
-
onSearch: onSearch
|
|
30003
|
-
isFilterButton: isFilterButton
|
|
30411
|
+
onSearch: onSearch
|
|
30004
30412
|
});
|
|
30005
30413
|
}
|
|
30006
30414
|
});
|
|
30007
30415
|
// CONCATENATED MODULE: ./src/components/grid/Grid.vue?vue&type=script&lang=js
|
|
30008
30416
|
|
|
30009
|
-
// EXTERNAL MODULE: ./src/components/grid/Grid.vue?vue&type=style&index=0&id=
|
|
30010
|
-
var
|
|
30417
|
+
// EXTERNAL MODULE: ./src/components/grid/Grid.vue?vue&type=style&index=0&id=6493e3f4&lang=scss&scoped=true
|
|
30418
|
+
var Gridvue_type_style_index_0_id_6493e3f4_lang_scss_scoped_true = __webpack_require__("67bd");
|
|
30011
30419
|
|
|
30012
30420
|
// CONCATENATED MODULE: ./src/components/grid/Grid.vue
|
|
30013
30421
|
|
|
@@ -30015,8 +30423,8 @@ var Gridvue_type_style_index_0_id_247d3bf0_lang_scss_scoped_true = __webpack_req
|
|
|
30015
30423
|
|
|
30016
30424
|
|
|
30017
30425
|
|
|
30018
|
-
Gridvue_type_script_lang_js.render =
|
|
30019
|
-
Gridvue_type_script_lang_js.__scopeId = "data-v-
|
|
30426
|
+
Gridvue_type_script_lang_js.render = Gridvue_type_template_id_6493e3f4_scoped_true_render
|
|
30427
|
+
Gridvue_type_script_lang_js.__scopeId = "data-v-6493e3f4"
|
|
30020
30428
|
|
|
30021
30429
|
/* harmony default export */ var Grid = (Gridvue_type_script_lang_js);
|
|
30022
30430
|
// CONCATENATED MODULE: ./src/components/grid/index.js
|
|
@@ -32424,7 +32832,7 @@ var modules = {
|
|
|
32424
32832
|
|
|
32425
32833
|
if (!opt.startToZero || targetMin > 0) {
|
|
32426
32834
|
var targetSpace = space ? space - 1 : targetMax - targetMin;
|
|
32427
|
-
var targetStep =
|
|
32835
|
+
var targetStep = Math.ceil((max - targetMin) / targetSpace);
|
|
32428
32836
|
targetMin = targetMin < targetStep ? 0 : targetMin - targetStep;
|
|
32429
32837
|
}
|
|
32430
32838
|
|
|
@@ -34387,17 +34795,32 @@ var element_scatter_Scatter = /*#__PURE__*/function () {
|
|
|
34387
34795
|
return item;
|
|
34388
34796
|
}, this.data[0]);
|
|
34389
34797
|
|
|
34390
|
-
var getOpacity = function getOpacity(colorStr) {
|
|
34798
|
+
var getOpacity = function getOpacity(colorStr, dataIndex) {
|
|
34391
34799
|
var noneDownplayOpacity = colorStr.includes('rgba') ? helpers_util.getOpacity(colorStr) : 1;
|
|
34392
|
-
|
|
34800
|
+
var resultOpacity = noneDownplayOpacity;
|
|
34801
|
+
var selectInfo = param.selectInfo;
|
|
34802
|
+
|
|
34803
|
+
if (selectInfo) {
|
|
34804
|
+
var isSelectedData = (selectInfo === null || selectInfo === void 0 ? void 0 : selectInfo.seriesID) === _this2.sId && (selectInfo === null || selectInfo === void 0 ? void 0 : selectInfo.dataIndex) === dataIndex;
|
|
34805
|
+
|
|
34806
|
+
if (isSelectedData) {
|
|
34807
|
+
resultOpacity = noneDownplayOpacity;
|
|
34808
|
+
} else {
|
|
34809
|
+
resultOpacity = 0.1;
|
|
34810
|
+
}
|
|
34811
|
+
} else {
|
|
34812
|
+
resultOpacity = _this2.state === 'downplay' ? 0.1 : noneDownplayOpacity;
|
|
34813
|
+
}
|
|
34814
|
+
|
|
34815
|
+
return resultOpacity;
|
|
34393
34816
|
};
|
|
34394
34817
|
|
|
34395
|
-
this.data.forEach(function (curr) {
|
|
34818
|
+
this.data.forEach(function (curr, idx) {
|
|
34396
34819
|
if (curr.xp !== null && curr.yp !== null) {
|
|
34397
34820
|
var color = curr.dataColor || _this2.color;
|
|
34398
|
-
ctx.strokeStyle = helpers_util.colorStringToRgba(color, getOpacity(color));
|
|
34821
|
+
ctx.strokeStyle = helpers_util.colorStringToRgba(color, getOpacity(color, idx));
|
|
34399
34822
|
var pointFillColor = curr.dataColor || _this2.pointFill;
|
|
34400
|
-
ctx.fillStyle = helpers_util.colorStringToRgba(pointFillColor, getOpacity(pointFillColor));
|
|
34823
|
+
ctx.fillStyle = helpers_util.colorStringToRgba(pointFillColor, getOpacity(pointFillColor, idx));
|
|
34401
34824
|
helpers_canvas.drawPoint(ctx, _this2.pointStyle, _this2.pointSize, curr.xp, curr.yp);
|
|
34402
34825
|
}
|
|
34403
34826
|
});
|
|
@@ -34471,18 +34894,20 @@ var element_scatter_Scatter = /*#__PURE__*/function () {
|
|
|
34471
34894
|
var item = {
|
|
34472
34895
|
data: null,
|
|
34473
34896
|
hit: false,
|
|
34474
|
-
color: this.color
|
|
34897
|
+
color: this.color,
|
|
34898
|
+
index: null
|
|
34475
34899
|
};
|
|
34476
34900
|
var pointSize = this.pointSize;
|
|
34477
34901
|
var gdata = this.data;
|
|
34478
|
-
var
|
|
34902
|
+
var targetIndex = gdata.findIndex(function (data) {
|
|
34479
34903
|
var x = data.xp;
|
|
34480
34904
|
var y = data.yp;
|
|
34481
34905
|
return x - pointSize <= xp && xp <= x + pointSize && y - pointSize <= yp && yp <= y + pointSize;
|
|
34482
34906
|
});
|
|
34483
34907
|
|
|
34484
|
-
if (
|
|
34485
|
-
item.data =
|
|
34908
|
+
if (targetIndex > -1) {
|
|
34909
|
+
item.data = gdata[targetIndex];
|
|
34910
|
+
item.index = targetIndex;
|
|
34486
34911
|
item.hit = true;
|
|
34487
34912
|
}
|
|
34488
34913
|
|
|
@@ -35687,7 +36112,7 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
35687
36112
|
var yArea = chartRect.chartHeight - (labelOffset.top + labelOffset.bottom);
|
|
35688
36113
|
var xsp = chartRect.x1 + labelOffset.left;
|
|
35689
36114
|
var ysp = chartRect.y2 - labelOffset.bottom;
|
|
35690
|
-
this.size.w = Math.
|
|
36115
|
+
this.size.w = Math.floor(xArea / (this.spaces.x || minmaxX.graphMax - minmaxX.graphMin));
|
|
35691
36116
|
this.size.h = Math.floor(yArea / (this.spaces.y || minmaxY.graphMax - minmaxY.graphMin));
|
|
35692
36117
|
this.data.forEach(function (item) {
|
|
35693
36118
|
item.xp = helpers_canvas.calculateX(item.x, minmaxX.graphMin, minmaxX.graphMax, xArea, xsp);
|
|
@@ -36173,7 +36598,14 @@ var scale_Scale = /*#__PURE__*/function () {
|
|
|
36173
36598
|
linePosition = labelCenter + aliasPixel;
|
|
36174
36599
|
labelText = this.getLabelFormat(Math.min(axisMax, ticks[ix]));
|
|
36175
36600
|
var isBlurredLabel = ((_this$options = this.options) === null || _this$options === void 0 ? void 0 : (_this$options$selectL = _this$options.selectLabel) === null || _this$options$selectL === void 0 ? void 0 : _this$options$selectL.use) && ((_this$options2 = this.options) === null || _this$options2 === void 0 ? void 0 : (_this$options2$select = _this$options2.selectLabel) === null || _this$options2$select === void 0 ? void 0 : _this$options2$select.useLabelOpacity) && this.options.horizontal === (this.type === 'y') && (selectLabelInfo === null || selectLabelInfo === void 0 ? void 0 : (_selectLabelInfo$data = selectLabelInfo.dataIndex) === null || _selectLabelInfo$data === void 0 ? void 0 : _selectLabelInfo$data.length) && !(selectLabelInfo !== null && selectLabelInfo !== void 0 && (_selectLabelInfo$data2 = selectLabelInfo.dataIndex) !== null && _selectLabelInfo$data2 !== void 0 && _selectLabelInfo$data2.includes(ix));
|
|
36176
|
-
|
|
36601
|
+
var labelColor = this.labelStyle.color;
|
|
36602
|
+
var defaultOpacity = 1;
|
|
36603
|
+
|
|
36604
|
+
if (helpers_util.getColorStringType(labelColor) === 'RGBA') {
|
|
36605
|
+
defaultOpacity = helpers_util.getOpacity(labelColor);
|
|
36606
|
+
}
|
|
36607
|
+
|
|
36608
|
+
ctx.fillStyle = helpers_util.colorStringToRgba(labelColor, isBlurredLabel ? 0.1 : defaultOpacity);
|
|
36177
36609
|
var labelPoint = void 0;
|
|
36178
36610
|
|
|
36179
36611
|
if (this.type === 'x') {
|
|
@@ -37180,7 +37612,14 @@ var scale_step_StepScale = /*#__PURE__*/function (_Scale) {
|
|
|
37180
37612
|
linePosition = labelCenter + aliasPixel;
|
|
37181
37613
|
labelText = _this2.getLabelFormat(item, maxWidth);
|
|
37182
37614
|
var isBlurredLabel = ((_this2$options = _this2.options) === null || _this2$options === void 0 ? void 0 : (_this2$options$select = _this2$options.selectLabel) === null || _this2$options$select === void 0 ? void 0 : _this2$options$select.use) && ((_this2$options2 = _this2.options) === null || _this2$options2 === void 0 ? void 0 : (_this2$options2$selec = _this2$options2.selectLabel) === null || _this2$options2$selec === void 0 ? void 0 : _this2$options2$selec.useLabelOpacity) && _this2.options.horizontal === (_this2.type === 'y') && (selectLabelInfo === null || selectLabelInfo === void 0 ? void 0 : (_selectLabelInfo$data = selectLabelInfo.dataIndex) === null || _selectLabelInfo$data === void 0 ? void 0 : _selectLabelInfo$data.length) && !(selectLabelInfo !== null && selectLabelInfo !== void 0 && (_selectLabelInfo$data2 = selectLabelInfo.dataIndex) !== null && _selectLabelInfo$data2 !== void 0 && _selectLabelInfo$data2.includes(index));
|
|
37183
|
-
|
|
37615
|
+
var labelColor = _this2.labelStyle.color;
|
|
37616
|
+
var defaultOpacity = 1;
|
|
37617
|
+
|
|
37618
|
+
if (helpers_util.getColorStringType(labelColor) === 'RGBA') {
|
|
37619
|
+
defaultOpacity = helpers_util.getOpacity(labelColor);
|
|
37620
|
+
}
|
|
37621
|
+
|
|
37622
|
+
ctx.fillStyle = helpers_util.colorStringToRgba(labelColor, isBlurredLabel ? 0.1 : defaultOpacity);
|
|
37184
37623
|
|
|
37185
37624
|
if (_this2.type === 'x') {
|
|
37186
37625
|
var _this2$options3, _this2$options3$selec, _this2$options4;
|
|
@@ -37558,7 +37997,14 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
|
|
|
37558
37997
|
linePosition = labelCenter + aliasPixel;
|
|
37559
37998
|
labelText = this.getLabelFormat(Math.min(axisMax, ticks[ix]));
|
|
37560
37999
|
var isBlurredLabel = ((_this$options = this.options) === null || _this$options === void 0 ? void 0 : (_this$options$selectL = _this$options.selectLabel) === null || _this$options$selectL === void 0 ? void 0 : _this$options$selectL.use) && ((_this$options2 = this.options) === null || _this$options2 === void 0 ? void 0 : (_this$options2$select = _this$options2.selectLabel) === null || _this$options2$select === void 0 ? void 0 : _this$options2$select.useLabelOpacity) && this.options.horizontal === (this.type === 'y') && (selectLabelInfo === null || selectLabelInfo === void 0 ? void 0 : (_selectLabelInfo$data = selectLabelInfo.dataIndex) === null || _selectLabelInfo$data === void 0 ? void 0 : _selectLabelInfo$data.length) && !(selectLabelInfo !== null && selectLabelInfo !== void 0 && (_selectLabelInfo$data2 = selectLabelInfo.dataIndex) !== null && _selectLabelInfo$data2 !== void 0 && _selectLabelInfo$data2.includes(ix));
|
|
37561
|
-
|
|
38000
|
+
var labelColor = this.labelStyle.color;
|
|
38001
|
+
var defaultOpacity = 1;
|
|
38002
|
+
|
|
38003
|
+
if (helpers_util.getColorStringType(labelColor) === 'RGBA') {
|
|
38004
|
+
defaultOpacity = helpers_util.getOpacity(labelColor);
|
|
38005
|
+
}
|
|
38006
|
+
|
|
38007
|
+
ctx.fillStyle = helpers_util.colorStringToRgba(labelColor, isBlurredLabel ? 0.1 : defaultOpacity);
|
|
37562
38008
|
var labelPoint = void 0;
|
|
37563
38009
|
|
|
37564
38010
|
if (this.type === 'x') {
|
|
@@ -37905,6 +38351,9 @@ var plugins_legend_modules = {
|
|
|
37905
38351
|
updateSelTip: {
|
|
37906
38352
|
update: false,
|
|
37907
38353
|
keepDomain: false
|
|
38354
|
+
},
|
|
38355
|
+
hitInfo: {
|
|
38356
|
+
sId: targetId
|
|
37908
38357
|
}
|
|
37909
38358
|
});
|
|
37910
38359
|
};
|
|
@@ -38668,7 +39117,11 @@ var plugins_interaction_modules = {
|
|
|
38668
39117
|
if (tooltip.use) {
|
|
38669
39118
|
_this.setTooltipLayoutPosition(hitInfo, e);
|
|
38670
39119
|
|
|
38671
|
-
|
|
39120
|
+
if (type === 'scatter') {
|
|
39121
|
+
_this.drawTooltipForScatter(hitInfo, _this.tooltipCtx);
|
|
39122
|
+
} else {
|
|
39123
|
+
_this.drawTooltip(hitInfo, _this.tooltipCtx);
|
|
39124
|
+
}
|
|
38672
39125
|
}
|
|
38673
39126
|
} else if (tooltip.use) {
|
|
38674
39127
|
_this.hideTooltipDOM();
|
|
@@ -39273,6 +39726,7 @@ var plugins_interaction_modules = {
|
|
|
39273
39726
|
|
|
39274
39727
|
|
|
39275
39728
|
|
|
39729
|
+
|
|
39276
39730
|
var TITLE_HEIGHT = 30;
|
|
39277
39731
|
var TEXT_HEIGHT = 14;
|
|
39278
39732
|
var LINE_SPACING = 8;
|
|
@@ -39603,19 +40057,8 @@ var plugins_tooltip_modules = {
|
|
|
39603
40057
|
textLineCnt += 1;
|
|
39604
40058
|
}
|
|
39605
40059
|
|
|
39606
|
-
ctx.restore();
|
|
39607
|
-
|
|
39608
|
-
this.tooltipDOM.style.overflowY = 'hidden';
|
|
39609
|
-
this.tooltipDOM.style.backgroundColor = opt.backgroundColor;
|
|
39610
|
-
this.tooltipDOM.style.border = "1px solid ".concat(opt.borderColor);
|
|
39611
|
-
this.tooltipDOM.style.color = opt.fontColor;
|
|
39612
|
-
|
|
39613
|
-
if (opt.useShadow) {
|
|
39614
|
-
var shadowColor = "rgba(0, 0, 0, ".concat(opt.shadowOpacity, ")");
|
|
39615
|
-
this.tooltipDOM.style.boxShadow = "2px 2px 2px ".concat(shadowColor);
|
|
39616
|
-
}
|
|
39617
|
-
|
|
39618
|
-
this.tooltipDOM.style.display = 'block';
|
|
40060
|
+
ctx.restore();
|
|
40061
|
+
this.setTooltipDOMStyle(opt);
|
|
39619
40062
|
},
|
|
39620
40063
|
|
|
39621
40064
|
/**
|
|
@@ -39680,15 +40123,184 @@ var plugins_tooltip_modules = {
|
|
|
39680
40123
|
|
|
39681
40124
|
ctx.textBaseline = 'Bottom';
|
|
39682
40125
|
ctx.fillText(itemValue, itemX + COLOR_MARGIN, itemY);
|
|
39683
|
-
ctx.closePath();
|
|
40126
|
+
ctx.closePath();
|
|
40127
|
+
this.setTooltipDOMStyle(opt);
|
|
40128
|
+
},
|
|
40129
|
+
|
|
40130
|
+
/**
|
|
40131
|
+
*
|
|
40132
|
+
* @param hitInfo
|
|
40133
|
+
* @param context
|
|
40134
|
+
*/
|
|
40135
|
+
drawTooltipForScatter: function drawTooltipForScatter(hitInfo, context) {
|
|
40136
|
+
var ctx = context;
|
|
40137
|
+
var items = hitInfo.items;
|
|
40138
|
+
|
|
40139
|
+
var _hitInfo$maxTip3 = _slicedToArray(hitInfo.maxTip, 2),
|
|
40140
|
+
maxValue = _hitInfo$maxTip3[1];
|
|
40141
|
+
|
|
40142
|
+
var seriesKeys = this.alignSeriesList(Object.keys(items));
|
|
40143
|
+
var boxPadding = {
|
|
40144
|
+
t: 8,
|
|
40145
|
+
b: 8,
|
|
40146
|
+
r: 8,
|
|
40147
|
+
l: 8
|
|
40148
|
+
};
|
|
40149
|
+
var opt = this.options.tooltip;
|
|
40150
|
+
var xAxisOpt = this.options.axesX[0];
|
|
40151
|
+
var x = 2;
|
|
40152
|
+
var y = 2;
|
|
40153
|
+
x += helpers_util.aliasPixel(x);
|
|
40154
|
+
y += helpers_util.aliasPixel(y);
|
|
40155
|
+
ctx.save();
|
|
40156
|
+
ctx.scale(this.pixelRatio, this.pixelRatio);
|
|
40157
|
+
|
|
40158
|
+
if (this.tooltipBodyDOM.style.overflowY === 'auto') {
|
|
40159
|
+
boxPadding.r += SCROLL_WIDTH;
|
|
40160
|
+
}
|
|
40161
|
+
|
|
40162
|
+
x += boxPadding.l;
|
|
40163
|
+
y += boxPadding.t;
|
|
40164
|
+
ctx.font = FONT_STYLE;
|
|
40165
|
+
var seriesList = [];
|
|
40166
|
+
seriesKeys.forEach(function (seriesName) {
|
|
40167
|
+
seriesList.push({
|
|
40168
|
+
data: items[seriesName].data,
|
|
40169
|
+
color: items[seriesName].color,
|
|
40170
|
+
name: items[seriesName].name
|
|
40171
|
+
});
|
|
40172
|
+
});
|
|
40173
|
+
|
|
40174
|
+
if (opt.sortByValue) {
|
|
40175
|
+
seriesList.sort(function (a, b) {
|
|
40176
|
+
var prev = a.data.o;
|
|
40177
|
+
var next = b.data.o;
|
|
40178
|
+
|
|
40179
|
+
if (prev === null || prev === undefined) {
|
|
40180
|
+
prev = a.data.y;
|
|
40181
|
+
}
|
|
40182
|
+
|
|
40183
|
+
if (next === null || next === undefined) {
|
|
40184
|
+
next = b.data.y;
|
|
40185
|
+
}
|
|
40186
|
+
|
|
40187
|
+
return next - prev;
|
|
40188
|
+
});
|
|
40189
|
+
}
|
|
39684
40190
|
|
|
40191
|
+
var textLineCnt = 1;
|
|
40192
|
+
|
|
40193
|
+
for (var ix = 0; ix < seriesList.length; ix++) {
|
|
40194
|
+
var gdata = seriesList[ix].data;
|
|
40195
|
+
var color = seriesList[ix].color;
|
|
40196
|
+
var name = seriesList[ix].name;
|
|
40197
|
+
var xValue = gdata.x;
|
|
40198
|
+
var yValue = void 0;
|
|
40199
|
+
|
|
40200
|
+
if (gdata.o === null) {
|
|
40201
|
+
yValue = gdata.y;
|
|
40202
|
+
} else if (!isNaN(gdata.o)) {
|
|
40203
|
+
yValue = gdata.o;
|
|
40204
|
+
}
|
|
40205
|
+
|
|
40206
|
+
var itemX = x + 4;
|
|
40207
|
+
var itemY = y + textLineCnt * TEXT_HEIGHT;
|
|
40208
|
+
itemX += helpers_util.aliasPixel(itemX);
|
|
40209
|
+
itemY += helpers_util.aliasPixel(itemY);
|
|
40210
|
+
ctx.beginPath();
|
|
40211
|
+
|
|
40212
|
+
if (typeof color !== 'string') {
|
|
40213
|
+
ctx.fillStyle = helpers_canvas.createGradient(ctx, false, {
|
|
40214
|
+
x: itemX - 4,
|
|
40215
|
+
y: itemY,
|
|
40216
|
+
w: 12,
|
|
40217
|
+
h: -12
|
|
40218
|
+
}, color);
|
|
40219
|
+
} else {
|
|
40220
|
+
ctx.fillStyle = color;
|
|
40221
|
+
} // 1. Draw series color
|
|
40222
|
+
|
|
40223
|
+
|
|
40224
|
+
ctx.fillRect(itemX - 4, itemY - 12, 12, 12);
|
|
40225
|
+
ctx.fillStyle = opt.fontColor; // 2. Draw series name
|
|
40226
|
+
|
|
40227
|
+
ctx.textBaseline = 'Bottom';
|
|
40228
|
+
var seriesNameSpaceWidth = opt.maxWidth - Math.round(ctx.measureText(maxValue).width) - boxPadding.l - boxPadding.r - COLOR_MARGIN - VALUE_MARGIN;
|
|
40229
|
+
var xPos = itemX + COLOR_MARGIN;
|
|
40230
|
+
var yPos = itemY;
|
|
40231
|
+
|
|
40232
|
+
if (seriesNameSpaceWidth > ctx.measureText(name).width) {
|
|
40233
|
+
// draw normally
|
|
40234
|
+
ctx.fillText(name, xPos, yPos);
|
|
40235
|
+
} else if (opt.textOverflow === 'wrap') {
|
|
40236
|
+
// draw with wrap
|
|
40237
|
+
var line = '';
|
|
40238
|
+
var yPosWithWrap = yPos;
|
|
40239
|
+
|
|
40240
|
+
for (var jx = 0; jx < name.length; jx++) {
|
|
40241
|
+
var char = name[jx];
|
|
40242
|
+
var temp = "".concat(line).concat(char);
|
|
40243
|
+
|
|
40244
|
+
if (ctx.measureText(temp).width > seriesNameSpaceWidth) {
|
|
40245
|
+
ctx.fillText(line, xPos, yPosWithWrap);
|
|
40246
|
+
line = char;
|
|
40247
|
+
textLineCnt += 1;
|
|
40248
|
+
yPosWithWrap += TEXT_HEIGHT;
|
|
40249
|
+
} else {
|
|
40250
|
+
line = temp;
|
|
40251
|
+
}
|
|
40252
|
+
}
|
|
40253
|
+
|
|
40254
|
+
ctx.fillText(line, xPos, yPosWithWrap);
|
|
40255
|
+
} else {
|
|
40256
|
+
// draw with ellipsis
|
|
40257
|
+
var shortSeriesName = helpers_util.truncateLabelWithEllipsis(name, seriesNameSpaceWidth, ctx);
|
|
40258
|
+
ctx.fillText(shortSeriesName, xPos, yPos);
|
|
40259
|
+
}
|
|
40260
|
+
|
|
40261
|
+
ctx.save(); // 3. Draw value
|
|
40262
|
+
|
|
40263
|
+
var formattedTxt = void 0;
|
|
40264
|
+
|
|
40265
|
+
if (opt.formatter) {
|
|
40266
|
+
formattedTxt = opt.formatter({
|
|
40267
|
+
x: xValue,
|
|
40268
|
+
y: yValue,
|
|
40269
|
+
name: name
|
|
40270
|
+
});
|
|
40271
|
+
}
|
|
40272
|
+
|
|
40273
|
+
if (!opt.formatter || typeof formattedTxt !== 'string') {
|
|
40274
|
+
var formattedXValue = xAxisOpt.type === 'time' ? dayjs_min_default()(xValue).format(xAxisOpt.timeFormat) : numberWithComma(xValue);
|
|
40275
|
+
var formattedYValue = numberWithComma(yValue);
|
|
40276
|
+
formattedTxt = "".concat(formattedXValue, ", ").concat(formattedYValue);
|
|
40277
|
+
}
|
|
40278
|
+
|
|
40279
|
+
ctx.textAlign = 'right';
|
|
40280
|
+
ctx.fillText(formattedTxt, this.tooltipDOM.offsetWidth - boxPadding.r, itemY);
|
|
40281
|
+
ctx.restore();
|
|
40282
|
+
ctx.closePath(); // 4. add lineSpacing
|
|
40283
|
+
|
|
40284
|
+
y += LINE_SPACING;
|
|
40285
|
+
textLineCnt += 1;
|
|
40286
|
+
}
|
|
40287
|
+
|
|
40288
|
+
ctx.restore();
|
|
40289
|
+
this.setTooltipDOMStyle(opt);
|
|
40290
|
+
},
|
|
40291
|
+
|
|
40292
|
+
/**
|
|
40293
|
+
* set style properties on tooltip DOM
|
|
40294
|
+
* @param tooltipOptions
|
|
40295
|
+
*/
|
|
40296
|
+
setTooltipDOMStyle: function setTooltipDOMStyle(tooltipOptions) {
|
|
39685
40297
|
this.tooltipDOM.style.overflowY = 'hidden';
|
|
39686
|
-
this.tooltipDOM.style.backgroundColor =
|
|
39687
|
-
this.tooltipDOM.style.border = "1px solid ".concat(
|
|
39688
|
-
this.tooltipDOM.style.color =
|
|
40298
|
+
this.tooltipDOM.style.backgroundColor = tooltipOptions.backgroundColor;
|
|
40299
|
+
this.tooltipDOM.style.border = "1px solid ".concat(tooltipOptions.borderColor);
|
|
40300
|
+
this.tooltipDOM.style.color = tooltipOptions.fontColor;
|
|
39689
40301
|
|
|
39690
|
-
if (
|
|
39691
|
-
var shadowColor = "rgba(0, 0, 0, ".concat(
|
|
40302
|
+
if (tooltipOptions.useShadow) {
|
|
40303
|
+
var shadowColor = "rgba(0, 0, 0, ".concat(tooltipOptions.shadowOpacity, ")");
|
|
39692
40304
|
this.tooltipDOM.style.boxShadow = "2px 2px 2px ".concat(shadowColor);
|
|
39693
40305
|
}
|
|
39694
40306
|
|
|
@@ -40108,36 +40720,41 @@ var element_tip_modules = {
|
|
|
40108
40720
|
this.drawTextTip(_objectSpread2({
|
|
40109
40721
|
opt: selTipOpt,
|
|
40110
40722
|
tipType: 'sel',
|
|
40723
|
+
seriesOpt: seriesInfo,
|
|
40111
40724
|
isSamePos: isSamePos
|
|
40112
40725
|
}, selArgs));
|
|
40113
40726
|
}
|
|
40114
40727
|
|
|
40115
40728
|
if (selTipOpt.showIndicator) {
|
|
40116
40729
|
this.drawFixedIndicator(_objectSpread2({
|
|
40117
|
-
opt: selTipOpt
|
|
40730
|
+
opt: selTipOpt,
|
|
40731
|
+
seriesOpt: seriesInfo
|
|
40118
40732
|
}, selArgs));
|
|
40119
40733
|
}
|
|
40120
40734
|
}
|
|
40121
40735
|
|
|
40122
|
-
if (tipLocationInfo && tipLocationInfo.label
|
|
40736
|
+
if (tipLocationInfo && tipLocationInfo !== null && tipLocationInfo !== void 0 && tipLocationInfo.label && (tipLocationInfo === null || tipLocationInfo === void 0 ? void 0 : tipLocationInfo.label) === 0) {
|
|
40123
40737
|
this.lastHitInfo = tipLocationInfo;
|
|
40124
40738
|
}
|
|
40125
40739
|
}
|
|
40126
40740
|
|
|
40127
40741
|
if (maxTipOpt.use && !isExistSelectedLabel) {
|
|
40128
40742
|
var maxSID = this.minMax[isHorizontal ? 'x' : 'y'][0].maxSID;
|
|
40129
|
-
|
|
40743
|
+
var _seriesInfo = this.seriesList[maxSID];
|
|
40744
|
+
maxArgs = this.calculateTipInfo(_seriesInfo, 'max', null);
|
|
40130
40745
|
|
|
40131
40746
|
if (maxTipOpt.use && maxArgs) {
|
|
40132
40747
|
maxArgs.text = numberWithComma(maxArgs.value);
|
|
40133
40748
|
this.drawTextTip(_objectSpread2({
|
|
40134
40749
|
opt: maxTipOpt,
|
|
40135
|
-
tipType: 'max'
|
|
40750
|
+
tipType: 'max',
|
|
40751
|
+
seriesOpt: _seriesInfo
|
|
40136
40752
|
}, maxArgs));
|
|
40137
40753
|
|
|
40138
40754
|
if (maxTipOpt.showIndicator) {
|
|
40139
40755
|
this.drawFixedIndicator(_objectSpread2({
|
|
40140
|
-
opt: maxTipOpt
|
|
40756
|
+
opt: maxTipOpt,
|
|
40757
|
+
seriesOpt: _seriesInfo
|
|
40141
40758
|
}, maxArgs));
|
|
40142
40759
|
}
|
|
40143
40760
|
}
|
|
@@ -40233,6 +40850,8 @@ var element_tip_modules = {
|
|
|
40233
40850
|
}
|
|
40234
40851
|
} else if (type === 'line') {
|
|
40235
40852
|
dp = helpers_canvas.calculateX(ldata, graphX.graphMin, graphX.graphMax, xArea - size.comboOffset, xsp + size.comboOffset / 2);
|
|
40853
|
+
} else if (type === 'scatter') {
|
|
40854
|
+
dp = helpers_canvas.calculateX(ldata, graphX.graphMin, graphX.graphMax, xArea, xsp);
|
|
40236
40855
|
}
|
|
40237
40856
|
|
|
40238
40857
|
var sizeObj = {
|
|
@@ -40264,8 +40883,18 @@ var element_tip_modules = {
|
|
|
40264
40883
|
dp = param.dp,
|
|
40265
40884
|
type = param.type,
|
|
40266
40885
|
value = param.value,
|
|
40267
|
-
opt = param.opt
|
|
40268
|
-
|
|
40886
|
+
opt = param.opt,
|
|
40887
|
+
seriesOpt = param.seriesOpt;
|
|
40888
|
+
var offset = 0;
|
|
40889
|
+
|
|
40890
|
+
if (type === 'line') {
|
|
40891
|
+
offset += 3;
|
|
40892
|
+
} else if (type === 'scatter') {
|
|
40893
|
+
var _seriesOpt$pointSize;
|
|
40894
|
+
|
|
40895
|
+
offset += (_seriesOpt$pointSize = seriesOpt === null || seriesOpt === void 0 ? void 0 : seriesOpt.pointSize) !== null && _seriesOpt$pointSize !== void 0 ? _seriesOpt$pointSize : 0;
|
|
40896
|
+
}
|
|
40897
|
+
|
|
40269
40898
|
var gp;
|
|
40270
40899
|
|
|
40271
40900
|
if (opt.fixedPosTop) {
|
|
@@ -40450,11 +41079,21 @@ var element_tip_modules = {
|
|
|
40450
41079
|
opt = param.opt,
|
|
40451
41080
|
type = param.type,
|
|
40452
41081
|
tipType = param.tipType,
|
|
40453
|
-
isSamePos = param.isSamePos
|
|
41082
|
+
isSamePos = param.isSamePos,
|
|
41083
|
+
seriesOpt = param.seriesOpt;
|
|
40454
41084
|
var arrowSize = 4;
|
|
40455
41085
|
var maxTipHeight = 20;
|
|
40456
41086
|
var borderRadius = 4;
|
|
40457
|
-
var offset =
|
|
41087
|
+
var offset = 1;
|
|
41088
|
+
|
|
41089
|
+
if (type === 'line') {
|
|
41090
|
+
offset += 6;
|
|
41091
|
+
} else if (type === 'scatter') {
|
|
41092
|
+
offset += seriesOpt === null || seriesOpt === void 0 ? void 0 : seriesOpt.pointSize;
|
|
41093
|
+
} else if (type === 'bar') {
|
|
41094
|
+
offset += 4;
|
|
41095
|
+
}
|
|
41096
|
+
|
|
40458
41097
|
var gp;
|
|
40459
41098
|
var tdp = dp;
|
|
40460
41099
|
|
|
@@ -40814,7 +41453,8 @@ var chart_core_EvChart = /*#__PURE__*/function () {
|
|
|
40814
41453
|
|
|
40815
41454
|
var _this$options2 = this.options,
|
|
40816
41455
|
maxTip = _this$options2.maxTip,
|
|
40817
|
-
selectLabel = _this$options2.selectLabel
|
|
41456
|
+
selectLabel = _this$options2.selectLabel,
|
|
41457
|
+
selectItem = _this$options2.selectItem;
|
|
40818
41458
|
var opt = {
|
|
40819
41459
|
ctx: this.bufferCtx,
|
|
40820
41460
|
chartRect: this.chartRect,
|
|
@@ -40845,40 +41485,91 @@ var chart_core_EvChart = /*#__PURE__*/function () {
|
|
|
40845
41485
|
for (var jx = 0; jx < chartTypeSet.length; jx++) {
|
|
40846
41486
|
var series = this.seriesList[chartTypeSet[jx]];
|
|
40847
41487
|
|
|
40848
|
-
|
|
40849
|
-
|
|
40850
|
-
|
|
40851
|
-
|
|
40852
|
-
|
|
40853
|
-
|
|
40854
|
-
|
|
40855
|
-
thickness: thickness,
|
|
40856
|
-
borderRadius: borderRadius,
|
|
40857
|
-
showSeriesCount: showSeriesCount,
|
|
40858
|
-
showIndex: showIndex
|
|
40859
|
-
}, opt));
|
|
40860
|
-
|
|
40861
|
-
if (series.show) {
|
|
40862
|
-
showIndex++;
|
|
40863
|
-
}
|
|
40864
|
-
} else {
|
|
40865
|
-
var _ref, _this$defaultSelectIt;
|
|
41488
|
+
switch (chartType) {
|
|
41489
|
+
case 'line':
|
|
41490
|
+
case 'heatMap':
|
|
41491
|
+
{
|
|
41492
|
+
series.draw(opt);
|
|
41493
|
+
break;
|
|
41494
|
+
}
|
|
40866
41495
|
|
|
40867
|
-
|
|
40868
|
-
|
|
40869
|
-
|
|
41496
|
+
case 'bar':
|
|
41497
|
+
{
|
|
41498
|
+
var _this$options3 = this.options,
|
|
41499
|
+
thickness = _this$options3.thickness,
|
|
41500
|
+
borderRadius = _this$options3.borderRadius;
|
|
41501
|
+
series.draw(_objectSpread2({
|
|
41502
|
+
thickness: thickness,
|
|
41503
|
+
borderRadius: borderRadius,
|
|
41504
|
+
showSeriesCount: showSeriesCount,
|
|
41505
|
+
showIndex: showIndex
|
|
41506
|
+
}, opt));
|
|
41507
|
+
|
|
41508
|
+
if (series.show) {
|
|
41509
|
+
showIndex++;
|
|
41510
|
+
}
|
|
40870
41511
|
|
|
40871
|
-
|
|
40872
|
-
|
|
40873
|
-
} else {
|
|
40874
|
-
this.drawPie(selectInfo);
|
|
40875
|
-
}
|
|
41512
|
+
break;
|
|
41513
|
+
}
|
|
40876
41514
|
|
|
40877
|
-
|
|
40878
|
-
|
|
40879
|
-
|
|
41515
|
+
case 'pie':
|
|
41516
|
+
{
|
|
41517
|
+
var _ref, _this$defaultSelectIt;
|
|
40880
41518
|
|
|
40881
|
-
|
|
41519
|
+
var selectInfo = (_ref = hitInfo !== null && hitInfo !== void 0 ? hitInfo : this.lastHitInfo) !== null && _ref !== void 0 ? _ref : {
|
|
41520
|
+
sId: (_this$defaultSelectIt = this.defaultSelectItemInfo) === null || _this$defaultSelectIt === void 0 ? void 0 : _this$defaultSelectIt.seriesID
|
|
41521
|
+
};
|
|
41522
|
+
|
|
41523
|
+
if (this.options.sunburst) {
|
|
41524
|
+
this.drawSunburst(selectInfo);
|
|
41525
|
+
} else {
|
|
41526
|
+
this.drawPie(selectInfo);
|
|
41527
|
+
}
|
|
41528
|
+
|
|
41529
|
+
if (this.options.doughnutHoleSize > 0) {
|
|
41530
|
+
this.drawDoughnutHole();
|
|
41531
|
+
}
|
|
41532
|
+
|
|
41533
|
+
break;
|
|
41534
|
+
}
|
|
41535
|
+
|
|
41536
|
+
case 'scatter':
|
|
41537
|
+
{
|
|
41538
|
+
if (selectItem.use && selectItem.useSeriesOpacity) {
|
|
41539
|
+
var _this$lastHitInfo, _this$lastHitInfo2, _this$defaultSelectIt2, _this$defaultSelectIt3;
|
|
41540
|
+
|
|
41541
|
+
if (hitInfo) {
|
|
41542
|
+
if (hitInfo !== null && hitInfo !== void 0 && hitInfo.maxIndex || (hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.maxIndex) === 0) {
|
|
41543
|
+
opt.selectInfo = {
|
|
41544
|
+
seriesID: hitInfo.sId,
|
|
41545
|
+
dataIndex: hitInfo.maxIndex
|
|
41546
|
+
};
|
|
41547
|
+
} else {
|
|
41548
|
+
opt.selectInfo = null;
|
|
41549
|
+
}
|
|
41550
|
+
} else if ((_this$lastHitInfo = this.lastHitInfo) !== null && _this$lastHitInfo !== void 0 && _this$lastHitInfo.maxIndex || ((_this$lastHitInfo2 = this.lastHitInfo) === null || _this$lastHitInfo2 === void 0 ? void 0 : _this$lastHitInfo2.maxIndex) === 0) {
|
|
41551
|
+
opt.selectInfo = {
|
|
41552
|
+
seriesID: this.lastHitInfo.sId,
|
|
41553
|
+
dataIndex: this.lastHitInfo.maxIndex
|
|
41554
|
+
};
|
|
41555
|
+
} else if ((_this$defaultSelectIt2 = this.defaultSelectItemInfo) !== null && _this$defaultSelectIt2 !== void 0 && _this$defaultSelectIt2.dataIndex || ((_this$defaultSelectIt3 = this.defaultSelectItemInfo) === null || _this$defaultSelectIt3 === void 0 ? void 0 : _this$defaultSelectIt3.dataIndex) === 0) {
|
|
41556
|
+
opt.selectInfo = {
|
|
41557
|
+
seriesID: this.defaultSelectItemInfo.seriesID,
|
|
41558
|
+
dataIndex: this.defaultSelectItemInfo.dataIndex
|
|
41559
|
+
};
|
|
41560
|
+
} else {
|
|
41561
|
+
opt.selectInfo = null;
|
|
41562
|
+
}
|
|
41563
|
+
}
|
|
41564
|
+
|
|
41565
|
+
series.draw(opt);
|
|
41566
|
+
break;
|
|
41567
|
+
}
|
|
41568
|
+
|
|
41569
|
+
default:
|
|
41570
|
+
{
|
|
41571
|
+
break;
|
|
41572
|
+
}
|
|
40882
41573
|
}
|
|
40883
41574
|
}
|
|
40884
41575
|
}
|
|
@@ -41336,7 +42027,7 @@ var chart_core_EvChart = /*#__PURE__*/function () {
|
|
|
41336
42027
|
this.axesRange = this.getAxesRange();
|
|
41337
42028
|
this.labelOffset = this.getLabelOffset();
|
|
41338
42029
|
this.initSelectedLabelInfo();
|
|
41339
|
-
this.render();
|
|
42030
|
+
this.render(updateInfo === null || updateInfo === void 0 ? void 0 : updateInfo.hitInfo);
|
|
41340
42031
|
var isDragMove = this.dragInfo && this.drawSelectionArea;
|
|
41341
42032
|
|
|
41342
42033
|
if (isDragMove) {
|
|
@@ -41592,7 +42283,8 @@ var DEFAULT_OPTIONS = {
|
|
|
41592
42283
|
useApproximateValue: false,
|
|
41593
42284
|
indicatorColor: '#000000',
|
|
41594
42285
|
tipBackground: '#000000',
|
|
41595
|
-
tipTextColor: '#FFFFFF'
|
|
42286
|
+
tipTextColor: '#FFFFFF',
|
|
42287
|
+
useSeriesOpacity: false
|
|
41596
42288
|
},
|
|
41597
42289
|
selectLabel: {
|
|
41598
42290
|
use: false,
|