@syncfusion/ej2-treegrid 28.2.4 → 29.1.33

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 (84) hide show
  1. package/README.md +2 -2
  2. package/dist/ej2-treegrid.min.js +2 -2
  3. package/dist/ej2-treegrid.umd.min.js +2 -2
  4. package/dist/ej2-treegrid.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-treegrid.es2015.js +1275 -519
  6. package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
  7. package/dist/es6/ej2-treegrid.es5.js +1277 -519
  8. package/dist/es6/ej2-treegrid.es5.js.map +1 -1
  9. package/dist/global/ej2-treegrid.min.js +2 -2
  10. package/dist/global/ej2-treegrid.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +10 -10
  13. package/src/treegrid/actions/batch-edit.js +12 -5
  14. package/src/treegrid/actions/edit.js +12 -12
  15. package/src/treegrid/actions/page.js +1 -1
  16. package/src/treegrid/actions/rowdragdrop.d.ts +21 -1
  17. package/src/treegrid/actions/rowdragdrop.js +248 -48
  18. package/src/treegrid/actions/summary.js +1 -1
  19. package/src/treegrid/actions/virtual-scroll.d.ts +34 -1
  20. package/src/treegrid/actions/virtual-scroll.js +58 -11
  21. package/src/treegrid/base/constant.d.ts +0 -4
  22. package/src/treegrid/base/constant.js +0 -4
  23. package/src/treegrid/base/data.js +48 -47
  24. package/src/treegrid/base/treegrid-model.d.ts +195 -208
  25. package/src/treegrid/base/treegrid.d.ts +598 -411
  26. package/src/treegrid/base/treegrid.js +523 -306
  27. package/src/treegrid/enum.d.ts +77 -80
  28. package/src/treegrid/enum.js +2 -2
  29. package/src/treegrid/models/column.d.ts +122 -177
  30. package/src/treegrid/models/column.js +14 -26
  31. package/src/treegrid/models/edit-settings-model.d.ts +24 -25
  32. package/src/treegrid/models/edit-settings.d.ts +25 -26
  33. package/src/treegrid/models/edit-settings.js +1 -1
  34. package/src/treegrid/models/filter-settings-model.d.ts +41 -49
  35. package/src/treegrid/models/filter-settings.d.ts +43 -51
  36. package/src/treegrid/models/filter-settings.js +2 -2
  37. package/src/treegrid/models/infinite-scroll-settings-model.d.ts +4 -4
  38. package/src/treegrid/models/infinite-scroll-settings.d.ts +4 -4
  39. package/src/treegrid/models/infinite-scroll-settings.js +1 -1
  40. package/src/treegrid/models/loading-indicator-model.d.ts +3 -4
  41. package/src/treegrid/models/loading-indicator.d.ts +4 -4
  42. package/src/treegrid/models/loading-indicator.js +1 -1
  43. package/src/treegrid/models/page-settings-model.d.ts +10 -13
  44. package/src/treegrid/models/page-settings.d.ts +11 -14
  45. package/src/treegrid/models/page-settings.js +1 -1
  46. package/src/treegrid/models/rowdrop-settings-model.d.ts +1 -1
  47. package/src/treegrid/models/rowdrop-settings.d.ts +13 -6
  48. package/src/treegrid/models/rowdrop-settings.js +1 -1
  49. package/src/treegrid/models/search-settings-model.d.ts +13 -11
  50. package/src/treegrid/models/search-settings.d.ts +14 -12
  51. package/src/treegrid/models/search-settings.js +1 -1
  52. package/src/treegrid/models/selection-settings-model.d.ts +18 -29
  53. package/src/treegrid/models/selection-settings.d.ts +18 -29
  54. package/src/treegrid/models/sort-settings-model.d.ts +8 -5
  55. package/src/treegrid/models/sort-settings.d.ts +10 -7
  56. package/src/treegrid/models/sort-settings.js +2 -2
  57. package/src/treegrid/models/summary-model.d.ts +28 -29
  58. package/src/treegrid/models/summary.d.ts +32 -30
  59. package/src/treegrid/models/summary.js +4 -1
  60. package/src/treegrid/models/textwrap-settings-model.d.ts +7 -4
  61. package/src/treegrid/models/textwrap-settings.d.ts +8 -5
  62. package/src/treegrid/models/textwrap-settings.js +1 -1
  63. package/src/treegrid/renderer/render.js +11 -5
  64. package/src/treegrid/renderer/virtual-row-model-generator.js +5 -4
  65. package/src/treegrid/renderer/virtual-tree-content-render.d.ts +277 -0
  66. package/src/treegrid/renderer/virtual-tree-content-render.js +328 -35
  67. package/src/treegrid/utils.d.ts +1 -1
  68. package/styles/bootstrap-lite.css +0 -12
  69. package/styles/bootstrap.css +0 -12
  70. package/styles/bootstrap5-dark-lite.css +1 -1
  71. package/styles/bootstrap5-dark.css +1 -1
  72. package/styles/treegrid/_layout.scss +0 -1
  73. package/styles/treegrid/_material-dark-definition.scss +2 -2
  74. package/styles/treegrid/_material-definition.scss +2 -2
  75. package/styles/treegrid/bootstrap.css +0 -12
  76. package/styles/treegrid/bootstrap5-dark.css +1 -1
  77. package/styles/treegrid/icons/_bootstrap.scss +0 -17
  78. package/styles/treegrid/icons/_bootstrap5.scss +1 -1
  79. package/styles/treegrid/icons/_fabric-dark.scss +1 -1
  80. package/styles/treegrid/icons/_fabric.scss +1 -1
  81. package/styles/treegrid/icons/_fluent2.scss +1 -1
  82. package/styles/treegrid/icons/_fusionnew.scss +1 -0
  83. package/styles/treegrid/icons/_highcontrast-light.scss +1 -1
  84. package/styles/treegrid/icons/_tailwind-dark.scss +2 -2
