@syncfusion/ej2-treegrid 25.2.6 → 26.1.35-760834

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 (231) hide show
  1. package/.eslintrc.json +243 -259
  2. package/README.md +83 -83
  3. package/dist/ej2-treegrid.min.js +1 -10
  4. package/dist/ej2-treegrid.umd.min.js +1 -10
  5. package/dist/ej2-treegrid.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-treegrid.es2015.js +842 -553
  7. package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
  8. package/dist/es6/ej2-treegrid.es5.js +1361 -1069
  9. package/dist/es6/ej2-treegrid.es5.js.map +1 -1
  10. package/dist/global/ej2-treegrid.min.js +1 -10
  11. package/dist/global/ej2-treegrid.min.js.map +1 -1
  12. package/dist/global/index.d.ts +0 -9
  13. package/dist/ts/undefined +73 -0
  14. package/license +9 -9
  15. package/package.json +70 -70
  16. package/src/treegrid/actions/clipboard.js +13 -13
  17. package/src/treegrid/actions/crud-actions.js +1 -1
  18. package/src/treegrid/actions/edit.js +11 -9
  19. package/src/treegrid/actions/excel-export.js +16 -4
  20. package/src/treegrid/actions/logger.js +13 -13
  21. package/src/treegrid/actions/page.js +4 -0
  22. package/src/treegrid/actions/rowdragdrop.js +27 -16
  23. package/src/treegrid/actions/selection.js +13 -1
  24. package/src/treegrid/actions/virtual-scroll.d.ts +2 -0
  25. package/src/treegrid/actions/virtual-scroll.js +26 -14
  26. package/src/treegrid/base/constant.d.ts +2 -0
  27. package/src/treegrid/base/constant.js +2 -0
  28. package/src/treegrid/base/data.js +22 -4
  29. package/src/treegrid/base/interface.js +0 -1
  30. package/src/treegrid/base/treegrid-model.d.ts +875 -875
  31. package/src/treegrid/base/treegrid.d.ts +45 -41
  32. package/src/treegrid/base/treegrid.js +338 -101
  33. package/src/treegrid/models/column-model.d.ts +6 -6
  34. package/src/treegrid/models/column.js +19 -19
  35. package/src/treegrid/models/edit-settings-model.d.ts +72 -72
  36. package/src/treegrid/models/edit-settings.js +19 -19
  37. package/src/treegrid/models/filter-settings-model.d.ts +206 -206
  38. package/src/treegrid/models/filter-settings.js +19 -19
  39. package/src/treegrid/models/infinite-scroll-settings-model.d.ts +16 -16
  40. package/src/treegrid/models/infinite-scroll-settings.js +19 -19
  41. package/src/treegrid/models/loading-indicator.js +19 -19
  42. package/src/treegrid/models/page-settings-model.d.ts +46 -46
  43. package/src/treegrid/models/page-settings.js +19 -19
  44. package/src/treegrid/models/rowdrop-settings-model.d.ts +6 -6
  45. package/src/treegrid/models/rowdrop-settings.js +19 -19
  46. package/src/treegrid/models/search-settings-model.d.ts +60 -60
  47. package/src/treegrid/models/search-settings.js +19 -19
  48. package/src/treegrid/models/selection-settings-model.d.ts +66 -66
  49. package/src/treegrid/models/selection-settings.js +19 -19
  50. package/src/treegrid/models/sort-settings-model.d.ts +24 -24
  51. package/src/treegrid/models/sort-settings.js +19 -19
  52. package/src/treegrid/models/summary-model.d.ts +64 -64
  53. package/src/treegrid/models/summary.js +19 -19
  54. package/src/treegrid/models/textwrap-settings-model.d.ts +9 -9
  55. package/src/treegrid/models/textwrap-settings.js +19 -19
  56. package/src/treegrid/renderer/virtual-row-model-generator.js +15 -15
  57. package/src/treegrid/renderer/virtual-tree-content-render.js +26 -20
  58. package/styles/bds-lite.css +745 -0
  59. package/styles/bds-lite.scss +18 -0
  60. package/styles/bds.css +765 -0
  61. package/styles/bds.scss +19 -0
  62. package/styles/bootstrap-dark-lite.css +506 -0
  63. package/styles/bootstrap-dark-lite.scss +18 -0
  64. package/styles/bootstrap-dark.css +187 -117
  65. package/styles/bootstrap-dark.scss +19 -1
  66. package/styles/bootstrap-lite.css +509 -0
  67. package/styles/bootstrap-lite.scss +18 -0
  68. package/styles/bootstrap.css +190 -121
  69. package/styles/bootstrap.scss +19 -1
  70. package/styles/bootstrap4-lite.css +550 -0
  71. package/styles/bootstrap4-lite.scss +18 -0
  72. package/styles/bootstrap4.css +194 -133
  73. package/styles/bootstrap4.scss +19 -1
  74. package/styles/bootstrap5-dark-lite.css +545 -0
  75. package/styles/bootstrap5-dark-lite.scss +18 -0
  76. package/styles/bootstrap5-dark.css +189 -123
  77. package/styles/bootstrap5-dark.scss +19 -1
  78. package/styles/bootstrap5-lite.css +545 -0
  79. package/styles/bootstrap5-lite.scss +18 -0
  80. package/styles/bootstrap5.3-lite.css +549 -0
  81. package/styles/bootstrap5.3-lite.scss +18 -0
  82. package/styles/bootstrap5.3.css +569 -0
  83. package/styles/bootstrap5.3.scss +19 -0
  84. package/styles/bootstrap5.css +188 -122
  85. package/styles/bootstrap5.scss +19 -1
  86. package/styles/fabric-dark-lite.css +485 -0
  87. package/styles/fabric-dark-lite.scss +18 -0
  88. package/styles/fabric-dark.css +188 -118
  89. package/styles/fabric-dark.scss +19 -1
  90. package/styles/fabric-lite.css +485 -0
  91. package/styles/fabric-lite.scss +18 -0
  92. package/styles/fabric.css +188 -111
  93. package/styles/fabric.scss +19 -1
  94. package/styles/fluent-dark-lite.css +548 -0
  95. package/styles/fluent-dark-lite.scss +18 -0
  96. package/styles/fluent-dark.css +195 -116
  97. package/styles/fluent-dark.scss +19 -1
  98. package/styles/fluent-lite.css +548 -0
  99. package/styles/fluent-lite.scss +18 -0
  100. package/styles/fluent.css +195 -116
  101. package/styles/fluent.scss +19 -1
  102. package/styles/fluent2-lite.css +735 -0
  103. package/styles/fluent2-lite.scss +18 -0
  104. package/styles/fluent2.css +758 -0
  105. package/styles/fluent2.scss +19 -0
  106. package/styles/highcontrast-light-lite.css +491 -0
  107. package/styles/highcontrast-light-lite.scss +18 -0
  108. package/styles/highcontrast-light.css +185 -103
  109. package/styles/highcontrast-light.scss +19 -1
  110. package/styles/highcontrast-lite.css +498 -0
  111. package/styles/highcontrast-lite.scss +18 -0
  112. package/styles/highcontrast.css +196 -107
  113. package/styles/highcontrast.scss +19 -1
  114. package/styles/material-dark-lite.css +567 -0
  115. package/styles/material-dark-lite.scss +18 -0
  116. package/styles/material-dark.css +220 -105
  117. package/styles/material-dark.scss +19 -1
  118. package/styles/material-lite.css +591 -0
  119. package/styles/material-lite.scss +18 -0
  120. package/styles/material.css +234 -129
  121. package/styles/material.scss +19 -1
  122. package/styles/material3-dark-lite.css +578 -0
  123. package/styles/material3-dark-lite.scss +18 -0
  124. package/styles/material3-dark.css +220 -185
  125. package/styles/material3-dark.scss +19 -1
  126. package/styles/material3-lite.css +580 -0
  127. package/styles/material3-lite.scss +18 -0
  128. package/styles/material3.css +221 -240
  129. package/styles/material3.scss +19 -1
  130. package/styles/tailwind-dark-lite.css +518 -0
  131. package/styles/tailwind-dark-lite.scss +18 -0
  132. package/styles/tailwind-dark.css +196 -103
  133. package/styles/tailwind-dark.scss +19 -1
  134. package/styles/tailwind-lite.css +518 -0
  135. package/styles/tailwind-lite.scss +18 -0
  136. package/styles/tailwind.css +196 -103
  137. package/styles/tailwind.scss +19 -1
  138. package/styles/tailwind3-lite.css +561 -0
  139. package/styles/tailwind3-lite.scss +18 -0
  140. package/styles/tailwind3.css +581 -0
  141. package/styles/tailwind3.scss +19 -0
  142. package/styles/treegrid/_all.scss +2 -2
  143. package/styles/treegrid/_bds-definition.scss +24 -28
  144. package/styles/treegrid/_bigger.scss +66 -0
  145. package/styles/treegrid/_bootstrap-dark-definition.scss +29 -30
  146. package/styles/treegrid/_bootstrap-definition.scss +29 -30
  147. package/styles/treegrid/_bootstrap4-definition.scss +29 -30
  148. package/styles/treegrid/_bootstrap5-definition.scss +24 -28
  149. package/styles/treegrid/_bootstrap5.3-definition.scss +24 -0
  150. package/styles/treegrid/_fabric-dark-definition.scss +29 -30
  151. package/styles/treegrid/_fabric-definition.scss +29 -30
  152. package/styles/treegrid/_fluent-definition.scss +25 -29
  153. package/styles/treegrid/_fluent2-definition.scss +24 -0
  154. package/styles/treegrid/_fusionnew-definition.scss +24 -28
  155. package/styles/treegrid/_highcontrast-definition.scss +29 -30
  156. package/styles/treegrid/_highcontrast-light-definition.scss +29 -30
  157. package/styles/treegrid/_icons.scss +47 -37
  158. package/styles/treegrid/_layout.scss +530 -455
  159. package/styles/treegrid/_material-dark-definition.scss +29 -30
  160. package/styles/treegrid/_material-definition.scss +29 -30
  161. package/styles/treegrid/_material3-definition.scss +24 -28
  162. package/styles/treegrid/_tailwind-definition.scss +24 -28
  163. package/styles/treegrid/_tailwind3-definition.scss +24 -0
  164. package/styles/treegrid/_theme.scss +1 -1
  165. package/styles/treegrid/bds.css +765 -0
  166. package/styles/treegrid/bds.scss +19 -0
  167. package/styles/treegrid/bootstrap-dark.css +187 -117
  168. package/styles/treegrid/bootstrap-dark.scss +1 -0
  169. package/styles/treegrid/bootstrap.css +190 -121
  170. package/styles/treegrid/bootstrap.scss +1 -0
  171. package/styles/treegrid/bootstrap4.css +194 -133
  172. package/styles/treegrid/bootstrap4.scss +1 -0
  173. package/styles/treegrid/bootstrap5-dark.css +189 -123
  174. package/styles/treegrid/bootstrap5-dark.scss +1 -0
  175. package/styles/treegrid/bootstrap5.3.css +569 -0
  176. package/styles/treegrid/bootstrap5.3.scss +19 -0
  177. package/styles/treegrid/bootstrap5.css +188 -122
  178. package/styles/treegrid/bootstrap5.scss +1 -0
  179. package/styles/treegrid/fabric-dark.css +188 -118
  180. package/styles/treegrid/fabric-dark.scss +1 -0
  181. package/styles/treegrid/fabric.css +188 -111
  182. package/styles/treegrid/fabric.scss +1 -0
  183. package/styles/treegrid/fluent-dark.css +195 -116
  184. package/styles/treegrid/fluent-dark.scss +1 -0
  185. package/styles/treegrid/fluent.css +195 -116
  186. package/styles/treegrid/fluent.scss +1 -0
  187. package/styles/treegrid/fluent2.css +758 -0
  188. package/styles/treegrid/fluent2.scss +19 -0
  189. package/styles/treegrid/highcontrast-light.css +185 -103
  190. package/styles/treegrid/highcontrast-light.scss +1 -0
  191. package/styles/treegrid/highcontrast.css +196 -107
  192. package/styles/treegrid/highcontrast.scss +1 -0
  193. package/styles/treegrid/icons/_bds.scss +37 -37
  194. package/styles/treegrid/icons/_bootstrap-dark.scss +47 -37
  195. package/styles/treegrid/icons/_bootstrap.scss +47 -37
  196. package/styles/treegrid/icons/_bootstrap4.scss +47 -37
  197. package/styles/treegrid/icons/_bootstrap5.3.scss +47 -0
  198. package/styles/treegrid/icons/_bootstrap5.scss +47 -37
  199. package/styles/treegrid/icons/_fabric-dark.scss +47 -37
  200. package/styles/treegrid/icons/_fabric.scss +47 -37
  201. package/styles/treegrid/icons/_fluent.scss +47 -37
  202. package/styles/treegrid/icons/_fluent2.scss +47 -0
  203. package/styles/treegrid/icons/_fusionnew.scss +30 -26
  204. package/styles/treegrid/icons/_highcontrast-light.scss +47 -37
  205. package/styles/treegrid/icons/_highcontrast.scss +47 -37
  206. package/styles/treegrid/icons/_material-dark.scss +47 -37
  207. package/styles/treegrid/icons/_material.scss +47 -37
  208. package/styles/treegrid/icons/_material3.scss +47 -37
  209. package/styles/treegrid/icons/_tailwind-dark.scss +47 -37
  210. package/styles/treegrid/icons/_tailwind.scss +47 -37
  211. package/styles/treegrid/icons/_tailwind3.scss +47 -0
  212. package/styles/treegrid/material-dark.css +220 -105
  213. package/styles/treegrid/material-dark.scss +1 -0
  214. package/styles/treegrid/material.css +234 -129
  215. package/styles/treegrid/material.scss +1 -0
  216. package/styles/treegrid/material3-dark.css +220 -185
  217. package/styles/treegrid/material3-dark.scss +2 -1
  218. package/styles/treegrid/material3.css +221 -240
  219. package/styles/treegrid/material3.scss +2 -1
  220. package/styles/treegrid/tailwind-dark.css +196 -103
  221. package/styles/treegrid/tailwind-dark.scss +1 -0
  222. package/styles/treegrid/tailwind.css +196 -103
  223. package/styles/treegrid/tailwind.scss +1 -0
  224. package/styles/treegrid/tailwind3.css +581 -0
  225. package/styles/treegrid/tailwind3.scss +19 -0
  226. package/CHANGELOG.md +0 -264
  227. package/helpers/e2e/index.d.ts +0 -1
  228. package/helpers/e2e/index.js +0 -8
  229. package/helpers/e2e/treegridhelper.d.ts +0 -21
  230. package/helpers/e2e/treegridhelper.js +0 -83
  231. package/tslint.json +0 -111
