@syncfusion/ej2-treegrid 32.2.4 → 32.2.9-1987473

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.
Files changed (209) hide show
  1. package/.eslintrc.json +243 -262
  2. package/README.md +92 -92
  3. package/dist/ej2-treegrid.umd.min.js +1 -10
  4. package/dist/ej2-treegrid.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-treegrid.es2015.js +164 -108
  6. package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
  7. package/dist/es6/ej2-treegrid.es5.js +462 -404
  8. package/dist/es6/ej2-treegrid.es5.js.map +1 -1
  9. package/license +9 -9
  10. package/package.json +44 -44
  11. package/src/treegrid/actions/clipboard.js +13 -13
  12. package/src/treegrid/actions/excel-export.js +35 -5
  13. package/src/treegrid/actions/logger.js +13 -13
  14. package/src/treegrid/actions/pdf-export.d.ts +1 -0
  15. package/src/treegrid/actions/pdf-export.js +32 -1
  16. package/src/treegrid/actions/sort.d.ts +1 -0
  17. package/src/treegrid/actions/sort.js +6 -0
  18. package/src/treegrid/actions/virtual-scroll.js +18 -14
  19. package/src/treegrid/base/treegrid-model.d.ts +950 -950
  20. package/src/treegrid/base/treegrid.d.ts +18 -18
  21. package/src/treegrid/base/treegrid.js +31 -47
  22. package/src/treegrid/models/column-chooser-settings-model.d.ts +41 -41
  23. package/src/treegrid/models/column-chooser-settings.js +19 -19
  24. package/src/treegrid/models/column-model.d.ts +6 -6
  25. package/src/treegrid/models/column.js +19 -19
  26. package/src/treegrid/models/edit-settings-model.d.ts +71 -71
  27. package/src/treegrid/models/edit-settings.js +19 -19
  28. package/src/treegrid/models/filter-settings-model.d.ts +198 -198
  29. package/src/treegrid/models/filter-settings.js +19 -19
  30. package/src/treegrid/models/infinite-scroll-settings-model.d.ts +16 -16
  31. package/src/treegrid/models/infinite-scroll-settings.js +19 -19
  32. package/src/treegrid/models/loading-indicator.js +19 -19
  33. package/src/treegrid/models/page-settings-model.d.ts +43 -43
  34. package/src/treegrid/models/page-settings.js +19 -19
  35. package/src/treegrid/models/rowdrop-settings-model.d.ts +6 -6
  36. package/src/treegrid/models/rowdrop-settings.js +19 -19
  37. package/src/treegrid/models/search-settings-model.d.ts +62 -62
  38. package/src/treegrid/models/search-settings.js +19 -19
  39. package/src/treegrid/models/selection-settings-model.d.ts +55 -55
  40. package/src/treegrid/models/selection-settings.js +19 -19
  41. package/src/treegrid/models/sort-settings-model.d.ts +27 -27
  42. package/src/treegrid/models/sort-settings.js +19 -19
  43. package/src/treegrid/models/summary-model.d.ts +63 -63
  44. package/src/treegrid/models/summary.js +19 -19
  45. package/src/treegrid/models/textwrap-settings-model.d.ts +12 -12
  46. package/src/treegrid/models/textwrap-settings.js +19 -19
  47. package/src/treegrid/renderer/virtual-row-model-generator.js +13 -13
  48. package/src/treegrid/renderer/virtual-tree-content-render.js +16 -13
  49. package/styles/treegrid/_all.bds.scss +2 -2
  50. package/styles/treegrid/_all.bootstrap-dark.scss +2 -2
  51. package/styles/treegrid/_all.bootstrap.scss +2 -2
  52. package/styles/treegrid/_all.bootstrap4.scss +2 -2
  53. package/styles/treegrid/_all.bootstrap5-dark.scss +2 -2
  54. package/styles/treegrid/_all.bootstrap5.3.scss +2 -2
  55. package/styles/treegrid/_all.bootstrap5.scss +2 -2
  56. package/styles/treegrid/_all.fabric-dark.scss +2 -2
  57. package/styles/treegrid/_all.fabric.scss +2 -2
  58. package/styles/treegrid/_all.fluent-dark.scss +2 -2
  59. package/styles/treegrid/_all.fluent.scss +2 -2
  60. package/styles/treegrid/_all.fluent2.scss +2 -2
  61. package/styles/treegrid/_all.highcontrast-light.scss +2 -2
  62. package/styles/treegrid/_all.highcontrast.scss +2 -2
  63. package/styles/treegrid/_all.material-dark.scss +2 -2
  64. package/styles/treegrid/_all.material.scss +2 -2
  65. package/styles/treegrid/_all.material3-dark.scss +2 -2
  66. package/styles/treegrid/_all.material3.scss +2 -2
  67. package/styles/treegrid/_all.scss +2 -2
  68. package/styles/treegrid/_all.tailwind-dark.scss +2 -2
  69. package/styles/treegrid/_all.tailwind.scss +2 -2
  70. package/styles/treegrid/_all.tailwind3.scss +2 -2
  71. package/styles/treegrid/_bds-definition.scss +26 -26
  72. package/styles/treegrid/_bigger.bds.scss +3 -3
  73. package/styles/treegrid/_bigger.bootstrap-dark.scss +3 -3
  74. package/styles/treegrid/_bigger.bootstrap.scss +3 -3
  75. package/styles/treegrid/_bigger.bootstrap4.scss +3 -3
  76. package/styles/treegrid/_bigger.bootstrap5-dark.scss +3 -3
  77. package/styles/treegrid/_bigger.bootstrap5.3.scss +3 -3
  78. package/styles/treegrid/_bigger.bootstrap5.scss +3 -3
  79. package/styles/treegrid/_bigger.fabric-dark.scss +3 -3
  80. package/styles/treegrid/_bigger.fabric.scss +3 -3
  81. package/styles/treegrid/_bigger.fluent-dark.scss +3 -3
  82. package/styles/treegrid/_bigger.fluent.scss +3 -3
  83. package/styles/treegrid/_bigger.fluent2.scss +3 -3
  84. package/styles/treegrid/_bigger.highcontrast-light.scss +3 -3
  85. package/styles/treegrid/_bigger.highcontrast.scss +3 -3
  86. package/styles/treegrid/_bigger.material-dark.scss +3 -3
  87. package/styles/treegrid/_bigger.material.scss +3 -3
  88. package/styles/treegrid/_bigger.material3-dark.scss +3 -3
  89. package/styles/treegrid/_bigger.material3.scss +3 -3
  90. package/styles/treegrid/_bigger.scss +67 -67
  91. package/styles/treegrid/_bigger.tailwind-dark.scss +3 -3
  92. package/styles/treegrid/_bigger.tailwind.scss +3 -3
  93. package/styles/treegrid/_bigger.tailwind3.scss +3 -3
  94. package/styles/treegrid/_bootstrap-dark-definition.scss +31 -31
  95. package/styles/treegrid/_bootstrap-definition.scss +31 -31
  96. package/styles/treegrid/_bootstrap4-definition.scss +31 -31
  97. package/styles/treegrid/_bootstrap5-dark-definition.scss +26 -26
  98. package/styles/treegrid/_bootstrap5-definition.scss +26 -26
  99. package/styles/treegrid/_bootstrap5.3-definition.scss +26 -26
  100. package/styles/treegrid/_fabric-dark-definition.scss +31 -31
  101. package/styles/treegrid/_fabric-definition.scss +31 -31
  102. package/styles/treegrid/_fluent-dark-definition.scss +27 -27
  103. package/styles/treegrid/_fluent-definition.scss +27 -27
  104. package/styles/treegrid/_fluent2-definition.scss +26 -26
  105. package/styles/treegrid/_fusionnew-definition.scss +24 -24
  106. package/styles/treegrid/_highcontrast-definition.scss +31 -31
  107. package/styles/treegrid/_highcontrast-light-definition.scss +31 -31
  108. package/styles/treegrid/_icons.scss +47 -47
  109. package/styles/treegrid/_layout.bds.scss +4 -4
  110. package/styles/treegrid/_layout.bootstrap-dark.scss +4 -4
  111. package/styles/treegrid/_layout.bootstrap.scss +4 -4
  112. package/styles/treegrid/_layout.bootstrap4.scss +4 -4
  113. package/styles/treegrid/_layout.bootstrap5-dark.scss +4 -4
  114. package/styles/treegrid/_layout.bootstrap5.3.scss +4 -4
  115. package/styles/treegrid/_layout.bootstrap5.scss +4 -4
  116. package/styles/treegrid/_layout.fabric-dark.scss +4 -4
  117. package/styles/treegrid/_layout.fabric.scss +4 -4
  118. package/styles/treegrid/_layout.fluent-dark.scss +4 -4
  119. package/styles/treegrid/_layout.fluent.scss +4 -4
  120. package/styles/treegrid/_layout.fluent2.scss +4 -4
  121. package/styles/treegrid/_layout.highcontrast-light.scss +4 -4
  122. package/styles/treegrid/_layout.highcontrast.scss +4 -4
  123. package/styles/treegrid/_layout.material-dark.scss +4 -4
  124. package/styles/treegrid/_layout.material.scss +4 -4
  125. package/styles/treegrid/_layout.material3-dark.scss +4 -4
  126. package/styles/treegrid/_layout.material3.scss +4 -4
  127. package/styles/treegrid/_layout.scss +531 -531
  128. package/styles/treegrid/_layout.tailwind-dark.scss +4 -4
  129. package/styles/treegrid/_layout.tailwind.scss +4 -4
  130. package/styles/treegrid/_layout.tailwind3.scss +4 -4
  131. package/styles/treegrid/_material-dark-definition.scss +31 -31
  132. package/styles/treegrid/_material-definition.scss +31 -31
  133. package/styles/treegrid/_material3-dark-definition.scss +26 -26
  134. package/styles/treegrid/_material3-definition.scss +26 -26
  135. package/styles/treegrid/_tailwind-dark-definition.scss +26 -26
  136. package/styles/treegrid/_tailwind-definition.scss +26 -26
  137. package/styles/treegrid/_tailwind3-definition.scss +26 -26
  138. package/styles/treegrid/_theme-variables.bds.scss +1 -1
  139. package/styles/treegrid/_theme-variables.bootstrap-dark.scss +1 -1
  140. package/styles/treegrid/_theme-variables.bootstrap.scss +1 -1
  141. package/styles/treegrid/_theme-variables.bootstrap4.scss +1 -1
  142. package/styles/treegrid/_theme-variables.bootstrap5-dark.scss +1 -1
  143. package/styles/treegrid/_theme-variables.bootstrap5.3.scss +1 -1
  144. package/styles/treegrid/_theme-variables.bootstrap5.scss +1 -1
  145. package/styles/treegrid/_theme-variables.fabric-dark.scss +1 -1
  146. package/styles/treegrid/_theme-variables.fabric.scss +1 -1
  147. package/styles/treegrid/_theme-variables.fluent-dark.scss +1 -1
  148. package/styles/treegrid/_theme-variables.fluent.scss +1 -1
  149. package/styles/treegrid/_theme-variables.fluent2.scss +1 -1
  150. package/styles/treegrid/_theme-variables.highcontrast-light.scss +1 -1
  151. package/styles/treegrid/_theme-variables.highcontrast.scss +1 -1
  152. package/styles/treegrid/_theme-variables.material-dark.scss +1 -1
  153. package/styles/treegrid/_theme-variables.material.scss +1 -1
  154. package/styles/treegrid/_theme-variables.material3-dark.scss +1 -1
  155. package/styles/treegrid/_theme-variables.material3.scss +1 -1
  156. package/styles/treegrid/_theme-variables.tailwind-dark.scss +1 -1
  157. package/styles/treegrid/_theme-variables.tailwind.scss +1 -1
  158. package/styles/treegrid/_theme-variables.tailwind3.scss +1 -1
  159. package/styles/treegrid/_theme.bds.scss +1 -1
  160. package/styles/treegrid/_theme.bootstrap-dark.scss +1 -1
  161. package/styles/treegrid/_theme.bootstrap.scss +1 -1
  162. package/styles/treegrid/_theme.bootstrap4.scss +1 -1
  163. package/styles/treegrid/_theme.bootstrap5-dark.scss +1 -1
  164. package/styles/treegrid/_theme.bootstrap5.3.scss +1 -1
  165. package/styles/treegrid/_theme.bootstrap5.scss +1 -1
  166. package/styles/treegrid/_theme.fabric-dark.scss +1 -1
  167. package/styles/treegrid/_theme.fabric.scss +1 -1
  168. package/styles/treegrid/_theme.fluent-dark.scss +1 -1
  169. package/styles/treegrid/_theme.fluent.scss +1 -1
  170. package/styles/treegrid/_theme.fluent2.scss +1 -1
  171. package/styles/treegrid/_theme.highcontrast-light.scss +1 -1
  172. package/styles/treegrid/_theme.highcontrast.scss +1 -1
  173. package/styles/treegrid/_theme.material-dark.scss +1 -1
  174. package/styles/treegrid/_theme.material.scss +1 -1
  175. package/styles/treegrid/_theme.material3-dark.scss +1 -1
  176. package/styles/treegrid/_theme.material3.scss +1 -1
  177. package/styles/treegrid/_theme.scss +1 -1
  178. package/styles/treegrid/_theme.tailwind-dark.scss +1 -1
  179. package/styles/treegrid/_theme.tailwind.scss +1 -1
  180. package/styles/treegrid/_theme.tailwind3.scss +1 -1
  181. package/styles/treegrid/icons/_bds.scss +38 -38
  182. package/styles/treegrid/icons/_bootstrap-dark.scss +48 -48
  183. package/styles/treegrid/icons/_bootstrap.scss +48 -48
  184. package/styles/treegrid/icons/_bootstrap4.scss +48 -48
  185. package/styles/treegrid/icons/_bootstrap5.3.scss +48 -48
  186. package/styles/treegrid/icons/_bootstrap5.scss +48 -48
  187. package/styles/treegrid/icons/_fabric-dark.scss +48 -48
  188. package/styles/treegrid/icons/_fabric.scss +48 -48
  189. package/styles/treegrid/icons/_fluent.scss +48 -48
  190. package/styles/treegrid/icons/_fluent2.scss +48 -48
  191. package/styles/treegrid/icons/_fusionnew.scss +31 -31
  192. package/styles/treegrid/icons/_highcontrast-light.scss +48 -48
  193. package/styles/treegrid/icons/_highcontrast.scss +48 -48
  194. package/styles/treegrid/icons/_material-dark.scss +48 -48
  195. package/styles/treegrid/icons/_material.scss +48 -48
  196. package/styles/treegrid/icons/_material3.scss +48 -48
  197. package/styles/treegrid/icons/_tailwind-dark.scss +48 -48
  198. package/styles/treegrid/icons/_tailwind.scss +48 -48
  199. package/styles/treegrid/icons/_tailwind3.scss +48 -48
  200. package/aceconfig.js +0 -17
  201. package/dist/ej2-treegrid.min.js +0 -10
  202. package/dist/global/ej2-treegrid.min.js +0 -11
  203. package/dist/global/ej2-treegrid.min.js.map +0 -1
  204. package/dist/global/index.d.ts +0 -14
  205. package/helpers/e2e/index.d.ts +0 -1
  206. package/helpers/e2e/index.js +0 -8
  207. package/helpers/e2e/treegridhelper.d.ts +0 -21
  208. package/helpers/e2e/treegridhelper.js +0 -83
  209. package/tslint.json +0 -111