@@ -1,35 +1,33 @@
1
1
  /**
2
- * Defines modes of Filter Hierarchy
3
- * ```props
4
- * * Parent :- Shows filtered records with its Parent records.
5
- * * Child :- Shows filtered records with its Child records.
6
- * * Both :- Shows filtered records with its Parent and Child records.
7
- * * None :- Shows only the filetred records.
8
- * ```
2
+ * Defines modes of Filter Hierarchy used in TreeGrids.
3
+ * The available modes are:
4
+ * * `Parent`: Shows filtered records along with their parent records.
5
+ * * `Child`: Shows filtered records along with their child records.
6
+ * * `Both`: Shows filtered records with both parent and child records.
7
+ * * `None`: Shows only the filtered records without any parent or child context.
9
8
  */
10
9
  export declare type FilterHierarchyMode = 'Parent' | 'Child' | 'Both' | 'None';
11
10
  /**
12
- * Defines Predefined toolbar items.
13
- * ```props
14
- * * Add :- Add new record.
15
- * * Edit :- Edit the selected record.
16
- * * Update :- Update the edited record.
17
- * * Delete :- Delete the selected record.
18
- * * Cancel :- Cancel the edited state.
19
- * * Search :- Searches the TreeGrid records by given key.
20
- * * ExpandAll :- Expands all the rows in TreeGrid.
21
- * * CollapseAll :- Collapses all the rows in TreeGrid.
22
- * * ExcelExport :- Export the TreeGrid to Excel.
23
- * * PdfExport :- Export the TreeGrid to Pdf.
24
- * * CsvExport :- Export the TreeGrid to Csv.
25
- * * Print :- Print the TreeGrid.
26
- * ```
11
+ * Defines predefined toolbar items for TreeGrids.
12
+ * The available toolbar items are:
13
+ * * `Add`: Add a new record.
14
+ * * `Edit`: Edit the selected record.
15
+ * * `Update`: Update the edited record.
16
+ * * `Delete`: Delete the selected record.
17
+ * * `Cancel`: Cancel the current edit operation.
18
+ * * `Search`: Search TreeGrid records by a given key.
19
+ * * `ExpandAll`: Expand all the rows in the TreeGrid.
20
+ * * `CollapseAll`: Collapse all the rows in the TreeGrid.
21
+ * * `ExcelExport`: Export the TreeGrid as an Excel document.
22
+ * * `PdfExport`: Export the TreeGrid as a PDF document.
23
+ * * `CsvExport`: Export the TreeGrid as a CSV document.
24
+ * * `Print`: Print the TreeGrid contents.
27
25
  *
28
26
  * @hidden
29
27
  */
