@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
@@ -1,4 +1,4 @@
1
- import { Property, ChildProperty } from '@syncfusion/ej2-base';import { SelectionMode, CellSelectionMode, SelectionType, CheckboxSelectionType } from '@syncfusion/ej2-grids';
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
2
 
3
3
  /**
4
4
  * Interface for a class SelectionSettings
@@ -6,71 +6,71 @@ import { Property, ChildProperty } from '@syncfusion/ej2-base';import { Selectio
6
6
  export interface SelectionSettingsModel {
7
7
 
8
8
  /**
9
- * Specifies the selection mode for the TreeGrid, which supports row, cell, and both (row and cell) selection modes.
10
- * * `Row`: Selects the entire row.
11
- * * `Cell`: Selects a single cell.
12
- * * `Both`: Selects the entire row and its cells.
13
- *
14
- * @default Syncfusion.EJ2.Grids.SelectionMode.Row
15
- * @isEnumeration true
16
- * @aspType Syncfusion.EJ2.Grids.SelectionMode
17
- */
18
- mode?: SelectionMode;
9
+ * Specifies the selection mode for the TreeGrid, which supports row, cell, and both (row and cell) selection modes.
10
+ * * `Row`: Selects the entire row.
11
+ * * `Cell`: Selects a single cell.
12
+ * * `Both`: Selects the entire row and its cells.
13
+ *
14
+ * @default Syncfusion.EJ2.Grids.SelectionMode.Row
15
+ * @isEnumeration true
16
+ * @aspType Syncfusion.EJ2.Grids.SelectionMode
17
+ */
18
+ mode?: SelectionMode;
19
19
 
20
20
  /**
21
- * Determines the mode for cell selection, available options are flow and box.
22
- * Requires the selection `mode` to be either cell or both.
23
- * * `Flow`: Selects the range between start and end indexes, including other cells of selected rows.
24
- * * `Box`: Selects cells within the start and end column indexes within the selected rows.
25
- *
26
- * @default Syncfusion.EJ2.Grids.CellSelectionMode.Flow
27
- * @isEnumeration true
28
- * @aspType Syncfusion.EJ2.Grids.CellSelectionMode
29
- */
30
- cellSelectionMode?: CellSelectionMode;
21
+ * Determines the mode for cell selection, available options are flow and box.
22
+ * Requires the selection `mode` to be either cell or both.
23
+ * * `Flow`: Selects the range between start and end indexes, including other cells of selected rows.
24
+ * * `Box`: Selects cells within the start and end column indexes within the selected rows.
25
+ *
26
+ * @default Syncfusion.EJ2.Grids.CellSelectionMode.Flow
27
+ * @isEnumeration true
28
+ * @aspType Syncfusion.EJ2.Grids.CellSelectionMode
29
+ */
30
+ cellSelectionMode?: CellSelectionMode;
31
31
 
32
32
  /**
33
- * Defines the selection type, specifying whether single or multiple selections are allowed.
34
- * * `Single`: Allows selection of only a single row or cell.
35
- * * `Multiple`: Allows selection of multiple rows or cells.
36
- *
37
- * @default Syncfusion.EJ2.Grids.SelectionType.Single
38
- * @isEnumeration true
39
- * @aspType Syncfusion.EJ2.Grids.SelectionType
40
- */
41
- type?: SelectionType;
33
+ * Defines the selection type, specifying whether single or multiple selections are allowed.
34
+ * * `Single`: Allows selection of only a single row or cell.
35
+ * * `Multiple`: Allows selection of multiple rows or cells.
36
+ *
37
+ * @default Syncfusion.EJ2.Grids.SelectionType.Single
38
+ * @isEnumeration true
39
+ * @aspType Syncfusion.EJ2.Grids.SelectionType
40
+ */
41
+ type?: SelectionType;
42
42
 