@@ -1,12 +1,3 @@
1
- /*!
2
- * filename: index.d.ts
3
- * version : 25.2.6
4
- * Copyright Syncfusion Inc. 2001 - 2023. 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
- */
10
1
  import * as _treegrid from '@syncfusion/ej2-treegrid';
11
2
 
12
3
  export declare namespace ej {
@@ -0,0 +1,73 @@
1
+ import { TreeGrid } from '../base';
2
+ /**
3
+ * `BatchEdit` module is used to handle batch editing actions.
4
+ *
5
+ * @hidden
6
+ */
7
+ export declare class BatchEdit {
8
+ private parent;
9
+ private isSelfReference;
10
+ private addRowRecord;
11
+ private batchChildCount;
12
+ private addedRecords;
13
+ private deletedRecords;
14
+ private matrix;
15
+ private batchRecords;
16
+ private currentViewRecords;
17
+ private batchAddedRecords;
18
+ private batchDeletedRecords;
19
+ private batchIndex;
20
+ private batchAddRowRecord;
21
+ private isAdd;
22
+ private newBatchRowAdded;
23
+ private selectedIndex;
24
+ private addRowIndex;
25
+ constructor(parent: TreeGrid);
26
+ addEventListener(): void;
27
+ /**
28
+ * @hidden
29
+ * @returns {void}
30
+ */
31
+ removeEventListener(): void;
32
+ /**
33
+ * To destroy the editModule
34
+ *
35
+ * @returns {void}
36
+ * @hidden
37
+ */
38
+ destroy(): void;
39
+ /**
40
+ * @hidden
41
+ * @returns {Object[]} Returns modified records in batch editing.
42
+ */
43
+ getBatchRecords(): Object[];
44
+ /**
45
+ * @hidden
46
+ * @returns {number} Returns index of newly add row
47
+ */
48
+ getAddRowIndex(): number;
49
+ /**
50
+ * @hidden
51
+ * @returns {number} Returns selected row index
52
+ */
53
+ getSelectedIndex(): number;
54
+ /**
55
+ * @hidden
56
+ * @returns {number} Returns newly added child count
57
+ */
58
+ getBatchChildCount(): number;
59
+ private batchPageAction;
60
+ private cellSaved;
61
+ private beforeBatchAdd;
62
+ private batchAdd;
63
+ private beforeBatchDelete;
64
+ private updateRowIndex;
65
+ private updateChildCount;
66
+ private beforeBatchSave;
67
+ private deleteUniqueID;
68
+ private batchCancelAction;
69
+ private batchSave;
70
+ private getActualRowObjectIndex;
71
+ private immutableBatchAction;
72
+ private nextCellIndex;
73
+ }
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,71 +1,71 @@
1
- {
2
- "_from": "@syncfusion/ej2-treegrid@*",
3
- "_id": "@syncfusion/ej2-treegrid@25.2.5",
4
- "_inBundle": false,
5
- "_integrity": "sha512-6olifiUnA9rLIHDZo/KIcz2PE+HHsvKvaUInwPW8IYID4KDpFYCLNW208AcwAmkLSvejdrD48dxie95yPL9R7A==",
6
- "_location": "/@syncfusion/ej2-treegrid",
7
- "_phantomChildren": {},
8
- "_requested": {
9
- "type": "range",
10
- "registry": true,
11
- "raw": "@syncfusion/ej2-treegrid@*",
12
- "name": "@syncfusion/ej2-treegrid",
13
- "escapedName": "@syncfusion%2fej2-treegrid",
14
- "scope": "@syncfusion",
15
- "rawSpec": "*",
16
- "saveSpec": null,
17
- "fetchSpec": "*"
18
- },
19
- "_requiredBy": [
20
- "/",
21
- "/@syncfusion/ej2",
22
- "/@syncfusion/ej2-angular-treegrid",
23
- "/@syncfusion/ej2-gantt",
24
- "/@syncfusion/ej2-react-treegrid",
25
- "/@syncfusion/ej2-vue-treegrid"
26
- ],
27
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treegrid/-/ej2-treegrid-25.2.5.tgz",
28
- "_shasum": "2873e432ebd7866e8bd6e4408b7daa6d0576b0a6",
29
- "_spec": "@syncfusion/ej2-treegrid@*",
30
- "_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
31
- "author": {
32
- "name": "Syncfusion Inc."
33
- },
34
- "bugs": {
35
- "url": "https://github.com/syncfusion/ej2-treegrid/issues"
36
- },
37
- "bundleDependencies": false,
38
- "dependencies": {
39
- "@syncfusion/ej2-base": "~25.2.5",
40
- "@syncfusion/ej2-data": "~25.2.3",
41
- "@syncfusion/ej2-grids": "~25.2.6",
42
- "@syncfusion/ej2-popups": "~25.2.6"
43
- },
44
- "deprecated": false,
45
- "description": "Essential JS 2 TreeGrid Component",
46
- "devDependencies": {},
47
- "es2015": "./dist/es6/ej2-treegrid.es5.js",
48
- "homepage": "https://www.syncfusion.com/javascript-ui-controls",
49
- "keywords": [
50
- "ej2",
51
- "syncfusion",
52
- "JavaScript",
53
- "TypeScript",
54
- "treelist",
55
- "tree-data",
56
- "tree-table",
57
- "table",
58
- "treegrid"
59
- ],
60
- "license": "SEE LICENSE IN license",
61
- "main": "./dist/ej2-treegrid.umd.min.js",
62
- "module": "./index.js",
63
- "name": "@syncfusion/ej2-treegrid",
64
- "repository": {
65
- "type": "git",
66
- "url": "git+https://github.com/syncfusion/ej2-treegrid.git"
67
- },
68
- "typings": "index.d.ts",
69
- "version": "25.2.6",
70
- "sideEffects": false
1
+ {
2
+ "_from": "@syncfusion/ej2-treegrid@*",
3
+ "_id": "@syncfusion/ej2-treegrid@20.12.1",
4
+ "_inBundle": false,
5
+ "_integrity": "sha512-Zvs1n1hJSdqII9YsIoINuvcHJFdRrXZ1my6EGcdVE46oHM7dliewDSdLCulnzrp4KD1hHhkJV8+xJXML+697Pg==",
6
+ "_location": "/@syncfusion/ej2-treegrid",
7
+ "_phantomChildren": {},
8
+ "_requested": {
9
+ "type": "range",
10
+ "registry": true,
11
+ "raw": "@syncfusion/ej2-treegrid@*",
12
+ "name": "@syncfusion/ej2-treegrid",
13
+ "escapedName": "@syncfusion%2fej2-treegrid",
14
+ "scope": "@syncfusion",
15
+ "rawSpec": "*",
16
+ "saveSpec": null,
17
+ "fetchSpec": "*"
18
+ },
19
+ "_requiredBy": [
20
+ "/",
21
+ "/@syncfusion/ej2",
22
+ "/@syncfusion/ej2-angular-treegrid",
23
+ "/@syncfusion/ej2-gantt",
24
+ "/@syncfusion/ej2-react-treegrid",
25
+ "/@syncfusion/ej2-vue-treegrid"
26
+ ],
27
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-release/@syncfusion/ej2-treegrid/-/ej2-treegrid-20.12.1.tgz",
28
+ "_shasum": "edfc8b85e074d04489b50692dc6d0fdc2afc1fca",
29
+ "_spec": "@syncfusion/ej2-treegrid@*",
30
+ "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
31
+ "author": {
32
+ "name": "Syncfusion Inc."
33
+ },
34
+ "bugs": {
35
+ "url": "https://github.com/syncfusion/ej2-treegrid/issues"
36
+ },
37
+ "bundleDependencies": false,
38
+ "dependencies": {
39
+ "@syncfusion/ej2-base": "~26.1.35",
40
+ "@syncfusion/ej2-data": "~26.1.35",
41
+ "@syncfusion/ej2-grids": "~26.1.35",
42
+ "@syncfusion/ej2-popups": "~26.1.35"
43
+ },
44
+ "deprecated": false,
45
+ "description": "Essential JS 2 TreeGrid Component",
46
+ "devDependencies": {},
47
+ "es2015": "./dist/es6/ej2-treegrid.es5.js",
48
+ "homepage": "https://www.syncfusion.com/javascript-ui-controls",
49
+ "keywords": [
50
+ "ej2",
51
+ "syncfusion",
52
+ "JavaScript",
53
+ "TypeScript",
54
+ "treelist",
55
+ "tree-data",
56
+ "tree-table",
57
+ "table",
58
+ "treegrid"
59
+ ],
60
+ "license": "SEE LICENSE IN license",
61
+ "main": "./dist/ej2-treegrid.umd.min.js",
62
+ "module": "./index.js",
63
+ "name": "@syncfusion/ej2-treegrid",
64
+ "repository": {
65
+ "type": "git",
66
+ "url": "git+https://github.com/syncfusion/ej2-treegrid.git"
67
+ },
68
+ "typings": "index.d.ts",
69
+ "version": "26.1.35-760834",
70
+ "sideEffects": false
71
71
  }
@@ -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';
@@ -239,7 +239,7 @@ export function removeChildRecords(childRecords, modifiedData, action, key, cont
239
239
  editedData.taskData[keys[parseInt(i.toString(), 10)]] =
240
240
  childRecords[parseInt(j.toString(), 10)][keys[parseInt(i.toString(), 10)]] =
241
241
  modifiedData[keys[parseInt(i.toString(), 10)]];
242
- if (control.grid.editSettings.mode === 'Normal' && control.editSettings.mode === 'Cell') {
242
+ if (control.grid.editSettings.mode === 'Normal' && control.editSettings.mode === 'Cell' && !isNullOrUndefined(control.grid.editModule)) {
243
243
  var editModule = 'editModule';
244
244
  control.grid.editModule["" + editModule].editRowIndex = modifiedData.index;
245
245
  control.grid.editModule["" + editModule].updateCurrentViewData(modifiedData);
@@ -146,8 +146,9 @@ var Edit = /** @class */ (function () {
146
146
  var eventArgs = getObject('editAction', args);
147
147
  var eventName = getObject('name', eventArgs);
148
148
  var treeObj = this.parent;
149
- var adaptor = treeObj.dataSource.adaptor;
150
- if ((isRemoteData(treeObj) || adaptor instanceof RemoteSaveAdaptor) &&
149
+ var adaptor = !isNullOrUndefined(treeObj.dataSource)
150
+ && treeObj.dataSource.adaptor;
151
+ if (!isNullOrUndefined(adaptor) && (isRemoteData(treeObj) || adaptor instanceof RemoteSaveAdaptor) &&
151
152
  (eventArgs.requestType === 'save' && eventArgs.action === 'add') &&
152
153
  (treeObj.editSettings.newRowPosition === 'Child' || treeObj.editSettings.newRowPosition === 'Below'
153
154
  || treeObj.editSettings.newRowPosition === 'Above')) {
@@ -364,7 +365,7 @@ var Edit = /** @class */ (function () {
364
365
  Edit.prototype.customCellSave = function (args) {
365
366
  if (isCountRequired(this.parent) && this.parent.editSettings.mode === 'Cell' && args.action === 'edit') {
366
367
  this.updateCell(args, args.rowIndex);
367
- this.afterCellSave(args, args.row, args.rowIndex);
368
+ this.afterCellSave(args, args.row);
368
369
  }
369
370
  };
370
371
  Edit.prototype.cellSave = function (args) {
@@ -429,7 +430,7 @@ var Edit = /** @class */ (function () {
429
430
  else {
430
431
  this.updateCell(args, rowIndex_1);
431
432
  setValue('isEdit', false, this.parent.grid);
432
- this.afterCellSave(args, row_1, rowIndex_1);
433
+ this.afterCellSave(args, row_1);
433
434
  }
434
435
  }
435
436
  else if (isRemoteData(this.parent) ||
@@ -438,7 +439,7 @@ var Edit = /** @class */ (function () {
438
439
  if (this.parent['isGantt'] && !this.parent.loadChildOnDemand) {
439
440
  this.updateCell(args, rowIndex_1);
440
441
  setValue('isEdit', false, this.parent.grid);
441
- this.afterCellSave(args, row_1, rowIndex_1);
442
+ this.afterCellSave(args, row_1);
442
443
  }
443
444
  else {
444
445
  var crud = null;
@@ -449,7 +450,7 @@ var Edit = /** @class */ (function () {
449
450
  }
450
451
  _this.updateCell(args, rowIndex_1);
451
452
  setValue('isEdit', false, _this.parent.grid);
452
- _this.afterCellSave(args, row_1, rowIndex_1);
453
+ _this.afterCellSave(args, row_1);
453
454
  });
454
455
  }
455
456
  }
@@ -462,7 +463,7 @@ var Edit = /** @class */ (function () {
462
463
  this.parent.grid.contentModule['virtualData'] = {};
463
464
  }
464
465
  };
465
- Edit.prototype.afterCellSave = function (args, row, rowIndex) {
466
+ Edit.prototype.afterCellSave = function (args, row) {
466
467
  if (this.parent.grid.aggregateModule) {
467
468
  this.parent.grid.aggregateModule.refresh(args.rowData);
468
469
  }
@@ -795,6 +796,7 @@ var Edit = /** @class */ (function () {
795
796
  this.addRowIndex = this.parent.grid.selectedRowIndex > -1 ? this.parent.grid.selectedRowIndex : 0;
796
797
  }
797
798
  }
799
+ var selectedRecords = this.parent.getSelectedRecords()[0];
798
800
  if ((this.isAddedRowByMethod || (this.isAddedRowByContextMenu && this.parent.grid.selectedRowIndex !== -1)) &&
799
801
  (this.parent.enableVirtualization || this.parent.enableInfiniteScrolling)) {
800
802
  this.addRowRecord = this.parent.flatData[this.parent.grid.selectedRowIndex];
@@ -802,8 +804,8 @@ var Edit = /** @class */ (function () {
802
804
  this.addRowRecord = this.parent.getCurrentViewRecords()[this.addRowIndex];
803
805
  }
804
806
  }
805
- else {
806
- this.addRowRecord = this.parent.getSelectedRecords()[0];
807
+ else if (!isNullOrUndefined(selectedRecords)) {
808
+ this.addRowRecord = selectedRecords;
807
809
  }
808
810
  }
809
811
  if (this.isAddedRowByMethod && args.index !== 0) {
@@ -1,4 +1,5 @@
1
- import { getObject, Grid, ExcelExport as GridExcel } from '@syncfusion/ej2-grids';
1
+ import { getObject, Grid, ExcelExport as GridExcel, ExportHelper } from '@syncfusion/ej2-grids';
2
+ import { Data } from '@syncfusion/ej2-grids';
2
3
  import { isRemoteData, isOffline, getParentData, getExpandStatus } from '../utils';
3
4
  import { isNullOrUndefined, setValue, extend } from '@syncfusion/ej2-base';
4
5
  import { DataManager, Query } from '@syncfusion/ej2-data';
@@ -70,15 +71,21 @@ var ExcelExport = /** @class */ (function () {
70
71
  isMultipleExport, workbook, isBlob, isCsv) {
71
72
  var _this = this;
72
73
  var dataSource = this.parent.dataSource;
74
+ var data = new Data(this.parent.grid);
73
75
  var property = Object();
74
76
  setValue('isCsv', isCsv, property);
75
77
  setValue('cancel', false, property);
76
78
  if (!isNullOrUndefined(excelExportProperties)) {
77
79
  this.isCollapsedStatePersist = excelExportProperties.isCollapsedStatePersist;
78
80
  }
79
- if (!isNullOrUndefined(excelExportProperties) && !isNullOrUndefined(excelExportProperties.dataSource)
80
- && !isNullOrUndefined(excelExportProperties.dataSource instanceof DataManager)) {
81
- return this.parent.grid.excelExportModule.Map(this.parent.grid, excelExportProperties, isMultipleExport, workbook, isCsv, isBlob);
81
+ if (!isNullOrUndefined(excelExportProperties)) {
82
+ if (!isNullOrUndefined(excelExportProperties.dataSource) && !excelExportProperties.dataSource['dataSource']) {
83
+ return this.parent.grid.excelExportModule.Map(this.parent.grid, excelExportProperties, isMultipleExport, workbook, isCsv, isBlob);
84
+ }
85
+ if (excelExportProperties.exportType === 'CurrentPage') {
86
+ excelExportProperties.dataSource = this.parent.getCurrentViewRecords();
87
+ return this.parent.grid.excelExportModule.Map(this.parent.grid, excelExportProperties, isMultipleExport, workbook, isCsv, isBlob);
88
+ }
82
89
  }
83
90
  return new Promise(function (resolve) {
84
91
  var dm = _this.isLocal() && !(dataSource instanceof DataManager) ? new DataManager(dataSource)
@@ -87,6 +94,11 @@ var ExcelExport = /** @class */ (function () {
87
94
  if (!_this.isLocal()) {
88
95
  query = _this.generateQuery(query);
89
96
  query.queries = _this.parent.grid.getDataModule().generateQuery().queries;
97
+ query = ExportHelper.getQuery(_this.parent.grid, data);
98
+ if (isNullOrUndefined(_this.parent.filterModule)) {
99
+ query.queries = query.queries.slice(1, 2);
100
+ query.params = query.params.slice(0, 0);
101
+ }
90
102
  setValue('query', query, property);
91
103
  }
92
104
  _this.parent.trigger(event.beforeExcelExport, extend(property, excelExportProperties));
@@ -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
  /**
@@ -76,6 +76,10 @@ var Page = /** @class */ (function () {
76
76
  * @returns {void}
77
77
  */
78
78
  Page.prototype.updateExternalMessage = function (message) {
79
+ if (isNullOrUndefined(message)) {
80
+ var error = 'The provided value for the message is undefined. Please ensure the message contains string.';
81
+ this.parent.trigger(events.actionFailure, { error: error });
82
+ }
79
83
  this.parent.grid.pagerModule.updateExternalMessage(message);
80
84
  };
81
85
  /**
@@ -303,15 +303,17 @@ var RowDD = /** @class */ (function () {
303
303
  !Object.prototype.hasOwnProperty.call(draggedRecord_1.taskData, tObj.childMapping)) {
304
304
  draggedRecord_1.taskData[tObj.childMapping] = [];
305
305
  }
306
- if (Object.prototype.hasOwnProperty.call(draggedRecord_1, tObj.childMapping) &&
307
- (draggedRecord_1[tObj.childMapping]).length && !this.isDraggedWithChild &&
308
- !isNullOrUndefined(tObj.parentIdMapping)) {
309
- var childData = (draggedRecord_1[tObj.childMapping]);
310
- for (var j = 0; j < childData.length; j++) {
311
- if (dragRecords_1.indexOf(childData[parseInt(j.toString(), 10)]) === -1) {
312
- dragRecords_1.splice(j, 0, childData[parseInt(j.toString(), 10)]);
313
- childData[parseInt(j.toString(), 10)].taskData = extend({}, childData[parseInt(j.toString(), 10)]);
314
- i += 1;
306
+ if (!isNullOrUndefined(draggedRecord_1[tObj.childMapping])) {
307
+ if (Object.prototype.hasOwnProperty.call(draggedRecord_1, tObj.childMapping) &&
308
+ (draggedRecord_1[tObj.childMapping]).length && !this.isDraggedWithChild &&
309
+ !isNullOrUndefined(tObj.parentIdMapping)) {
310
+ var childData = (draggedRecord_1[tObj.childMapping]);
311
+ for (var j = 0; j < childData.length; j++) {
312
+ if (dragRecords_1.indexOf(childData[parseInt(j.toString(), 10)]) === -1) {
313
+ dragRecords_1.splice(j, 0, childData[parseInt(j.toString(), 10)]);
314
+ childData[parseInt(j.toString(), 10)].taskData = extend({}, childData[parseInt(j.toString(), 10)]);
315
+ i += 1;
316
+ }
315
317
  }
316
318
  }
317
319
  }
@@ -385,13 +387,22 @@ var RowDD = /** @class */ (function () {
385
387
  else {
386
388
  tempDataSource = proxy.dataSource;
387
389
  }
388
- // eslint-disable-next-line max-len
389
- if (tempDataSource && (!isNullOrUndefined(droppedRecord) && !droppedRecord.parentItem) && !isNullOrUndefined(droppedRecord.taskData)) {
390
+ if (tempDataSource && (!isNullOrUndefined(droppedRecord) && !droppedRecord.parentItem)
391
+ && !isNullOrUndefined(droppedRecord.taskData)) {
390
392
  var keys = Object.keys(tempDataSource);
391
393
  for (var i = 0; i < keys.length; i++) {
392
- if (tempDataSource[parseInt(i.toString(), 10)][this.parent.childMapping] ===
393
- droppedRecord.taskData[this.parent.childMapping]) {
394
- idx = i;
394
+ if (tempDataSource[parseInt(i.toString(), 10)][this.parent.childMapping]) {
395
+ if (tempDataSource[parseInt(i.toString(), 10)][this.parent.childMapping] ===
396
+ droppedRecord.taskData[this.parent.childMapping]) {
397
+ idx = i;
398
+ }
399
+ }
400
+ else {
401
+ var primaryKeyField = this.parent.getPrimaryKeyFieldNames()[0];
402
+ if (tempDataSource[parseInt(i.toString(), 10)]["" + primaryKeyField] ===
403
+ droppedRecord.taskData["" + primaryKeyField]) {
404
+ idx = i;
405
+ }
395
406
  }
396
407
  }
397
408
  if (this.dropPosition === 'topSegment') {
@@ -710,7 +721,7 @@ var RowDD = /** @class */ (function () {
710
721
  this.canDrop = false;
711
722
  this.addErrorElem();
712
723
  }
713
- if (!tObj.rowDropSettings.targetID && this.canDrop) {
724
+ if (!tObj.rowDropSettings.targetID && this.canDrop && !isNullOrUndefined(args.rows[0])) {
714
725
  tObj.rowDragAndDropModule.updateIcon(args.rows, rowIdx, args);
715
726
  }
716
727
  if (isNullOrUndefined(tObj.rowDropSettings.targetID) && !this.canDrop) {
@@ -954,7 +965,7 @@ var RowDD = /** @class */ (function () {
954
965
  var _loop_1 = function (i) {
955
966
  draggedRecord_2 = dragRecords[parseInt(i.toString(), 10)];
956
967
  this_1.draggedRecord = draggedRecord_2;
957
- if (this_1.dropPosition !== 'Invalid') {
968
+ if (this_1.dropPosition !== 'Invalid' && !isNullOrUndefined(this_1.droppedRecord)) {
958
969
  if (!tObj.rowDropSettings.targetID || isByMethod) {
959
970
  this_1.deleteDragRow();
960
971
  }
@@ -58,6 +58,7 @@ var Selection = /** @class */ (function () {
58
58
  this.removeEventListener();
59
59
  };
60
60
  Selection.prototype.checkboxSelection = function (args) {
61
+ var _a;
61
62
  var target = getObject('target', args);
62
63
  var checkWrap = parentsUntil(target, 'e-checkbox-wrapper');
63
64
  var checkBox;
@@ -75,6 +76,14 @@ var Selection = /** @class */ (function () {
75
76
  checkBox = checkWrap.querySelector('input[type="checkbox"]');
76
77
  this.triggerChkChangeEvent(checkBox, checkBoxvalue, target.closest('tr'));
77
78
  }
79
+ if (!isNullOrUndefined(this.parent['parentQuery']) && this.parent.selectionSettings.persistSelection
80
+ && this.parent['columnModel'].filter(function (col) { return col.type === 'checkbox'; }).length > 0
81
+ && isRemoteData(this.parent)) {
82
+ if (this.parent['parentQuery'].length > 0) {
83
+ (_a = this.parent.query.queries).push.apply(_a, this.parent['parentQuery']);
84
+ this.parent['parentQuery'] = [];
85
+ }
86
+ }
78
87
  };
79
88
  Selection.prototype.triggerChkChangeEvent = function (checkBox, checkState, rowElement) {
80
89
  var data = this.parent.getCurrentViewRecords()[rowElement.rowIndex];
@@ -166,6 +175,10 @@ var Selection = /** @class */ (function () {
166
175
  }
167
176
  };
168
177
  Selection.prototype.selectCheckboxes = function (rowIndexes) {
178
+ if (isNullOrUndefined(rowIndexes)) {
179
+ var error = 'The provided value for the rowIndexes is undefined. Please ensure the rowIndexes contains number.';
180
+ this.parent.trigger(events.actionFailure, { error: error });
181
+ }
169
182
  for (var i = 0; i < rowIndexes.length; i++) {
170
183
  var record = this.parent.getCurrentViewRecords()[rowIndexes[parseInt(i.toString(), 10)]];
171
184
  var flatRecord = getParentData(this.parent, record.uniqueID);
@@ -412,7 +425,6 @@ var Selection = /** @class */ (function () {
412
425
  if (recordIndex > -1) {
413
426
  if (!isNullOrUndefined(checkbox)) {
414
427
  checkbox.classList.add(checkBoxclass);
415
- var chkstate = checkState === 'check' ? 'checked' : checkState === 'uncheck' ? 'unchecked' : 'mixed';
416
428
  tr.querySelector('.e-treecheckselect').setAttribute('aria-checked', checkState === 'check' ? 'true' : checkState === 'uncheck' ? 'false' : 'mixed');
417
429
  }
418
430
  }
@@ -11,6 +11,8 @@ export declare class VirtualScroll {
11
11
  private prevstartIndex;
12
12
  private prevendIndex;
13
13
  private visualData;
14
+ private prevrequestType;
15
+ prevSelectedRecord: object;
14
16
  /**
15
17
  * Constructor for VirtualScroll module
16
18
  *