@syncfusion/ej2-treegrid 28.1.36 → 28.1.37

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.
@@ -1,3 +1,12 @@
1
+ /*!
2
+ * filename: index.d.ts
3
+ * version : 28.1.37
4
+ * Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
5
+ * Use of this code is subject to the terms of our license.
6
+ * A copy of the current license can be obtained at any time by e-mailing
7
+ * licensing@syncfusion.com. Any infringement will be prosecuted under
8
+ * applicable laws.
9
+ */
1
10
  import * as _treegrid from '@syncfusion/ej2-treegrid';
2
11
 
3
12
  export declare namespace ej {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "_from": "@syncfusion/ej2-treegrid@*",
3
3
  "_id": "@syncfusion/ej2-treegrid@28.1.35",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-BLl7cK2TBNXXyvx3yir9noNUxx5WFfv8ITEQcsZSlWCNCqEJOGw3ln8fBObRDdi1puWjhpPQFJvGjQ7F/dN/0A==",
5
+ "_integrity": "sha512-Q5c06EcQrvl+LNF3gMT44GSZ6AVf7FCJmkb48NVrSis0QAVzl9tukvge9li+rTPAr3jw6tARAylImqm8R61XMQ==",
6
6
  "_location": "/@syncfusion/ej2-treegrid",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -24,7 +24,7 @@
24
24
  "/@syncfusion/ej2-vue-treegrid"
25
25
  ],
26
26
  "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-28.1.35.tgz",
27
- "_shasum": "4b3f4413ac07e18a6c6bc65439522e693a99c386",
27
+ "_shasum": "a7c0525faceee9d3be1788eb4bdd9b1802e61668",
28
28
  "_spec": "@syncfusion/ej2-treegrid@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
30
30
  "author": {
@@ -37,7 +37,7 @@
37
37
  "dependencies": {
38
38
  "@syncfusion/ej2-base": "~28.1.33",
39
39
  "@syncfusion/ej2-data": "~28.1.33",
40
- "@syncfusion/ej2-grids": "~28.1.36",
40
+ "@syncfusion/ej2-grids": "~28.1.37",
41
41
  "@syncfusion/ej2-popups": "~28.1.33"
42
42
  },
43
43
  "deprecated": false,
@@ -75,6 +75,6 @@
75
75
  "url": "git+https://github.com/syncfusion/ej2-treegrid.git"
76
76
  },
77
77
  "typings": "index.d.ts",
78
- "version": "28.1.36",
78
+ "version": "28.1.37",
79
79
  "sideEffects": false
80
80
  }
@@ -15,7 +15,7 @@ import { VirtualRowModelGenerator } from '@syncfusion/ej2-grids';
15
15
  import * as events from '../base/constant';
16
16
  import { isNullOrUndefined } from '@syncfusion/ej2-base';
17
17
  import { DataManager } from '@syncfusion/ej2-data';
18
- import { isCountRequired } from '../utils';
18
+ import { isCountRequired, isRemoteData } from '../utils';
19
19
  /**
20
20
  * RowModelGenerator is used to generate grid data rows.
21
21
  *
@@ -50,8 +50,7 @@ var TreeVirtualRowModelGenerator = /** @class */ (function (_super) {
50
50
  if (!isNullOrUndefined(notifyArgs.virtualInfo)) {
51
51
  if (notifyArgs.virtualInfo.direction !== 'right' && notifyArgs.virtualInfo.direction !== 'left') {
52
52
  if (!((this.parent.dataSource instanceof DataManager && this.parent.dataSource.dataSource.url !== undefined
53
- && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent))
54
- || notifyArgs.virtualInfo.blockIndexes.length === 1) {
53
+ && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent) || isRemoteData(this.parent))) {
55
54
  notifyArgs.virtualInfo.blockIndexes = info.blockIndexes;
56
55
  }
57
56
  }
@@ -60,7 +59,7 @@ var TreeVirtualRowModelGenerator = /** @class */ (function (_super) {
60
59
  }
61
60
  }
62
61
  if ((this.parent.dataSource instanceof DataManager && this.parent.dataSource.dataSource.url !== undefined
63
- && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent)) {
62
+ && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent) || isRemoteData(this.parent)) {
64
63
  return _super.prototype.generateRows.call(this, data, notifyArgs);
65
64
  }
