@syncfusion/ej2-treegrid 24.1.46 → 24.2.3

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,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 24.1.46
3
+ * version : 24.2.3
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-treegrid@*",
3
- "_id": "@syncfusion/ej2-treegrid@24.1.45",
3
+ "_id": "@syncfusion/ej2-treegrid@24.1.46",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-0tIPY3H4FGQyizCP+htZI1DgTi5ykzpJqYIunllcjvo3KJ9ycydX9Z/idgBuXAIj4DRinQDo8kgbKZg7nLdPsQ==",
5
+ "_integrity": "sha512-MfVt+j2ZJlx6BcaWi/B1w81IOgM2NTieqqO94VKf4N7BGx0iOeqjRXmpHb4X0P7ya065aKi0kI68WdcUfKz8wQ==",
6
6
  "_location": "/@syncfusion/ej2-treegrid",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -24,8 +24,8 @@
24
24
  "/@syncfusion/ej2-react-treegrid",
25
25
  "/@syncfusion/ej2-vue-treegrid"
26
26
  ],
27
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-24.1.45.tgz",
28
- "_shasum": "db202c6d6cabddf4069bcf2bdaaf2770806125cd",
27
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-24.1.46.tgz",
28
+ "_shasum": "6d296ebe1a30a5a427c46045e5633d245d1fd60a",
29
29
  "_spec": "@syncfusion/ej2-treegrid@*",
30
30
  "_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
31
31
  "author": {
@@ -36,10 +36,10 @@
36
36
  },
37
37
  "bundleDependencies": false,
38
38
  "dependencies": {
39
- "@syncfusion/ej2-base": "~24.1.46",
40
- "@syncfusion/ej2-data": "~24.1.41",
41
- "@syncfusion/ej2-grids": "~24.1.46",
42
- "@syncfusion/ej2-popups": "~24.1.46"
39
+ "@syncfusion/ej2-base": "~24.2.3",
40
+ "@syncfusion/ej2-data": "~24.2.3",
41
+ "@syncfusion/ej2-grids": "~24.2.3",
42
+ "@syncfusion/ej2-popups": "~24.2.3"
43
43
  },
44
44
  "deprecated": false,
45
45
  "description": "Essential JS 2 TreeGrid Component",
@@ -66,6 +66,6 @@
66
66
  "url": "git+https://github.com/syncfusion/ej2-treegrid.git"
67
67
  },
68
68
  "typings": "index.d.ts",
69
- "version": "24.1.46",
69
+ "version": "24.2.3",
70
70
  "sideEffects": false
71
71
  }
@@ -97,6 +97,7 @@ var ContextMenu = /** @class */ (function () {
97
97
  }
98
98
  }
99
99
  tObj.grid.contextMenuModule.contextMenu.hideItems(tObj.grid.contextMenuModule['hiddenItems']);
100
+ indent.style.display = outdent.style.display = 'none';
100
101
  }
101
102
  }
102
103
  };