30
28
  export declare type ToolbarItems = 'Add' | 'Delete' | 'Update' | 'Cancel' | 'Edit' | 'Search' | 'ExpandAll' | 'CollapseAll' | 'ExcelExport' | 'PdfExport' | 'CsvExport' | 'Print';
31
29
  /**
32
- * Defines Predefined toolbar items.
30
+ * Defines enumerable toolbar items for programmatic access.
33
31
  *
34
32
  * @hidden
35
33
  */
@@ -50,38 +48,41 @@ export declare enum ToolbarItem {
50
48
  RowOutdent = 13
51
49
  }
52
50
  /**
53
- * Defines different PageSizeMode
54
- * ```props
55
- * * All :- Defines the pageSizeMode as All
56
- * * Root :- Defines the pageSizeMode as Root
57
- * ```
51
+ * Defines the available PageSizeMode options for pagination in a tree grid structure.
52
+ *
53
+ * The available page size modes are:
54
+ *
55
+ * * `All`: Considers all records, including both parent and child records, when calculating the number of records per page.
56
+ * * `Root`: Considers only root-level parent records, excluding child records, when calculating the number of records per page.
58
57
  */
59
58
  export declare type PageSizeMode = 'All' | 'Root';
60
59
  /**
61
- * Defines predefined contextmenu items.
62
- * ```props
63
- * * AutoFitAll :- Auto fit the size of all columns.
64
- * * AutoFit :- Auto fit the current column.
65
- * * SortAscending :- Sort the current column in ascending order.
66
- * * SortDescending :- Sort the current column in descending order.
67
- * * Edit :- Edit the current record.
68
- * * Delete :- Delete the current record.
69
- * * Save :- Save the edited record.
70
- * * Cancel :- Cancel the edited state.
71
- * * PdfExport :- Export the TreeGrid as Pdf format.
72
- * * ExcelExport :- Export the TreeGrid as Excel format.
73
- * * CsvExport :- Export the TreeGrid as CSV format.
74
- * * FirstPage :- Go to the first page.
75
- * * PrevPage :- Go to the previous page.
76
- * * LastPage :- Go to the last page.
77
- * * NextPage :- Go to the next page.
78
- * ```
60
+ * Defines predefined context menu items for row and column interactions.
61
+ * The available context menu items are:
62
+ * * `AutoFitAll`: Automatically fit the size of all columns.
63
+ * * `AutoFit`: Automatically fit the size of the current column.
64
+ * * `SortAscending`: Sort the current column in ascending order.
65
+ * * `SortDescending`: Sort the current column in descending order.
66
+ * * `Edit`: Edit the current record.
67
+ * * `Delete`: Delete the current record.
68
+ * * `Save`: Save the edited state.
69
+ * * `Cancel`: Cancel the current edit operation.
70
+ * * `PdfExport`: Export the TreeGrid as a PDF format.
71
+ * * `ExcelExport`: Export the TreeGrid as an Excel format.
72
+ * * `CsvExport`: Export the TreeGrid as a CSV format.
73
+ * * `FirstPage`: Navigate to the first page.
74
+ * * `PrevPage`: Navigate to the previous page.
75
+ * * `LastPage`: Navigate to the last page.
76
+ * * `NextPage`: Navigate to the next page.
77
+ * * `AddRow`: Add a new row.
78
+ * * `Indent`: Indent the selected rows.
79
+ * * `Outdent`: Outdent the selected rows.
79
80
  *
80
81
  * @hidden
81
82
  */
82
83
  export declare type ContextMenuItem = 'AutoFitAll' | 'AutoFit' | 'SortAscending' | 'SortDescending' | 'Edit' | 'Delete' | 'Save' | 'Cancel' | 'PdfExport' | 'ExcelExport' | 'CsvExport' | 'FirstPage' | 'PrevPage' | 'LastPage' | 'NextPage' | 'AddRow' | 'Indent' | 'Outdent';
83
84
  /**
84
- * Defines predefined contextmenu items.
85
+ * Enumerates detailed context menu items used for menu configurations.
85
86
  *
86
87
  * @hidden
87
88
  */
@@ -106,50 +107,46 @@ export declare enum ContextMenuItems {
106
107
  RowOutdent = 17
107
108
  }
