@syncfusion/ej2-treegrid 20.3.48 → 20.3.49
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 +14 -1
- 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 +39 -14
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +39 -14
- 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 +8 -8
- package/src/treegrid/actions/rowdragdrop.js +12 -2
- package/src/treegrid/renderer/render.js +5 -1
- package/src/treegrid/renderer/virtual-row-model-generator.js +5 -1
- package/src/treegrid/renderer/virtual-tree-content-render.d.ts +1 -1
- package/src/treegrid/renderer/virtual-tree-content-render.js +17 -10
|
@@ -1760,7 +1760,11 @@ var Render = /** @__PURE__ @class */ (function () {
|
|
|
1760
1760
|
args.cell.querySelector('.e-treecell').innerHTML = summaryData;
|
|
1761
1761
|
}
|
|
1762
1762
|
else {
|
|
1763
|
-
args.
|
|
1763
|
+
if (args.column.template) {
|
|
1764
|
+
args.cell.innerHTML = null;
|
|
1765
|
+
}
|
|
1766
|
+
else
|
|
1767
|
+
args.cell.innerHTML = summaryData;
|
|
1764
1768
|
}
|
|
1765
1769
|
}
|
|
1766
1770
|
if (isNullOrUndefined(this.parent.rowTemplate)) {
|
|
@@ -8439,7 +8443,12 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8439
8443
|
}
|
|
8440
8444
|
length = record.childRecords.length;
|
|
8441
8445
|
for (var i = 0; i < length; i++) {
|
|
8442
|
-
|
|
8446
|
+
if (!this.isMultipleGrid) {
|
|
8447
|
+
currentRecord = getValue('uniqueIDCollection.' + record.childRecords[i].uniqueID, tObj);
|
|
8448
|
+
}
|
|
8449
|
+
else {
|
|
8450
|
+
currentRecord = record.childRecords[i];
|
|
8451
|
+
}
|
|
8443
8452
|
count++;
|
|
8444
8453
|
tObj.flatData.splice(count, 0, currentRecord);
|
|
8445
8454
|
setValue('uniqueIDCollection.' + currentRecord.uniqueID, currentRecord, this.parent);
|
|
@@ -8461,7 +8470,12 @@ var RowDD$1 = /** @__PURE__ @class */ (function () {
|
|
|
8461
8470
|
}
|
|
8462
8471
|
length = record.childRecords.length;
|
|
8463
8472
|
for (var i = 0; i < length; i++) {
|
|
8464
|
-
|
|
8473
|
+
if (!this.isMultipleGrid) {
|
|
8474
|
+
currentRecord = getValue('uniqueIDCollection.' + record.childRecords[i].uniqueID, this.parent);
|
|
8475
|
+
}
|
|
8476
|
+
else {
|
|
8477
|
+
currentRecord = record.childRecords[i];
|
|
8478
|
+
}
|
|
8465
8479
|
var parentData = void 0;
|
|
8466
8480
|
if (record.parentItem) {
|
|
8467
8481
|
parentData = getParentData(this.parent, record.parentItem.uniqueID);
|
|
@@ -8759,7 +8773,11 @@ var TreeVirtualRowModelGenerator = /** @__PURE__ @class */ (function (_super) {
|
|
|
8759
8773
|
var info = this.getDataInfo();
|
|
8760
8774
|
if (!isNullOrUndefined(notifyArgs.virtualInfo)) {
|
|
8761
8775
|
if (notifyArgs.virtualInfo.direction !== 'right' && notifyArgs.virtualInfo.direction !== 'left') {
|
|
8762
|
-
|
|
8776
|
+
if (!((this.parent.dataSource instanceof DataManager && this.parent.dataSource.dataSource.url !== undefined
|
|
8777
|
+
&& !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent))
|
|
8778
|
+
|| notifyArgs.virtualInfo.blockIndexes.length === 1) {
|
|
8779
|
+
notifyArgs.virtualInfo.blockIndexes = info.blockIndexes;
|
|
8780
|
+
}
|
|
8763
8781
|
}
|
|
8764
8782
|
else {
|
|
8765
8783
|
notifyArgs.virtualInfo.blockIndexes = this.getBlockIndexes(notifyArgs.virtualInfo.page);
|
|
@@ -12255,7 +12273,7 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
|
12255
12273
|
this.parent[action]('data-ready', this.onDataReady, this);
|
|
12256
12274
|
this.parent[action]('refresh-virtual-block', this.refreshContentRows, this);
|
|
12257
12275
|
this.fn = function () {
|
|
12258
|
-
_this.observers.observes(function (scrollArgs) { return _this.scrollListeners(scrollArgs); }, _this.onEnteredAction());
|
|
12276
|
+
_this.observers.observes(function (scrollArgs) { return _this.scrollListeners(scrollArgs); }, _this.onEnteredAction(), _this.parent);
|
|
12259
12277
|
_this.parent.off('content-ready', _this.fn);
|
|
12260
12278
|
};
|
|
12261
12279
|
this.parent.addEventListener('dataBound', this.dataBoundEvent.bind(this));
|
|
@@ -12584,7 +12602,9 @@ var VirtualTreeContentRenderer = /** @__PURE__ @class */ (function (_super) {
|
|
|
12584
12602
|
}
|
|
12585
12603
|
}
|
|
12586
12604
|
if (((downScroll && (scrollArgs.offset.top < (this.parent.getRowHeight() * this.totalRecords)))
|
|
12587
|
-
|| (upScroll)) || (scrollArgs.direction === 'right' || scrollArgs.direction === 'left')
|
|
12605
|
+
|| (upScroll)) || (scrollArgs.direction === 'right' || scrollArgs.direction === 'left') ||
|
|
12606
|
+
((this.parent.dataSource instanceof DataManager && this.parent.dataSource.dataSource.url !== undefined
|
|
12607
|
+
&& !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent))) {
|
|
12588
12608
|
var viewInfo = this.currentInfo = getValue('getInfoFromView', this).apply(this, [scrollArgs.direction, info, scrollArgs.offset]);
|
|
12589
12609
|
this.previousInfo = viewInfo;
|
|
12590
12610
|
this.parent.setColumnIndexesInView(this.parent.enableColumnVirtualization ? viewInfo.columnIndexes : []);
|
|
@@ -12704,20 +12724,20 @@ var TreeInterSectionObserver = /** @__PURE__ @class */ (function (_super) {
|
|
|
12704
12724
|
_this.timer = 0;
|
|
12705
12725
|
return _this;
|
|
12706
12726
|
}
|
|
12707
|
-
TreeInterSectionObserver.prototype.observes = function (callback, onEnterCallback) {
|
|
12727
|
+
TreeInterSectionObserver.prototype.observes = function (callback, onEnterCallback, instance) {
|
|
12708
12728
|
var containerRect = 'containerRect';
|
|
12709
12729
|
_super.prototype[containerRect] = getValue('options', this).container.getBoundingClientRect();
|
|
12710
|
-
EventHandler.add(getValue('options', this).container, 'scroll', this.virtualScrollHandlers(callback, onEnterCallback), this);
|
|
12730
|
+
EventHandler.add(getValue('options', this).container, 'scroll', this.virtualScrollHandlers(callback, onEnterCallback, instance), this);
|
|
12711
12731
|
if (getValue('options', this).movableContainer) {
|
|
12712
12732
|
var movableContainerRect = 'movableContainerRect';
|
|
12713
12733
|
_super.prototype[movableContainerRect] = getValue('options', this).movableContainer.getBoundingClientRect();
|
|
12714
|
-
EventHandler.add(getValue('options', this).movableContainer, 'scroll', this.virtualScrollHandlers(callback, onEnterCallback), this);
|
|
12734
|
+
EventHandler.add(getValue('options', this).movableContainer, 'scroll', this.virtualScrollHandlers(callback, onEnterCallback, instance), this);
|
|
12715
12735
|
}
|
|
12716
12736
|
};
|
|
12717
12737
|
TreeInterSectionObserver.prototype.clear = function () {
|
|
12718
12738
|
this.lastPos = null;
|
|
12719
12739
|
};
|
|
12720
|
-
TreeInterSectionObserver.prototype.virtualScrollHandlers = function (callback, onEnterCallback) {
|
|
12740
|
+
TreeInterSectionObserver.prototype.virtualScrollHandlers = function (callback, onEnterCallback, instance) {
|
|
12721
12741
|
var _this = this;
|
|
12722
12742
|
var delay = Browser.info.name === 'chrome' ? 200 : 100;
|
|
12723
12743
|
var options = 'options';
|
|
@@ -12762,15 +12782,20 @@ var TreeInterSectionObserver = /** @__PURE__ @class */ (function (_super) {
|
|
|
12762
12782
|
}
|
|
12763
12783
|
}
|
|
12764
12784
|
if (check) {
|
|
12765
|
-
var fn =
|
|
12785
|
+
var fn = debounced50;
|
|
12766
12786
|
if (current.axis === 'X') {
|
|
12767
|
-
fn = debounced50;
|
|
12768
12787
|
fn({ direction: direction, sentinel: current, offset: { top: top, left: left },
|
|
12769
12788
|
focusElement: document.activeElement });
|
|
12770
12789
|
}
|
|
12771
12790
|
else {
|
|
12772
|
-
|
|
12773
|
-
|
|
12791
|
+
if ((instance.dataSource instanceof DataManager && instance.dataSource.dataSource.url !== undefined
|
|
12792
|
+
&& !instance.dataSource.dataSource.offline && instance.dataSource.dataSource.url !== '') || isCountRequired(instance)) {
|
|
12793
|
+
fn({ direction: direction, sentinel: current, offset: { top: top, left: left },
|
|
12794
|
+
focusElement: document.activeElement });
|
|
12795
|
+
}
|
|
12796
|
+
else
|
|
12797
|
+
callback({ direction: direction, sentinel: current, offset: { top: top, left: left },
|
|
12798
|
+
focusElement: document.activeElement });
|
|
12774
12799
|
}
|
|
12775
12800
|
}
|
|
12776
12801
|
_this[fromWheel] = false;
|