package/license CHANGED
@@ -1,10 +1,10 @@
1
- Essential JS 2 library is available under the Syncfusion Essential Studio program, and can be licensed either under the Syncfusion Community License Program or the Syncfusion commercial license.
2
-
3
- To be qualified for the Syncfusion Community License Program you must have a gross revenue of less than one (1) million U.S. dollars ($1,000,000.00 USD) per year and have less than five (5) developers in your organization, and agree to be bound by Syncfusion’s terms and conditions.
4
-
5
- Customers who do not qualify for the community license can contact sales@syncfusion.com for commercial licensing options.
6
-
7
- Under no circumstances can you use this product without (1) either a Community License or a commercial license and (2) without agreeing and abiding by Syncfusion’s license containing all terms and conditions.
8
-
9
- The Syncfusion license that contains the terms and conditions can be found at
1
+ Essential JS 2 library is available under the Syncfusion Essential Studio program, and can be licensed either under the Syncfusion Community License Program or the Syncfusion commercial license.
2
+
3
+ To be qualified for the Syncfusion Community License Program you must have a gross revenue of less than one (1) million U.S. dollars ($1,000,000.00 USD) per year and have less than five (5) developers in your organization, and agree to be bound by Syncfusion’s terms and conditions.
4
+
5
+ Customers who do not qualify for the community license can contact sales@syncfusion.com for commercial licensing options.
6
+
7
+ Under no circumstances can you use this product without (1) either a Community License or a commercial license and (2) without agreeing and abiding by Syncfusion’s license containing all terms and conditions.
8
+
9
+ The Syncfusion license that contains the terms and conditions can be found at
10
10
  https://www.syncfusion.com/content/downloads/syncfusion_license.pdf
