@syncfusion/ej2-treegrid 19.3.53 → 19.3.55
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/CHANGELOG.md +10 -0
- package/dist/ej2-treegrid.umd.min.js +2 -2
- package/dist/ej2-treegrid.umd.min.js.map +1 -1
- package/dist/es6/ej2-treegrid.es2015.js +26 -2
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +26 -2
- package/dist/es6/ej2-treegrid.es5.js.map +1 -1
- package/dist/global/ej2-treegrid.min.js +2 -2
- package/dist/global/ej2-treegrid.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +7 -7
- package/src/treegrid/actions/edit.js +6 -0
- package/src/treegrid/actions/virtual-scroll.js +5 -0
- package/src/treegrid/base/data.js +3 -1
- package/src/treegrid/base/treegrid.js +9 -0
- package/src/treegrid/renderer/virtual-tree-content-render.js +3 -1
- package/styles/bootstrap5-dark.css +1 -0
- package/styles/bootstrap5.css +1 -0
- package/styles/treegrid/bootstrap5-dark.css +1 -0
- package/styles/treegrid/bootstrap5.css +1 -0
|
@@ -2286,7 +2286,9 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
|
|
|
2286
2286
|
var query = getObject('query', args);
|
|
2287
2287
|
var srtQry = new Query();
|
|
2288
2288
|
for (var srt = this.parent.grid.sortSettings.columns.length - 1; srt >= 0; srt--) {
|
|
2289
|
-
var
|
|
2289
|
+
var getColumnByField = 'getColumnByField';
|
|
2290
|
+
var col = this.parent.grid.renderModule.data[getColumnByField](this.parent.grid.
|
|
2291
|
+
sortSettings.columns[srt].field);
|
|
2290
2292
|
var compFun = col.sortComparer && isOffline(this.parent) ?
|
|
2291
2293
|
col.sortComparer.bind(col) :
|
|
2292
2294
|
this.parent.grid.sortSettings.columns[srt].direction;
|
|
@@ -3816,6 +3818,15 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
3816
3818
|
_this.trigger(rowSelecting, args);
|
|
3817
3819
|
};
|
|
3818
3820
|
this.grid.rowSelected = function (args) {
|
|
3821
|
+
if (_this.enableVirtualization && args.isHeaderCheckboxClicked &&
|
|
3822
|
+
_this.grid.currentViewData.length !== _this.grid.selectionModule.selectedRowIndexes.length) {
|
|
3823
|
+
var updateRowSelection = 'updateRowSelection';
|
|
3824
|
+
for (var i = 0; i < _this.getRows().length; i++) {
|
|
3825
|
+
if (_this.getRows()[i].getElementsByClassName("e-frame e-icons e-uncheck").length) {
|
|
3826
|
+
_this.grid.selectionModule[updateRowSelection](_this.getRows()[i], _this.getCurrentViewRecords()[i].index);
|
|
3827
|
+
}
|
|
3828
|
+
}
|
|
3829
|
+
}
|
|
3819
3830
|
_this.selectedRowIndex = _this.grid.selectedRowIndex;
|
|
3820
3831
|
_this.notify(rowSelected, args);
|
|
3821
3832
|
_this.trigger(rowSelected, args);
|
|
@@ -10875,6 +10886,7 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
10875
10886
|
}
|
|
10876
10887
|
if (this.isAddedRowByMethod && args.index !== 0) {
|
|
10877
10888
|
this.addRowRecord = this.parent.flatData[args.index];
|
|
10889
|
+
this.addRowIndex = args.index;
|
|
10878
10890
|
}
|
|
10879
10891
|
if (this.parent.editSettings.newRowPosition === 'Child' && isNullOrUndefined(this.addRowRecord)
|
|
10880
10892
|
&& !isNullOrUndefined(this.parent.getSelectedRecords()[0])) {
|
|
@@ -10903,6 +10915,11 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
10903
10915
|
var position = null;
|
|
10904
10916
|
value.taskData = isNullOrUndefined(value.taskData) ? extend({}, args.data) : value.taskData;
|
|
10905
10917
|
var currentData = this.parent.grid.getCurrentViewRecords();
|
|
10918
|
+
if (this.parent.enableVirtualization && args.index !== 0) {
|
|
10919
|
+
this.addRowIndex = this.parent.grid.getCurrentViewRecords().indexOf(this.addRowRecord);
|
|
10920
|
+
this.selectedIndex = parseInt(this.parent.getRows()[this.addRowIndex].getAttribute('aria-rowindex'));
|
|
10921
|
+
|
|
10922
|
+
}
|
|
10906
10923
|
var index = this.addRowIndex;
|
|
10907
10924
|
value.uniqueID = getUid(this.parent.element.id + '_data_');
|
|
10908
10925
|
setValue('uniqueIDCollection.' + value.uniqueID, value, this.parent);
|
|
@@ -11424,7 +11441,9 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
|
11424
11441
|
if (isNullOrUndefined(this.observer[containerRect])) {
|
|
11425
11442
|
this.observer[containerRect] = this.observers[containerRect];
|
|
11426
11443
|
}
|
|
11427
|
-
|
|
11444
|
+
if (args.selectedIndex !== 0 || isNullOrUndefined(this.parent['clipboardModule'].treeGridParent.editModule['addRowIndex'])) {
|
|
11445
|
+
_super.prototype[selectVirtualRow].call(this, args);
|
|
11446
|
+
}
|
|
11428
11447
|
};
|
|
11429
11448
|
VirtualTreeContentRenderer.prototype.refreshCell = function (rowObj) {
|
|
11430
11449
|
rowObj.cells = this.generateCells();
|
|
@@ -11910,6 +11929,11 @@ var VirtualScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
11910
11929
|
}
|
|
11911
11930
|
//if ((this.prevendIndex !== -1 && this.prevstartIndex !== -1) &&
|
|
11912
11931
|
//this.prevendIndex === endIndex && this.prevstartIndex === startIndex) {
|
|
11932
|
+
if (!isNullOrUndefined(this.expandCollapseRec) && (pageingDetails.actionArgs.requestType === 'virtualscroll' ||
|
|
11933
|
+
(pageingDetails.actionArgs.requestType === 'refresh' && startIndex !== this.prevstartIndex)) &&
|
|
11934
|
+
(startIndex < this.parent.getRows().length && endIndex <= startIndex + this.parent.getRows().length)) {
|
|
11935
|
+
startIndex = 0;
|
|
11936
|
+
}
|
|
11913
11937
|
if (!isNullOrUndefined(this.expandCollapseRec)) {
|
|
11914
11938
|
var resourceCount = this.parent.getRows();
|
|
11915
11939
|
var sIndex = visualData.indexOf(this.expandCollapseRec);
|