66
65
  else {
@@ -81,7 +80,7 @@ var TreeVirtualRowModelGenerator = /** @class */ (function (_super) {
81
80
  var clear = ['paging', 'refresh', 'sorting', 'filtering', 'searching', 'reorder',
82
81
  'save', 'delete'].some(function (value) { return action === value; });
83
82
  if ((this.parent.dataSource instanceof DataManager && this.parent.dataSource.dataSource.url !== undefined
84
- && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent)) {
83
+ && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent) || isRemoteData(this.parent)) {
85
84
  var model = 'model';
86
85
  var currentPage = this["" + model].currentPage;
87
86
  if (clear) {
@@ -19,7 +19,7 @@ import { TreeVirtualRowModelGenerator } from '../renderer/virtual-row-model-gene
19
19
  import * as events from '../base/constant';
20
20
  import { isNullOrUndefined, EventHandler, getValue, setValue, Browser, debounce } from '@syncfusion/ej2-base';
21
21
  import { DataManager } from '@syncfusion/ej2-data';
22
- import { isCountRequired } from '../utils';
22
+ import { isCountRequired, isRemoteData } from '../utils';
23
23
  var VirtualTreeContentRenderer = /** @class */ (function (_super) {
24
24
  __extends(VirtualTreeContentRenderer, _super);
25
25
  function VirtualTreeContentRenderer(parent, locator) {
@@ -523,12 +523,27 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
523
523
  }
524
524
  }
525
525
  }
526
- if (((downScroll && (scrollArgs.offset.top < (rowHeight * this.totalRecords)))
526
+ if (isRemoteData(this.parent) || ((downScroll && (scrollArgs.offset.top < (rowHeight * this.totalRecords)))
527
527
  || (upScroll)) || (scrollArgs.direction === 'right' || scrollArgs.direction === 'left') ||
528
528
  ((this.parent.dataSource instanceof DataManager && this.parent.dataSource.dataSource.url !== undefined
529
529
  && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') && (downScroll || upScroll) || isCountRequired(this.parent))) {
530
530
  var viewInfo = this.currentInfo = getValue('getInfoFromView', this).apply(this, [scrollArgs.direction, info, scrollArgs.offset]);
531
531
  this.previousInfo = viewInfo;
532
+ if (this.prevInfo && ((info.axis === 'Y' && this.prevInfo.blockIndexes.toString() === viewInfo.blockIndexes.toString())
533
+ || ((info.axis === 'X' && this.prevInfo.columnIndexes.toString() === viewInfo.columnIndexes.toString())
534
+ || (this.parent.isFrozenGrid() && this.parent.getVisibleFrozenLeftCount() >= viewInfo.columnIndexes[0]
535
+ && this.prevInfo.columnIndexes.toString().includes(viewInfo.columnIndexes.toString()))))) {
536
+ this.parent.removeMaskRow();
537
+ this.parent.notify('removeGanttShimmer', { requestType: 'hideShimmer' });
538
+ if (Browser.isIE) {
539
+ this.parent.hideSpinner();
540
+ }
541
+ this.requestType = this.requestType === 'virtualscroll' ? this['empty'] : this.requestType;
542
+ if (info.axis === 'Y') {
543
+ this['restoreEdit']();
544
+ }
545
+ return;
546
+ }
532
547
  this.parent.setColumnIndexesInView(this.parent.enableColumnVirtualization ? viewInfo.columnIndexes : []);
533
548
  var page = viewInfo.loadNext && !viewInfo.loadSelf ? viewInfo.nextInfo.page : viewInfo.page;
534
549
  this.parent.setProperties({ pageSettings: { currentPage: page } }, true);
@@ -555,7 +570,7 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
555
570
  };
556
571
  VirtualTreeContentRenderer.prototype.appendContent = function (target, newChild, e) {
557
572
  if ((this.parent.dataSource instanceof DataManager && this.parent.dataSource.dataSource.url !== undefined
558
- && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent)) {
573
+ && !this.parent.dataSource.dataSource.offline && this.parent.dataSource.dataSource.url !== '') || isCountRequired(this.parent) || isRemoteData(this.parent)) {
559
574
  if (getValue('isExpandCollapse', e)) {
560
575
  this.isRemoteExpand = true;
561
576
  }
@@ -5,7 +5,7 @@ import { ITreeData } from './base/interface';
5
5
  * @param {TreeGrid} parent - Tree Grid instance
6
6
  * @returns {boolean} - Specifies whether remote data binding
7
7
  */
8
- export declare function isRemoteData(parent: TreeGrid): boolean;
8
+ export declare function isRemoteData(parent: TreeGrid | IGrid): boolean;
9
9
  /**
10
10
  * @param {TreeGrid | IGrid} parent - Tree Grid or Grid instance
11
11
  * @returns {boolean} - Returns whether custom binding