package/package.json CHANGED
@@ -1,45 +1,45 @@
1
- {
2
- "name": "@syncfusion/ej2-treegrid",
3
- "version": "32.2.4",
4
- "description": "Essential JS 2 TreeGrid Component",
5
- "author": "Syncfusion Inc.",
6
- "license": "SEE LICENSE IN license",
7
- "main": "./dist/ej2-treegrid.umd.min.js",
8
- "module": "./index.js",
9
- "es2015": "./dist/es6/ej2-treegrid.es5.js",
10
- "dependencies": {
11
- "@syncfusion/ej2-base": "~32.2.3",
12
- "@syncfusion/ej2-data": "~32.2.3",
13
- "@syncfusion/ej2-grids": "~32.2.3",
14
- "@syncfusion/ej2-popups": "~32.2.4"
15
- },
16
- "devDependencies": {},
17
- "keywords": [
18
- "ej2",
19
- "syncfusion",
20
- "JavaScript",
21
- "TypeScript",
22
- "treelist",
23
- "tree-table",
24
- "tree-data",
25
- "treegrid",
26
- "table",
27
- "tree-grid-component",
28
- "tree-table-control",
29
- "hierarchy-table",
30
- "nested-grid",
31
- "treeview-grid",
32
- "hierarchical-grid",
33
- "nested-table",
34
- "parent-child-table",
35
- "collapsible-table",
36
- "multi-level-table"
37
- ],
38
- "repository": {
39
- "type": "git",
40
- "url": "https://github.com/syncfusion/ej2-treegrid.git"
41
- },
42
- "typings": "index.d.ts",
43
- "sideEffects": false,
44
- "homepage": "https://www.syncfusion.com/javascript-ui-controls"
1
+ {
2
+ "name": "@syncfusion/ej2-treegrid",
3
+ "version": "32.2.9-1987473",
4
+ "description": "Essential JS 2 TreeGrid Component",
5
+ "author": "Syncfusion Inc.",
6
+ "license": "SEE LICENSE IN license",
7
+ "main": "./dist/ej2-treegrid.umd.min.js",
8
+ "module": "./index.js",
9
+ "es2015": "./dist/es6/ej2-treegrid.es5.js",
10
+ "dependencies": {
11
+ "@syncfusion/ej2-base": "~32.2.9",
12
+ "@syncfusion/ej2-data": "~32.2.3",
13
+ "@syncfusion/ej2-grids": "~32.2.9",
14
+ "@syncfusion/ej2-popups": "~32.2.8"
15
+ },
16
+ "devDependencies": {},
17
+ "keywords": [
18
+ "ej2",
19
+ "syncfusion",
20
+ "JavaScript",
21
+ "TypeScript",
22
+ "treelist",
23
+ "tree-table",
24
+ "tree-data",
25
+ "treegrid",
26
+ "table",
27
+ "tree-grid-component",
28
+ "tree-table-control",
29
+ "hierarchy-table",
30
+ "nested-grid",
31
+ "treeview-grid",
32
+ "hierarchical-grid",
33
+ "nested-table",
34
+ "parent-child-table",
35
+ "collapsible-table",
36
+ "multi-level-table"
37
+ ],
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "https://github.com/syncfusion/ej2-treegrid.git"
41
+ },
42
+ "typings": "index.d.ts",
43
+ "sideEffects": false,
44
+ "homepage": "https://www.syncfusion.com/javascript-ui-controls"
45
45
  }