43
43
  /**
44
- * When set to true, the TreeGrid selection persists even during various grid operations such as sorting or paging.
45
- * Requires at least one column to be configured as the primary key for persistence.
46
- *
47
- * @default false
48
- */
49
- persistSelection?: boolean;
44
+ * When set to true, the TreeGrid selection persists even during various grid operations such as sorting or paging.
45
+ * Requires at least one column to be configured as the primary key for persistence.
46
+ *
47
+ * @default false
48
+ */
49
+ persistSelection?: boolean;
50
50
 
51
51
  /**
52
- * Specifies the mode for checkbox selection:
53
- * * `Default`: Allows selection of multiple rows by clicking on each row individually.
54
- * * `ResetOnRowClick`: Resets prior selection when a new row is clicked. Multiple rows can be selected using CTRL or SHIFT keys.
55
- *
56
- * @default Syncfusion.EJ2.Grids.CheckboxSelectionType.Default
57
- * @isEnumeration true
58
- * @aspType Syncfusion.EJ2.Grids.CheckboxSelectionType
59
- */
60
- checkboxMode?: CheckboxSelectionType;
52
+ * Specifies the mode for checkbox selection:
53
+ * * `Default`: Allows selection of multiple rows by clicking on each row individually.
54
+ * * `ResetOnRowClick`: Resets prior selection when a new row is clicked. Multiple rows can be selected using CTRL or SHIFT keys.
55
+ *
56
+ * @default Syncfusion.EJ2.Grids.CheckboxSelectionType.Default
57
+ * @isEnumeration true
58
+ * @aspType Syncfusion.EJ2.Grids.CheckboxSelectionType
59
+ */
60
+ checkboxMode?: CheckboxSelectionType;
61
61
 
62
62
  /**
63
- * If set to true, TreeGrid selection is allowed only through checkboxes. Ensure the column type is set to `checkbox` to enable this mode.
64
- *
65
- * @default false
66
- */
67
- checkboxOnly?: boolean;
63
+ * If set to true, TreeGrid selection is allowed only through checkboxes. Ensure the column type is set to `checkbox` to enable this mode.
64
+ *
65
+ * @default false
66
+ */
67
+ checkboxOnly?: boolean;
68
68
 
69
69
  /**
70
- * Enables toggling of the selected row. When true, users can toggle the selection of a row.
71
- *
72
- * @default true
73
- */
74
- enableToggle?: boolean;
70
+ * Enables toggling of the selected row. When true, users can toggle the selection of a row.
71
+ *
72
+ * @default true
73
+ */
74
+ enableToggle?: boolean;
75
75
 
76
76
  }
@@ -1,22 +1,22 @@
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
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
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
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19
+ };
20
20
  import { Property, ChildProperty } from '@syncfusion/ej2-base';
21
21
  /**
22
22
  * Configures the selection behavior of the TreeGrid.
@@ -1,4 +1,4 @@
1
- import { ChildProperty, Property, Collection } from '@syncfusion/ej2-base';import { SortDirection } from '@syncfusion/ej2-grids';
1
+ import { ChildProperty, Property, Collection } from '@syncfusion/ej2-base';
2
2
 
3
3
  /**
4
4
  * Interface for a class SortDescriptor
@@ -6,22 +6,22 @@ import { ChildProperty, Property, Collection } from '@syncfusion/ej2-base';impor
6
6
  export interface SortDescriptorModel {
7
7
 
8
8
  /**
9
- * Specifies the field name of the column to be sorted.
10
- *
11
- * @default ''
12
- */
13
- field?: string;
9
+ * Specifies the field name of the column to be sorted.
10
+ *
11
+ * @default ''
12
+ */
13
+ field?: string;
14
14
 
15
15
  /**
16
- * Specifies the direction of sorting for the column. The available options are:
17
- * * `Ascending`: Sorts the column in ascending order.
18
- * * `Descending`: Sorts the column in descending order.
19
- *
20
- * @default ''
21
- * @isEnumeration true
22
- * @aspType Syncfusion.EJ2.Grids.SortDirection
23
- */
24
- direction?: SortDirection;
16
+ * Specifies the direction of sorting for the column. The available options are:
17
+ * * `Ascending`: Sorts the column in ascending order.
18
+ * * `Descending`: Sorts the column in descending order.
19
+ *
20
+ * @default ''
21
+ * @isEnumeration true
22
+ * @aspType Syncfusion.EJ2.Grids.SortDirection
23
+ */
24
+ direction?: SortDirection;
25
25
 
