evui 3.4.72 → 3.4.74
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 +76 -83
- package/dist/evui.common.js.map +1 -1
- package/dist/evui.umd.js +76 -83
- 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/plugins/plugins.legend.js +2 -2
- package/src/components/treeGrid/uses.js +78 -71
package/dist/evui.umd.js
CHANGED
|
@@ -11233,7 +11233,7 @@ $({ target: 'Number', stat: true }, {
|
|
|
11233
11233
|
/***/ "9224":
|
|
11234
11234
|
/***/ (function(module) {
|
|
11235
11235
|
|
|
11236
|
-
module.exports = JSON.parse("{\"a\":\"3.4.
|
|
11236
|
+
module.exports = JSON.parse("{\"a\":\"3.4.74\"}");
|
|
11237
11237
|
|
|
11238
11238
|
/***/ }),
|
|
11239
11239
|
|
|
@@ -46712,8 +46712,8 @@ var plugins_legend_modules = {
|
|
|
46712
46712
|
*/
|
|
46713
46713
|
updateStartEndRowIndex: function updateStartEndRowIndex() {
|
|
46714
46714
|
var index = Math.max(Math.floor(this.legendBoxDOM.scrollTop / this.legendItemHeight), 0);
|
|
46715
|
-
this.startRowIndex = index
|
|
46716
|
-
this.endRowIndex = this.startRowIndex + this.visibleRowCount;
|
|
46715
|
+
this.startRowIndex = Math.min(index, Math.max(this.totalRowCount - this.visibleRowCount, 0));
|
|
46716
|
+
this.endRowIndex = this.startRowIndex + this.visibleRowCount + 1;
|
|
46717
46717
|
},
|
|
46718
46718
|
|
|
46719
46719
|
/**
|
|
@@ -58240,14 +58240,12 @@ const TreeGridToolbar_exports_ = /*#__PURE__*/exportHelper_default()(TreeGridToo
|
|
|
58240
58240
|
|
|
58241
58241
|
|
|
58242
58242
|
|
|
58243
|
-
|
|
58244
58243
|
|
|
58245
58244
|
|
|
58246
58245
|
var treeGrid_uses_this = undefined;
|
|
58247
58246
|
|
|
58248
58247
|
|
|
58249
58248
|
|
|
58250
|
-
|
|
58251
58249
|
var treeGrid_uses_commonFunctions = function commonFunctions(params) {
|
|
58252
58250
|
var _getCurrentInstance = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["getCurrentInstance"])(),
|
|
58253
58251
|
props = _getCurrentInstance.props;
|
|
@@ -59451,9 +59449,7 @@ var treeGrid_uses_pagingEvent = function pagingEvent(params) {
|
|
|
59451
59449
|
};
|
|
59452
59450
|
var treeGrid_uses_sortEvent = function sortEvent(_ref) {
|
|
59453
59451
|
var sortInfo = _ref.sortInfo,
|
|
59454
|
-
stores = _ref.stores
|
|
59455
|
-
updatePagingInfo = _ref.updatePagingInfo,
|
|
59456
|
-
onResize = _ref.onResize;
|
|
59452
|
+
stores = _ref.stores;
|
|
59457
59453
|
|
|
59458
59454
|
var _getCurrentInstance7 = Object(external_commonjs_vue_commonjs2_vue_root_Vue_["getCurrentInstance"])(),
|
|
59459
59455
|
emit = _getCurrentInstance7.emit;
|
|
@@ -59507,67 +59503,66 @@ var treeGrid_uses_sortEvent = function sortEvent(_ref) {
|
|
|
59507
59503
|
};
|
|
59508
59504
|
|
|
59509
59505
|
var order = new OrderQueue();
|
|
59510
|
-
|
|
59511
|
-
|
|
59512
|
-
|
|
59513
|
-
|
|
59514
|
-
|
|
59515
|
-
|
|
59516
|
-
|
|
59517
|
-
|
|
59518
|
-
|
|
59519
|
-
|
|
59520
|
-
|
|
59521
|
-
|
|
59522
|
-
|
|
59523
|
-
|
|
59524
|
-
|
|
59525
|
-
|
|
59526
|
-
|
|
59527
|
-
|
|
59528
|
-
|
|
59529
|
-
|
|
59530
|
-
|
|
59531
|
-
|
|
59532
|
-
|
|
59533
|
-
|
|
59534
|
-
|
|
59535
|
-
|
|
59536
|
-
|
|
59537
|
-
|
|
59538
|
-
};
|
|
59539
|
-
|
|
59540
|
-
|
|
59541
|
-
|
|
59542
|
-
|
|
59543
|
-
|
|
59544
|
-
|
|
59545
|
-
|
|
59546
|
-
|
|
59547
|
-
|
|
59548
|
-
|
|
59549
|
-
|
|
59550
|
-
|
|
59551
|
-
|
|
59552
|
-
|
|
59553
|
-
|
|
59554
|
-
|
|
59555
|
-
|
|
59556
|
-
|
|
59557
|
-
|
|
59558
|
-
|
|
59559
|
-
|
|
59560
|
-
|
|
59561
|
-
|
|
59562
|
-
|
|
59563
|
-
|
|
59564
|
-
|
|
59565
|
-
};
|
|
59506
|
+
/* 24.11.09 Tree Grid Sort 로직 임시 제거 */
|
|
59507
|
+
// const setSortInfo = (column, emitTriggered = true) => {
|
|
59508
|
+
// const { sortType } = column?.sortOption || {};
|
|
59509
|
+
// sortInfo.sortColumn = column;
|
|
59510
|
+
// sortInfo.sortField = column?.field;
|
|
59511
|
+
// sortInfo.sortOrder = sortType;
|
|
59512
|
+
// sortInfo.isSorting = !!(sortType);
|
|
59513
|
+
//
|
|
59514
|
+
// if (emitTriggered) {
|
|
59515
|
+
// setSortOptionToOrderedColumns(column, sortType);
|
|
59516
|
+
//
|
|
59517
|
+
// emit('change-column-info', {
|
|
59518
|
+
// type: 'sort',
|
|
59519
|
+
// columns: getUpdatedColumns(stores),
|
|
59520
|
+
// });
|
|
59521
|
+
// }
|
|
59522
|
+
// };
|
|
59523
|
+
// const compareValues = (nodeA, nodeB) => {
|
|
59524
|
+
// const valueA = nodeA.data[sortInfo.sortField];
|
|
59525
|
+
// const valueB = nodeB.data[sortInfo.sortField];
|
|
59526
|
+
//
|
|
59527
|
+
// if (valueA === valueB) return 0;
|
|
59528
|
+
//
|
|
59529
|
+
// const isAscending = sortInfo.sortOrder === 'asc';
|
|
59530
|
+
//
|
|
59531
|
+
// if (isAscending) return valueA > valueB ? 1 : -1;
|
|
59532
|
+
//
|
|
59533
|
+
// return valueA < valueB ? 1 : -1;
|
|
59534
|
+
// };
|
|
59535
|
+
//
|
|
59536
|
+
// const sortTree = (nodes, depth = 0) => {
|
|
59537
|
+
// const groupedNodes = {};
|
|
59538
|
+
//
|
|
59539
|
+
// nodes.forEach((node) => {
|
|
59540
|
+
// const nodeDepth = node.level || depth;
|
|
59541
|
+
// if (!groupedNodes[nodeDepth]) {
|
|
59542
|
+
// groupedNodes[nodeDepth] = [];
|
|
59543
|
+
// }
|
|
59544
|
+
// groupedNodes[nodeDepth].push(node);
|
|
59545
|
+
// });
|
|
59546
|
+
//
|
|
59547
|
+
// Object.keys(groupedNodes).forEach((key) => {
|
|
59548
|
+
// groupedNodes[key].sort(compareValues);
|
|
59549
|
+
// });
|
|
59550
|
+
//
|
|
59551
|
+
// nodes.length = 0;
|
|
59552
|
+
// Object.values(groupedNodes).forEach((group) => {
|
|
59553
|
+
// group.forEach((node) => {
|
|
59554
|
+
// nodes.push(node);
|
|
59555
|
+
// if (node.hasChild) {
|
|
59556
|
+
// sortTree(node.children, node.level + 1);
|
|
59557
|
+
// }
|
|
59558
|
+
// });
|
|
59559
|
+
// });
|
|
59560
|
+
// };
|
|
59566
59561
|
|
|
59567
59562
|
var onSort = function onSort(column, sortOrder) {
|
|
59568
|
-
var
|
|
59563
|
+
var isSortableColumn = column.sortable === undefined ? true : column.sortable;
|
|
59569
59564
|
|
|
59570
|
-
if (
|
|
59565
|
+
if (isSortableColumn) {
|
|
59571
59566
|
sortInfo.sortColumn = column;
|
|
59572
59567
|
|
|
59573
59568
|
if (sortInfo.sortField !== (column === null || column === void 0 ? void 0 : column.field)) {
|
|
@@ -59599,26 +59594,24 @@ var treeGrid_uses_sortEvent = function sortEvent(_ref) {
|
|
|
59599
59594
|
type: 'sort',
|
|
59600
59595
|
columns: updatedColumInfo
|
|
59601
59596
|
});
|
|
59597
|
+
/* 24.11.09 Tree Grid Sort 로직 임시 제거 */
|
|
59598
|
+
// if (sortInfo.sortOrder === 'init') {
|
|
59599
|
+
// stores.treeStore = cloneDeep(stores.originStore);
|
|
59600
|
+
// stores.viewStore = stores.treeStore;
|
|
59601
|
+
// onResize();
|
|
59602
|
+
// sortInfo.isSorting = false;
|
|
59603
|
+
// } else {
|
|
59604
|
+
// sortTree(stores.treeRows);
|
|
59605
|
+
// sortInfo.isSorting = true;
|
|
59606
|
+
// }
|
|
59607
|
+
//
|
|
59608
|
+
// updatePagingInfo({ onSort: true });
|
|
59609
|
+
}
|
|
59610
|
+
}; // return { onSort, setSortInfo };
|
|
59602
59611
|
|
|
59603
|
-
if (sortInfo.sortOrder === 'init') {
|
|
59604
|
-
stores.treeStore = lodash_es_cloneDeep(stores.originStore);
|
|
59605
|
-
stores.viewStore = stores.treeStore;
|
|
59606
|
-
onResize();
|
|
59607
|
-
sortInfo.isSorting = false;
|
|
59608
|
-
} else {
|
|
59609
|
-
sortTree(stores.treeRows);
|
|
59610
|
-
sortInfo.isSorting = true;
|
|
59611
|
-
}
|
|
59612
|
-
|
|
59613
|
-
updatePagingInfo({
|
|
59614
|
-
onSort: true
|
|
59615
|
-
});
|
|
59616
|
-
}
|
|
59617
|
-
};
|
|
59618
59612
|
|
|
59619
59613
|
return {
|
|
59620
|
-
onSort: onSort
|
|
59621
|
-
setSortInfo: setSortInfo
|
|
59614
|
+
onSort: onSort
|
|
59622
59615
|
};
|
|
59623
59616
|
};
|
|
59624
59617
|
// 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/treeGrid/TreeGrid.vue?vue&type=script&lang=js
|