108
109
  /**
109
- * Defines modes of editing.
110
- * ```props
111
- * * Cell :- Defines the editing mode as Cell.
112
- * * Row :- Defines the editing mode as Row.
113
- * * Dialog :- Defines the editing mode as Dialog.
114
- * * Batch :- Defines the editing mode as Batch.
115
- * ```
110
+ * Defines modes of editing supported by TreeGrids.
111
+ * The available editing modes are:
112
+ * * `Cell`: Enables cell editing mode.
113
+ * * `Row`: Enables row editing mode.
114
+ * * `Dialog`: Opens a dialog for editing.
115
+ * * `Batch`: Allows for batch editing of multiple records.
116
116
  */
117
117
  export declare type EditMode = 'Cell' | 'Row' | 'Dialog' | 'Batch';
118
118
  /**
119
- * Defines the position where the new row has to be added.
120
- * ```props
121
- * * Top :- Defines new row position as top of all rows.
122
- * * Bottom :- Defines new row position as bottom of all rows.
123
- * * Above :- Defines new row position as above the selected row.
124
- * * Below :- Defines new row position as below the selected row.
125
- * * Child :- Defines new row position as child to the selected row.
126
- * ```
119
+ * Defines the target position for adding new rows in the TreeGrid.
120
+ * The available positions are:
121
+ * * `Top`: Adds a new row at the top of all rows.
122
+ * * `Bottom`: Adds a new row at the bottom of all rows.
123
+ * * `Above`: Adds a new row above the currently selected row.
124
+ * * `Below`: Adds a new row below the currently selected row.
125
+ * * `Child`: Adds a new row as a child to the currently selected row.
127
126
  */
128
127
  export declare type RowPosition = 'Top' | 'Bottom' | 'Above' | 'Below' | 'Child';
129
128
  /**
130
- * Defines types of Filter
131
- * ```props
132
- * * Menu :- Defines the filter type as Menu.
133
- * * Excel :- Defines the filter type as Excel.
134
- * * FilterBar :- Defines the filter type as FilterBar.
135
- * ```
129
+ * Defines types of filters available in TreeGrids.
130
+ * The available filter types are:
131
+ * * `Menu`: Applies a dialog-based filtering option, where users can select operators such as 'equals', 'contains', etc., and enter filter values for more granular control.
132
+ * * `Excel`: Provides Excel-like filtering capabilities.
133
+ * * `FilterBar`: Uses a filter bar at the top of each column.
136
134
  */
137
135
  export declare type FilterType = 'FilterBar' | 'Excel' | 'Menu';
138
136
  /**
139
- * Defines the wrap mode.
140
- * ```props
141
- * * Both :- Wraps both header and content.
142
- * * Header :- Wraps header alone.
143
- * * Content :- Wraps content alone.
137
+ * Defines wrapping modes for column content in TreeGrids.
138
+ * The available wrap modes are:
139
+ * * `Both`: Wraps both header and content.
140
+ * * `Header`: Wraps only the header.
141
+ * * `Content`: Wraps only the content.
144
142
  */
145
143
  export declare type WrapMode = 'Both' | 'Header' | 'Content';
146
144
  /**
147
- * Defines types of CopyHierarchyMode. They are
148
- * ```props
149
- * * Parent :- Defines CopyHiearchyMode as Parent.
150
- * * Child :- Defines CopyHiearchyMode as Child.
151
- * * Both :- Defines CopyHiearchyMode as Both.
152
- * * None :- Defines CopyHiearchyMode as None.
153
- * ```
145
+ * Defines the types of CopyHierarchyMode for grid data.
146
+ * The available copy hierarchy types are:
147
+ * * `Parent`: Copies data maintaining only parent hierarchy.
148
+ * * `Child`: Copies data with child hierarchy.
149
+ * * `Both`: Maintains both parent and child hierarchy during copy.
150
+ * * `None`: Copies data without any hierarchy structure.
154
151
  */
155
152
  export declare type CopyHierarchyType = 'Parent' | 'Child' | 'Both' | 'None';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Defines Predefined toolbar items.
2
+ * Defines enumerable toolbar items for programmatic access.
3
3
  *
4
4
  * @hidden
5
5
  */
@@ -21,7 +21,7 @@ export var ToolbarItem;
21
21
  ToolbarItem[ToolbarItem["RowOutdent"] = 13] = "RowOutdent";
22
22
  })(ToolbarItem || (ToolbarItem = {}));
23
23
  /**
24
- * Defines predefined contextmenu items.
24
+ * Enumerates detailed context menu items used for menu configurations.
25
25
  *
26
26
  * @hidden
27
27
  */