26
26
  }
27
27
 
@@ -31,19 +31,19 @@ export interface SortDescriptorModel {
31
31
  export interface SortSettingsModel {
32
32
 
33
33
  /**
34
- * Specifies the columns to be sorted at initial rendering of the TreeGrid.
35
- * This property can also be used to get or modify the currently sorted columns at runtime.
36
- *
37
- * @default []
38
- */
39
- columns?: SortDescriptorModel[];
34
+ * Specifies the columns to be sorted at initial rendering of the TreeGrid.
35
+ * This property can also be used to get or modify the currently sorted columns at runtime.
36
+ *
37
+ * @default []
38
+ */
39
+ columns?: SortDescriptorModel[];
40
40
 
41
41
  /**
42
- * If set to false, the user cannot reset the TreeGrid to an unsorted state by clicking on the sorted column header.
43
- * When true, clicking an already sorted column header will toggle the sort direction or remove sorting.
44
- *
45
- * @default true
46
- */
47
- allowUnsort?: boolean;
42
+ * If set to false, the user cannot reset the TreeGrid to an unsorted state by clicking on the sorted column header.
43
+ * When true, clicking an already sorted column header will toggle the sort direction or remove sorting.
44
+ *
45
+ * @default true
46
+ */
47
+ allowUnsort?: boolean;
48
48
 
49
49
  }
@@ -1,22 +1,22 @@
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
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
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
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19
+ };
20
20
  import { ChildProperty, Property, Collection } from '@syncfusion/ej2-base';
21
21
  /**
22
22
  * Represents the field name and direction of a sort column in the TreeGrid.
@@ -1,4 +1,4 @@
1
- import { Property, ChildProperty, Collection, getEnumValue, compile, DateFormatOptions, NumberFormatOptions } from '@syncfusion/ej2-base';import { Internationalization } from '@syncfusion/ej2-base';import { CustomSummaryType, AggregateType, CellType } from '@syncfusion/ej2-grids';
1
+ import { Property, ChildProperty, Collection, getEnumValue, compile, DateFormatOptions, NumberFormatOptions } from '@syncfusion/ej2-base';
2
2
 
3
3
  /**
4
4
  * Interface for a class AggregateColumn
@@ -6,69 +6,69 @@ import { Property, ChildProperty, Collection, getEnumValue, compile, DateFormatO
6
6
  export interface AggregateColumnModel {
7
7
 
8
8
  /**
9
- * Defines the aggregate type(s) for a particular column.
10
- * To apply multiple aggregates to a single column, specify the `type` as an array.
11
- * Available aggregate types include:
12
- * * `sum`: Calculates the sum of all values in a column.
13
- * * `average`: Computes the average of the column values.
14
- * * `max`: Finds the maximum value in a column.
15
- * * `min`: Finds the minimum value in a column.
16
- * * `count`: Counts the number of records.
17
- * * `falsecount`: Counts the number of false values.
18
- * * `truecount`: Counts the number of true values.
19
- * * `custom`: Allows for a custom aggregate function.
20
- *
21
- * Use `custom` to specify a custom aggregation.
22
- *
23
- * @aspType string
24
- * @default null
25
- */
26
- type?: AggregateType | AggregateType[] | string;
9
+ * Defines the aggregate type(s) for a particular column.
10
+ * To apply multiple aggregates to a single column, specify the `type` as an array.
11
+ * Available aggregate types include:
12
+ * * `sum`: Calculates the sum of all values in a column.
13
+ * * `average`: Computes the average of the column values.
14
+ * * `max`: Finds the maximum value in a column.
15
+ * * `min`: Finds the minimum value in a column.
16
+ * * `count`: Counts the number of records.
17
+ * * `falsecount`: Counts the number of false values.
18
+ * * `truecount`: Counts the number of true values.
19
+ * * `custom`: Allows for a custom aggregate function.
20
+ *
21
+ * Use `custom` to specify a custom aggregation.
22
+ *
23
+ * @aspType string
24
+ * @default null
25
+ */
26
+ type?: AggregateType | AggregateType[] | string;
27
27
 