@@ -45,7 +45,6 @@ export declare class InfiniteScroll {
45
45
  * @returns {void}
46
46
  */
47
47
  private contentready;
48
- private collapseExpandInfinitechilds;
49
48
  /**
50
49
  * Handles the page query for Data operations and CRUD actions.
51
50
  *
@@ -3,7 +3,7 @@ import { RowRenderer, resetRowIndex } from '@syncfusion/ej2-grids';
3
3
  import { getValue, isNullOrUndefined, remove } from '@syncfusion/ej2-base';
4
4
  import * as events from '../base/constant';
5
5
  import { DataManager, Predicate, Query } from '@syncfusion/ej2-data';
6
- import { findChildrenRecords, getExpandStatus } from '../utils';
6
+ import { findChildrenRecords } from '../utils';
7
7
  /**
8
8
  * TreeGrid Infinite Scroll module will handle Infinite Scrolling.
9
9
  *
@@ -40,7 +40,6 @@ var InfiniteScroll = /** @class */ (function () {
40
40
  this.parent.grid.on('infinite-edit-handler', this.infiniteEditHandler, this);
41
41
  this.parent.grid.on('infinite-crud-cancel', this.createRows, this);
42
42
  this.parent.grid.on('content-ready', this.contentready, this);
43
- this.parent.on(events.localPagedExpandCollapse, this.collapseExpandInfinitechilds, this);
44
43
  };
45
44
  /**
46
45
  * @hidden
@@ -56,7 +55,6 @@ var InfiniteScroll = /** @class */ (function () {
56
55
  this.parent.off(events.pagingActions, this.infinitePageAction);
57
56
  this.parent.grid.off('infinite-crud-cancel', this.createRows);
58
57
  this.parent.grid.off('content-ready', this.contentready);
59
- this.parent.off(events.localPagedExpandCollapse, this.collapseExpandInfinitechilds);
60
58
  };
61
59
  /**
62
60
  * Handles the Expand Collapse action for Remote data with infinite scrolling.
@@ -106,18 +104,6 @@ var InfiniteScroll = /** @class */ (function () {
106
104
  }
107
105
  }
108
106
  };
109
- InfiniteScroll.prototype.collapseExpandInfinitechilds = function (row) {
110
- row.record.expanded = row.action === 'collapse' ? false : true;
111
- var ret = {
112
- result: this.parent.flatData,
113
- row: row.row,
114
- action: row.action,
115
- record: row.record,
116
- count: this.parent.flatData.length
117
- };
118
- var requestType = getValue('isCollapseAll', this.parent) ? 'collapseAll' : 'refresh';
119
- getValue('grid.renderModule', this.parent).dataManagerSuccess(ret, { requestType: requestType });
120
- };
121
107
  /**
122
108
  * Handles the page query for Data operations and CRUD actions.
123
109
  *
@@ -128,13 +114,9 @@ var InfiniteScroll = /** @class */ (function () {
128
114
  * @returns {void}
129
115
  */
130
116
  InfiniteScroll.prototype.infinitePageAction = function (pageingDetails) {
131
- var _this = this;
132
117
  var dm = new DataManager(pageingDetails.result);
133
118
  var expanded = new Predicate('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
134
- var infiniteParents = dm.executeLocal(new Query().where(expanded));
135
- var visualData = infiniteParents.filter(function (e) {
136
- return getExpandStatus(_this.parent, e, infiniteParents);
137
- });
119
+ var visualData = dm.executeLocal(new Query().where(expanded));
138
120
  var actionArgs = getValue('actionArgs', pageingDetails.actionArgs);
139
121
  var actions = getValue('actions', this.parent.grid.infiniteScrollModule);
140
122
  if (this.parent.grid.infiniteScrollModule['isInitialRender'] && !this.parent.initialRender) {
@@ -171,10 +153,6 @@ var InfiniteScroll = /** @class */ (function () {
171
153
  query = query.take(this.parent.infiniteScrollSettings.initialBlocks * this.parent.pageSettings.pageSize);
172
154
  }
173
155
  else {
174
- if ((pageingDetails.actionArgs['action'] === 'expand' || pageingDetails.actionArgs['action'] === 'collapse') && this.parent.grid.pageSettings.currentPage !== 1) {
175
- current = 1;
176
- size = this.parent.grid.pageSettings.pageSize * this.parent.grid.pageSettings.currentPage;
177
- }
178
156
  query = query.page(current, size);
179
157
  }
180
158
  }
@@ -3182,7 +3182,7 @@ var TreeGrid = /** @class */ (function (_super) {
3182
3182
  if (!isNullOrUndefined(row)) {
3183
3183
  row.setAttribute('aria-expanded', action === 'expand' ? 'true' : 'false');
3184
3184
  }
3185
- if (((this.allowPaging && this.pageSettings.pageSizeMode === 'All') || this.enableVirtualization || this.enableInfiniteScrolling) && !isRemoteData(this)
3185
+ if (((this.allowPaging && this.pageSettings.pageSizeMode === 'All') || this.enableVirtualization) && !isRemoteData(this)
3186
3186
  && !isCountRequired(this)) {
3187
3187
  this.notify(events.localPagedExpandCollapse, { action: action, row: row, record: record });
3188
3188
  }