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.umd.js
CHANGED
|
@@ -5033,6 +5033,29 @@ module.exports = function (it) {
|
|
|
5033
5033
|
};
|
|
5034
5034
|
|
|
5035
5035
|
|
|
5036
|
+
/***/ }),
|
|
5037
|
+
|
|
5038
|
+
/***/ "3c39":
|
|
5039
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5040
|
+
|
|
5041
|
+
// Imports
|
|
5042
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
5043
|
+
var ___CSS_LOADER_GET_URL_IMPORT___ = __webpack_require__("1de5");
|
|
5044
|
+
var ___CSS_LOADER_URL_IMPORT_0___ = __webpack_require__("f051");
|
|
5045
|
+
var ___CSS_LOADER_URL_IMPORT_1___ = __webpack_require__("0924");
|
|
5046
|
+
var ___CSS_LOADER_URL_IMPORT_2___ = __webpack_require__("eb91");
|
|
5047
|
+
var ___CSS_LOADER_URL_IMPORT_3___ = __webpack_require__("a884");
|
|
5048
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
5049
|
+
var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);
|
|
5050
|
+
var ___CSS_LOADER_URL_REPLACEMENT_1___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_1___);
|
|
5051
|
+
var ___CSS_LOADER_URL_REPLACEMENT_2___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_2___);
|
|
5052
|
+
var ___CSS_LOADER_URL_REPLACEMENT_3___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_3___);
|
|
5053
|
+
// Module
|
|
5054
|
+
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%}", ""]);
|
|
5055
|
+
// Exports
|
|
5056
|
+
module.exports = exports;
|
|
5057
|
+
|
|
5058
|
+
|
|
5036
5059
|
/***/ }),
|
|
5037
5060
|
|
|
5038
5061
|
/***/ "3c48":
|
|
@@ -6496,6 +6519,21 @@ var update = add("e9f0be08", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
6496
6519
|
|
|
6497
6520
|
/***/ }),
|
|
6498
6521
|
|
|
6522
|
+
/***/ "6301":
|
|
6523
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
6524
|
+
|
|
6525
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
6526
|
+
|
|
6527
|
+
// load the styles
|
|
6528
|
+
var content = __webpack_require__("3c39");
|
|
6529
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
6530
|
+
if(content.locals) module.exports = content.locals;
|
|
6531
|
+
// add the styles to the DOM
|
|
6532
|
+
var add = __webpack_require__("499e").default
|
|
6533
|
+
var update = add("215a702e", content, true, {"sourceMap":false,"shadowMode":false});
|
|
6534
|
+
|
|
6535
|
+
/***/ }),
|
|
6536
|
+
|
|
6499
6537
|
/***/ "6360":
|
|
6500
6538
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6501
6539
|
|
|
@@ -6775,6 +6813,17 @@ module.exports = function (originalArray, length) {
|
|
|
6775
6813
|
};
|
|
6776
6814
|
|
|
6777
6815
|
|
|
6816
|
+
/***/ }),
|
|
6817
|
+
|
|
6818
|
+
/***/ "67bd":
|
|
6819
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6820
|
+
|
|
6821
|
+
"use strict";
|
|
6822
|
+
/* 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");
|
|
6823
|
+
/* 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__);
|
|
6824
|
+
/* unused harmony reexport * */
|
|
6825
|
+
|
|
6826
|
+
|
|
6778
6827
|
/***/ }),
|
|
6779
6828
|
|
|
6780
6829
|
/***/ "67cc":
|
|
@@ -7384,6 +7433,17 @@ $({ target: 'Array', proto: true, forced: SKIPS_HOLES || !USES_TO_LENGTH }, {
|
|
|
7384
7433
|
addToUnscopables(FIND);
|
|
7385
7434
|
|
|
7386
7435
|
|
|
7436
|
+
/***/ }),
|
|
7437
|
+
|
|
7438
|
+
/***/ "7dc3":
|
|
7439
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
7440
|
+
|
|
7441
|
+
"use strict";
|
|
7442
|
+
/* 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");
|
|
7443
|
+
/* 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__);
|
|
7444
|
+
/* unused harmony reexport * */
|
|
7445
|
+
|
|
7446
|
+
|
|
7387
7447
|
/***/ }),
|
|
7388
7448
|
|
|
7389
7449
|
/***/ "7dca":
|
|
@@ -7799,21 +7859,6 @@ exports.push([module.i, "#ev-message-box-modal{display:flex;position:fixed;top:0
|
|
|
7799
7859
|
module.exports = exports;
|
|
7800
7860
|
|
|
7801
7861
|
|
|
7802
|
-
/***/ }),
|
|
7803
|
-
|
|
7804
|
-
/***/ "8e0f":
|
|
7805
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7806
|
-
|
|
7807
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
7808
|
-
|
|
7809
|
-
// load the styles
|
|
7810
|
-
var content = __webpack_require__("ded0");
|
|
7811
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
7812
|
-
if(content.locals) module.exports = content.locals;
|
|
7813
|
-
// add the styles to the DOM
|
|
7814
|
-
var add = __webpack_require__("499e").default
|
|
7815
|
-
var update = add("4194f44c", content, true, {"sourceMap":false,"shadowMode":false});
|
|
7816
|
-
|
|
7817
7862
|
/***/ }),
|
|
7818
7863
|
|
|
7819
7864
|
/***/ "8fef":
|
|
@@ -7907,7 +7952,7 @@ $({ target: 'Number', stat: true }, {
|
|
|
7907
7952
|
/***/ "9224":
|
|
7908
7953
|
/***/ (function(module) {
|
|
7909
7954
|
|
|
7910
|
-
module.exports = JSON.parse("{\"a\":\"3.3.
|
|
7955
|
+
module.exports = JSON.parse("{\"a\":\"3.3.11\"}");
|
|
7911
7956
|
|
|
7912
7957
|
/***/ }),
|
|
7913
7958
|
|
|
@@ -10222,13 +10267,16 @@ module.exports = !fails(function () {
|
|
|
10222
10267
|
|
|
10223
10268
|
/***/ }),
|
|
10224
10269
|
|
|
10225
|
-
/***/ "
|
|
10226
|
-
/***/ (function(module,
|
|
10270
|
+
/***/ "bd50":
|
|
10271
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
10227
10272
|
|
|
10228
|
-
|
|
10229
|
-
|
|
10230
|
-
|
|
10231
|
-
|
|
10273
|
+
// Imports
|
|
10274
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
10275
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
10276
|
+
// Module
|
|
10277
|
+
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}", ""]);
|
|
10278
|
+
// Exports
|
|
10279
|
+
module.exports = exports;
|
|
10232
10280
|
|
|
10233
10281
|
|
|
10234
10282
|
/***/ }),
|
|
@@ -11212,6 +11260,21 @@ for (var COLLECTION_NAME in DOMIterables) {
|
|
|
11212
11260
|
}
|
|
11213
11261
|
|
|
11214
11262
|
|
|
11263
|
+
/***/ }),
|
|
11264
|
+
|
|
11265
|
+
/***/ "de33":
|
|
11266
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
11267
|
+
|
|
11268
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
11269
|
+
|
|
11270
|
+
// load the styles
|
|
11271
|
+
var content = __webpack_require__("bd50");
|
|
11272
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
11273
|
+
if(content.locals) module.exports = content.locals;
|
|
11274
|
+
// add the styles to the DOM
|
|
11275
|
+
var add = __webpack_require__("499e").default
|
|
11276
|
+
var update = add("542a12f8", content, true, {"sourceMap":false,"shadowMode":false});
|
|
11277
|
+
|
|
11215
11278
|
/***/ }),
|
|
11216
11279
|
|
|
11217
11280
|
/***/ "dea5":
|
|
@@ -11223,29 +11286,6 @@ for (var COLLECTION_NAME in DOMIterables) {
|
|
|
11223
11286
|
/* unused harmony reexport * */
|
|
11224
11287
|
|
|
11225
11288
|
|
|
11226
|
-
/***/ }),
|
|
11227
|
-
|
|
11228
|
-
/***/ "ded0":
|
|
11229
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
11230
|
-
|
|
11231
|
-
// Imports
|
|
11232
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
11233
|
-
var ___CSS_LOADER_GET_URL_IMPORT___ = __webpack_require__("1de5");
|
|
11234
|
-
var ___CSS_LOADER_URL_IMPORT_0___ = __webpack_require__("f051");
|
|
11235
|
-
var ___CSS_LOADER_URL_IMPORT_1___ = __webpack_require__("0924");
|
|
11236
|
-
var ___CSS_LOADER_URL_IMPORT_2___ = __webpack_require__("eb91");
|
|
11237
|
-
var ___CSS_LOADER_URL_IMPORT_3___ = __webpack_require__("a884");
|
|
11238
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
11239
|
-
var ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);
|
|
11240
|
-
var ___CSS_LOADER_URL_REPLACEMENT_1___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_1___);
|
|
11241
|
-
var ___CSS_LOADER_URL_REPLACEMENT_2___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_2___);
|
|
11242
|
-
var ___CSS_LOADER_URL_REPLACEMENT_3___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_3___);
|
|
11243
|
-
// Module
|
|
11244
|
-
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%}", ""]);
|
|
11245
|
-
// Exports
|
|
11246
|
-
module.exports = exports;
|
|
11247
|
-
|
|
11248
|
-
|
|
11249
11289
|
/***/ }),
|
|
11250
11290
|
|
|
11251
11291
|
/***/ "df60":
|
|
@@ -26260,39 +26300,39 @@ var dist_default = /*#__PURE__*/__webpack_require__.n(dist);
|
|
|
26260
26300
|
var vue3_observe_visibility_common = __webpack_require__("196e");
|
|
26261
26301
|
var vue3_observe_visibility_common_default = /*#__PURE__*/__webpack_require__.n(vue3_observe_visibility_common);
|
|
26262
26302
|
|
|
26263
|
-
// 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=
|
|
26303
|
+
// 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
|
|
26264
26304
|
|
|
26265
26305
|
|
|
26266
26306
|
|
|
26267
26307
|
|
|
26268
26308
|
|
|
26269
|
-
var _withId = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withScopeId"])("data-v-
|
|
26309
|
+
var _withId = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withScopeId"])("data-v-6493e3f4");
|
|
26270
26310
|
|
|
26271
|
-
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-
|
|
26311
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-6493e3f4");
|
|
26272
26312
|
|
|
26273
|
-
var
|
|
26313
|
+
var Gridvue_type_template_id_6493e3f4_scoped_true_hoisted_1 = {
|
|
26274
26314
|
class: "column-list"
|
|
26275
26315
|
};
|
|
26276
|
-
var
|
|
26316
|
+
var Gridvue_type_template_id_6493e3f4_scoped_true_hoisted_2 = {
|
|
26277
26317
|
key: 0,
|
|
26278
26318
|
class: "column-filter-status"
|
|
26279
26319
|
};
|
|
26280
|
-
var
|
|
26320
|
+
var Gridvue_type_template_id_6493e3f4_scoped_true_hoisted_3 = {
|
|
26281
26321
|
key: 0
|
|
26282
26322
|
};
|
|
26283
26323
|
|
|
26284
|
-
var
|
|
26324
|
+
var Gridvue_type_template_id_6493e3f4_scoped_true_hoisted_4 = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("td", {
|
|
26285
26325
|
class: "is-empty"
|
|
26286
26326
|
}, "No records", -1);
|
|
26287
26327
|
|
|
26288
|
-
var
|
|
26328
|
+
var Gridvue_type_template_id_6493e3f4_scoped_true_hoisted_5 = {
|
|
26289
26329
|
ref: "resizeLine",
|
|
26290
26330
|
class: "table-resize-line"
|
|
26291
26331
|
};
|
|
26292
26332
|
|
|
26293
26333
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])();
|
|
26294
26334
|
|
|
26295
|
-
var
|
|
26335
|
+
var Gridvue_type_template_id_6493e3f4_scoped_true_render = /*#__PURE__*/_withId(function (_ctx, _cache, $props, $setup, $data, $options) {
|
|
26296
26336
|
var _component_toolbar = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("toolbar");
|
|
26297
26337
|
|
|
26298
26338
|
var _component_ev_checkbox = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ev-checkbox");
|
|
@@ -26303,7 +26343,9 @@ var Gridvue_type_template_id_247d3bf0_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
26303
26343
|
|
|
26304
26344
|
var _component_filter_window = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("filter-window");
|
|
26305
26345
|
|
|
26306
|
-
var
|
|
26346
|
+
var _component_grid_summary = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("grid-summary");
|
|
26347
|
+
|
|
26348
|
+
var _component_grid_pagination = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("grid-pagination");
|
|
26307
26349
|
|
|
26308
26350
|
var _directive_resize = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveDirective"])("resize");
|
|
26309
26351
|
|
|
@@ -26341,7 +26383,7 @@ var Gridvue_type_template_id_247d3bf0_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
26341
26383
|
'table-header': true,
|
|
26342
26384
|
'non-border': !!$setup.borderStyle
|
|
26343
26385
|
}
|
|
26344
|
-
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("ul",
|
|
26386
|
+
}, [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", {
|
|
26345
26387
|
key: 0,
|
|
26346
26388
|
class: {
|
|
26347
26389
|
'column': true,
|
|
@@ -26374,7 +26416,7 @@ var Gridvue_type_template_id_247d3bf0_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
26374
26416
|
}
|
|
26375
26417
|
}, [_ctx.isFiltering && (_ctx$filterList$colum = _ctx.filterList[column.field]) !== null && _ctx$filterList$colum !== void 0 && _ctx$filterList$colum.find(function (item) {
|
|
26376
26418
|
return item.use;
|
|
26377
|
-
}) ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("span",
|
|
26419
|
+
}) ? (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, {
|
|
26378
26420
|
icon: "ev-icon-filter"
|
|
26379
26421
|
})])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("span", {
|
|
26380
26422
|
title: column.caption,
|
|
@@ -26390,7 +26432,7 @@ var Gridvue_type_template_id_247d3bf0_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
26390
26432
|
})) : 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, {
|
|
26391
26433
|
key: 1,
|
|
26392
26434
|
icon: "ev-icon-triangle-up"
|
|
26393
|
-
})) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true),
|
|
26435
|
+
})) : 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", {
|
|
26394
26436
|
key: 2,
|
|
26395
26437
|
class: "column-filter",
|
|
26396
26438
|
onClickCapture: function onClickCapture($event) {
|
|
@@ -26431,7 +26473,7 @@ var Gridvue_type_template_id_247d3bf0_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
26431
26473
|
"data-index": row[0],
|
|
26432
26474
|
class: {
|
|
26433
26475
|
row: true,
|
|
26434
|
-
selected: row[
|
|
26476
|
+
selected: row[3],
|
|
26435
26477
|
'non-border': !!$setup.borderStyle && $setup.borderStyle !== 'rows',
|
|
26436
26478
|
highlight: row[0] === $setup.highlightIdx
|
|
26437
26479
|
},
|
|
@@ -26484,16 +26526,16 @@ var Gridvue_type_template_id_247d3bf0_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
26484
26526
|
}
|
|
26485
26527
|
}) : (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div", {
|
|
26486
26528
|
key: 1,
|
|
26487
|
-
title: $setup.getConvertValue(column
|
|
26488
|
-
}, Object(external_commonjs_vue_commonjs2_vue_root_Vue_["toDisplayString"])($setup.getConvertValue(column
|
|
26529
|
+
title: $setup.getConvertValue(column, row[2][column.index])
|
|
26530
|
+
}, 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);
|
|
26489
26531
|
}), 128))], 42, ["data-index", "onClick", "onDblclick"]);
|
|
26490
|
-
}), 128)), !_ctx.viewStore.length ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("tr",
|
|
26532
|
+
}), 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", {
|
|
26491
26533
|
style: "height: ".concat(_ctx.vScrollBottomHeight, "px;"),
|
|
26492
26534
|
class: "vscroll-spacer"
|
|
26493
26535
|
}, null, 4), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])(_component_ev_context_menu, {
|
|
26494
26536
|
ref: "menu",
|
|
26495
26537
|
items: _ctx.contextMenuItems
|
|
26496
|
-
}, null, 8, ["items"])], 34), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withDirectives"])(Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("div",
|
|
26538
|
+
}, 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, {
|
|
26497
26539
|
"is-show": _ctx.showFilterWindow,
|
|
26498
26540
|
"target-column": _ctx.currentFilter.column,
|
|
26499
26541
|
"filter-items": _ctx.currentFilter.items,
|
|
@@ -26502,8 +26544,18 @@ var Gridvue_type_template_id_247d3bf0_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
26502
26544
|
}, 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, {
|
|
26503
26545
|
callback: $setup.onShow,
|
|
26504
26546
|
once: true
|
|
26505
|
-
}]]),
|
|
26547
|
+
}]]), $setup.useSummary ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])(_component_grid_summary, {
|
|
26506
26548
|
key: 1,
|
|
26549
|
+
"ordered-columns": _ctx.orderedColumns,
|
|
26550
|
+
stores: $setup.stores,
|
|
26551
|
+
"use-checkbox": _ctx.useCheckbox.use,
|
|
26552
|
+
"style-option": {
|
|
26553
|
+
borderStyle: $setup.borderStyle,
|
|
26554
|
+
minWidth: _ctx.minWidth,
|
|
26555
|
+
rowHeight: _ctx.rowHeight
|
|
26556
|
+
}
|
|
26557
|
+
}, 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, {
|
|
26558
|
+
key: 2,
|
|
26507
26559
|
modelValue: _ctx.currentPage,
|
|
26508
26560
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = function ($event) {
|
|
26509
26561
|
return _ctx.currentPage = $event;
|
|
@@ -26515,7 +26567,7 @@ var Gridvue_type_template_id_247d3bf0_scoped_true_render = /*#__PURE__*/_withId(
|
|
|
26515
26567
|
order: _ctx.order
|
|
26516
26568
|
}, null, 8, ["modelValue", "total", "per-page", "visible-page", "show-page-info", "order"])) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64);
|
|
26517
26569
|
});
|
|
26518
|
-
// CONCATENATED MODULE: ./src/components/grid/Grid.vue?vue&type=template&id=
|
|
26570
|
+
// CONCATENATED MODULE: ./src/components/grid/Grid.vue?vue&type=template&id=6493e3f4&scoped=true
|
|
26519
26571
|
|
|
26520
26572
|
// 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
|
|
26521
26573
|
|
|
@@ -26545,110 +26597,6 @@ var grid_toolbarvue_type_style_index_0_id_3c245986_lang_scss = __webpack_require
|
|
|
26545
26597
|
grid_toolbarvue_type_script_lang_js.render = grid_toolbarvue_type_template_id_3c245986_render
|
|
26546
26598
|
|
|
26547
26599
|
/* harmony default export */ var grid_toolbar = (grid_toolbarvue_type_script_lang_js);
|
|
26548
|
-
// 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
|
|
26549
|
-
|
|
26550
|
-
|
|
26551
|
-
var grid_paginationvue_type_template_id_210f4f6a_scoped_true_withId = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withScopeId"])("data-v-210f4f6a");
|
|
26552
|
-
|
|
26553
|
-
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-210f4f6a");
|
|
26554
|
-
|
|
26555
|
-
var grid_paginationvue_type_template_id_210f4f6a_scoped_true_hoisted_1 = {
|
|
26556
|
-
class: "grid-pagination"
|
|
26557
|
-
};
|
|
26558
|
-
|
|
26559
|
-
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])();
|
|
26560
|
-
|
|
26561
|
-
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) {
|
|
26562
|
-
var _component_ev_pagination = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ev-pagination");
|
|
26563
|
-
|
|
26564
|
-
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, {
|
|
26565
|
-
modelValue: $setup.currentValue,
|
|
26566
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = function ($event) {
|
|
26567
|
-
return $setup.currentValue = $event;
|
|
26568
|
-
}),
|
|
26569
|
-
total: $props.total,
|
|
26570
|
-
"per-page": $props.perPage,
|
|
26571
|
-
"visible-page": $props.visiblePage,
|
|
26572
|
-
"show-page-info": $props.showPageInfo,
|
|
26573
|
-
order: $props.order,
|
|
26574
|
-
onChange: $setup.changePage
|
|
26575
|
-
}, null, 8, ["modelValue", "total", "per-page", "visible-page", "show-page-info", "order", "onChange"])]);
|
|
26576
|
-
});
|
|
26577
|
-
// CONCATENATED MODULE: ./src/components/grid/grid.pagination.vue?vue&type=template&id=210f4f6a&scoped=true
|
|
26578
|
-
|
|
26579
|
-
// 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
|
|
26580
|
-
|
|
26581
|
-
|
|
26582
|
-
|
|
26583
|
-
/* harmony default export */ var grid_paginationvue_type_script_lang_js = ({
|
|
26584
|
-
name: 'EvGridPagination',
|
|
26585
|
-
props: {
|
|
26586
|
-
total: {
|
|
26587
|
-
type: [Number, String],
|
|
26588
|
-
default: 0
|
|
26589
|
-
},
|
|
26590
|
-
visiblePage: {
|
|
26591
|
-
type: [Number, String],
|
|
26592
|
-
default: 8
|
|
26593
|
-
},
|
|
26594
|
-
perPage: {
|
|
26595
|
-
type: [Number, String],
|
|
26596
|
-
default: 20
|
|
26597
|
-
},
|
|
26598
|
-
modelValue: {
|
|
26599
|
-
type: [Number, String],
|
|
26600
|
-
default: 1
|
|
26601
|
-
},
|
|
26602
|
-
showPageInfo: {
|
|
26603
|
-
type: Boolean,
|
|
26604
|
-
default: false
|
|
26605
|
-
},
|
|
26606
|
-
order: {
|
|
26607
|
-
type: String,
|
|
26608
|
-
default: 'left',
|
|
26609
|
-
validator: function validator(val) {
|
|
26610
|
-
return ['left', 'right', 'center'].includes(val);
|
|
26611
|
-
}
|
|
26612
|
-
}
|
|
26613
|
-
},
|
|
26614
|
-
emits: {
|
|
26615
|
-
'update:modelValue': null
|
|
26616
|
-
},
|
|
26617
|
-
setup: function setup(props, _ref) {
|
|
26618
|
-
var emit = _ref.emit;
|
|
26619
|
-
var currentValue = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(props.modelValue);
|
|
26620
|
-
|
|
26621
|
-
var changePage = function changePage(page) {
|
|
26622
|
-
currentValue.value = page > 0 ? page : 1;
|
|
26623
|
-
emit('update:modelValue', currentValue.value);
|
|
26624
|
-
};
|
|
26625
|
-
|
|
26626
|
-
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
26627
|
-
return props.modelValue;
|
|
26628
|
-
}, function (value) {
|
|
26629
|
-
currentValue.value = value;
|
|
26630
|
-
});
|
|
26631
|
-
return {
|
|
26632
|
-
currentValue: currentValue,
|
|
26633
|
-
changePage: changePage
|
|
26634
|
-
};
|
|
26635
|
-
}
|
|
26636
|
-
});
|
|
26637
|
-
// CONCATENATED MODULE: ./src/components/grid/grid.pagination.vue?vue&type=script&lang=js
|
|
26638
|
-
|
|
26639
|
-
// EXTERNAL MODULE: ./src/components/grid/grid.pagination.vue?vue&type=style&index=0&id=210f4f6a&lang=scss&scoped=true
|
|
26640
|
-
var grid_paginationvue_type_style_index_0_id_210f4f6a_lang_scss_scoped_true = __webpack_require__("5e0f");
|
|
26641
|
-
|
|
26642
|
-
// CONCATENATED MODULE: ./src/components/grid/grid.pagination.vue
|
|
26643
|
-
|
|
26644
|
-
|
|
26645
|
-
|
|
26646
|
-
|
|
26647
|
-
|
|
26648
|
-
grid_paginationvue_type_script_lang_js.render = grid_paginationvue_type_template_id_210f4f6a_scoped_true_render
|
|
26649
|
-
grid_paginationvue_type_script_lang_js.__scopeId = "data-v-210f4f6a"
|
|
26650
|
-
|
|
26651
|
-
/* harmony default export */ var grid_pagination = (grid_paginationvue_type_script_lang_js);
|
|
26652
26600
|
// 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
|
|
26653
26601
|
|
|
26654
26602
|
|
|
@@ -27171,6 +27119,360 @@ grid_filter_windowvue_type_script_lang_js.render = grid_filter_windowvue_type_te
|
|
|
27171
27119
|
grid_filter_windowvue_type_script_lang_js.__scopeId = "data-v-138f0008"
|
|
27172
27120
|
|
|
27173
27121
|
/* harmony default export */ var grid_filter_window = (grid_filter_windowvue_type_script_lang_js);
|
|
27122
|
+
// 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
|
|
27123
|
+
|
|
27124
|
+
|
|
27125
|
+
var grid_paginationvue_type_template_id_210f4f6a_scoped_true_withId = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withScopeId"])("data-v-210f4f6a");
|
|
27126
|
+
|
|
27127
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-210f4f6a");
|
|
27128
|
+
|
|
27129
|
+
var grid_paginationvue_type_template_id_210f4f6a_scoped_true_hoisted_1 = {
|
|
27130
|
+
class: "grid-pagination"
|
|
27131
|
+
};
|
|
27132
|
+
|
|
27133
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])();
|
|
27134
|
+
|
|
27135
|
+
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) {
|
|
27136
|
+
var _component_ev_pagination = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["resolveComponent"])("ev-pagination");
|
|
27137
|
+
|
|
27138
|
+
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, {
|
|
27139
|
+
modelValue: $setup.currentValue,
|
|
27140
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = function ($event) {
|
|
27141
|
+
return $setup.currentValue = $event;
|
|
27142
|
+
}),
|
|
27143
|
+
total: $props.total,
|
|
27144
|
+
"per-page": $props.perPage,
|
|
27145
|
+
"visible-page": $props.visiblePage,
|
|
27146
|
+
"show-page-info": $props.showPageInfo,
|
|
27147
|
+
order: $props.order,
|
|
27148
|
+
onChange: $setup.changePage
|
|
27149
|
+
}, null, 8, ["modelValue", "total", "per-page", "visible-page", "show-page-info", "order", "onChange"])]);
|
|
27150
|
+
});
|
|
27151
|
+
// CONCATENATED MODULE: ./src/components/grid/grid.pagination.vue?vue&type=template&id=210f4f6a&scoped=true
|
|
27152
|
+
|
|
27153
|
+
// 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
|
|
27154
|
+
|
|
27155
|
+
|
|
27156
|
+
|
|
27157
|
+
/* harmony default export */ var grid_paginationvue_type_script_lang_js = ({
|
|
27158
|
+
name: 'EvGridPagination',
|
|
27159
|
+
props: {
|
|
27160
|
+
total: {
|
|
27161
|
+
type: [Number, String],
|
|
27162
|
+
default: 0
|
|
27163
|
+
},
|
|
27164
|
+
visiblePage: {
|
|
27165
|
+
type: [Number, String],
|
|
27166
|
+
default: 8
|
|
27167
|
+
},
|
|
27168
|
+
perPage: {
|
|
27169
|
+
type: [Number, String],
|
|
27170
|
+
default: 20
|
|
27171
|
+
},
|
|
27172
|
+
modelValue: {
|
|
27173
|
+
type: [Number, String],
|
|
27174
|
+
default: 1
|
|
27175
|
+
},
|
|
27176
|
+
showPageInfo: {
|
|
27177
|
+
type: Boolean,
|
|
27178
|
+
default: false
|
|
27179
|
+
},
|
|
27180
|
+
order: {
|
|
27181
|
+
type: String,
|
|
27182
|
+
default: 'left',
|
|
27183
|
+
validator: function validator(val) {
|
|
27184
|
+
return ['left', 'right', 'center'].includes(val);
|
|
27185
|
+
}
|
|
27186
|
+
}
|
|
27187
|
+
},
|
|
27188
|
+
emits: {
|
|
27189
|
+
'update:modelValue': null
|
|
27190
|
+
},
|
|
27191
|
+
setup: function setup(props, _ref) {
|
|
27192
|
+
var emit = _ref.emit;
|
|
27193
|
+
var currentValue = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["ref"])(props.modelValue);
|
|
27194
|
+
|
|
27195
|
+
var changePage = function changePage(page) {
|
|
27196
|
+
currentValue.value = page > 0 ? page : 1;
|
|
27197
|
+
emit('update:modelValue', currentValue.value);
|
|
27198
|
+
};
|
|
27199
|
+
|
|
27200
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
27201
|
+
return props.modelValue;
|
|
27202
|
+
}, function (value) {
|
|
27203
|
+
currentValue.value = value;
|
|
27204
|
+
});
|
|
27205
|
+
return {
|
|
27206
|
+
currentValue: currentValue,
|
|
27207
|
+
changePage: changePage
|
|
27208
|
+
};
|
|
27209
|
+
}
|
|
27210
|
+
});
|
|
27211
|
+
// CONCATENATED MODULE: ./src/components/grid/grid.pagination.vue?vue&type=script&lang=js
|
|
27212
|
+
|
|
27213
|
+
// EXTERNAL MODULE: ./src/components/grid/grid.pagination.vue?vue&type=style&index=0&id=210f4f6a&lang=scss&scoped=true
|
|
27214
|
+
var grid_paginationvue_type_style_index_0_id_210f4f6a_lang_scss_scoped_true = __webpack_require__("5e0f");
|
|
27215
|
+
|
|
27216
|
+
// CONCATENATED MODULE: ./src/components/grid/grid.pagination.vue
|
|
27217
|
+
|
|
27218
|
+
|
|
27219
|
+
|
|
27220
|
+
|
|
27221
|
+
|
|
27222
|
+
grid_paginationvue_type_script_lang_js.render = grid_paginationvue_type_template_id_210f4f6a_scoped_true_render
|
|
27223
|
+
grid_paginationvue_type_script_lang_js.__scopeId = "data-v-210f4f6a"
|
|
27224
|
+
|
|
27225
|
+
/* harmony default export */ var grid_pagination = (grid_paginationvue_type_script_lang_js);
|
|
27226
|
+
// 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
|
|
27227
|
+
|
|
27228
|
+
|
|
27229
|
+
|
|
27230
|
+
var grid_summaryvue_type_template_id_85d2d498_scoped_true_withId = /*#__PURE__*/Object(external_commonjs_vue_commonjs2_vue_root_Vue_["withScopeId"])("data-v-85d2d498");
|
|
27231
|
+
|
|
27232
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["pushScopeId"])("data-v-85d2d498");
|
|
27233
|
+
|
|
27234
|
+
var grid_summaryvue_type_template_id_85d2d498_scoped_true_hoisted_1 = {
|
|
27235
|
+
class: "column-list"
|
|
27236
|
+
};
|
|
27237
|
+
|
|
27238
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["popScopeId"])();
|
|
27239
|
+
|
|
27240
|
+
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) {
|
|
27241
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("div", {
|
|
27242
|
+
class: {
|
|
27243
|
+
'grid-summary': true,
|
|
27244
|
+
'non-border': $setup.styleInfo.borderStyle === 'none'
|
|
27245
|
+
}
|
|
27246
|
+
}, [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", {
|
|
27247
|
+
key: 0,
|
|
27248
|
+
class: {
|
|
27249
|
+
'column': true,
|
|
27250
|
+
'non-border': !!$setup.styleInfo.borderStyle
|
|
27251
|
+
},
|
|
27252
|
+
style: {
|
|
27253
|
+
'width': "".concat($setup.styleInfo.minWidth, "px"),
|
|
27254
|
+
'line-height': "".concat($setup.styleInfo.rowHeight, "px")
|
|
27255
|
+
}
|
|
27256
|
+
}, [Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createVNode"])("span", {
|
|
27257
|
+
style: {
|
|
27258
|
+
'height': "".concat($setup.styleInfo.rowHeight, "px")
|
|
27259
|
+
}
|
|
27260
|
+
}, 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) {
|
|
27261
|
+
var _class;
|
|
27262
|
+
|
|
27263
|
+
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"], {
|
|
27264
|
+
key: "summary_".concat(index)
|
|
27265
|
+
}, [!column.hide ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("li", {
|
|
27266
|
+
key: 0,
|
|
27267
|
+
class: (_class = {
|
|
27268
|
+
column: true,
|
|
27269
|
+
'non-border': !!$setup.styleInfo.borderStyle
|
|
27270
|
+
}, _defineProperty(_class, column.type, column.type), _defineProperty(_class, column.align, column.align), _class),
|
|
27271
|
+
style: {
|
|
27272
|
+
width: "".concat(column.width, "px"),
|
|
27273
|
+
'min-width': "".concat($setup.styleInfo.minWidth, "px"),
|
|
27274
|
+
'line-height': "".concat($setup.styleInfo.rowHeight, "px")
|
|
27275
|
+
}
|
|
27276
|
+
}, [column.summaryType || column.summaryRenderer ? (Object(external_commonjs_vue_commonjs2_vue_root_Vue_["openBlock"])(), Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createBlock"])("span", {
|
|
27277
|
+
key: 0,
|
|
27278
|
+
style: {
|
|
27279
|
+
width: '100%',
|
|
27280
|
+
height: "".concat($setup.styleInfo.rowHeight, "px")
|
|
27281
|
+
}
|
|
27282
|
+
}, [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"], {
|
|
27283
|
+
key: 0
|
|
27284
|
+
}, [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"], {
|
|
27285
|
+
key: 1
|
|
27286
|
+
}, [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", {
|
|
27287
|
+
key: 1,
|
|
27288
|
+
style: {
|
|
27289
|
+
'height': "".concat($setup.styleInfo.rowHeight, "px")
|
|
27290
|
+
}
|
|
27291
|
+
}, null, 4))], 6)) : Object(external_commonjs_vue_commonjs2_vue_root_Vue_["createCommentVNode"])("", true)], 64);
|
|
27292
|
+
}), 128))])], 2);
|
|
27293
|
+
});
|
|
27294
|
+
// CONCATENATED MODULE: ./src/components/grid/grid.summary.vue?vue&type=template&id=85d2d498&scoped=true
|
|
27295
|
+
|
|
27296
|
+
// 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
|
|
27297
|
+
|
|
27298
|
+
|
|
27299
|
+
|
|
27300
|
+
|
|
27301
|
+
|
|
27302
|
+
|
|
27303
|
+
|
|
27304
|
+
|
|
27305
|
+
|
|
27306
|
+
|
|
27307
|
+
|
|
27308
|
+
|
|
27309
|
+
|
|
27310
|
+
|
|
27311
|
+
/* harmony default export */ var grid_summaryvue_type_script_lang_js = ({
|
|
27312
|
+
name: 'EvGridSummary',
|
|
27313
|
+
props: {
|
|
27314
|
+
stores: {
|
|
27315
|
+
type: Object,
|
|
27316
|
+
default: function _default() {
|
|
27317
|
+
return {};
|
|
27318
|
+
}
|
|
27319
|
+
},
|
|
27320
|
+
orderedColumns: {
|
|
27321
|
+
type: Object,
|
|
27322
|
+
default: function _default() {
|
|
27323
|
+
return {};
|
|
27324
|
+
}
|
|
27325
|
+
},
|
|
27326
|
+
useCheckbox: {
|
|
27327
|
+
type: Boolean,
|
|
27328
|
+
default: false
|
|
27329
|
+
},
|
|
27330
|
+
styleOption: {
|
|
27331
|
+
type: Object,
|
|
27332
|
+
default: function _default() {
|
|
27333
|
+
return {};
|
|
27334
|
+
}
|
|
27335
|
+
}
|
|
27336
|
+
},
|
|
27337
|
+
setup: function setup(props) {
|
|
27338
|
+
var ROW_DATA_INDEX = 2;
|
|
27339
|
+
var stores = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
27340
|
+
return props.stores;
|
|
27341
|
+
});
|
|
27342
|
+
var columns = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
27343
|
+
return props.orderedColumns;
|
|
27344
|
+
});
|
|
27345
|
+
var showCheckbox = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
27346
|
+
return props.useCheckbox;
|
|
27347
|
+
});
|
|
27348
|
+
var styleInfo = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
27349
|
+
return props.styleOption;
|
|
27350
|
+
});
|
|
27351
|
+
|
|
27352
|
+
var getConvertValue = function getConvertValue(column, value) {
|
|
27353
|
+
var convertValue = value;
|
|
27354
|
+
|
|
27355
|
+
if (column.type === 'number') {
|
|
27356
|
+
convertValue = numberWithComma(value);
|
|
27357
|
+
convertValue = convertValue === false ? value : convertValue;
|
|
27358
|
+
} else if (column.type === 'float') {
|
|
27359
|
+
var _column$decimal;
|
|
27360
|
+
|
|
27361
|
+
convertValue = convertValue.toFixed((_column$decimal = column.decimal) !== null && _column$decimal !== void 0 ? _column$decimal : 3);
|
|
27362
|
+
}
|
|
27363
|
+
|
|
27364
|
+
return convertValue;
|
|
27365
|
+
};
|
|
27366
|
+
|
|
27367
|
+
var getColumnIndex = function getColumnIndex(field) {
|
|
27368
|
+
return columns.value.findIndex(function (column) {
|
|
27369
|
+
return column.field === field;
|
|
27370
|
+
});
|
|
27371
|
+
};
|
|
27372
|
+
|
|
27373
|
+
var getSummaryValue = function getSummaryValue(column, summaryType) {
|
|
27374
|
+
var result = '';
|
|
27375
|
+
var columnIndex = getColumnIndex(column.field);
|
|
27376
|
+
|
|
27377
|
+
if (columnIndex >= 0) {
|
|
27378
|
+
if (summaryType === 'count') {
|
|
27379
|
+
return stores.value.store.length;
|
|
27380
|
+
}
|
|
27381
|
+
|
|
27382
|
+
if (column.type === 'number' || column.type === 'float') {
|
|
27383
|
+
var columnValues = stores.value.store.map(function (rows) {
|
|
27384
|
+
return rows[ROW_DATA_INDEX][columnIndex];
|
|
27385
|
+
});
|
|
27386
|
+
|
|
27387
|
+
switch (summaryType) {
|
|
27388
|
+
case 'sum':
|
|
27389
|
+
result = columnValues.reduce(function (prev, curr) {
|
|
27390
|
+
var value = Number(curr);
|
|
27391
|
+
|
|
27392
|
+
if (!Number.isNaN(value)) {
|
|
27393
|
+
return prev + curr;
|
|
27394
|
+
}
|
|
27395
|
+
|
|
27396
|
+
return prev;
|
|
27397
|
+
}, 0);
|
|
27398
|
+
break;
|
|
27399
|
+
|
|
27400
|
+
case 'average':
|
|
27401
|
+
result = columnValues.reduce(function (prev, curr) {
|
|
27402
|
+
var value = Number(curr);
|
|
27403
|
+
|
|
27404
|
+
if (!Number.isNaN(value)) {
|
|
27405
|
+
return prev + curr;
|
|
27406
|
+
}
|
|
27407
|
+
|
|
27408
|
+
return prev;
|
|
27409
|
+
}, 0) / columnValues.length;
|
|
27410
|
+
|
|
27411
|
+
if (result % 1 !== 0) {
|
|
27412
|
+
result = result.toFixed(1);
|
|
27413
|
+
}
|
|
27414
|
+
|
|
27415
|
+
break;
|
|
27416
|
+
|
|
27417
|
+
case 'max':
|
|
27418
|
+
result = Math.max.apply(Math, _toConsumableArray(columnValues));
|
|
27419
|
+
break;
|
|
27420
|
+
|
|
27421
|
+
case 'min':
|
|
27422
|
+
result = Math.min.apply(Math, _toConsumableArray(columnValues));
|
|
27423
|
+
break;
|
|
27424
|
+
|
|
27425
|
+
default:
|
|
27426
|
+
break;
|
|
27427
|
+
}
|
|
27428
|
+
|
|
27429
|
+
result = getConvertValue(column, result);
|
|
27430
|
+
}
|
|
27431
|
+
}
|
|
27432
|
+
|
|
27433
|
+
return result;
|
|
27434
|
+
};
|
|
27435
|
+
|
|
27436
|
+
var getSummaryRenderer = function getSummaryRenderer(column) {
|
|
27437
|
+
var str = column.summaryRenderer;
|
|
27438
|
+
var summaryData = column.summaryData ? column.summaryData : [];
|
|
27439
|
+
var fields = [column.field].concat(_toConsumableArray(summaryData));
|
|
27440
|
+
var result = str;
|
|
27441
|
+
fields.forEach(function (name, idx) {
|
|
27442
|
+
var columnIndex = getColumnIndex(name);
|
|
27443
|
+
|
|
27444
|
+
if (columnIndex >= 0) {
|
|
27445
|
+
var value = getSummaryValue(stores.value.orderedColumns[columnIndex], column.summaryType);
|
|
27446
|
+
result = result.replace("{".concat(idx, "}"), value);
|
|
27447
|
+
}
|
|
27448
|
+
});
|
|
27449
|
+
return result;
|
|
27450
|
+
};
|
|
27451
|
+
|
|
27452
|
+
return {
|
|
27453
|
+
columns: columns,
|
|
27454
|
+
styleInfo: styleInfo,
|
|
27455
|
+
showCheckbox: showCheckbox,
|
|
27456
|
+
getSummaryValue: getSummaryValue,
|
|
27457
|
+
getSummaryRenderer: getSummaryRenderer
|
|
27458
|
+
};
|
|
27459
|
+
}
|
|
27460
|
+
});
|
|
27461
|
+
// CONCATENATED MODULE: ./src/components/grid/grid.summary.vue?vue&type=script&lang=js
|
|
27462
|
+
|
|
27463
|
+
// EXTERNAL MODULE: ./src/components/grid/grid.summary.vue?vue&type=style&index=0&id=85d2d498&lang=scss&scoped=true
|
|
27464
|
+
var grid_summaryvue_type_style_index_0_id_85d2d498_lang_scss_scoped_true = __webpack_require__("7dc3");
|
|
27465
|
+
|
|
27466
|
+
// CONCATENATED MODULE: ./src/components/grid/grid.summary.vue
|
|
27467
|
+
|
|
27468
|
+
|
|
27469
|
+
|
|
27470
|
+
|
|
27471
|
+
|
|
27472
|
+
grid_summaryvue_type_script_lang_js.render = grid_summaryvue_type_template_id_85d2d498_scoped_true_render
|
|
27473
|
+
grid_summaryvue_type_script_lang_js.__scopeId = "data-v-85d2d498"
|
|
27474
|
+
|
|
27475
|
+
/* harmony default export */ var grid_summary = (grid_summaryvue_type_script_lang_js);
|
|
27174
27476
|
// CONCATENATED MODULE: ./node_modules/lodash-es/_baseIsMatch.js
|
|
27175
27477
|
|
|
27176
27478
|
|
|
@@ -28246,9 +28548,10 @@ var uses_this = undefined;
|
|
|
28246
28548
|
|
|
28247
28549
|
|
|
28248
28550
|
|
|
28249
|
-
var
|
|
28551
|
+
var ROW_INDEX = 0;
|
|
28250
28552
|
var uses_ROW_CHECK_INDEX = 1;
|
|
28251
28553
|
var uses_ROW_DATA_INDEX = 2;
|
|
28554
|
+
var uses_ROW_SELECT_INDEX = 3;
|
|
28252
28555
|
var uses_commonFunctions = function commonFunctions() {
|
|
28253
28556
|
var _getCurrentInstance = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["getCurrentInstance"])(),
|
|
28254
28557
|
props = _getCurrentInstance.props;
|
|
@@ -28292,20 +28595,22 @@ var uses_commonFunctions = function commonFunctions() {
|
|
|
28292
28595
|
/**
|
|
28293
28596
|
* 데이터 타입에 따라 변환된 데이터을 반환한다.
|
|
28294
28597
|
*
|
|
28295
|
-
* @param {
|
|
28598
|
+
* @param {object} column - 컬럼 정보
|
|
28296
28599
|
* @param {number|string} value - 데이터
|
|
28297
28600
|
* @returns {number|string} 변환된 데이터
|
|
28298
28601
|
*/
|
|
28299
28602
|
|
|
28300
28603
|
|
|
28301
|
-
var getConvertValue = function getConvertValue(
|
|
28604
|
+
var getConvertValue = function getConvertValue(column, value) {
|
|
28302
28605
|
var convertValue = value;
|
|
28303
28606
|
|
|
28304
|
-
if (type === 'number') {
|
|
28607
|
+
if (column.type === 'number') {
|
|
28305
28608
|
convertValue = numberWithComma(value);
|
|
28306
28609
|
convertValue = convertValue === false ? value : convertValue;
|
|
28307
|
-
} else if (type === 'float') {
|
|
28308
|
-
|
|
28610
|
+
} else if (column.type === 'float') {
|
|
28611
|
+
var _column$decimal;
|
|
28612
|
+
|
|
28613
|
+
convertValue = convertValue.toFixed((_column$decimal = column.decimal) !== null && _column$decimal !== void 0 ? _column$decimal : 3);
|
|
28309
28614
|
}
|
|
28310
28615
|
|
|
28311
28616
|
return convertValue;
|
|
@@ -28375,7 +28680,7 @@ var scrollEvent = function scrollEvent(params) {
|
|
|
28375
28680
|
firstVisibleIndex = 0;
|
|
28376
28681
|
}
|
|
28377
28682
|
|
|
28378
|
-
var lastVisibleIndex = firstVisibleIndex + rowCount;
|
|
28683
|
+
var lastVisibleIndex = firstVisibleIndex + rowCount + 1;
|
|
28379
28684
|
var firstIndex = Math.max(firstVisibleIndex, 0);
|
|
28380
28685
|
var lastIndex = lastVisibleIndex;
|
|
28381
28686
|
stores.viewStore = store.slice(firstIndex, lastIndex);
|
|
@@ -28656,7 +28961,7 @@ var uses_clickEvent = function clickEvent(params) {
|
|
|
28656
28961
|
var _getCurrentInstance3 = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["getCurrentInstance"])(),
|
|
28657
28962
|
emit = _getCurrentInstance3.emit;
|
|
28658
28963
|
|
|
28659
|
-
var selectInfo = params;
|
|
28964
|
+
var selectInfo = params.selectInfo;
|
|
28660
28965
|
|
|
28661
28966
|
var getClickedRowData = function getClickedRowData(event, row) {
|
|
28662
28967
|
var tagName = event.target.tagName.toLowerCase();
|
|
@@ -28671,7 +28976,7 @@ var uses_clickEvent = function clickEvent(params) {
|
|
|
28671
28976
|
return {
|
|
28672
28977
|
event: event,
|
|
28673
28978
|
rowData: row[uses_ROW_DATA_INDEX],
|
|
28674
|
-
rowIndex: row[
|
|
28979
|
+
rowIndex: row[ROW_INDEX],
|
|
28675
28980
|
cellName: cellInfo.name,
|
|
28676
28981
|
cellIndex: cellInfo.index
|
|
28677
28982
|
};
|
|
@@ -28684,18 +28989,44 @@ var uses_clickEvent = function clickEvent(params) {
|
|
|
28684
28989
|
*/
|
|
28685
28990
|
|
|
28686
28991
|
|
|
28992
|
+
var timer = null;
|
|
28993
|
+
|
|
28687
28994
|
var onRowClick = function onRowClick(event, row) {
|
|
28688
28995
|
if (event.target && event.target.parentElement && event.target.parentElement.classList.contains('row-checkbox-input')) {
|
|
28689
28996
|
return false;
|
|
28690
28997
|
}
|
|
28691
28998
|
|
|
28692
|
-
|
|
28693
|
-
|
|
28694
|
-
selectInfo.
|
|
28695
|
-
|
|
28696
|
-
|
|
28697
|
-
|
|
28999
|
+
clearTimeout(timer);
|
|
29000
|
+
timer = setTimeout(function () {
|
|
29001
|
+
if (selectInfo.useSelect) {
|
|
29002
|
+
var rowData = row[uses_ROW_DATA_INDEX];
|
|
29003
|
+
|
|
29004
|
+
if (row[uses_ROW_SELECT_INDEX]) {
|
|
29005
|
+
row[uses_ROW_SELECT_INDEX] = false;
|
|
29006
|
+
|
|
29007
|
+
if (selectInfo.multiple) {
|
|
29008
|
+
if (event.ctrlKey) {
|
|
29009
|
+
selectInfo.selectedRow.splice(selectInfo.selectedRow.indexOf(row[uses_ROW_DATA_INDEX]), 1);
|
|
29010
|
+
} else {
|
|
29011
|
+
selectInfo.selectedRow = [rowData];
|
|
29012
|
+
}
|
|
29013
|
+
} else {
|
|
29014
|
+
selectInfo.selectedRow = [];
|
|
29015
|
+
}
|
|
29016
|
+
} else {
|
|
29017
|
+
row[uses_ROW_SELECT_INDEX] = true;
|
|
29018
|
+
|
|
29019
|
+
if (event.ctrlKey && selectInfo.multiple && (!selectInfo.limitCount || selectInfo.limitCount > selectInfo.selectedRow.length)) {
|
|
29020
|
+
selectInfo.selectedRow.push(rowData);
|
|
29021
|
+
} else {
|
|
29022
|
+
selectInfo.selectedRow = [rowData];
|
|
29023
|
+
}
|
|
29024
|
+
}
|
|
28698
29025
|
|
|
29026
|
+
emit('update:selected', selectInfo.selectedRow);
|
|
29027
|
+
emit('click-row', getClickedRowData(event, row));
|
|
29028
|
+
}
|
|
29029
|
+
}, 100);
|
|
28699
29030
|
return true;
|
|
28700
29031
|
};
|
|
28701
29032
|
/**
|
|
@@ -28707,9 +29038,7 @@ var uses_clickEvent = function clickEvent(params) {
|
|
|
28707
29038
|
|
|
28708
29039
|
|
|
28709
29040
|
var onRowDblClick = function onRowDblClick(event, row) {
|
|
28710
|
-
|
|
28711
|
-
selectInfo.selectedRow = rowData;
|
|
28712
|
-
emit('update:selected', rowData);
|
|
29041
|
+
clearTimeout(timer);
|
|
28713
29042
|
emit('dblclick-row', getClickedRowData(event, row));
|
|
28714
29043
|
};
|
|
28715
29044
|
|
|
@@ -28759,12 +29088,10 @@ var uses_checkEvent = function checkEvent(params) {
|
|
|
28759
29088
|
if (row[uses_ROW_CHECK_INDEX]) {
|
|
28760
29089
|
if (checkInfo.useCheckbox.mode === 'single') {
|
|
28761
29090
|
checkInfo.checkedRows = [row[uses_ROW_DATA_INDEX]];
|
|
28762
|
-
checkInfo.checkedIndex.clear();
|
|
28763
29091
|
} else {
|
|
28764
29092
|
checkInfo.checkedRows.push(row[uses_ROW_DATA_INDEX]);
|
|
28765
29093
|
}
|
|
28766
29094
|
|
|
28767
|
-
checkInfo.checkedIndex.add(row[uses_ROW_INDEX]);
|
|
28768
29095
|
var store = stores.store;
|
|
28769
29096
|
|
|
28770
29097
|
if (pageInfo.isClientPaging) {
|
|
@@ -28781,10 +29108,8 @@ var uses_checkEvent = function checkEvent(params) {
|
|
|
28781
29108
|
} else {
|
|
28782
29109
|
if (checkInfo.useCheckbox.mode === 'single') {
|
|
28783
29110
|
checkInfo.checkedRows = [];
|
|
28784
|
-
checkInfo.checkedIndex.clear();
|
|
28785
29111
|
} else {
|
|
28786
29112
|
checkInfo.checkedRows.splice(checkInfo.checkedRows.indexOf(row[uses_ROW_DATA_INDEX]), 1);
|
|
28787
|
-
checkInfo.checkedIndex.delete(row[uses_ROW_INDEX]);
|
|
28788
29113
|
}
|
|
28789
29114
|
|
|
28790
29115
|
checkInfo.isHeaderChecked = false;
|
|
@@ -28792,7 +29117,7 @@ var uses_checkEvent = function checkEvent(params) {
|
|
|
28792
29117
|
|
|
28793
29118
|
checkInfo.prevCheckedRow = row.slice();
|
|
28794
29119
|
emit('update:checked', checkInfo.checkedRows);
|
|
28795
|
-
emit('check-row', event, row[
|
|
29120
|
+
emit('check-row', event, row[ROW_INDEX], row[uses_ROW_DATA_INDEX]);
|
|
28796
29121
|
};
|
|
28797
29122
|
/**
|
|
28798
29123
|
* all checkbox click 이벤트를 처리한다.
|
|
@@ -28814,13 +29139,8 @@ var uses_checkEvent = function checkEvent(params) {
|
|
|
28814
29139
|
if (!checkInfo.checkedRows.includes(row[uses_ROW_DATA_INDEX])) {
|
|
28815
29140
|
checkInfo.checkedRows.push(row[uses_ROW_DATA_INDEX]);
|
|
28816
29141
|
}
|
|
28817
|
-
|
|
28818
|
-
if (!checkInfo.checkedIndex.has(row[uses_ROW_INDEX])) {
|
|
28819
|
-
checkInfo.checkedIndex.add(row[uses_ROW_INDEX]);
|
|
28820
|
-
}
|
|
28821
29142
|
} else {
|
|
28822
29143
|
checkInfo.checkedRows.splice(checkInfo.checkedRows.indexOf(row[uses_ROW_DATA_INDEX]), 1);
|
|
28823
|
-
checkInfo.checkedIndex.delete(row[uses_ROW_INDEX]);
|
|
28824
29144
|
}
|
|
28825
29145
|
|
|
28826
29146
|
row[uses_ROW_CHECK_INDEX] = isHeaderChecked;
|
|
@@ -28899,8 +29219,8 @@ var uses_sortEvent = function sortEvent(params) {
|
|
|
28899
29219
|
|
|
28900
29220
|
if (sortInfo.sortOrder === 'init' || !sortInfo.sortField && !sortInfo.isSorting) {
|
|
28901
29221
|
stores.store.sort(function (a, b) {
|
|
28902
|
-
if (typeof a[
|
|
28903
|
-
return setAsc(a[
|
|
29222
|
+
if (typeof a[ROW_INDEX] === 'number') {
|
|
29223
|
+
return setAsc(a[ROW_INDEX], b[ROW_INDEX]);
|
|
28904
29224
|
}
|
|
28905
29225
|
|
|
28906
29226
|
return 0;
|
|
@@ -29179,7 +29499,7 @@ var uses_filterEvent = function filterEvent(params) {
|
|
|
29179
29499
|
for (var ix = 0; ix < stores.orderedColumns.length; ix++) {
|
|
29180
29500
|
var column = stores.orderedColumns[ix] || {};
|
|
29181
29501
|
var columnValue = row[uses_ROW_DATA_INDEX][ix];
|
|
29182
|
-
|
|
29502
|
+
column.type = column.type || 'string';
|
|
29183
29503
|
|
|
29184
29504
|
if (columnValue) {
|
|
29185
29505
|
if (_typeof(columnValue) === 'object') {
|
|
@@ -29187,7 +29507,7 @@ var uses_filterEvent = function filterEvent(params) {
|
|
|
29187
29507
|
}
|
|
29188
29508
|
|
|
29189
29509
|
if (!column.hide && ((column === null || column === void 0 ? void 0 : column.searchable) === undefined || column !== null && column !== void 0 && column.searchable)) {
|
|
29190
|
-
columnValue = getConvertValue(
|
|
29510
|
+
columnValue = getConvertValue(column, columnValue).toString();
|
|
29191
29511
|
isShow = columnValue.toLowerCase().includes(searchWord.toString().toLowerCase());
|
|
29192
29512
|
|
|
29193
29513
|
if (isShow) {
|
|
@@ -29336,41 +29656,33 @@ var uses_storeEvent = function storeEvent(params) {
|
|
|
29336
29656
|
/**
|
|
29337
29657
|
* 전달된 데이터를 내부 store 및 속성에 저장한다.
|
|
29338
29658
|
*
|
|
29339
|
-
* @param {array}
|
|
29659
|
+
* @param {array} rows - row 데이터
|
|
29340
29660
|
* @param {boolean} isMakeIndex - 인덱스 생성 유무
|
|
29341
29661
|
*/
|
|
29342
29662
|
|
|
29343
|
-
var setStore = function setStore(
|
|
29663
|
+
var setStore = function setStore(rows) {
|
|
29344
29664
|
var _elementInfo$body2;
|
|
29345
29665
|
|
|
29346
29666
|
var isMakeIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
29347
|
-
var store = [];
|
|
29348
|
-
var checked;
|
|
29349
|
-
var selected = false;
|
|
29350
29667
|
|
|
29351
29668
|
if (isMakeIndex) {
|
|
29669
|
+
var store = [];
|
|
29352
29670
|
var hasUnChecked = false;
|
|
29671
|
+
rows.forEach(function (row, idx) {
|
|
29672
|
+
var checked = props.checked.includes(row);
|
|
29673
|
+
var selected = false;
|
|
29353
29674
|
|
|
29354
|
-
|
|
29355
|
-
|
|
29675
|
+
if (selectInfo.useSelect) {
|
|
29676
|
+
selected = props.selected.includes(row);
|
|
29677
|
+
}
|
|
29356
29678
|
|
|
29357
29679
|
if (!checked) {
|
|
29358
29680
|
hasUnChecked = true;
|
|
29359
29681
|
}
|
|
29360
29682
|
|
|
29361
|
-
|
|
29362
|
-
|
|
29363
|
-
|
|
29364
|
-
}
|
|
29365
|
-
|
|
29366
|
-
store.push([ix, checked, value[ix]]);
|
|
29367
|
-
}
|
|
29368
|
-
|
|
29369
|
-
if (!selected) {
|
|
29370
|
-
selectInfo.selectedRow = [];
|
|
29371
|
-
}
|
|
29372
|
-
|
|
29373
|
-
checkInfo.isHeaderChecked = value.length > 0 ? !hasUnChecked : false;
|
|
29683
|
+
store.push([idx, checked, row, selected]);
|
|
29684
|
+
});
|
|
29685
|
+
checkInfo.isHeaderChecked = rows.length > 0 ? !hasUnChecked : false;
|
|
29374
29686
|
stores.originStore = store;
|
|
29375
29687
|
}
|
|
29376
29688
|
|
|
@@ -29481,14 +29793,13 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29481
29793
|
|
|
29482
29794
|
|
|
29483
29795
|
|
|
29484
|
-
|
|
29485
|
-
|
|
29486
29796
|
/* harmony default export */ var Gridvue_type_script_lang_js = ({
|
|
29487
29797
|
name: 'EvGrid',
|
|
29488
29798
|
components: {
|
|
29489
29799
|
Toolbar: grid_toolbar,
|
|
29490
|
-
|
|
29491
|
-
|
|
29800
|
+
FilterWindow: grid_filter_window,
|
|
29801
|
+
GridPagination: grid_pagination,
|
|
29802
|
+
GridSummary: grid_summary
|
|
29492
29803
|
},
|
|
29493
29804
|
props: {
|
|
29494
29805
|
columns: {
|
|
@@ -29542,9 +29853,10 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29542
29853
|
setup: function setup(props) {
|
|
29543
29854
|
var _props$option$page2;
|
|
29544
29855
|
|
|
29545
|
-
|
|
29856
|
+
// const ROW_INDEX = 0;
|
|
29546
29857
|
var ROW_CHECK_INDEX = 1;
|
|
29547
29858
|
var ROW_DATA_INDEX = 2;
|
|
29859
|
+
var ROW_SELECT_INDEX = 3;
|
|
29548
29860
|
|
|
29549
29861
|
var _commonFunctions = uses_commonFunctions(),
|
|
29550
29862
|
isRenderer = _commonFunctions.isRenderer,
|
|
@@ -29554,7 +29866,14 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29554
29866
|
setPixelUnit = _commonFunctions.setPixelUnit;
|
|
29555
29867
|
|
|
29556
29868
|
var showHeader = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
29557
|
-
|
|
29869
|
+
var _props$option$showHea;
|
|
29870
|
+
|
|
29871
|
+
return (_props$option$showHea = props.option.showHeader) !== null && _props$option$showHea !== void 0 ? _props$option$showHea : true;
|
|
29872
|
+
});
|
|
29873
|
+
var useSummary = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
29874
|
+
var _props$option;
|
|
29875
|
+
|
|
29876
|
+
return ((_props$option = props.option) === null || _props$option === void 0 ? void 0 : _props$option.useSummary) || false;
|
|
29558
29877
|
});
|
|
29559
29878
|
var stripeStyle = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
29560
29879
|
var _props$option$style;
|
|
@@ -29567,9 +29886,9 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29567
29886
|
return ((_props$option$style2 = props.option.style) === null || _props$option$style2 === void 0 ? void 0 : _props$option$style2.border) || '';
|
|
29568
29887
|
});
|
|
29569
29888
|
var highlightIdx = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
29570
|
-
var _props$option$style3;
|
|
29889
|
+
var _props$option$style$h, _props$option$style3;
|
|
29571
29890
|
|
|
29572
|
-
return ((_props$option$style3 = props.option.style) === null || _props$option$style3 === void 0 ? void 0 : _props$option$style3.highlight)
|
|
29891
|
+
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;
|
|
29573
29892
|
});
|
|
29574
29893
|
var rowMinHeight = props.option.rowMinHeight || 35;
|
|
29575
29894
|
var elementInfo = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["reactive"])({
|
|
@@ -29581,7 +29900,9 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29581
29900
|
var filterInfo = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["reactive"])({
|
|
29582
29901
|
filterList: {},
|
|
29583
29902
|
isFiltering: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
29584
|
-
|
|
29903
|
+
var _props$option$useFilt;
|
|
29904
|
+
|
|
29905
|
+
return (_props$option$useFilt = props.option.useFilter) !== null && _props$option$useFilt !== void 0 ? _props$option$useFilt : false;
|
|
29585
29906
|
}),
|
|
29586
29907
|
setFiltering: false,
|
|
29587
29908
|
showFilterWindow: false,
|
|
@@ -29651,13 +29972,14 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29651
29972
|
}),
|
|
29652
29973
|
isClientPaging: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
29653
29974
|
return pageInfo.useClient && pageInfo.usePage && !pageInfo.isInfinite;
|
|
29654
|
-
})
|
|
29975
|
+
}),
|
|
29976
|
+
isHighlight: false,
|
|
29977
|
+
highlightPage: 0
|
|
29655
29978
|
});
|
|
29656
29979
|
var checkInfo = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["reactive"])({
|
|
29657
29980
|
prevCheckedRow: [],
|
|
29658
29981
|
isHeaderChecked: false,
|
|
29659
29982
|
checkedRows: props.checked,
|
|
29660
|
-
checkedIndex: new Set(),
|
|
29661
29983
|
useCheckbox: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
29662
29984
|
return props.option.useCheckbox || {};
|
|
29663
29985
|
})
|
|
@@ -29672,8 +29994,24 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29672
29994
|
hasVerticalScrollBar: false
|
|
29673
29995
|
});
|
|
29674
29996
|
var selectInfo = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["reactive"])({
|
|
29675
|
-
|
|
29676
|
-
|
|
29997
|
+
selectedRow: props.selected,
|
|
29998
|
+
useSelect: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
29999
|
+
var _props$option$useSele, _props$option2, _props$option2$useSel;
|
|
30000
|
+
|
|
30001
|
+
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;
|
|
30002
|
+
}),
|
|
30003
|
+
limitCount: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
30004
|
+
var _props$option3, _props$option3$useSel;
|
|
30005
|
+
|
|
30006
|
+
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;
|
|
30007
|
+
limit = !!limit && limit >= 2 ? limit : 0;
|
|
30008
|
+
return limit;
|
|
30009
|
+
}),
|
|
30010
|
+
multiple: Object(external_commonjs_vue_commonjs2_vue_root_Vue_["computed"])(function () {
|
|
30011
|
+
var _props$option$useSele2, _props$option4, _props$option4$useSel;
|
|
30012
|
+
|
|
30013
|
+
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;
|
|
30014
|
+
})
|
|
29677
30015
|
});
|
|
29678
30016
|
var sortInfo = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["reactive"])({
|
|
29679
30017
|
isSorting: false,
|
|
@@ -29708,13 +30046,19 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29708
30046
|
|
|
29709
30047
|
var clearCheckInfo = function clearCheckInfo() {
|
|
29710
30048
|
checkInfo.checkedRows = [];
|
|
29711
|
-
checkInfo.checkedIndex.clear();
|
|
29712
30049
|
checkInfo.isHeaderChecked = false;
|
|
29713
30050
|
stores.store.forEach(function (row) {
|
|
29714
30051
|
row[ROW_CHECK_INDEX] = false;
|
|
29715
30052
|
});
|
|
29716
30053
|
};
|
|
29717
30054
|
|
|
30055
|
+
var clearSelectInfo = function clearSelectInfo() {
|
|
30056
|
+
selectInfo.selectedRow = [];
|
|
30057
|
+
stores.store.forEach(function (row) {
|
|
30058
|
+
row[ROW_SELECT_INDEX] = false;
|
|
30059
|
+
});
|
|
30060
|
+
};
|
|
30061
|
+
|
|
29718
30062
|
var _pagingEvent = uses_pagingEvent({
|
|
29719
30063
|
stores: stores,
|
|
29720
30064
|
pageInfo: pageInfo,
|
|
@@ -29740,7 +30084,9 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29740
30084
|
updateHScroll = _scrollEvent.updateHScroll,
|
|
29741
30085
|
onScroll = _scrollEvent.onScroll;
|
|
29742
30086
|
|
|
29743
|
-
var _clickEvent = uses_clickEvent(
|
|
30087
|
+
var _clickEvent = uses_clickEvent({
|
|
30088
|
+
selectInfo: selectInfo
|
|
30089
|
+
}),
|
|
29744
30090
|
onRowClick = _clickEvent.onRowClick,
|
|
29745
30091
|
onRowDblClick = _clickEvent.onRowDblClick;
|
|
29746
30092
|
|
|
@@ -29871,7 +30217,6 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29871
30217
|
}, function (checkedList) {
|
|
29872
30218
|
checkInfo.checkedRows = checkedList;
|
|
29873
30219
|
checkInfo.isHeaderChecked = false;
|
|
29874
|
-
checkInfo.checkedIndex.clear();
|
|
29875
30220
|
var store = stores.store;
|
|
29876
30221
|
|
|
29877
30222
|
if (pageInfo.isClientPaging) {
|
|
@@ -29881,10 +30226,6 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29881
30226
|
if (store.length) {
|
|
29882
30227
|
store.forEach(function (row) {
|
|
29883
30228
|
row[ROW_CHECK_INDEX] = checkedList.includes(row[ROW_DATA_INDEX]);
|
|
29884
|
-
|
|
29885
|
-
if (row[ROW_CHECK_INDEX]) {
|
|
29886
|
-
checkInfo.checkedIndex.add(row[ROW_INDEX]);
|
|
29887
|
-
}
|
|
29888
30229
|
});
|
|
29889
30230
|
checkInfo.isHeaderChecked = checkedList.length === store.length;
|
|
29890
30231
|
}
|
|
@@ -29893,14 +30234,78 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29893
30234
|
});
|
|
29894
30235
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
29895
30236
|
return props.selected;
|
|
29896
|
-
}, function (
|
|
29897
|
-
selectInfo.
|
|
30237
|
+
}, function (selectedList) {
|
|
30238
|
+
if (selectInfo.useSelect) {
|
|
30239
|
+
selectInfo.selectedRow = selectedList;
|
|
30240
|
+
stores.store.forEach(function (row) {
|
|
30241
|
+
row[ROW_SELECT_INDEX] = selectInfo.selectedRow.includes(row[ROW_DATA_INDEX]);
|
|
30242
|
+
});
|
|
30243
|
+
updateVScroll();
|
|
30244
|
+
}
|
|
29898
30245
|
});
|
|
30246
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
30247
|
+
return highlightIdx.value;
|
|
30248
|
+
}, /*#__PURE__*/function () {
|
|
30249
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(index) {
|
|
30250
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
30251
|
+
while (1) {
|
|
30252
|
+
switch (_context.prev = _context.next) {
|
|
30253
|
+
case 0:
|
|
30254
|
+
_context.next = 2;
|
|
30255
|
+
return Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])();
|
|
30256
|
+
|
|
30257
|
+
case 2:
|
|
30258
|
+
if (!(index >= 0)) {
|
|
30259
|
+
_context.next = 10;
|
|
30260
|
+
break;
|
|
30261
|
+
}
|
|
30262
|
+
|
|
30263
|
+
if (!(pageInfo.usePage && !pageInfo.isInfinite)) {
|
|
30264
|
+
_context.next = 9;
|
|
30265
|
+
break;
|
|
30266
|
+
}
|
|
30267
|
+
|
|
30268
|
+
pageInfo.highlightPage = Math.ceil(index / pageInfo.perPage) || 1;
|
|
30269
|
+
|
|
30270
|
+
if (!(pageInfo.highlightPage !== pageInfo.currentPage)) {
|
|
30271
|
+
_context.next = 9;
|
|
30272
|
+
break;
|
|
30273
|
+
}
|
|
30274
|
+
|
|
30275
|
+
pageInfo.currentPage = pageInfo.highlightPage;
|
|
30276
|
+
pageInfo.isHighlight = true;
|
|
30277
|
+
return _context.abrupt("return");
|
|
30278
|
+
|
|
30279
|
+
case 9:
|
|
30280
|
+
elementInfo.body.scrollTop = resizeInfo.rowHeight * highlightIdx.value;
|
|
30281
|
+
|
|
30282
|
+
case 10:
|
|
30283
|
+
case "end":
|
|
30284
|
+
return _context.stop();
|
|
30285
|
+
}
|
|
30286
|
+
}
|
|
30287
|
+
}, _callee);
|
|
30288
|
+
}));
|
|
30289
|
+
|
|
30290
|
+
return function (_x) {
|
|
30291
|
+
return _ref.apply(this, arguments);
|
|
30292
|
+
};
|
|
30293
|
+
}());
|
|
29899
30294
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
29900
30295
|
return checkInfo.useCheckbox.mode;
|
|
29901
30296
|
}, function () {
|
|
29902
30297
|
clearCheckInfo();
|
|
29903
30298
|
});
|
|
30299
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
30300
|
+
return selectInfo.useSelect;
|
|
30301
|
+
}, function () {
|
|
30302
|
+
clearSelectInfo();
|
|
30303
|
+
});
|
|
30304
|
+
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
30305
|
+
return selectInfo.multiple;
|
|
30306
|
+
}, function () {
|
|
30307
|
+
clearSelectInfo();
|
|
30308
|
+
});
|
|
29904
30309
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
29905
30310
|
return props.checked.length;
|
|
29906
30311
|
}, function (checkedSize) {
|
|
@@ -29942,16 +30347,12 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29942
30347
|
|
|
29943
30348
|
if (pageInfo.isClientPaging) {
|
|
29944
30349
|
clearCheckInfo();
|
|
30350
|
+
clearSelectInfo();
|
|
29945
30351
|
}
|
|
29946
30352
|
}
|
|
29947
30353
|
}, {
|
|
29948
30354
|
immediate: true
|
|
29949
30355
|
});
|
|
29950
|
-
|
|
29951
|
-
var isFilterButton = function isFilterButton(field) {
|
|
29952
|
-
return filterInfo.isFiltering && field !== 'db-icon' && field !== 'user-icon';
|
|
29953
|
-
};
|
|
29954
|
-
|
|
29955
30356
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
29956
30357
|
var _props$option$page9;
|
|
29957
30358
|
|
|
@@ -29965,23 +30366,31 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
29965
30366
|
immediate: true
|
|
29966
30367
|
});
|
|
29967
30368
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["watch"])(function () {
|
|
29968
|
-
return
|
|
29969
|
-
}, function (
|
|
30369
|
+
return pageInfo.currentPage;
|
|
30370
|
+
}, function (current, before) {
|
|
29970
30371
|
Object(external_commonjs_vue_commonjs2_vue_root_Vue_["nextTick"])(function () {
|
|
29971
|
-
changePage(
|
|
30372
|
+
changePage(before);
|
|
29972
30373
|
|
|
29973
|
-
if (pageInfo.isClientPaging &&
|
|
30374
|
+
if (pageInfo.isClientPaging && current !== before) {
|
|
29974
30375
|
clearCheckInfo();
|
|
30376
|
+
clearSelectInfo();
|
|
29975
30377
|
}
|
|
29976
30378
|
|
|
29977
30379
|
updateVScroll();
|
|
30380
|
+
|
|
30381
|
+
if (current === pageInfo.highlightPage && pageInfo.isHighlight) {
|
|
30382
|
+
elementInfo.body.scrollTop = resizeInfo.rowHeight * highlightIdx.value;
|
|
30383
|
+
pageInfo.isHighlight = !pageInfo.isHighlight;
|
|
30384
|
+
}
|
|
29978
30385
|
});
|
|
29979
30386
|
});
|
|
29980
30387
|
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({
|
|
29981
30388
|
showHeader: showHeader,
|
|
29982
30389
|
stripeStyle: stripeStyle,
|
|
29983
30390
|
borderStyle: borderStyle,
|
|
29984
|
-
highlightIdx: highlightIdx
|
|
30391
|
+
highlightIdx: highlightIdx,
|
|
30392
|
+
useSummary: useSummary,
|
|
30393
|
+
stores: stores
|
|
29985
30394
|
}, 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)), {}, {
|
|
29986
30395
|
isRenderer: isRenderer,
|
|
29987
30396
|
getComponentName: getComponentName,
|
|
@@ -30008,15 +30417,14 @@ var uses_pagingEvent = function pagingEvent(params) {
|
|
|
30008
30417
|
setStore: setStore,
|
|
30009
30418
|
setContextMenu: setContextMenu,
|
|
30010
30419
|
onContextMenu: onContextMenu,
|
|
30011
|
-
onSearch: onSearch
|
|
30012
|
-
isFilterButton: isFilterButton
|
|
30420
|
+
onSearch: onSearch
|
|
30013
30421
|
});
|
|
30014
30422
|
}
|
|
30015
30423
|
});
|
|
30016
30424
|
// CONCATENATED MODULE: ./src/components/grid/Grid.vue?vue&type=script&lang=js
|
|
30017
30425
|
|
|
30018
|
-
// EXTERNAL MODULE: ./src/components/grid/Grid.vue?vue&type=style&index=0&id=
|
|
30019
|
-
var
|
|
30426
|
+
// EXTERNAL MODULE: ./src/components/grid/Grid.vue?vue&type=style&index=0&id=6493e3f4&lang=scss&scoped=true
|
|
30427
|
+
var Gridvue_type_style_index_0_id_6493e3f4_lang_scss_scoped_true = __webpack_require__("67bd");
|
|
30020
30428
|
|
|
30021
30429
|
// CONCATENATED MODULE: ./src/components/grid/Grid.vue
|
|
30022
30430
|
|
|
@@ -30024,8 +30432,8 @@ var Gridvue_type_style_index_0_id_247d3bf0_lang_scss_scoped_true = __webpack_req
|
|
|
30024
30432
|
|
|
30025
30433
|
|
|
30026
30434
|
|
|
30027
|
-
Gridvue_type_script_lang_js.render =
|
|
30028
|
-
Gridvue_type_script_lang_js.__scopeId = "data-v-
|
|
30435
|
+
Gridvue_type_script_lang_js.render = Gridvue_type_template_id_6493e3f4_scoped_true_render
|
|
30436
|
+
Gridvue_type_script_lang_js.__scopeId = "data-v-6493e3f4"
|
|
30029
30437
|
|
|
30030
30438
|
/* harmony default export */ var Grid = (Gridvue_type_script_lang_js);
|
|
30031
30439
|
// CONCATENATED MODULE: ./src/components/grid/index.js
|
|
@@ -32433,7 +32841,7 @@ var modules = {
|
|
|
32433
32841
|
|
|
32434
32842
|
if (!opt.startToZero || targetMin > 0) {
|
|
32435
32843
|
var targetSpace = space ? space - 1 : targetMax - targetMin;
|
|
32436
|
-
var targetStep =
|
|
32844
|
+
var targetStep = Math.ceil((max - targetMin) / targetSpace);
|
|
32437
32845
|
targetMin = targetMin < targetStep ? 0 : targetMin - targetStep;
|
|
32438
32846
|
}
|
|
32439
32847
|
|
|
@@ -34396,17 +34804,32 @@ var element_scatter_Scatter = /*#__PURE__*/function () {
|
|
|
34396
34804
|
return item;
|
|
34397
34805
|
}, this.data[0]);
|
|
34398
34806
|
|
|
34399
|
-
var getOpacity = function getOpacity(colorStr) {
|
|
34807
|
+
var getOpacity = function getOpacity(colorStr, dataIndex) {
|
|
34400
34808
|
var noneDownplayOpacity = colorStr.includes('rgba') ? helpers_util.getOpacity(colorStr) : 1;
|
|
34401
|
-
|
|
34809
|
+
var resultOpacity = noneDownplayOpacity;
|
|
34810
|
+
var selectInfo = param.selectInfo;
|
|
34811
|
+
|
|
34812
|
+
if (selectInfo) {
|
|
34813
|
+
var isSelectedData = (selectInfo === null || selectInfo === void 0 ? void 0 : selectInfo.seriesID) === _this2.sId && (selectInfo === null || selectInfo === void 0 ? void 0 : selectInfo.dataIndex) === dataIndex;
|
|
34814
|
+
|
|
34815
|
+
if (isSelectedData) {
|
|
34816
|
+
resultOpacity = noneDownplayOpacity;
|
|
34817
|
+
} else {
|
|
34818
|
+
resultOpacity = 0.1;
|
|
34819
|
+
}
|
|
34820
|
+
} else {
|
|
34821
|
+
resultOpacity = _this2.state === 'downplay' ? 0.1 : noneDownplayOpacity;
|
|
34822
|
+
}
|
|
34823
|
+
|
|
34824
|
+
return resultOpacity;
|
|
34402
34825
|
};
|
|
34403
34826
|
|
|
34404
|
-
this.data.forEach(function (curr) {
|
|
34827
|
+
this.data.forEach(function (curr, idx) {
|
|
34405
34828
|
if (curr.xp !== null && curr.yp !== null) {
|
|
34406
34829
|
var color = curr.dataColor || _this2.color;
|
|
34407
|
-
ctx.strokeStyle = helpers_util.colorStringToRgba(color, getOpacity(color));
|
|
34830
|
+
ctx.strokeStyle = helpers_util.colorStringToRgba(color, getOpacity(color, idx));
|
|
34408
34831
|
var pointFillColor = curr.dataColor || _this2.pointFill;
|
|
34409
|
-
ctx.fillStyle = helpers_util.colorStringToRgba(pointFillColor, getOpacity(pointFillColor));
|
|
34832
|
+
ctx.fillStyle = helpers_util.colorStringToRgba(pointFillColor, getOpacity(pointFillColor, idx));
|
|
34410
34833
|
helpers_canvas.drawPoint(ctx, _this2.pointStyle, _this2.pointSize, curr.xp, curr.yp);
|
|
34411
34834
|
}
|
|
34412
34835
|
});
|
|
@@ -34480,18 +34903,20 @@ var element_scatter_Scatter = /*#__PURE__*/function () {
|
|
|
34480
34903
|
var item = {
|
|
34481
34904
|
data: null,
|
|
34482
34905
|
hit: false,
|
|
34483
|
-
color: this.color
|
|
34906
|
+
color: this.color,
|
|
34907
|
+
index: null
|
|
34484
34908
|
};
|
|
34485
34909
|
var pointSize = this.pointSize;
|
|
34486
34910
|
var gdata = this.data;
|
|
34487
|
-
var
|
|
34911
|
+
var targetIndex = gdata.findIndex(function (data) {
|
|
34488
34912
|
var x = data.xp;
|
|
34489
34913
|
var y = data.yp;
|
|
34490
34914
|
return x - pointSize <= xp && xp <= x + pointSize && y - pointSize <= yp && yp <= y + pointSize;
|
|
34491
34915
|
});
|
|
34492
34916
|
|
|
34493
|
-
if (
|
|
34494
|
-
item.data =
|
|
34917
|
+
if (targetIndex > -1) {
|
|
34918
|
+
item.data = gdata[targetIndex];
|
|
34919
|
+
item.index = targetIndex;
|
|
34495
34920
|
item.hit = true;
|
|
34496
34921
|
}
|
|
34497
34922
|
|
|
@@ -35696,7 +36121,7 @@ var element_heatmap_HeatMap = /*#__PURE__*/function () {
|
|
|
35696
36121
|
var yArea = chartRect.chartHeight - (labelOffset.top + labelOffset.bottom);
|
|
35697
36122
|
var xsp = chartRect.x1 + labelOffset.left;
|
|
35698
36123
|
var ysp = chartRect.y2 - labelOffset.bottom;
|
|
35699
|
-
this.size.w = Math.
|
|
36124
|
+
this.size.w = Math.floor(xArea / (this.spaces.x || minmaxX.graphMax - minmaxX.graphMin));
|
|
35700
36125
|
this.size.h = Math.floor(yArea / (this.spaces.y || minmaxY.graphMax - minmaxY.graphMin));
|
|
35701
36126
|
this.data.forEach(function (item) {
|
|
35702
36127
|
item.xp = helpers_canvas.calculateX(item.x, minmaxX.graphMin, minmaxX.graphMax, xArea, xsp);
|
|
@@ -36182,7 +36607,14 @@ var scale_Scale = /*#__PURE__*/function () {
|
|
|
36182
36607
|
linePosition = labelCenter + aliasPixel;
|
|
36183
36608
|
labelText = this.getLabelFormat(Math.min(axisMax, ticks[ix]));
|
|
36184
36609
|
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));
|
|
36185
|
-
|
|
36610
|
+
var labelColor = this.labelStyle.color;
|
|
36611
|
+
var defaultOpacity = 1;
|
|
36612
|
+
|
|
36613
|
+
if (helpers_util.getColorStringType(labelColor) === 'RGBA') {
|
|
36614
|
+
defaultOpacity = helpers_util.getOpacity(labelColor);
|
|
36615
|
+
}
|
|
36616
|
+
|
|
36617
|
+
ctx.fillStyle = helpers_util.colorStringToRgba(labelColor, isBlurredLabel ? 0.1 : defaultOpacity);
|
|
36186
36618
|
var labelPoint = void 0;
|
|
36187
36619
|
|
|
36188
36620
|
if (this.type === 'x') {
|
|
@@ -37189,7 +37621,14 @@ var scale_step_StepScale = /*#__PURE__*/function (_Scale) {
|
|
|
37189
37621
|
linePosition = labelCenter + aliasPixel;
|
|
37190
37622
|
labelText = _this2.getLabelFormat(item, maxWidth);
|
|
37191
37623
|
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));
|
|
37192
|
-
|
|
37624
|
+
var labelColor = _this2.labelStyle.color;
|
|
37625
|
+
var defaultOpacity = 1;
|
|
37626
|
+
|
|
37627
|
+
if (helpers_util.getColorStringType(labelColor) === 'RGBA') {
|
|
37628
|
+
defaultOpacity = helpers_util.getOpacity(labelColor);
|
|
37629
|
+
}
|
|
37630
|
+
|
|
37631
|
+
ctx.fillStyle = helpers_util.colorStringToRgba(labelColor, isBlurredLabel ? 0.1 : defaultOpacity);
|
|
37193
37632
|
|
|
37194
37633
|
if (_this2.type === 'x') {
|
|
37195
37634
|
var _this2$options3, _this2$options3$selec, _this2$options4;
|
|
@@ -37567,7 +38006,14 @@ var scale_time_category_TimeCategoryScale = /*#__PURE__*/function (_Scale) {
|
|
|
37567
38006
|
linePosition = labelCenter + aliasPixel;
|
|
37568
38007
|
labelText = this.getLabelFormat(Math.min(axisMax, ticks[ix]));
|
|
37569
38008
|
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));
|
|
37570
|
-
|
|
38009
|
+
var labelColor = this.labelStyle.color;
|
|
38010
|
+
var defaultOpacity = 1;
|
|
38011
|
+
|
|
38012
|
+
if (helpers_util.getColorStringType(labelColor) === 'RGBA') {
|
|
38013
|
+
defaultOpacity = helpers_util.getOpacity(labelColor);
|
|
38014
|
+
}
|
|
38015
|
+
|
|
38016
|
+
ctx.fillStyle = helpers_util.colorStringToRgba(labelColor, isBlurredLabel ? 0.1 : defaultOpacity);
|
|
37571
38017
|
var labelPoint = void 0;
|
|
37572
38018
|
|
|
37573
38019
|
if (this.type === 'x') {
|
|
@@ -37914,6 +38360,9 @@ var plugins_legend_modules = {
|
|
|
37914
38360
|
updateSelTip: {
|
|
37915
38361
|
update: false,
|
|
37916
38362
|
keepDomain: false
|
|
38363
|
+
},
|
|
38364
|
+
hitInfo: {
|
|
38365
|
+
sId: targetId
|
|
37917
38366
|
}
|
|
37918
38367
|
});
|
|
37919
38368
|
};
|
|
@@ -38677,7 +39126,11 @@ var plugins_interaction_modules = {
|
|
|
38677
39126
|
if (tooltip.use) {
|
|
38678
39127
|
_this.setTooltipLayoutPosition(hitInfo, e);
|
|
38679
39128
|
|
|
38680
|
-
|
|
39129
|
+
if (type === 'scatter') {
|
|
39130
|
+
_this.drawTooltipForScatter(hitInfo, _this.tooltipCtx);
|
|
39131
|
+
} else {
|
|
39132
|
+
_this.drawTooltip(hitInfo, _this.tooltipCtx);
|
|
39133
|
+
}
|
|
38681
39134
|
}
|
|
38682
39135
|
} else if (tooltip.use) {
|
|
38683
39136
|
_this.hideTooltipDOM();
|
|
@@ -39282,6 +39735,7 @@ var plugins_interaction_modules = {
|
|
|
39282
39735
|
|
|
39283
39736
|
|
|
39284
39737
|
|
|
39738
|
+
|
|
39285
39739
|
var TITLE_HEIGHT = 30;
|
|
39286
39740
|
var TEXT_HEIGHT = 14;
|
|
39287
39741
|
var LINE_SPACING = 8;
|
|
@@ -39612,19 +40066,8 @@ var plugins_tooltip_modules = {
|
|
|
39612
40066
|
textLineCnt += 1;
|
|
39613
40067
|
}
|
|
39614
40068
|
|
|
39615
|
-
ctx.restore();
|
|
39616
|
-
|
|
39617
|
-
this.tooltipDOM.style.overflowY = 'hidden';
|
|
39618
|
-
this.tooltipDOM.style.backgroundColor = opt.backgroundColor;
|
|
39619
|
-
this.tooltipDOM.style.border = "1px solid ".concat(opt.borderColor);
|
|
39620
|
-
this.tooltipDOM.style.color = opt.fontColor;
|
|
39621
|
-
|
|
39622
|
-
if (opt.useShadow) {
|
|
39623
|
-
var shadowColor = "rgba(0, 0, 0, ".concat(opt.shadowOpacity, ")");
|
|
39624
|
-
this.tooltipDOM.style.boxShadow = "2px 2px 2px ".concat(shadowColor);
|
|
39625
|
-
}
|
|
39626
|
-
|
|
39627
|
-
this.tooltipDOM.style.display = 'block';
|
|
40069
|
+
ctx.restore();
|
|
40070
|
+
this.setTooltipDOMStyle(opt);
|
|
39628
40071
|
},
|
|
39629
40072
|
|
|
39630
40073
|
/**
|
|
@@ -39689,15 +40132,184 @@ var plugins_tooltip_modules = {
|
|
|
39689
40132
|
|
|
39690
40133
|
ctx.textBaseline = 'Bottom';
|
|
39691
40134
|
ctx.fillText(itemValue, itemX + COLOR_MARGIN, itemY);
|
|
39692
|
-
ctx.closePath();
|
|
40135
|
+
ctx.closePath();
|
|
40136
|
+
this.setTooltipDOMStyle(opt);
|
|
40137
|
+
},
|
|
40138
|
+
|
|
40139
|
+
/**
|
|
40140
|
+
*
|
|
40141
|
+
* @param hitInfo
|
|
40142
|
+
* @param context
|
|
40143
|
+
*/
|
|
40144
|
+
drawTooltipForScatter: function drawTooltipForScatter(hitInfo, context) {
|
|
40145
|
+
var ctx = context;
|
|
40146
|
+
var items = hitInfo.items;
|
|
40147
|
+
|
|
40148
|
+
var _hitInfo$maxTip3 = _slicedToArray(hitInfo.maxTip, 2),
|
|
40149
|
+
maxValue = _hitInfo$maxTip3[1];
|
|
40150
|
+
|
|
40151
|
+
var seriesKeys = this.alignSeriesList(Object.keys(items));
|
|
40152
|
+
var boxPadding = {
|
|
40153
|
+
t: 8,
|
|
40154
|
+
b: 8,
|
|
40155
|
+
r: 8,
|
|
40156
|
+
l: 8
|
|
40157
|
+
};
|
|
40158
|
+
var opt = this.options.tooltip;
|
|
40159
|
+
var xAxisOpt = this.options.axesX[0];
|
|
40160
|
+
var x = 2;
|
|
40161
|
+
var y = 2;
|
|
40162
|
+
x += helpers_util.aliasPixel(x);
|
|
40163
|
+
y += helpers_util.aliasPixel(y);
|
|
40164
|
+
ctx.save();
|
|
40165
|
+
ctx.scale(this.pixelRatio, this.pixelRatio);
|
|
40166
|
+
|
|
40167
|
+
if (this.tooltipBodyDOM.style.overflowY === 'auto') {
|
|
40168
|
+
boxPadding.r += SCROLL_WIDTH;
|
|
40169
|
+
}
|
|
40170
|
+
|
|
40171
|
+
x += boxPadding.l;
|
|
40172
|
+
y += boxPadding.t;
|
|
40173
|
+
ctx.font = FONT_STYLE;
|
|
40174
|
+
var seriesList = [];
|
|
40175
|
+
seriesKeys.forEach(function (seriesName) {
|
|
40176
|
+
seriesList.push({
|
|
40177
|
+
data: items[seriesName].data,
|
|
40178
|
+
color: items[seriesName].color,
|
|
40179
|
+
name: items[seriesName].name
|
|
40180
|
+
});
|
|
40181
|
+
});
|
|
40182
|
+
|
|
40183
|
+
if (opt.sortByValue) {
|
|
40184
|
+
seriesList.sort(function (a, b) {
|
|
40185
|
+
var prev = a.data.o;
|
|
40186
|
+
var next = b.data.o;
|
|
40187
|
+
|
|
40188
|
+
if (prev === null || prev === undefined) {
|
|
40189
|
+
prev = a.data.y;
|
|
40190
|
+
}
|
|
40191
|
+
|
|
40192
|
+
if (next === null || next === undefined) {
|
|
40193
|
+
next = b.data.y;
|
|
40194
|
+
}
|
|
40195
|
+
|
|
40196
|
+
return next - prev;
|
|
40197
|
+
});
|
|
40198
|
+
}
|
|
39693
40199
|
|
|
40200
|
+
var textLineCnt = 1;
|
|
40201
|
+
|
|
40202
|
+
for (var ix = 0; ix < seriesList.length; ix++) {
|
|
40203
|
+
var gdata = seriesList[ix].data;
|
|
40204
|
+
var color = seriesList[ix].color;
|
|
40205
|
+
var name = seriesList[ix].name;
|
|
40206
|
+
var xValue = gdata.x;
|
|
40207
|
+
var yValue = void 0;
|
|
40208
|
+
|
|
40209
|
+
if (gdata.o === null) {
|
|
40210
|
+
yValue = gdata.y;
|
|
40211
|
+
} else if (!isNaN(gdata.o)) {
|
|
40212
|
+
yValue = gdata.o;
|
|
40213
|
+
}
|
|
40214
|
+
|
|
40215
|
+
var itemX = x + 4;
|
|
40216
|
+
var itemY = y + textLineCnt * TEXT_HEIGHT;
|
|
40217
|
+
itemX += helpers_util.aliasPixel(itemX);
|
|
40218
|
+
itemY += helpers_util.aliasPixel(itemY);
|
|
40219
|
+
ctx.beginPath();
|
|
40220
|
+
|
|
40221
|
+
if (typeof color !== 'string') {
|
|
40222
|
+
ctx.fillStyle = helpers_canvas.createGradient(ctx, false, {
|
|
40223
|
+
x: itemX - 4,
|
|
40224
|
+
y: itemY,
|
|
40225
|
+
w: 12,
|
|
40226
|
+
h: -12
|
|
40227
|
+
}, color);
|
|
40228
|
+
} else {
|
|
40229
|
+
ctx.fillStyle = color;
|
|
40230
|
+
} // 1. Draw series color
|
|
40231
|
+
|
|
40232
|
+
|
|
40233
|
+
ctx.fillRect(itemX - 4, itemY - 12, 12, 12);
|
|
40234
|
+
ctx.fillStyle = opt.fontColor; // 2. Draw series name
|
|
40235
|
+
|
|
40236
|
+
ctx.textBaseline = 'Bottom';
|
|
40237
|
+
var seriesNameSpaceWidth = opt.maxWidth - Math.round(ctx.measureText(maxValue).width) - boxPadding.l - boxPadding.r - COLOR_MARGIN - VALUE_MARGIN;
|
|
40238
|
+
var xPos = itemX + COLOR_MARGIN;
|
|
40239
|
+
var yPos = itemY;
|
|
40240
|
+
|
|
40241
|
+
if (seriesNameSpaceWidth > ctx.measureText(name).width) {
|
|
40242
|
+
// draw normally
|
|
40243
|
+
ctx.fillText(name, xPos, yPos);
|
|
40244
|
+
} else if (opt.textOverflow === 'wrap') {
|
|
40245
|
+
// draw with wrap
|
|
40246
|
+
var line = '';
|
|
40247
|
+
var yPosWithWrap = yPos;
|
|
40248
|
+
|
|
40249
|
+
for (var jx = 0; jx < name.length; jx++) {
|
|
40250
|
+
var char = name[jx];
|
|
40251
|
+
var temp = "".concat(line).concat(char);
|
|
40252
|
+
|
|
40253
|
+
if (ctx.measureText(temp).width > seriesNameSpaceWidth) {
|
|
40254
|
+
ctx.fillText(line, xPos, yPosWithWrap);
|
|
40255
|
+
line = char;
|
|
40256
|
+
textLineCnt += 1;
|
|
40257
|
+
yPosWithWrap += TEXT_HEIGHT;
|
|
40258
|
+
} else {
|
|
40259
|
+
line = temp;
|
|
40260
|
+
}
|
|
40261
|
+
}
|
|
40262
|
+
|
|
40263
|
+
ctx.fillText(line, xPos, yPosWithWrap);
|
|
40264
|
+
} else {
|
|
40265
|
+
// draw with ellipsis
|
|
40266
|
+
var shortSeriesName = helpers_util.truncateLabelWithEllipsis(name, seriesNameSpaceWidth, ctx);
|
|
40267
|
+
ctx.fillText(shortSeriesName, xPos, yPos);
|
|
40268
|
+
}
|
|
40269
|
+
|
|
40270
|
+
ctx.save(); // 3. Draw value
|
|
40271
|
+
|
|
40272
|
+
var formattedTxt = void 0;
|
|
40273
|
+
|
|
40274
|
+
if (opt.formatter) {
|
|
40275
|
+
formattedTxt = opt.formatter({
|
|
40276
|
+
x: xValue,
|
|
40277
|
+
y: yValue,
|
|
40278
|
+
name: name
|
|
40279
|
+
});
|
|
40280
|
+
}
|
|
40281
|
+
|
|
40282
|
+
if (!opt.formatter || typeof formattedTxt !== 'string') {
|
|
40283
|
+
var formattedXValue = xAxisOpt.type === 'time' ? dayjs_min_default()(xValue).format(xAxisOpt.timeFormat) : numberWithComma(xValue);
|
|
40284
|
+
var formattedYValue = numberWithComma(yValue);
|
|
40285
|
+
formattedTxt = "".concat(formattedXValue, ", ").concat(formattedYValue);
|
|
40286
|
+
}
|
|
40287
|
+
|
|
40288
|
+
ctx.textAlign = 'right';
|
|
40289
|
+
ctx.fillText(formattedTxt, this.tooltipDOM.offsetWidth - boxPadding.r, itemY);
|
|
40290
|
+
ctx.restore();
|
|
40291
|
+
ctx.closePath(); // 4. add lineSpacing
|
|
40292
|
+
|
|
40293
|
+
y += LINE_SPACING;
|
|
40294
|
+
textLineCnt += 1;
|
|
40295
|
+
}
|
|
40296
|
+
|
|
40297
|
+
ctx.restore();
|
|
40298
|
+
this.setTooltipDOMStyle(opt);
|
|
40299
|
+
},
|
|
40300
|
+
|
|
40301
|
+
/**
|
|
40302
|
+
* set style properties on tooltip DOM
|
|
40303
|
+
* @param tooltipOptions
|
|
40304
|
+
*/
|
|
40305
|
+
setTooltipDOMStyle: function setTooltipDOMStyle(tooltipOptions) {
|
|
39694
40306
|
this.tooltipDOM.style.overflowY = 'hidden';
|
|
39695
|
-
this.tooltipDOM.style.backgroundColor =
|
|
39696
|
-
this.tooltipDOM.style.border = "1px solid ".concat(
|
|
39697
|
-
this.tooltipDOM.style.color =
|
|
40307
|
+
this.tooltipDOM.style.backgroundColor = tooltipOptions.backgroundColor;
|
|
40308
|
+
this.tooltipDOM.style.border = "1px solid ".concat(tooltipOptions.borderColor);
|
|
40309
|
+
this.tooltipDOM.style.color = tooltipOptions.fontColor;
|
|
39698
40310
|
|
|
39699
|
-
if (
|
|
39700
|
-
var shadowColor = "rgba(0, 0, 0, ".concat(
|
|
40311
|
+
if (tooltipOptions.useShadow) {
|
|
40312
|
+
var shadowColor = "rgba(0, 0, 0, ".concat(tooltipOptions.shadowOpacity, ")");
|
|
39701
40313
|
this.tooltipDOM.style.boxShadow = "2px 2px 2px ".concat(shadowColor);
|
|
39702
40314
|
}
|
|
39703
40315
|
|
|
@@ -40117,36 +40729,41 @@ var element_tip_modules = {
|
|
|
40117
40729
|
this.drawTextTip(_objectSpread2({
|
|
40118
40730
|
opt: selTipOpt,
|
|
40119
40731
|
tipType: 'sel',
|
|
40732
|
+
seriesOpt: seriesInfo,
|
|
40120
40733
|
isSamePos: isSamePos
|
|
40121
40734
|
}, selArgs));
|
|
40122
40735
|
}
|
|
40123
40736
|
|
|
40124
40737
|
if (selTipOpt.showIndicator) {
|
|
40125
40738
|
this.drawFixedIndicator(_objectSpread2({
|
|
40126
|
-
opt: selTipOpt
|
|
40739
|
+
opt: selTipOpt,
|
|
40740
|
+
seriesOpt: seriesInfo
|
|
40127
40741
|
}, selArgs));
|
|
40128
40742
|
}
|
|
40129
40743
|
}
|
|
40130
40744
|
|
|
40131
|
-
if (tipLocationInfo && tipLocationInfo.label
|
|
40745
|
+
if (tipLocationInfo && tipLocationInfo !== null && tipLocationInfo !== void 0 && tipLocationInfo.label && (tipLocationInfo === null || tipLocationInfo === void 0 ? void 0 : tipLocationInfo.label) === 0) {
|
|
40132
40746
|
this.lastHitInfo = tipLocationInfo;
|
|
40133
40747
|
}
|
|
40134
40748
|
}
|
|
40135
40749
|
|
|
40136
40750
|
if (maxTipOpt.use && !isExistSelectedLabel) {
|
|
40137
40751
|
var maxSID = this.minMax[isHorizontal ? 'x' : 'y'][0].maxSID;
|
|
40138
|
-
|
|
40752
|
+
var _seriesInfo = this.seriesList[maxSID];
|
|
40753
|
+
maxArgs = this.calculateTipInfo(_seriesInfo, 'max', null);
|
|
40139
40754
|
|
|
40140
40755
|
if (maxTipOpt.use && maxArgs) {
|
|
40141
40756
|
maxArgs.text = numberWithComma(maxArgs.value);
|
|
40142
40757
|
this.drawTextTip(_objectSpread2({
|
|
40143
40758
|
opt: maxTipOpt,
|
|
40144
|
-
tipType: 'max'
|
|
40759
|
+
tipType: 'max',
|
|
40760
|
+
seriesOpt: _seriesInfo
|
|
40145
40761
|
}, maxArgs));
|
|
40146
40762
|
|
|
40147
40763
|
if (maxTipOpt.showIndicator) {
|
|
40148
40764
|
this.drawFixedIndicator(_objectSpread2({
|
|
40149
|
-
opt: maxTipOpt
|
|
40765
|
+
opt: maxTipOpt,
|
|
40766
|
+
seriesOpt: _seriesInfo
|
|
40150
40767
|
}, maxArgs));
|
|
40151
40768
|
}
|
|
40152
40769
|
}
|
|
@@ -40242,6 +40859,8 @@ var element_tip_modules = {
|
|
|
40242
40859
|
}
|
|
40243
40860
|
} else if (type === 'line') {
|
|
40244
40861
|
dp = helpers_canvas.calculateX(ldata, graphX.graphMin, graphX.graphMax, xArea - size.comboOffset, xsp + size.comboOffset / 2);
|
|
40862
|
+
} else if (type === 'scatter') {
|
|
40863
|
+
dp = helpers_canvas.calculateX(ldata, graphX.graphMin, graphX.graphMax, xArea, xsp);
|
|
40245
40864
|
}
|
|
40246
40865
|
|
|
40247
40866
|
var sizeObj = {
|
|
@@ -40273,8 +40892,18 @@ var element_tip_modules = {
|
|
|
40273
40892
|
dp = param.dp,
|
|
40274
40893
|
type = param.type,
|
|
40275
40894
|
value = param.value,
|
|
40276
|
-
opt = param.opt
|
|
40277
|
-
|
|
40895
|
+
opt = param.opt,
|
|
40896
|
+
seriesOpt = param.seriesOpt;
|
|
40897
|
+
var offset = 0;
|
|
40898
|
+
|
|
40899
|
+
if (type === 'line') {
|
|
40900
|
+
offset += 3;
|
|
40901
|
+
} else if (type === 'scatter') {
|
|
40902
|
+
var _seriesOpt$pointSize;
|
|
40903
|
+
|
|
40904
|
+
offset += (_seriesOpt$pointSize = seriesOpt === null || seriesOpt === void 0 ? void 0 : seriesOpt.pointSize) !== null && _seriesOpt$pointSize !== void 0 ? _seriesOpt$pointSize : 0;
|
|
40905
|
+
}
|
|
40906
|
+
|
|
40278
40907
|
var gp;
|
|
40279
40908
|
|
|
40280
40909
|
if (opt.fixedPosTop) {
|
|
@@ -40459,11 +41088,21 @@ var element_tip_modules = {
|
|
|
40459
41088
|
opt = param.opt,
|
|
40460
41089
|
type = param.type,
|
|
40461
41090
|
tipType = param.tipType,
|
|
40462
|
-
isSamePos = param.isSamePos
|
|
41091
|
+
isSamePos = param.isSamePos,
|
|
41092
|
+
seriesOpt = param.seriesOpt;
|
|
40463
41093
|
var arrowSize = 4;
|
|
40464
41094
|
var maxTipHeight = 20;
|
|
40465
41095
|
var borderRadius = 4;
|
|
40466
|
-
var offset =
|
|
41096
|
+
var offset = 1;
|
|
41097
|
+
|
|
41098
|
+
if (type === 'line') {
|
|
41099
|
+
offset += 6;
|
|
41100
|
+
} else if (type === 'scatter') {
|
|
41101
|
+
offset += seriesOpt === null || seriesOpt === void 0 ? void 0 : seriesOpt.pointSize;
|
|
41102
|
+
} else if (type === 'bar') {
|
|
41103
|
+
offset += 4;
|
|
41104
|
+
}
|
|
41105
|
+
|
|
40467
41106
|
var gp;
|
|
40468
41107
|
var tdp = dp;
|
|
40469
41108
|
|
|
@@ -40823,7 +41462,8 @@ var chart_core_EvChart = /*#__PURE__*/function () {
|
|
|
40823
41462
|
|
|
40824
41463
|
var _this$options2 = this.options,
|
|
40825
41464
|
maxTip = _this$options2.maxTip,
|
|
40826
|
-
selectLabel = _this$options2.selectLabel
|
|
41465
|
+
selectLabel = _this$options2.selectLabel,
|
|
41466
|
+
selectItem = _this$options2.selectItem;
|
|
40827
41467
|
var opt = {
|
|
40828
41468
|
ctx: this.bufferCtx,
|
|
40829
41469
|
chartRect: this.chartRect,
|
|
@@ -40854,40 +41494,91 @@ var chart_core_EvChart = /*#__PURE__*/function () {
|
|
|
40854
41494
|
for (var jx = 0; jx < chartTypeSet.length; jx++) {
|
|
40855
41495
|
var series = this.seriesList[chartTypeSet[jx]];
|
|
40856
41496
|
|
|
40857
|
-
|
|
40858
|
-
|
|
40859
|
-
|
|
40860
|
-
|
|
40861
|
-
|
|
40862
|
-
|
|
40863
|
-
|
|
40864
|
-
thickness: thickness,
|
|
40865
|
-
borderRadius: borderRadius,
|
|
40866
|
-
showSeriesCount: showSeriesCount,
|
|
40867
|
-
showIndex: showIndex
|
|
40868
|
-
}, opt));
|
|
40869
|
-
|
|
40870
|
-
if (series.show) {
|
|
40871
|
-
showIndex++;
|
|
40872
|
-
}
|
|
40873
|
-
} else {
|
|
40874
|
-
var _ref, _this$defaultSelectIt;
|
|
41497
|
+
switch (chartType) {
|
|
41498
|
+
case 'line':
|
|
41499
|
+
case 'heatMap':
|
|
41500
|
+
{
|
|
41501
|
+
series.draw(opt);
|
|
41502
|
+
break;
|
|
41503
|
+
}
|
|
40875
41504
|
|
|
40876
|
-
|
|
40877
|
-
|
|
40878
|
-
|
|
41505
|
+
case 'bar':
|
|
41506
|
+
{
|
|
41507
|
+
var _this$options3 = this.options,
|
|
41508
|
+
thickness = _this$options3.thickness,
|
|
41509
|
+
borderRadius = _this$options3.borderRadius;
|
|
41510
|
+
series.draw(_objectSpread2({
|
|
41511
|
+
thickness: thickness,
|
|
41512
|
+
borderRadius: borderRadius,
|
|
41513
|
+
showSeriesCount: showSeriesCount,
|
|
41514
|
+
showIndex: showIndex
|
|
41515
|
+
}, opt));
|
|
41516
|
+
|
|
41517
|
+
if (series.show) {
|
|
41518
|
+
showIndex++;
|
|
41519
|
+
}
|
|
40879
41520
|
|
|
40880
|
-
|
|
40881
|
-
|
|
40882
|
-
} else {
|
|
40883
|
-
this.drawPie(selectInfo);
|
|
40884
|
-
}
|
|
41521
|
+
break;
|
|
41522
|
+
}
|
|
40885
41523
|
|
|
40886
|
-
|
|
40887
|
-
|
|
40888
|
-
|
|
41524
|
+
case 'pie':
|
|
41525
|
+
{
|
|
41526
|
+
var _ref, _this$defaultSelectIt;
|
|
40889
41527
|
|
|
40890
|
-
|
|
41528
|
+
var selectInfo = (_ref = hitInfo !== null && hitInfo !== void 0 ? hitInfo : this.lastHitInfo) !== null && _ref !== void 0 ? _ref : {
|
|
41529
|
+
sId: (_this$defaultSelectIt = this.defaultSelectItemInfo) === null || _this$defaultSelectIt === void 0 ? void 0 : _this$defaultSelectIt.seriesID
|
|
41530
|
+
};
|
|
41531
|
+
|
|
41532
|
+
if (this.options.sunburst) {
|
|
41533
|
+
this.drawSunburst(selectInfo);
|
|
41534
|
+
} else {
|
|
41535
|
+
this.drawPie(selectInfo);
|
|
41536
|
+
}
|
|
41537
|
+
|
|
41538
|
+
if (this.options.doughnutHoleSize > 0) {
|
|
41539
|
+
this.drawDoughnutHole();
|
|
41540
|
+
}
|
|
41541
|
+
|
|
41542
|
+
break;
|
|
41543
|
+
}
|
|
41544
|
+
|
|
41545
|
+
case 'scatter':
|
|
41546
|
+
{
|
|
41547
|
+
if (selectItem.use && selectItem.useSeriesOpacity) {
|
|
41548
|
+
var _this$lastHitInfo, _this$lastHitInfo2, _this$defaultSelectIt2, _this$defaultSelectIt3;
|
|
41549
|
+
|
|
41550
|
+
if (hitInfo) {
|
|
41551
|
+
if (hitInfo !== null && hitInfo !== void 0 && hitInfo.maxIndex || (hitInfo === null || hitInfo === void 0 ? void 0 : hitInfo.maxIndex) === 0) {
|
|
41552
|
+
opt.selectInfo = {
|
|
41553
|
+
seriesID: hitInfo.sId,
|
|
41554
|
+
dataIndex: hitInfo.maxIndex
|
|
41555
|
+
};
|
|
41556
|
+
} else {
|
|
41557
|
+
opt.selectInfo = null;
|
|
41558
|
+
}
|
|
41559
|
+
} 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) {
|
|
41560
|
+
opt.selectInfo = {
|
|
41561
|
+
seriesID: this.lastHitInfo.sId,
|
|
41562
|
+
dataIndex: this.lastHitInfo.maxIndex
|
|
41563
|
+
};
|
|
41564
|
+
} 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) {
|
|
41565
|
+
opt.selectInfo = {
|
|
41566
|
+
seriesID: this.defaultSelectItemInfo.seriesID,
|
|
41567
|
+
dataIndex: this.defaultSelectItemInfo.dataIndex
|
|
41568
|
+
};
|
|
41569
|
+
} else {
|
|
41570
|
+
opt.selectInfo = null;
|
|
41571
|
+
}
|
|
41572
|
+
}
|
|
41573
|
+
|
|
41574
|
+
series.draw(opt);
|
|
41575
|
+
break;
|
|
41576
|
+
}
|
|
41577
|
+
|
|
41578
|
+
default:
|
|
41579
|
+
{
|
|
41580
|
+
break;
|
|
41581
|
+
}
|
|
40891
41582
|
}
|
|
40892
41583
|
}
|
|
40893
41584
|
}
|
|
@@ -41345,7 +42036,7 @@ var chart_core_EvChart = /*#__PURE__*/function () {
|
|
|
41345
42036
|
this.axesRange = this.getAxesRange();
|
|
41346
42037
|
this.labelOffset = this.getLabelOffset();
|
|
41347
42038
|
this.initSelectedLabelInfo();
|
|
41348
|
-
this.render();
|
|
42039
|
+
this.render(updateInfo === null || updateInfo === void 0 ? void 0 : updateInfo.hitInfo);
|
|
41349
42040
|
var isDragMove = this.dragInfo && this.drawSelectionArea;
|
|
41350
42041
|
|
|
41351
42042
|
if (isDragMove) {
|
|
@@ -41601,7 +42292,8 @@ var DEFAULT_OPTIONS = {
|
|
|
41601
42292
|
useApproximateValue: false,
|
|
41602
42293
|
indicatorColor: '#000000',
|
|
41603
42294
|
tipBackground: '#000000',
|
|
41604
|
-
tipTextColor: '#FFFFFF'
|
|
42295
|
+
tipTextColor: '#FFFFFF',
|
|
42296
|
+
useSeriesOpacity: false
|
|
41605
42297
|
},
|
|
41606
42298
|
selectLabel: {
|
|
41607
42299
|
use: false,
|