28
28
  /**
29
- * Defines a template for the footer cell of the aggregate column.
30
- * Use the aggregate `type` names within the template to access aggregate values.
31
- *
32
- * @default null
33
- * @aspType string
34
- *
35
- */
36
- footerTemplate?: string | Function;
29
+ * Defines a template for the footer cell of the aggregate column.
30
+ * Use the aggregate `type` names within the template to access aggregate values.
31
+ *
32
+ * @default null
33
+ * @aspType string
34
+ *
35
+ */
36
+ footerTemplate?: string | Function;
37
37
 
38
38
  /**
39
- * Specifies the column name on which to perform the aggregation.
40
- *
41
- * @default null
42
- */
43
- field?: string;
39
+ * Specifies the column name on which to perform the aggregation.
40
+ *
41
+ * @default null
42
+ */
43
+ field?: string;
44
44
 
45
45
  /**
46
- * Specifies the format to be applied to the calculated aggregate value before display.
47
- * Supports both standard and custom formats for numbers and dates.
48
- * Refer to the Syncfusion documentation for [number](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string)
49
- * and [date](https://ej2.syncfusion.com/documentation/common/internationalization#date-formatting) formats.
50
- *
51
- * @aspType string
52
- * @default null
53
- */
54
- format?: string | NumberFormatOptions | DateFormatOptions;
46
+ * Specifies the format to be applied to the calculated aggregate value before display.
47
+ * Supports both standard and custom formats for numbers and dates.
48
+ * Refer to the Syncfusion documentation for [number](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string)
49
+ * and [date](https://ej2.syncfusion.com/documentation/common/internationalization#date-formatting) formats.
50
+ *
51
+ * @aspType string
52
+ * @default null
53
+ */
54
+ format?: string | NumberFormatOptions | DateFormatOptions;
55
55
 
56
56
  /**
57
- * Specifies the column name to display the aggregate value. If not defined, the `field` name is used by default.
58
- *
59
- * @default null
60
- */
61
- columnName?: string;
57
+ * Specifies the column name to display the aggregate value. If not defined, the `field` name is used by default.
58
+ *
59
+ * @default null
60
+ */
61
+ columnName?: string;
62
62
 
63
63
  /**
64
- * Defines a custom function to calculate the aggregate value. The `type` must be set to `custom`.
65
- * Use the custom value as `${custom}` in templates.
66
- * * `Total aggregation`: The custom function is called with the entire dataset and the current `AggregateColumn` object.
67
- * * `Group aggregation`: It is called with the current group details and the `AggregateColumn` object.
68
- *
69
- * @default null
70
- */
71
- customAggregate?: CustomSummaryType | string;
64
+ * Defines a custom function to calculate the aggregate value. The `type` must be set to `custom`.
65
+ * Use the custom value as `${custom}` in templates.
66
+ * * `Total aggregation`: The custom function is called with the entire dataset and the current `AggregateColumn` object.
67
+ * * `Group aggregation`: It is called with the current group details and the `AggregateColumn` object.
68
+ *
69
+ * @default null
70
+ */
71
+ customAggregate?: CustomSummaryType | string;
72
72
 
73
73
  }
74
74
 