@@ -1,16 +1,16 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
14
  import * as events from '../base/constant';
15
15
  import { isNullOrUndefined, Browser } from '@syncfusion/ej2-base';
16
16
  import { Clipboard as GridClipboard } from '@syncfusion/ej2-grids';
@@ -95,11 +95,22 @@ var ExcelExport = /** @class */ (function () {
95
95
  var query = new Query();
96
96
  if (!_this.isLocal()) {
97
97
  query = _this.generateQuery(query);
98
- query.queries = _this.parent.grid.getDataModule().generateQuery().queries;
99
- query = ExportHelper.getQuery(_this.parent.grid, data);
100
- if (isNullOrUndefined(_this.parent.filterModule)) {
101
- query.queries = query.queries.slice(1, 2);
102
- query.params = query.params.slice(0, 0);
98
+ var hasFilter = _this.parent.grid.filterSettings &&
99
+ Array.isArray(_this.parent.grid.filterSettings.columns) &&
100
+ _this.parent.grid.filterSettings.columns.length > 0;
101
+ var hasSearch = _this.parent.grid.searchSettings &&
102
+ typeof _this.parent.grid.searchSettings.key === 'string' &&
103
+ _this.parent.grid.searchSettings.key.trim().length > 0;
104
+ var hasSorting = _this.parent.grid.sortSettings &&
105
+ Array.isArray(_this.parent.grid.sortSettings.columns) &&
106
+ _this.parent.grid.sortSettings.columns.length > 0;
107
+ if (hasFilter || hasSearch || hasSorting) {
108
+ query.queries = _this.parent.grid.getDataModule().generateQuery().queries;
109
+ query = ExportHelper.getQuery(_this.parent.grid, data);
110
+ if (isNullOrUndefined(_this.parent.filterModule)) {
111
+ query.queries = query.queries.slice(1, 2);
112
+ query.params = query.params.slice(0, 0);
113
+ }
103
114
  }
104
115
  setValue('query', query, property);
105
116
  }
@@ -136,11 +147,30 @@ var ExcelExport = /** @class */ (function () {
136
147
  return query;
137
148
  };
138
149
  ExcelExport.prototype.manipulateExportProperties = function (property, dtSrc, queryResult) {
150
+ var _this = this;
139
151
  //count not required for this query
140
152
  var args = Object();
141
153
  if (!isNullOrUndefined(this.parent.grid.getDataModule())) {
142
154
  setValue('query', this.parent.grid.getDataModule().generateQuery(true), args);
143
155
  }
156
+ if (!this.isLocal() && !isNullOrUndefined(property) &&
157
+ !isNullOrUndefined(property.isCollapsedStatePersist) &&
158
+ property.isCollapsedStatePersist === false) {
159
+ if (args.query && args.query.queries && args.query.queries.length) {
160
+ args.query.queries = args.query.queries.filter(function (q) {
161
+ if (q.fn === 'onWhere' && q.e) {
162
+ var preds = q.e;
163
+ if (preds && preds.field === _this.parent.parentIdMapping && (preds.value === null || preds.value === 'null')) {
164
+ return false;
165
+ }
166
+ }
167
+ return true;
168
+ });
169
+ }
170
+ if (args.query && args.query.params && args.query.params.length) {
171
+ args.query.params = args.query.params.filter(function (param) { return param.key !== 'IdMapping'; });
172
+ }
173
+ }
144
174
  setValue('isExport', true, args);
145
175
  if (!isNullOrUndefined(property) && !isNullOrUndefined(property.exportType)) {
146
176
  setValue('exportType', property.exportType, args);
@@ -1,16 +1,16 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
14
  import { isNullOrUndefined } from '@syncfusion/ej2-base';
15
15
  import { Logger as GridLogger, Grid, detailLists } from '@syncfusion/ej2-grids';
16
16
  /**
@@ -10,6 +10,7 @@ import { Query } from '@syncfusion/ej2-data';
10
10
  export declare class PdfExport {
11
11
  private parent;
12
12
  private dataResults;
13
+ private isCollapsedStatePersist;
13
14
  /**
14
15
  * Constructor for PDF export module
15
16
  *
@@ -15,6 +15,7 @@ var PdfExport = /** @class */ (function () {
15
15
  * @param {TreeGrid} parent - Tree Grid instance
16
16
  */
17
17
  function PdfExport(parent) {
18
+ this.isCollapsedStatePersist = false;
18
19
  Grid.Inject(GridPdf);
19
20
  this.parent = parent;
20
21
  this.dataResults = {};
@@ -68,6 +69,18 @@ var PdfExport = /** @class */ (function () {
68
69
  var prop = Object();
69
70
  var isLocal = !isRemoteData(this.parent) && isOffline(this.parent);
70
71
  setValue('cancel', false, prop);
72
+ if (!isNullOrUndefined(pdfExportProperties)) {
73
+ this.isCollapsedStatePersist = pdfExportProperties.isCollapsedStatePersist;
74
+ }
75
+ if (!isNullOrUndefined(pdfExportProperties)) {
76
+ if (!isLocal && !isNullOrUndefined(pdfExportProperties.dataSource) && !pdfExportProperties.dataSource['dataSource']) {
77
+ return this.parent.grid.pdfExportModule.Map(this.parent.grid, pdfExportProperties, isMultipleExport, pdfDoc, isBlob);
78
+ }
79
+ if (pdfExportProperties.exportType === 'CurrentPage') {
80
+ pdfExportProperties.dataSource = this.parent.getCurrentViewRecords();
81
+ return this.parent.grid.pdfExportModule.Map(this.parent.grid, pdfExportProperties, isMultipleExport, pdfDoc, isBlob);
82
+ }
83
+ }
71
84
  return new Promise(function (resolve) {
72
85
  var dm = isLocal && !(dtSrc instanceof DataManager) ? new DataManager(dtSrc)
73
86
  : _this.parent.dataSource;
@@ -109,10 +122,28 @@ var PdfExport = /** @class */ (function () {
109
122
  return query;
110
123
  };
111
124
  PdfExport.prototype.manipulatePdfProperties = function (prop, dtSrc, queryResult) {
112
- var args = {};
125
+ var _this = this;
126
+ var args = Object();
113
127
  //count not required for this query
114
128
  var isLocal = !isRemoteData(this.parent) && isOffline(this.parent);
115
129
  setValue('query', this.parent.grid.getDataModule().generateQuery(true), args);
130
+ if (!isLocal && !isNullOrUndefined(prop) && !isNullOrUndefined(prop.isCollapsedStatePersist)
131
+ && prop.isCollapsedStatePersist === false) {
132
+ if (args.query && args.query.queries && args.query.queries.length) {
133
+ args.query.queries = args.query.queries.filter(function (q) {
134
+ if (q.fn === 'onWhere' && q.e) {
135
+ var preds = q.e;
136
+ if (preds && preds.field === _this.parent.parentIdMapping && (preds.value === null || preds.value === 'null')) {
137
+ return false;
138
+ }
139
+ }
140
+ return true;
141
+ });
142
+ }
143
+ if (args.query && args.query.params && args.query.params.length) {
144
+ args.query.params = args.query.params.filter(function (param) { return param.key !== 'IdMapping'; });
145
+ }
146
+ }
116
147
  setValue('isExport', true, args);
117
148
  setValue('isPdfExport', true, args);
118
149
  if (!isNullOrUndefined(prop) && !isNullOrUndefined(prop.isCollapsedStatePersist)) {
@@ -6,6 +6,7 @@ import { SortDirection } from '@syncfusion/ej2-grids';
6
6
  * @hidden
7
7
  */
8
8
  export declare class Sort {
9
+ sortedResult: Object[];
9
10
  private flatSortedData;
10
11
  private taskIds;
11
12
  private storedIndex;
@@ -50,6 +50,12 @@ var Sort = /** @class */ (function () {
50
50
  this.iterateSort(data, srtQry);
51
51
  this.storedIndex = -1;
52
52
  sortParams.modifiedData = this.flatSortedData;
53
+ if (srtQry.queries.filter(function (q) { return q.fn === 'onSortBy'; }).length > 0) {
54
+ this.sortedResult = this.flatSortedData.filter(function (item) { return !item.isSummaryRow; });
55
+ }
56
+ else {
57
+ this.sortedResult = [];
58
+ }
53
59
  this.flatSortedData = [];
54
60
  };
55
61
  Sort.prototype.iterateSort = function (data, srtQry) {
@@ -1,16 +1,16 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
14
  import { Grid, VirtualScroll as GridVirtualScroll } from '@syncfusion/ej2-grids';
15
15
  import { RenderType } from '@syncfusion/ej2-grids';
16
16
  import { getValue, isNullOrUndefined } from '@syncfusion/ej2-base';
@@ -130,7 +130,11 @@ var VirtualScroll = /** @class */ (function () {
130
130
  var dm = new DataManager(pageingDetails.result);
131
131
  var expanded = new Predicate('expanded', 'notequal', null).or('expanded', 'notequal', undefined);
132
132
  var parents = dm.executeLocal(new Query().where(expanded));
133
- var isFiltering = pageingDetails.actionArgs.requestType === 'filtering';
133
+ var hasActiveFilter = (this.parent.grid.filterSettings && this.parent.grid.filterSettings.columns
134
+ && this.parent.grid.filterSettings.columns.length > 0) ||
135
+ (!isNullOrUndefined(this.parent.grid.searchSettings) && this.parent.grid.searchSettings.key !== '');
136
+ var isFiltering = pageingDetails.actionArgs.requestType === 'filtering' ||
137
+ (pageingDetails.actionArgs.requestType === 'virtualscroll' && hasActiveFilter);
134
138
  var isFlatHierarchy = this.parent.filterSettings.hierarchyMode === 'Child' ||
135
139
  this.parent.filterSettings.hierarchyMode === 'None';
136
140
  var visualData = isFiltering && isFlatHierarchy