@syncfusion/ej2-treegrid 32.1.25 → 32.2.4
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/ej2-treegrid.min.js +2 -2
- 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 +116 -22
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +118 -22
- 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 +5 -5
- package/src/treegrid/actions/batch-edit.js +4 -1
- package/src/treegrid/actions/infinite-scroll.d.ts +8 -0
- package/src/treegrid/actions/infinite-scroll.js +83 -3
- package/src/treegrid/base/constant.d.ts +2 -0
- package/src/treegrid/base/constant.js +2 -0
- package/src/treegrid/base/treegrid.d.ts +1 -0
- package/src/treegrid/base/treegrid.js +28 -17
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Property, merge, ChildProperty, Collection, isNullOrUndefined, Browser, removeClass, addClass, getValue, createElement, setValue, extend as extend$1, Internationalization, getEnumValue, compile, Component, L10n, EventHandler, KeyboardEvents, SanitizeHtmlHelper, Complex, Event, NotifyPropertyChanges, closest, setStyleAttribute, select, classList, debounce, remove } from '@syncfusion/ej2-base';
|
|
2
|
-
import { Grid, Logger as Logger$1, detailLists, Clipboard, getObject, parentsUntil, Print as Print$1, templateCompiler, appendChildren, extend, CellRenderer, getUid, CellType, Freeze as Freeze$1, getNumberFormat, getActualProperties, iterateArrayOrObject, RowDropSettings as RowDropSettings$1, Reorder as Reorder$1, Resize as Resize$1, Scroll, RowDD as RowDD$1, VirtualRowModelGenerator, Filter as Filter$1, Data, ExportHelper, ExcelExport as ExcelExport$1, PdfExport as PdfExport$1, Page as Page$1, Toolbar as Toolbar$1, calculateAggregate, Aggregate as Aggregate$1, Sort as Sort$1, ColumnMenu as ColumnMenu$1, ContextMenu as ContextMenu$1, resetRowIndex, Edit as Edit$1, CommandColumn as CommandColumn$1, DetailRow as DetailRow$1, Cell, getVisiblePage, VirtualContentRenderer, InterSectionObserver, getTransformValues, RenderType, VirtualHeaderRenderer, VirtualScroll as VirtualScroll$1, ColumnChooser as ColumnChooser$1, RowRenderer, InfiniteScroll as InfiniteScroll$1 } from '@syncfusion/ej2-grids';
|
|
2
|
+
import { Grid, Logger as Logger$1, detailLists, Clipboard, getObject, parentsUntil, Print as Print$1, templateCompiler, appendChildren, extend, CellRenderer, getUid, CellType, Freeze as Freeze$1, getNumberFormat, getActualProperties, iterateArrayOrObject, RowDropSettings as RowDropSettings$1, Reorder as Reorder$1, Resize as Resize$1, Scroll, RowDD as RowDD$1, VirtualRowModelGenerator, Filter as Filter$1, Data, ExportHelper, ExcelExport as ExcelExport$1, PdfExport as PdfExport$1, Page as Page$1, Toolbar as Toolbar$1, calculateAggregate, Aggregate as Aggregate$1, Sort as Sort$1, ColumnMenu as ColumnMenu$1, ContextMenu as ContextMenu$1, resetRowIndex, Edit as Edit$1, CommandColumn as CommandColumn$1, DetailRow as DetailRow$1, Cell, getVisiblePage, VirtualContentRenderer, InterSectionObserver, getTransformValues, RenderType, VirtualHeaderRenderer, VirtualScroll as VirtualScroll$1, ColumnChooser as ColumnChooser$1, getRowIndexFromElement, RowRenderer, InfiniteScroll as InfiniteScroll$1 } from '@syncfusion/ej2-grids';
|
|
3
3
|
import { createCheckBox } from '@syncfusion/ej2-buttons';
|
|
4
4
|
import { DataManager, ODataAdaptor, WebApiAdaptor, WebMethodAdaptor, CacheAdaptor, UrlAdaptor, Query, DataUtil, RemoteSaveAdaptor, Deferred, JsonAdaptor, Predicate as Predicate$1 } from '@syncfusion/ej2-data';
|
|
5
5
|
import { showSpinner, hideSpinner, createSpinner } from '@syncfusion/ej2-popups';
|
|
@@ -600,6 +600,8 @@ var ariaColIndex = 'aria-colindex';
|
|
|
600
600
|
var ariaRowIndex = 'aria-rowindex';
|
|
601
601
|
/** @hidden */
|
|
602
602
|
var actionFailure = 'actionFailure';
|
|
603
|
+
/** @hidden */
|
|
604
|
+
var collapseActionComplete = 'collapseActionComplete';
|
|
603
605
|
|
|
604
606
|
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
605
607
|
var extendStatics = function (d, b) {
|
|
@@ -4348,6 +4350,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
4348
4350
|
_this.componentRefresh = Component.prototype.refresh;
|
|
4349
4351
|
_this.isComponentRefresh = false;
|
|
4350
4352
|
_this.isVirtualExpandCollapse = false;
|
|
4353
|
+
_this.isInfiniteCollapse = false;
|
|
4351
4354
|
_this.objectEqualityChecker = function (old, current) {
|
|
4352
4355
|
if (old) {
|
|
4353
4356
|
var keys = Object.keys(old);
|
|
@@ -5224,12 +5227,12 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
5224
5227
|
var checkboxColumn = this.columnModel.filter(function (col) { return col.showCheckbox; });
|
|
5225
5228
|
var treeColumn = this.columns[this.treeColumnIndex];
|
|
5226
5229
|
if (checkboxColumn.length !== 0) {
|
|
5227
|
-
if (checkboxColumn !== treeColumn) {
|
|
5228
|
-
failureCases.push('ShowCheckbox column should not be defined other than the tree column.');
|
|
5229
|
-
}
|
|
5230
5230
|
if (checkboxColumn.length > 1) {
|
|
5231
5231
|
failureCases.push('Only one column can have the ShowCheckbox option enabled.');
|
|
5232
5232
|
}
|
|
5233
|
+
else if (checkboxColumn[0].field !== treeColumn.field) {
|
|
5234
|
+
failureCases.push('ShowCheckbox column should not be defined other than the tree column.');
|
|
5235
|
+
}
|
|
5233
5236
|
}
|
|
5234
5237
|
var alignColumn;
|
|
5235
5238
|
if (this.treeColumnIndex !== null && this.treeColumnIndex !== -1 && this.treeColumnIndex < this.columns.length) {
|
|
@@ -5861,6 +5864,12 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
5861
5864
|
if (args.action === 'clearFilter' && _this.enableCollapseAll) {
|
|
5862
5865
|
_this.collapseAll();
|
|
5863
5866
|
}
|
|
5867
|
+
if (args.action === 'clearFilter' && _this.enableInfiniteScrolling) {
|
|
5868
|
+
_this.expandAll();
|
|
5869
|
+
}
|
|
5870
|
+
if (args.requestType === 'sorting' && _this.enableInfiniteScrolling) {
|
|
5871
|
+
_this.expandAll();
|
|
5872
|
+
}
|
|
5864
5873
|
if (_this.action === 'indenting' || _this.action === 'outdenting') {
|
|
5865
5874
|
_this.action = _this.action === 'indenting' ? 'indented' : 'outdented';
|
|
5866
5875
|
var selectedItem_1 = [_this.selectedRecords];
|
|
@@ -7716,13 +7725,6 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
7716
7725
|
else if (!this.isCollapseAll) {
|
|
7717
7726
|
this.trigger(collapsed, collapseArgs);
|
|
7718
7727
|
}
|
|
7719
|
-
if (this.enableInfiniteScrolling) {
|
|
7720
|
-
var scrollHeight = this.grid.getContent().firstElementChild.scrollHeight;
|
|
7721
|
-
var scrollTop = this.grid.getContent().firstElementChild.scrollTop;
|
|
7722
|
-
if ((scrollHeight - scrollTop) < this.grid.getRowHeight() + +this.height) {
|
|
7723
|
-
this.grid.getContent().firstElementChild.scrollBy(0, this.grid.getRowHeight());
|
|
7724
|
-
}
|
|
7725
|
-
}
|
|
7726
7728
|
}
|
|
7727
7729
|
};
|
|
7728
7730
|
TreeGrid.prototype.updateExpandStateMapping = function (record, state) {
|
|
@@ -8106,10 +8108,13 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
8106
8108
|
if ((!isCountRequired(this) || childRecords.length) || action === 'collapse') {
|
|
8107
8109
|
this.localExpand(action, row, record);
|
|
8108
8110
|
}
|
|
8111
|
+
if (this.enableInfiniteScrolling && action === 'collapse' && !this.isCollapseAll) {
|
|
8112
|
+
this.notify(collapseActionComplete, { isCollapse: true, data: record, row: row });
|
|
8113
|
+
}
|
|
8109
8114
|
var lastrowIdx = this.getVisibleRecords()[this.getVisibleRecords().length - 1]['index'];
|
|
8110
8115
|
var lastRow = this.getRowByIndex(lastrowIdx);
|
|
8111
8116
|
var borderElement = lastRow ? lastRow.nextElementSibling ? lastRow.nextElementSibling.classList.contains('e-detailrow') ? lastRow.nextElementSibling : lastRow : lastRow : null;
|
|
8112
|
-
if (this.grid.getContentTable().clientHeight <= this.grid.getContent().clientHeight && !isNullOrUndefined(borderElement) && !borderElement.cells[0].classList.contains('e-lastrowcell')) {
|
|
8117
|
+
if (!this.isInfiniteCollapse && this.grid.getContentTable().clientHeight <= this.grid.getContent().clientHeight && !isNullOrUndefined(borderElement) && !borderElement.cells[0].classList.contains('e-lastrowcell')) {
|
|
8113
8118
|
this.lastRowBorder(borderElement, true);
|
|
8114
8119
|
}
|
|
8115
8120
|
}
|
|
@@ -8124,7 +8129,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
8124
8129
|
targetEle.closest('.e-treerowcell').classList.remove('e-cellselectionbackground');
|
|
8125
8130
|
targetEle.closest('.e-treerowcell').removeAttribute('aria-selected');
|
|
8126
8131
|
}
|
|
8127
|
-
if (this.isPixelHeight() && !row.cells[0].classList.contains('e-lastrowcell')) {
|
|
8132
|
+
if (this.isPixelHeight() && !row.cells[0].classList.contains('e-lastrowcell') && !this.isInfiniteCollapse) {
|
|
8128
8133
|
var totalRows = this.getRows();
|
|
8129
8134
|
var rows = this.getContentTable().rows;
|
|
8130
8135
|
totalRows = [].slice.call(rows);
|
|
@@ -8141,6 +8146,7 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
8141
8146
|
this.notify('rowExpandCollapse', { detailrows: detailrows, action: displayAction, record: record, row: row });
|
|
8142
8147
|
this.updateAltRow(gridRows);
|
|
8143
8148
|
}
|
|
8149
|
+
this.isInfiniteCollapse = false;
|
|
8144
8150
|
};
|
|
8145
8151
|
TreeGrid.prototype.updateChildOnDemand = function (expandingArgs) {
|
|
8146
8152
|
var _this = this;
|
|
@@ -8273,11 +8279,18 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
8273
8279
|
}
|
|
8274
8280
|
};
|
|
8275
8281
|
TreeGrid.prototype.localExpand = function (action, row, record) {
|
|
8282
|
+
var _this = this;
|
|
8276
8283
|
var rows;
|
|
8277
8284
|
var detailRow = row.nextElementSibling ? row.nextElementSibling.classList.contains('e-detailrow') ? row.nextElementSibling : null : null;
|
|
8278
|
-
var childRecords
|
|
8279
|
-
|
|
8280
|
-
|
|
8285
|
+
var childRecords;
|
|
8286
|
+
if (this.enableInfiniteScrolling) {
|
|
8287
|
+
childRecords = this.grid.getRowsObject().filter(function (e) { return e.data.parentUniqueID === record.uniqueID; });
|
|
8288
|
+
}
|
|
8289
|
+
else {
|
|
8290
|
+
childRecords = this.grid.currentViewData.filter(function (e) {
|
|
8291
|
+
return e.parentUniqueID === record.uniqueID;
|
|
8292
|
+
});
|
|
8293
|
+
}
|
|
8281
8294
|
if (this.isPixelHeight() && row.cells[0].classList.contains('e-lastrowcell')) {
|
|
8282
8295
|
this.lastRowBorder(row, false);
|
|
8283
8296
|
}
|
|
@@ -8317,9 +8330,9 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
8317
8330
|
});
|
|
8318
8331
|
}
|
|
8319
8332
|
var gridRowsObject = this.grid.getRowsObject();
|
|
8320
|
-
var currentViewData = this.grid.currentViewData;
|
|
8333
|
+
var currentViewData = this.enableInfiniteScrolling ? this.grid.getRowsObject() : this.grid.currentViewData;
|
|
8321
8334
|
var currentRecord = currentViewData.filter(function (e) {
|
|
8322
|
-
return e.uniqueID === record.uniqueID;
|
|
8335
|
+
return _this.enableInfiniteScrolling ? e.data.uniqueID === record.uniqueID : e.uniqueID === record.uniqueID;
|
|
8323
8336
|
});
|
|
8324
8337
|
var currentIndex = currentViewData.indexOf(currentRecord[0]);
|
|
8325
8338
|
if (!isNullOrUndefined(gridRowsObject[parseInt(currentIndex.toString(), 10)].visible) &&
|
|
@@ -13322,7 +13335,7 @@ var BatchEdit = /** @__PURE__ @class */ (function () {
|
|
|
13322
13335
|
return;
|
|
13323
13336
|
}
|
|
13324
13337
|
if (this.parent.editModule['isAddedRowByMethod'] && !isNullOrUndefined(this.parent.editModule['addRowIndex']) &&
|
|
13325
|
-
!this.parent.editModule['isAddedRowByContextMenu'] && (this.parent.
|
|
13338
|
+
!this.parent.editModule['isAddedRowByContextMenu'] && (this.parent.editModule['selectedIndex'] >= 0 || this.parent.editModule['batchEditModule'].isAdd)) {
|
|
13326
13339
|
this.selectedIndex = this.parent.editModule['selectedIndex'];
|
|
13327
13340
|
this.addRowIndex = this.parent.editModule['addRowIndex'];
|
|
13328
13341
|
this.addRowRecord = this.batchRecords.length ? this.batchRecords[this.selectedIndex]
|
|
@@ -13697,6 +13710,9 @@ var BatchEdit = /** @__PURE__ @class */ (function () {
|
|
|
13697
13710
|
if (this.parent.editModule['isAddedRowByContextMenu']) {
|
|
13698
13711
|
this.parent.editModule['isAddedRowByContextMenu'] = false;
|
|
13699
13712
|
}
|
|
13713
|
+
if (this.parent.editModule['isAddedRowByMethod']) {
|
|
13714
|
+
this.parent.editModule['isAddedRowByMethod'] = false;
|
|
13715
|
+
}
|
|
13700
13716
|
};
|
|
13701
13717
|
BatchEdit.prototype.getActualRowObjectIndex = function (index) {
|
|
13702
13718
|
var rows = this.parent.grid.getDataRows();
|
|
@@ -16683,6 +16699,10 @@ var InfiniteScroll = /** @__PURE__ @class */ (function () {
|
|
|
16683
16699
|
this.parent.grid.on('infinite-edit-handler', this.infiniteEditHandler, this);
|
|
16684
16700
|
this.parent.grid.on('infinite-crud-cancel', this.createRows, this);
|
|
16685
16701
|
this.parent.grid.on('content-ready', this.contentready, this);
|
|
16702
|
+
this.parent.on(collapseActionComplete, this.collapseActionComplete, this);
|
|
16703
|
+
this.parent.grid.on('data-ready', this.onDataReady, this);
|
|
16704
|
+
this.dataBoundFunction = this.dataBound.bind(this);
|
|
16705
|
+
this.parent.addEventListener(dataBound, this.dataBoundFunction);
|
|
16686
16706
|
};
|
|
16687
16707
|
/**
|
|
16688
16708
|
* @hidden
|
|
@@ -16698,6 +16718,53 @@ var InfiniteScroll = /** @__PURE__ @class */ (function () {
|
|
|
16698
16718
|
this.parent.off(pagingActions, this.infinitePageAction);
|
|
16699
16719
|
this.parent.grid.off('infinite-crud-cancel', this.createRows);
|
|
16700
16720
|
this.parent.grid.off('content-ready', this.contentready);
|
|
16721
|
+
this.parent.off(collapseActionComplete, this.collapseActionComplete);
|
|
16722
|
+
this.parent.grid.off('data-ready', this.onDataReady);
|
|
16723
|
+
this.parent.removeEventListener(dataBound, this.dataBoundFunction);
|
|
16724
|
+
};
|
|
16725
|
+
InfiniteScroll.prototype.dataBound = function () {
|
|
16726
|
+
if (this.treeAction === 'collapse') {
|
|
16727
|
+
this.treeAction = 'refresh';
|
|
16728
|
+
this.makeCollapseRequest();
|
|
16729
|
+
}
|
|
16730
|
+
else if (this.treeAction === 'refresh') {
|
|
16731
|
+
this.treeAction = null;
|
|
16732
|
+
}
|
|
16733
|
+
};
|
|
16734
|
+
InfiniteScroll.prototype.onDataReady = function (e) {
|
|
16735
|
+
if (!isNullOrUndefined(e.count) && e.requestType !== 'infiniteScroll') {
|
|
16736
|
+
this.maxPage = Math.ceil(e.count / this.parent.pageSettings.pageSize);
|
|
16737
|
+
}
|
|
16738
|
+
};
|
|
16739
|
+
InfiniteScroll.prototype.collapseActionComplete = function (args) {
|
|
16740
|
+
if (!this.parent.infiniteScrollSettings.enableCache && args.isCollapse) {
|
|
16741
|
+
var contentBounds = this.parent.getContent().firstElementChild.getBoundingClientRect();
|
|
16742
|
+
var tableBounds = this.parent.grid.contentModule.getTable().getBoundingClientRect();
|
|
16743
|
+
if (Math.round(tableBounds.bottom - this.parent.grid.getRowHeight()) <= Math.round(contentBounds.bottom)) {
|
|
16744
|
+
this.treeAction = 'collapse';
|
|
16745
|
+
this.collapsedData = args.data;
|
|
16746
|
+
this.makeCollapseRequest(args);
|
|
16747
|
+
}
|
|
16748
|
+
}
|
|
16749
|
+
};
|
|
16750
|
+
InfiniteScroll.prototype.makeCollapseRequest = function (args) {
|
|
16751
|
+
var rows = this.parent.getRows();
|
|
16752
|
+
var index = getRowIndexFromElement(rows[rows.length - 1]);
|
|
16753
|
+
var previousPage = this.parent.grid.pageSettings.currentPage;
|
|
16754
|
+
var nextPage = Math.ceil(index / this.parent.grid.pageSettings.pageSize) + 1;
|
|
16755
|
+
if ((previousPage >= this.maxPage) || (nextPage > this.maxPage)) {
|
|
16756
|
+
return;
|
|
16757
|
+
}
|
|
16758
|
+
this.parent.grid.pageSettings.currentPage = nextPage;
|
|
16759
|
+
this.parent['isInfiniteCollapse'] = true;
|
|
16760
|
+
var scrollArg = {
|
|
16761
|
+
requestType: 'infiniteScroll',
|
|
16762
|
+
currentPage: this.parent.grid.pageSettings.currentPage,
|
|
16763
|
+
prevPage: previousPage,
|
|
16764
|
+
startIndex: index + 1,
|
|
16765
|
+
direction: 'down'
|
|
16766
|
+
};
|
|
16767
|
+
this.parent.grid.notify('model-changed', scrollArg);
|
|
16701
16768
|
};
|
|
16702
16769
|
/**
|
|
16703
16770
|
* Handles the Expand Collapse action for Remote data with infinite scrolling.
|
|
@@ -16757,6 +16824,7 @@ var InfiniteScroll = /** @__PURE__ @class */ (function () {
|
|
|
16757
16824
|
* @returns {void}
|
|
16758
16825
|
*/
|
|
16759
16826
|
InfiniteScroll.prototype.infinitePageAction = function (pageingDetails) {
|
|
16827
|
+
var _this = this;
|
|
16760
16828
|
var dm = new DataManager(pageingDetails.result);
|
|
16761
16829
|
var expanded = new Predicate$1('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
|
|
16762
16830
|
var visualData = dm.executeLocal(new Query().where(expanded));
|
|
@@ -16788,7 +16856,12 @@ var InfiniteScroll = /** @__PURE__ @class */ (function () {
|
|
|
16788
16856
|
if (!isCache && actionArgs.requestType === 'delete') {
|
|
16789
16857
|
var skip = lastIndex - actionArgs.data.length + 1;
|
|
16790
16858
|
var take = actionArgs.data.length;
|
|
16791
|
-
|
|
16859
|
+
if (skip < 0) {
|
|
16860
|
+
query = query.take(take);
|
|
16861
|
+
}
|
|
16862
|
+
else {
|
|
16863
|
+
query = query.skip(skip).take(take);
|
|
16864
|
+
}
|
|
16792
16865
|
}
|
|
16793
16866
|
else if (isCache && actionArgs.requestType === 'delete' ||
|
|
16794
16867
|
(actionArgs.requestType === 'save' && actionArgs.action === 'add')) {
|
|
@@ -16796,13 +16869,36 @@ var InfiniteScroll = /** @__PURE__ @class */ (function () {
|
|
|
16796
16869
|
query = query.take(this.parent.infiniteScrollSettings.initialBlocks * this.parent.pageSettings.pageSize);
|
|
16797
16870
|
}
|
|
16798
16871
|
else {
|
|
16799
|
-
|
|
16872
|
+
if (this.treeAction !== 'collapse' && this.treeAction !== 'refresh') {
|
|
16873
|
+
query = query.page(current, size);
|
|
16874
|
+
}
|
|
16800
16875
|
}
|
|
16801
16876
|
}
|
|
16802
16877
|
else {
|
|
16803
16878
|
query = query.page(current, size);
|
|
16804
16879
|
}
|
|
16805
16880
|
dm.dataSource.json = visualData;
|
|
16881
|
+
if (this.treeAction === 'collapse') {
|
|
16882
|
+
var rows = this.parent.getRows();
|
|
16883
|
+
var skip = getRowIndexFromElement(rows[rows.length - 1]) + 1;
|
|
16884
|
+
query = query.skip(skip);
|
|
16885
|
+
var renderedChildDataCount = this.parent.grid.getRowsObject().filter(function (record) {
|
|
16886
|
+
return record.data.parentUniqueID === _this.collapsedData.uniqueID;
|
|
16887
|
+
}).length;
|
|
16888
|
+
var remainingChildDataCount = this.collapsedData.childRecords.length - renderedChildDataCount;
|
|
16889
|
+
if (remainingChildDataCount > 0) {
|
|
16890
|
+
query = query.take(Math.max(remainingChildDataCount, 0));
|
|
16891
|
+
}
|
|
16892
|
+
else {
|
|
16893
|
+
query = query.take(this.parent.pageSettings.pageSize);
|
|
16894
|
+
}
|
|
16895
|
+
}
|
|
16896
|
+
else if (this.treeAction === 'refresh') {
|
|
16897
|
+
var rows = this.parent.getRows();
|
|
16898
|
+
var skip = getRowIndexFromElement(rows[rows.length - 1]) + 1;
|
|
16899
|
+
query = query.skip(skip);
|
|
16900
|
+
query = query.take(this.parent.infiniteScrollSettings.initialBlocks * this.parent.pageSettings.pageSize);
|
|
16901
|
+
}
|
|
16806
16902
|
if (!isCache && !isNullOrUndefined(actionArgs) && actionArgs.requestType === 'save' && actionArgs.action === 'add') {
|
|
16807
16903
|
pageingDetails.result = [actionArgs.data];
|
|
16808
16904
|
}
|
|
@@ -16954,5 +17050,5 @@ var InfiniteScroll = /** @__PURE__ @class */ (function () {
|
|
|
16954
17050
|
return InfiniteScroll;
|
|
16955
17051
|
}());
|
|
16956
17052
|
|
|
16957
|
-
export { Aggregate, AggregateColumn, AggregateRow, Column, ColumnChooser, ColumnMenu, CommandColumn, ContextMenu, ContextMenuItems, DataManipulation, DetailRow, Edit, EditSettings, ExcelExport, Filter, FilterSettings, Freeze, InfiniteScroll, InfiniteScrollSettings, LoadingIndicator, Logger, Page, PageSettings, PdfExport, Predicate, Render, Reorder, Resize, RowDD, RowDropSettings, SearchSettings, Selection, SelectionSettings, Sort, SortDescriptor, SortSettings, StackedColumn, Toolbar, ToolbarItem, TreeClipboard, TreeGrid, TreeGridColumn, TreeVirtual, TreeVirtualRowModelGenerator, VirtualScroll, actionBegin, actionComplete, actionFailure, ariaColIndex, ariaRowIndex, autoCol, batchAdd, batchCancel, batchDelete, batchEditFormRendered, batchSave, beforeBatchAdd, beforeBatchCancel, beforeBatchDelete, beforeBatchSave, beforeCopy, beforeDataBound, beforeExcelExport, beforePaste, beforePdfExport, beforeStartEdit, beginAdd, beginEdit, cellEdit, cellSave, cellSaved, checkboxChange, collapsed, collapsing, content, contextMenuClick, contextMenuOpen, crudAction, dataBound, dataListener, dataStateChange, destroy, detailDataBound, doubleTap, expanded, expanding, extendArray, findChildrenRecords, findParentRecords, frozenContent, frozenHeader, frozenLeft, frozenRight, getExpandStatus, getParentData, getPlainData, headerContent, indexModifier, isCheckboxcolumn, isCountRequired, isFilterChildHierarchy, isHidden, isOffline, isRemoteData, keyPressed, leftRight, load, localPagedExpandCollapse, movableContent, movableHeader, pagingActions, printGridInit, queryCellInfo, recordDoubleClick, remoteExpand, resizeStop, rowDataBound, rowDeselected, rowDeselecting, rowDrag, rowDragStart, rowDragStartHelper, rowDrop, rowDropped, rowSelected, rowSelecting, rowdraging, rowsAdd, rowsRemove, savePreviousRowPosition, table, toolbarClick, treeGridDetails, updateData, virtualActionArgs, virtualColumnIndex };
|
|
17053
|
+
export { Aggregate, AggregateColumn, AggregateRow, Column, ColumnChooser, ColumnMenu, CommandColumn, ContextMenu, ContextMenuItems, DataManipulation, DetailRow, Edit, EditSettings, ExcelExport, Filter, FilterSettings, Freeze, InfiniteScroll, InfiniteScrollSettings, LoadingIndicator, Logger, Page, PageSettings, PdfExport, Predicate, Render, Reorder, Resize, RowDD, RowDropSettings, SearchSettings, Selection, SelectionSettings, Sort, SortDescriptor, SortSettings, StackedColumn, Toolbar, ToolbarItem, TreeClipboard, TreeGrid, TreeGridColumn, TreeVirtual, TreeVirtualRowModelGenerator, VirtualScroll, actionBegin, actionComplete, actionFailure, ariaColIndex, ariaRowIndex, autoCol, batchAdd, batchCancel, batchDelete, batchEditFormRendered, batchSave, beforeBatchAdd, beforeBatchCancel, beforeBatchDelete, beforeBatchSave, beforeCopy, beforeDataBound, beforeExcelExport, beforePaste, beforePdfExport, beforeStartEdit, beginAdd, beginEdit, cellEdit, cellSave, cellSaved, checkboxChange, collapseActionComplete, collapsed, collapsing, content, contextMenuClick, contextMenuOpen, crudAction, dataBound, dataListener, dataStateChange, destroy, detailDataBound, doubleTap, expanded, expanding, extendArray, findChildrenRecords, findParentRecords, frozenContent, frozenHeader, frozenLeft, frozenRight, getExpandStatus, getParentData, getPlainData, headerContent, indexModifier, isCheckboxcolumn, isCountRequired, isFilterChildHierarchy, isHidden, isOffline, isRemoteData, keyPressed, leftRight, load, localPagedExpandCollapse, movableContent, movableHeader, pagingActions, printGridInit, queryCellInfo, recordDoubleClick, remoteExpand, resizeStop, rowDataBound, rowDeselected, rowDeselecting, rowDrag, rowDragStart, rowDragStartHelper, rowDrop, rowDropped, rowSelected, rowSelecting, rowdraging, rowsAdd, rowsRemove, savePreviousRowPosition, table, toolbarClick, treeGridDetails, updateData, virtualActionArgs, virtualColumnIndex };
|
|
16958
17054
|
//# sourceMappingURL=ej2-treegrid.es5.js.map
|