@@ -78,16 +78,16 @@ export interface AggregateColumnModel {
78
78
  export interface AggregateRowModel {
79
79
 
80
80
  /**
81
- * Configures the collection of aggregate columns.
82
- *
83
- * @default []
84
- */
85
- columns?: AggregateColumnModel[];
81
+ * Configures the collection of aggregate columns.
82
+ *
83
+ * @default []
84
+ */
85
+ columns?: AggregateColumnModel[];
86
86
 
87
87
  /**
88
- * Determines whether to display child summaries for each parent row.
89
- *
90
- */
91
- showChildSummary?: boolean;
88
+ * Determines whether to display child summaries for each parent row.
89
+ *
90
+ */
91
+ showChildSummary?: boolean;
92
92
 
93
93
  }
@@ -1,22 +1,22 @@
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
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
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
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19
+ };
20
20
  import { Property, ChildProperty, Collection, getEnumValue, compile } from '@syncfusion/ej2-base';
21
21
  import { Internationalization } from '@syncfusion/ej2-base';
22
22
  import { CellType } from '@syncfusion/ej2-grids';
@@ -1,4 +1,4 @@
1
- import { Property, ChildProperty } from '@syncfusion/ej2-base';import { WrapMode } from '../enum';
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
2
 
3
3
  /**
4
4
  * Interface for a class TextWrapSettings
@@ -6,16 +6,16 @@ import { Property, ChildProperty } from '@syncfusion/ej2-base';import { WrapMode
6
6
  export interface TextWrapSettingsModel {
7
7
 
8
8
  /**
9
- * Defines the `wrapMode` of the TreeGrid, controlling how text wrapping is applied to header and content.
10
- * Available wrap modes are:
11
- * * `Both`: Wraps both the header and the content of all columns.
12
- * * `Content`: Wraps only the content of the columns, allowing headers to remain unchanged.
13
- * * `Header`: Wraps only the header text of the columns, while content remains unwrapped.
14
- *
15
- * Text wrapping can improve readability when dealing with long text values or narrow column widths.
16
- *
17
- * @default Both
18
- */
19
- wrapMode?: WrapMode;
9
+ * Defines the `wrapMode` of the TreeGrid, controlling how text wrapping is applied to header and content.
10
+ * Available wrap modes are:
11
+ * * `Both`: Wraps both the header and the content of all columns.
12
+ * * `Content`: Wraps only the content of the columns, allowing headers to remain unchanged.
13
+ * * `Header`: Wraps only the header text of the columns, while content remains unwrapped.
14
+ *
15
+ * Text wrapping can improve readability when dealing with long text values or narrow column widths.
16
+ *
17
+ * @default Both
18
+ */
19
+ wrapMode?: WrapMode;
20
20
 
21
21
  }
@@ -1,22 +1,22 @@
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
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
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
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19
+ };
20
20
  import { Property, ChildProperty } from '@syncfusion/ej2-base';
21
21
  /**
22
22
  * Configures the text wrapping behavior of the TreeGrid.
@@ -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 { VirtualRowModelGenerator } from '@syncfusion/ej2-grids';
15
15
  import * as events from '../base/constant';
16
16
  import { isNullOrUndefined } from '@syncfusion/ej2-base';
@@ -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 { Cell, CellType, getVisiblePage } from '@syncfusion/ej2-grids';
15
15
  import { VirtualContentRenderer } from '@syncfusion/ej2-grids';
16
16
  import * as literals from '../base/constant';
@@ -787,6 +787,9 @@ var VirtualTreeContentRenderer = /** @class */ (function (_super) {
787
787
  (this.parent.pageSettings.pageSize / 2) && (this.endIndex - nextSetResIndex) < (this.parent.pageSettings.pageSize / 2)) {
788
788
  this.startIndex = lastIndex - (this.parent.pageSettings.pageSize / 2);
789
789
  }
790
+ if (this.totalRecords < this.parent.pageSettings.pageSize) {
791
+ this.startIndex = 0;
792
+ }
790
793
  if (scrollArgs.offset.top > (rowHeight * this.totalRecords)) {
791
794
  this.translateY = this.getTranslateY(scrollArgs.offset.top, content.getBoundingClientRect().height);
792
795
  }
@@ -1,2 +1,2 @@
1
- @use 'layout.bds' as *;
2
- @use 'theme.bds' as *;
1
+ @use 'layout.bds' as *;
2
+ @use 'theme.bds' as *;