@syncfusion/ej2-treegrid 20.1.56 → 20.2.36
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 +5 -48
- 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 +135 -48
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +133 -46
- 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/helpers/e2e/index.js +8 -6
- package/helpers/e2e/treegridhelper.js +82 -65
- package/package.json +9 -9
- package/src/treegrid/actions/batch-edit.js +6 -1
- package/src/treegrid/actions/edit.js +33 -29
- package/src/treegrid/actions/infinite-scroll.js +1 -1
- package/src/treegrid/actions/rowdragdrop.js +46 -9
- package/src/treegrid/actions/selection.js +1 -1
- package/src/treegrid/actions/sort.js +11 -0
- package/src/treegrid/base/data.js +12 -0
- package/src/treegrid/base/treegrid.js +7 -1
- package/src/treegrid/renderer/render.js +2 -0
- package/src/treegrid/renderer/virtual-tree-content-render.js +12 -2
- package/styles/bootstrap-dark.css +9 -0
- package/styles/bootstrap.css +9 -0
- package/styles/bootstrap4.css +9 -0
- package/styles/bootstrap5-dark.css +9 -0
- package/styles/bootstrap5.css +9 -0
- package/styles/fabric-dark.css +9 -0
- package/styles/fabric.css +9 -0
- package/styles/fluent-dark.css +9 -0
- package/styles/fluent.css +9 -0
- package/styles/highcontrast-light.css +9 -0
- package/styles/highcontrast.css +9 -0
- package/styles/material-dark.css +9 -0
- package/styles/material.css +9 -0
- package/styles/tailwind-dark.css +9 -0
- package/styles/tailwind.css +9 -0
- package/styles/treegrid/_fusionnew-definition.scss +29 -0
- package/styles/treegrid/_icons.scss +11 -0
- package/styles/treegrid/_material3-definition.scss +29 -0
- package/styles/treegrid/bootstrap-dark.css +9 -0
- package/styles/treegrid/bootstrap.css +9 -0
- package/styles/treegrid/bootstrap4.css +9 -0
- package/styles/treegrid/bootstrap5-dark.css +9 -0
- package/styles/treegrid/bootstrap5.css +9 -0
- package/styles/treegrid/fabric-dark.css +9 -0
- package/styles/treegrid/fabric.css +9 -0
- package/styles/treegrid/fluent-dark.css +9 -0
- package/styles/treegrid/fluent.css +9 -0
- package/styles/treegrid/highcontrast-light.css +9 -0
- package/styles/treegrid/highcontrast.css +9 -0
- package/styles/treegrid/icons/_bootstrap-dark.scss +11 -0
- package/styles/treegrid/icons/_bootstrap.scss +11 -0
- package/styles/treegrid/icons/_bootstrap4.scss +11 -0
- package/styles/treegrid/icons/_bootstrap5.scss +11 -0
- package/styles/treegrid/icons/_fabric-dark.scss +11 -0
- package/styles/treegrid/icons/_fabric.scss +11 -0
- package/styles/treegrid/icons/_fluent.scss +11 -0
- package/styles/treegrid/icons/_fusionnew.scss +26 -0
- package/styles/treegrid/icons/_highcontrast-light.scss +11 -0
- package/styles/treegrid/icons/_highcontrast.scss +11 -0
- package/styles/treegrid/icons/_material-dark.scss +11 -0
- package/styles/treegrid/icons/_material.scss +11 -0
- package/styles/treegrid/icons/_material3.scss +26 -0
- package/styles/treegrid/icons/_tailwind-dark.scss +11 -0
- package/styles/treegrid/icons/_tailwind.scss +11 -0
- package/styles/treegrid/material-dark.css +9 -0
- package/styles/treegrid/material.css +9 -0
- package/styles/treegrid/tailwind-dark.css +9 -0
- package/styles/treegrid/tailwind.css +9 -0
|
@@ -959,7 +959,7 @@ var Selection = /** @__PURE__ @class */ (function () {
|
|
|
959
959
|
Selection.prototype.getCheckboxcolumnIndex = function () {
|
|
960
960
|
var mappingUid;
|
|
961
961
|
var columnIndex;
|
|
962
|
-
var stackedHeader =
|
|
962
|
+
var stackedHeader = 'stackedHeader';
|
|
963
963
|
var columnModel = 'columnModel';
|
|
964
964
|
var columns = this.parent[stackedHeader] ? this.parent[columnModel] : (this.parent.columns);
|
|
965
965
|
for (var col = 0; col < columns.length; col++) {
|
|
@@ -1797,6 +1797,8 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
1797
1797
|
var cellRenderer = new CellRenderer(_this.parent.grid, _this.parent.grid.serviceLocator);
|
|
1798
1798
|
var td = _this.parent.getCellFromIndex(rowsObj[j].index, cellIndex - indent);
|
|
1799
1799
|
cellRenderer.refreshTD(td, cell, rowsObj[j].data, { index: rowsObj[j][rowIdx] });
|
|
1800
|
+
var treecell = _this.parent.getRows()[j].cells[cellIndex];
|
|
1801
|
+
_this.cellRender({ data: rowsObj[j].data, cell: treecell, column: cell.column });
|
|
1800
1802
|
}
|
|
1801
1803
|
}
|
|
1802
1804
|
});
|
|
@@ -2345,6 +2347,18 @@ var DataManipulation = /** @__PURE__ @class */ (function () {
|
|
|
2345
2347
|
srtQry.sortBy(this.parent.grid.sortSettings.columns[srt].field, compFun);
|
|
2346
2348
|
}
|
|
2347
2349
|
var modifiedData = new DataManager(parentData).executeLocal(srtQry);
|
|
2350
|
+
if (this.parent.allowRowDragAndDrop && !isNullOrUndefined(this.parent.rowDragAndDropModule['draggedRecord']) &&
|
|
2351
|
+
this.parent.rowDragAndDropModule['droppedRecord'].hasChildRecords && this.parent.rowDragAndDropModule['dropPosition'] !== 'middleSegment') {
|
|
2352
|
+
var dragdIndex = modifiedData.indexOf(this.parent.rowDragAndDropModule['draggedRecord']);
|
|
2353
|
+
modifiedData.splice(dragdIndex, 1);
|
|
2354
|
+
var dropdIndex = modifiedData.indexOf(this.parent.rowDragAndDropModule['droppedRecord']);
|
|
2355
|
+
if (this.parent.rowDragAndDropModule['droppedRecord'].hasChildRecords && this.parent.rowDragAndDropModule['dropPosition'] === 'topSegment') {
|
|
2356
|
+
modifiedData.splice(dropdIndex, 0, this.parent.rowDragAndDropModule['draggedRecord']);
|
|
2357
|
+
}
|
|
2358
|
+
else if (this.parent.rowDragAndDropModule['dropPosition'] === 'bottomSegment') {
|
|
2359
|
+
modifiedData.splice(dropdIndex + 1, 0, this.parent.rowDragAndDropModule['draggedRecord']);
|
|
2360
|
+
}
|
|
2361
|
+
}
|
|
2348
2362
|
var sortArgs = { modifiedData: modifiedData, filteredData: results, srtQry: srtQry };
|
|
2349
2363
|
this.parent.notify('createSort', sortArgs);
|
|
2350
2364
|
results = sortArgs.modifiedData;
|
|
@@ -3611,8 +3625,11 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
3611
3625
|
member: 'ExcelExport', args: [this]
|
|
3612
3626
|
});
|
|
3613
3627
|
}
|
|
3628
|
+
var freezePresent = this.injectedModules.filter(function (e) {
|
|
3629
|
+
return e.prototype.getModuleName() === 'freeze';
|
|
3630
|
+
});
|
|
3614
3631
|
if (this.frozenColumns || this.frozenRows || this.getFrozenColumns() ||
|
|
3615
|
-
this.grid.getFrozenLeftColumnsCount() || this.grid.getFrozenRightColumnsCount()) {
|
|
3632
|
+
this.grid.getFrozenLeftColumnsCount() || this.grid.getFrozenRightColumnsCount() || freezePresent.length) {
|
|
3616
3633
|
modules.push({
|
|
3617
3634
|
member: 'freeze', args: [this]
|
|
3618
3635
|
});
|
|
@@ -4565,6 +4582,9 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
4565
4582
|
gridColumn[prop] = this.getGridColumns(column[i][prop], false, index);
|
|
4566
4583
|
treeGridColumn[prop] = column[i][prop];
|
|
4567
4584
|
}
|
|
4585
|
+
else if (this.initialRender && !isNullOrUndefined(treeColumn) && this.enablePersistence && prop === 'edit') {
|
|
4586
|
+
gridColumn[prop] = treeGridColumn[prop] = treeColumn[prop];
|
|
4587
|
+
}
|
|
4568
4588
|
else if (!(treeColumn) || prop !== 'sortComparer') {
|
|
4569
4589
|
gridColumn[prop] = treeGridColumn[prop] = column[i][prop];
|
|
4570
4590
|
}
|
|
@@ -7271,7 +7291,8 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
7271
7291
|
this.parent[dropPosition] = this.dropPosition;
|
|
7272
7292
|
var data = [];
|
|
7273
7293
|
for (var i = 0; i < fromIndexes.length; i++) {
|
|
7274
|
-
|
|
7294
|
+
var index = this.parent.getRowByIndex(fromIndexes[i]).rowIndex;
|
|
7295
|
+
data[i] = this.parent.getCurrentViewRecords()[index];
|
|
7275
7296
|
}
|
|
7276
7297
|
var isByMethod = true;
|
|
7277
7298
|
var args = {
|
|
@@ -7375,6 +7396,9 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
7375
7396
|
else {
|
|
7376
7397
|
dropIndex = this.selectedRow.rowIndex - 1;
|
|
7377
7398
|
}
|
|
7399
|
+
if (this.parent.enableVirtualization && this.parent.allowRowDragAndDrop && this.selectedRecord) {
|
|
7400
|
+
dropIndex = parseInt(this.selectedRow.getAttribute('aria-rowindex'), 10) - 1;
|
|
7401
|
+
}
|
|
7378
7402
|
tObj[action] = 'indenting';
|
|
7379
7403
|
tObj[droppedIndex] = dropIndex;
|
|
7380
7404
|
this.eventTrigger('indenting', dropIndex);
|
|
@@ -7391,6 +7415,9 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
7391
7415
|
dropIndex = i;
|
|
7392
7416
|
}
|
|
7393
7417
|
}
|
|
7418
|
+
if (this.parent.enableVirtualization && this.parent.allowRowDragAndDrop && this.selectedRecord) {
|
|
7419
|
+
dropIndex = parseInt(this.parent.getRows()[dropIndex].getAttribute('aria-rowindex'), 10);
|
|
7420
|
+
}
|
|
7394
7421
|
tObj[action] = 'outdenting';
|
|
7395
7422
|
tObj[droppedIndex] = dropIndex;
|
|
7396
7423
|
this.eventTrigger('outdenting', dropIndex);
|
|
@@ -7408,10 +7435,20 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
7408
7435
|
this.parent.trigger(actionBegin, actionArgs, function (actionArgs) {
|
|
7409
7436
|
if (!actionArgs.cancel) {
|
|
7410
7437
|
if (actionArgs.action === 'indenting') {
|
|
7411
|
-
|
|
7438
|
+
if (_this.parent.enableVirtualization && _this.parent.allowRowDragAndDrop) {
|
|
7439
|
+
_this.reorderRows([parseInt(_this.selectedRow.getAttribute('aria-rowindex'), 10)], dropIndex, 'child');
|
|
7440
|
+
}
|
|
7441
|
+
else {
|
|
7442
|
+
_this.reorderRows([_this.selectedRow.rowIndex], dropIndex, 'child');
|
|
7443
|
+
}
|
|
7412
7444
|
}
|
|
7413
7445
|
else if (actionArgs.action === 'outdenting') {
|
|
7414
|
-
|
|
7446
|
+
if (_this.parent.enableVirtualization && _this.parent.allowRowDragAndDrop) {
|
|
7447
|
+
_this.reorderRows([parseInt(_this.selectedRow.getAttribute('aria-rowindex'), 10)], dropIndex, 'below');
|
|
7448
|
+
}
|
|
7449
|
+
else {
|
|
7450
|
+
_this.reorderRows([_this.selectedRow.rowIndex], dropIndex, 'below');
|
|
7451
|
+
}
|
|
7415
7452
|
}
|
|
7416
7453
|
}
|
|
7417
7454
|
});
|
|
@@ -7606,9 +7643,17 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
7606
7643
|
RowDD$$1.prototype.removeLastrowBorder = function (element) {
|
|
7607
7644
|
var isEmptyRow = element && (element.classList.contains('e-emptyrow') || element.classList.contains('e-columnheader')
|
|
7608
7645
|
|| element.classList.contains('e-detailrow'));
|
|
7609
|
-
var islastRowIndex
|
|
7610
|
-
|
|
7611
|
-
|
|
7646
|
+
var islastRowIndex;
|
|
7647
|
+
if (this.parent.enableVirtualization) {
|
|
7648
|
+
islastRowIndex = element && !isEmptyRow &&
|
|
7649
|
+
this.parent.getRows()[this.parent.getCurrentViewRecords().length - 1].getAttribute('data-uid') !==
|
|
7650
|
+
element.getAttribute('data-uid');
|
|
7651
|
+
}
|
|
7652
|
+
else {
|
|
7653
|
+
islastRowIndex = element && !isEmptyRow &&
|
|
7654
|
+
this.parent.getRowByIndex(this.parent.getCurrentViewRecords().length - 1).getAttribute('data-uid') !==
|
|
7655
|
+
element.getAttribute('data-uid');
|
|
7656
|
+
}
|
|
7612
7657
|
var canremove = islastRowIndex || this.dropPosition === 'topSegment';
|
|
7613
7658
|
if (this.parent.element.getElementsByClassName('e-lastrow-border').length > 0 && element && (islastRowIndex || canremove)) {
|
|
7614
7659
|
this.parent.element.getElementsByClassName('e-lastrow-border')[0].remove();
|
|
@@ -7642,7 +7687,12 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
7642
7687
|
rowPositionHeight = rowEle.offsetTop - scrollTop;
|
|
7643
7688
|
}
|
|
7644
7689
|
// let scrollTop = (tObj.grid.scrollModule as any).content.scrollTop;
|
|
7645
|
-
|
|
7690
|
+
if (this.parent.enableVirtualization) {
|
|
7691
|
+
rowTop = rowEle.getBoundingClientRect().top;
|
|
7692
|
+
}
|
|
7693
|
+
else {
|
|
7694
|
+
rowTop = rowPositionHeight + contentHeight + roundOff;
|
|
7695
|
+
}
|
|
7646
7696
|
var rowBottom = rowTop + row[0].offsetHeight;
|
|
7647
7697
|
var difference = rowBottom - rowTop;
|
|
7648
7698
|
var divide = difference / 3;
|
|
@@ -7722,7 +7772,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
7722
7772
|
RowDD$$1.prototype.addLastRowborder = function (trElement) {
|
|
7723
7773
|
var isEmptyRow = trElement && (trElement.classList.contains('e-emptyrow') ||
|
|
7724
7774
|
trElement.classList.contains('e-columnheader') || trElement.classList.contains('e-detailrow'));
|
|
7725
|
-
if (trElement && !isEmptyRow && this.parent.
|
|
7775
|
+
if (trElement && !isEmptyRow && this.parent.getRows()[this.parent.getCurrentViewRecords().length - 1].getAttribute('data-uid') ===
|
|
7726
7776
|
trElement.getAttribute('data-uid')) {
|
|
7727
7777
|
var bottomborder = this.parent.createElement('div', { className: 'e-lastrow-border' });
|
|
7728
7778
|
var gridcontentEle = this.parent.getContent();
|
|
@@ -8064,7 +8114,13 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8064
8114
|
}
|
|
8065
8115
|
else {
|
|
8066
8116
|
args.dropIndex = args.dropIndex === args.fromIndex ? this.getTargetIdx(args.target.parentElement) : args.dropIndex;
|
|
8067
|
-
this.
|
|
8117
|
+
if (this.parent.enableVirtualization) {
|
|
8118
|
+
var index = this.parent.getRowByIndex(args.dropIndex).rowIndex;
|
|
8119
|
+
this.droppedRecord = tObj.getCurrentViewRecords()[index];
|
|
8120
|
+
}
|
|
8121
|
+
else {
|
|
8122
|
+
this.droppedRecord = tObj.getCurrentViewRecords()[args.dropIndex];
|
|
8123
|
+
}
|
|
8068
8124
|
}
|
|
8069
8125
|
var dragRecords = [];
|
|
8070
8126
|
droppedRecord = this.droppedRecord;
|
|
@@ -8141,6 +8197,7 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8141
8197
|
childRecords.splice(droppedRecordIndex, 0, draggedRecord_2);
|
|
8142
8198
|
draggedRecord_2.parentItem = droppedRecord.parentItem;
|
|
8143
8199
|
draggedRecord_2.parentUniqueID = droppedRecord.parentUniqueID;
|
|
8200
|
+
draggedRecord_2.level = droppedRecord.level;
|
|
8144
8201
|
if (this_1.parent.parentIdMapping) {
|
|
8145
8202
|
draggedRecord_2[this_1.parent.parentIdMapping] = droppedRecord[this_1.parent.parentIdMapping];
|
|
8146
8203
|
draggedRecord_2.parentItem = droppedRecord.parentItem;
|
|
@@ -9914,6 +9971,17 @@ var Sort$1 = /** @__PURE__ @class */ (function () {
|
|
|
9914
9971
|
}
|
|
9915
9972
|
if (data[d].hasChildRecords) {
|
|
9916
9973
|
var childSort = (new DataManager(data[d].childRecords).executeLocal(srtQry));
|
|
9974
|
+
if (this.parent.allowRowDragAndDrop && data[d].childRecords.indexOf(this.parent.rowDragAndDropModule['draggedRecord']) !== -1 && this.parent.rowDragAndDropModule['dropPosition'] !== 'middleSegment') {
|
|
9975
|
+
var dragdIndex = childSort.indexOf(this.parent.rowDragAndDropModule['draggedRecord']);
|
|
9976
|
+
childSort.splice(dragdIndex, 1);
|
|
9977
|
+
var dropdIndex = childSort.indexOf(this.parent.rowDragAndDropModule['droppedRecord']);
|
|
9978
|
+
if (this.parent.rowDragAndDropModule['dropPosition'] === 'topSegment') {
|
|
9979
|
+
childSort.splice(dropdIndex, 0, this.parent.rowDragAndDropModule['draggedRecord']);
|
|
9980
|
+
}
|
|
9981
|
+
else if (this.parent.rowDragAndDropModule['dropPosition'] === 'bottomSegment') {
|
|
9982
|
+
childSort.splice(dropdIndex + 1, 0, this.parent.rowDragAndDropModule['draggedRecord']);
|
|
9983
|
+
}
|
|
9984
|
+
}
|
|
9917
9985
|
this.iterateSort(childSort, srtQry);
|
|
9918
9986
|
}
|
|
9919
9987
|
}
|
|
@@ -10733,7 +10801,12 @@ var BatchEdit = /** @__PURE__ @class */ (function () {
|
|
|
10733
10801
|
BatchEdit.prototype.nextCellIndex = function (args) {
|
|
10734
10802
|
var index = 'index';
|
|
10735
10803
|
var rowIndex = 'rowIndex';
|
|
10736
|
-
|
|
10804
|
+
if (this.parent.getSelectedRows().length) {
|
|
10805
|
+
args[index] = this.parent.getSelectedRows()[0][rowIndex];
|
|
10806
|
+
}
|
|
10807
|
+
else {
|
|
10808
|
+
args[index] = this.batchIndex;
|
|
10809
|
+
}
|
|
10737
10810
|
};
|
|
10738
10811
|
return BatchEdit;
|
|
10739
10812
|
}());
|
|
@@ -11272,11 +11345,13 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
11272
11345
|
Edit$$1.prototype.updateIndex = function (data, rows, records) {
|
|
11273
11346
|
for (var j = 0; j < this.parent.getDataRows().length; j++) {
|
|
11274
11347
|
var data1 = records[j];
|
|
11275
|
-
|
|
11276
|
-
|
|
11277
|
-
|
|
11278
|
-
|
|
11279
|
-
|
|
11348
|
+
if (!isNullOrUndefined(data1)) {
|
|
11349
|
+
var index = getValue('uniqueIDCollection.' + data1.uniqueID + '.index', this.parent);
|
|
11350
|
+
data1.index = index;
|
|
11351
|
+
if (!isNullOrUndefined(data1.parentItem)) {
|
|
11352
|
+
var parentIndex = getValue('uniqueIDCollection.' + data1.parentItem.uniqueID + '.index', this.parent);
|
|
11353
|
+
data1.parentItem.index = parentIndex;
|
|
11354
|
+
}
|
|
11280
11355
|
}
|
|
11281
11356
|
}
|
|
11282
11357
|
var count = -1;
|
|
@@ -11295,32 +11370,34 @@ var Edit$1 = /** @__PURE__ @class */ (function () {
|
|
|
11295
11370
|
count++;
|
|
11296
11371
|
}
|
|
11297
11372
|
var data2 = records[count];
|
|
11298
|
-
|
|
11299
|
-
|
|
11300
|
-
|
|
11301
|
-
|
|
11302
|
-
|
|
11303
|
-
|
|
11304
|
-
|
|
11305
|
-
|
|
11306
|
-
|
|
11307
|
-
var
|
|
11308
|
-
|
|
11309
|
-
|
|
11310
|
-
|
|
11311
|
-
|
|
11312
|
-
|
|
11313
|
-
|
|
11314
|
-
|
|
11315
|
-
|
|
11316
|
-
|
|
11317
|
-
|
|
11318
|
-
|
|
11319
|
-
|
|
11320
|
-
|
|
11321
|
-
|
|
11322
|
-
|
|
11323
|
-
|
|
11373
|
+
if (!isNullOrUndefined(data2)) {
|
|
11374
|
+
var index = data2.index;
|
|
11375
|
+
var level = data2.level;
|
|
11376
|
+
var row = rows[k];
|
|
11377
|
+
if (!isNullOrUndefined(data2.parentItem)) {
|
|
11378
|
+
index = getValue('uniqueIDCollection.' + data2.parentItem.uniqueID + '.index', this.parent);
|
|
11379
|
+
}
|
|
11380
|
+
var treecell = row.cells[treeColIndex];
|
|
11381
|
+
if (!isNullOrUndefined(treecell)) {
|
|
11382
|
+
for (var l = 0; l < treecell.classList.length; l++) {
|
|
11383
|
+
var value = treecell.classList[l];
|
|
11384
|
+
var remove$$1 = /e-gridrowindex/i;
|
|
11385
|
+
var removed = /e-griddetailrowindex/i;
|
|
11386
|
+
var result = value.match(remove$$1);
|
|
11387
|
+
var results = value.match(removed);
|
|
11388
|
+
if (result != null) {
|
|
11389
|
+
removeClass([treecell], value);
|
|
11390
|
+
}
|
|
11391
|
+
if (results != null) {
|
|
11392
|
+
removeClass([treecell], value);
|
|
11393
|
+
}
|
|
11394
|
+
}
|
|
11395
|
+
if (!rows[k].classList.contains('e-detailrow')) {
|
|
11396
|
+
addClass([treecell], 'e-gridrowindex' + index + 'level' + level);
|
|
11397
|
+
}
|
|
11398
|
+
else {
|
|
11399
|
+
addClass([treecell], 'e-griddetailrowindex' + index + 'level' + level);
|
|
11400
|
+
}
|
|
11324
11401
|
}
|
|
11325
11402
|
}
|
|
11326
11403
|
}
|
|
@@ -12249,7 +12326,12 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
|
12249
12326
|
firsttdinx = +attr; // this.parent.getContent().querySelector('.e-content tr').getAttribute('aria-rowindex');
|
|
12250
12327
|
}
|
|
12251
12328
|
if (firsttdinx === 0) {
|
|
12252
|
-
this.
|
|
12329
|
+
if (this.parent.allowRowDragAndDrop) {
|
|
12330
|
+
this.translateY = scrollArgs.offset.top - this.parent.getRowHeight() * 2;
|
|
12331
|
+
}
|
|
12332
|
+
else {
|
|
12333
|
+
this.translateY = scrollArgs.offset.top;
|
|
12334
|
+
}
|
|
12253
12335
|
}
|
|
12254
12336
|
else {
|
|
12255
12337
|
var height = this.parent.getRowHeight();
|
|
@@ -12275,7 +12357,12 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
|
12275
12357
|
this.translateY = this.getTranslateY(scrollArgs.offset.top, content.getBoundingClientRect().height);
|
|
12276
12358
|
}
|
|
12277
12359
|
else {
|
|
12278
|
-
this.
|
|
12360
|
+
if (this.parent.allowRowDragAndDrop) {
|
|
12361
|
+
this.translateY = scrollArgs.offset.top - this.parent.getRowHeight() * 2;
|
|
12362
|
+
}
|
|
12363
|
+
else {
|
|
12364
|
+
this.translateY = scrollArgs.offset.top;
|
|
12365
|
+
}
|
|
12279
12366
|
}
|
|
12280
12367
|
}
|
|
12281
12368
|
if (((downScroll && (scrollArgs.offset.top < (this.parent.getRowHeight() * this.totalRecords)))
|
|
@@ -13095,7 +13182,7 @@ var InfiniteScroll$1 = /** @__PURE__ @class */ (function () {
|
|
|
13095
13182
|
if (getValue('selectedIndex', this.parent.editModule) !== -1 && this.parent.editSettings.newRowPosition !== 'Top') {
|
|
13096
13183
|
if (this.parent.editSettings.newRowPosition === 'Below' || this.parent.editSettings.newRowPosition === 'Child') {
|
|
13097
13184
|
position = 'after';
|
|
13098
|
-
newRowIndex += findChildrenRecords(currentData[newRowIndex
|
|
13185
|
+
newRowIndex += findChildrenRecords(currentData[newRowIndex]).length;
|
|
13099
13186
|
if (this.parent.editSettings.newRowPosition === 'Child') {
|
|
13100
13187
|
newRowIndex -= 1; //// for child position already child record is added in childRecords so subtracting 1
|
|
13101
13188
|
}
|