@syncfusion/ej2-treegrid 30.2.4 → 31.1.17

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 (148) hide show
  1. package/dist/ej2-treegrid.min.js +2 -2
  2. package/dist/ej2-treegrid.umd.min.js +2 -2
  3. package/dist/ej2-treegrid.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-treegrid.es2015.js +263 -157
  5. package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
  6. package/dist/es6/ej2-treegrid.es5.js +291 -167
  7. package/dist/es6/ej2-treegrid.es5.js.map +1 -1
  8. package/dist/global/ej2-treegrid.min.js +2 -2
  9. package/dist/global/ej2-treegrid.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/dist/ts/index.d.ts +4 -0
  12. package/dist/ts/index.ts +4 -0
  13. package/dist/ts/treegrid/actions/batch-edit.d.ts +74 -0
  14. package/dist/ts/treegrid/actions/batch-edit.ts +627 -0
  15. package/dist/ts/treegrid/actions/clipboard.d.ts +36 -0
  16. package/dist/ts/treegrid/actions/clipboard.ts +174 -0
  17. package/dist/ts/treegrid/actions/column-chooser.d.ts +37 -0
  18. package/dist/ts/treegrid/actions/column-chooser.ts +55 -0
  19. package/dist/ts/treegrid/actions/column-menu.d.ts +24 -0
  20. package/dist/ts/treegrid/actions/column-menu.ts +39 -0
  21. package/dist/ts/treegrid/actions/command-column.d.ts +24 -0
  22. package/dist/ts/treegrid/actions/command-column.ts +32 -0
  23. package/dist/ts/treegrid/actions/context-menu.d.ts +42 -0
  24. package/dist/ts/treegrid/actions/context-menu.ts +149 -0
  25. package/dist/ts/treegrid/actions/crud-actions.d.ts +66 -0
  26. package/dist/ts/treegrid/actions/crud-actions.ts +388 -0
  27. package/dist/ts/treegrid/actions/detail-row.d.ts +39 -0
  28. package/dist/ts/treegrid/actions/detail-row.ts +124 -0
  29. package/dist/ts/treegrid/actions/edit.d.ts +121 -0
  30. package/dist/ts/treegrid/actions/edit.ts +1083 -0
  31. package/dist/ts/treegrid/actions/excel-export.d.ts +67 -0
  32. package/dist/ts/treegrid/actions/excel-export.ts +240 -0
  33. package/dist/ts/treegrid/actions/filter.d.ts +57 -0
  34. package/dist/ts/treegrid/actions/filter.ts +231 -0
  35. package/dist/ts/treegrid/actions/freeze-column.d.ts +28 -0
  36. package/dist/ts/treegrid/actions/freeze-column.ts +119 -0
  37. package/dist/ts/treegrid/actions/index.d.ts +24 -0
  38. package/dist/ts/treegrid/actions/index.ts +24 -0
  39. package/dist/ts/treegrid/actions/infinite-scroll.d.ts +96 -0
  40. package/dist/ts/treegrid/actions/infinite-scroll.ts +320 -0
  41. package/dist/ts/treegrid/actions/logger.d.ts +25 -0
  42. package/dist/ts/treegrid/actions/logger.ts +136 -0
  43. package/dist/ts/treegrid/actions/page.d.ts +67 -0
  44. package/dist/ts/treegrid/actions/page.ts +212 -0
  45. package/dist/ts/treegrid/actions/pdf-export.d.ts +63 -0
  46. package/dist/ts/treegrid/actions/pdf-export.ts +182 -0
  47. package/dist/ts/treegrid/actions/print.d.ts +37 -0
  48. package/dist/ts/treegrid/actions/print.ts +69 -0
  49. package/dist/ts/treegrid/actions/reorder.d.ts +36 -0
  50. package/dist/ts/treegrid/actions/reorder.ts +60 -0
  51. package/dist/ts/treegrid/actions/resize.d.ts +36 -0
  52. package/dist/ts/treegrid/actions/resize.ts +54 -0
  53. package/dist/ts/treegrid/actions/rowdragdrop.d.ts +405 -0
  54. package/dist/ts/treegrid/actions/rowdragdrop.ts +1896 -0
  55. package/dist/ts/treegrid/actions/selection.d.ts +51 -0
  56. package/dist/ts/treegrid/actions/selection.ts +530 -0
  57. package/dist/ts/treegrid/actions/sort.d.ts +63 -0
  58. package/dist/ts/treegrid/actions/sort.ts +149 -0
  59. package/dist/ts/treegrid/actions/summary.d.ts +47 -0
  60. package/dist/ts/treegrid/actions/summary.ts +231 -0
  61. package/dist/ts/treegrid/actions/toolbar.d.ts +52 -0
  62. package/dist/ts/treegrid/actions/toolbar.ts +154 -0
  63. package/dist/ts/treegrid/actions/virtual-scroll.d.ts +90 -0
  64. package/dist/ts/treegrid/actions/virtual-scroll.ts +306 -0
  65. package/dist/ts/treegrid/base/constant.d.ts +158 -0
  66. package/dist/ts/treegrid/base/constant.ts +158 -0
  67. package/dist/ts/treegrid/base/data.d.ts +90 -0
  68. package/dist/ts/treegrid/base/data.ts +904 -0
  69. package/dist/ts/treegrid/base/index.d.ts +11 -0
  70. package/dist/ts/treegrid/base/index.ts +11 -0
  71. package/dist/ts/treegrid/base/interface.d.ts +186 -0
  72. package/dist/ts/treegrid/base/interface.ts +191 -0
  73. package/dist/ts/treegrid/base/treegrid-model.d.ts +1100 -0
  74. package/dist/ts/treegrid/base/treegrid.d.ts +2422 -0
  75. package/dist/ts/treegrid/base/treegrid.ts +5962 -0
  76. package/dist/ts/treegrid/enum.d.ts +152 -0
  77. package/dist/ts/treegrid/enum.ts +217 -0
  78. package/dist/ts/treegrid/index.d.ts +9 -0
  79. package/dist/ts/treegrid/index.ts +9 -0
  80. package/dist/ts/treegrid/models/column-chooser-settings-model.d.ts +62 -0
  81. package/dist/ts/treegrid/models/column-chooser-settings.d.ts +53 -0
  82. package/dist/ts/treegrid/models/column-chooser-settings.ts +67 -0
  83. package/dist/ts/treegrid/models/column-model.d.ts +30 -0
  84. package/dist/ts/treegrid/models/column.d.ts +697 -0
  85. package/dist/ts/treegrid/models/column.ts +800 -0
  86. package/dist/ts/treegrid/models/edit-settings-model.d.ts +100 -0
  87. package/dist/ts/treegrid/models/edit-settings.d.ts +89 -0
  88. package/dist/ts/treegrid/models/edit-settings.ts +111 -0
  89. package/dist/ts/treegrid/models/filter-settings-model.d.ts +216 -0
  90. package/dist/ts/treegrid/models/filter-settings.d.ts +195 -0
  91. package/dist/ts/treegrid/models/filter-settings.ts +237 -0
  92. package/dist/ts/treegrid/models/index.d.ts +24 -0
  93. package/dist/ts/treegrid/models/index.ts +24 -0
  94. package/dist/ts/treegrid/models/infinite-scroll-settings-model.d.ts +29 -0
  95. package/dist/ts/treegrid/models/infinite-scroll-settings.d.ts +25 -0
  96. package/dist/ts/treegrid/models/infinite-scroll-settings.ts +31 -0
  97. package/dist/ts/treegrid/models/loading-indicator-model.d.ts +21 -0
  98. package/dist/ts/treegrid/models/loading-indicator.d.ts +19 -0
  99. package/dist/ts/treegrid/models/loading-indicator.ts +21 -0
  100. package/dist/ts/treegrid/models/page-settings-model.d.ts +66 -0
  101. package/dist/ts/treegrid/models/page-settings.d.ts +57 -0
  102. package/dist/ts/treegrid/models/page-settings.ts +73 -0
  103. package/dist/ts/treegrid/models/rowdrop-settings-model.d.ts +15 -0
  104. package/dist/ts/treegrid/models/rowdrop-settings.d.ts +34 -0
  105. package/dist/ts/treegrid/models/rowdrop-settings.ts +37 -0
  106. package/dist/ts/treegrid/models/search-settings-model.d.ts +79 -0
  107. package/dist/ts/treegrid/models/search-settings.d.ts +73 -0
  108. package/dist/ts/treegrid/models/search-settings.ts +83 -0
  109. package/dist/ts/treegrid/models/selection-settings-model.d.ts +76 -0
  110. package/dist/ts/treegrid/models/selection-settings.d.ts +68 -0
  111. package/dist/ts/treegrid/models/selection-settings.ts +82 -0
  112. package/dist/ts/treegrid/models/sort-settings-model.d.ts +49 -0
  113. package/dist/ts/treegrid/models/sort-settings.d.ts +43 -0
  114. package/dist/ts/treegrid/models/sort-settings.ts +51 -0
  115. package/dist/ts/treegrid/models/summary-model.d.ts +93 -0
  116. package/dist/ts/treegrid/models/summary.d.ts +126 -0
  117. package/dist/ts/treegrid/models/summary.ts +170 -0
  118. package/dist/ts/treegrid/models/textwrap-settings-model.d.ts +21 -0
  119. package/dist/ts/treegrid/models/textwrap-settings.d.ts +19 -0
  120. package/dist/ts/treegrid/models/textwrap-settings.ts +21 -0
  121. package/dist/ts/treegrid/renderer/index.d.ts +5 -0
  122. package/dist/ts/treegrid/renderer/index.ts +5 -0
  123. package/dist/ts/treegrid/renderer/render.d.ts +41 -0
  124. package/dist/ts/treegrid/renderer/render.ts +379 -0
  125. package/dist/ts/treegrid/renderer/virtual-row-model-generator.d.ts +16 -0
  126. package/dist/ts/treegrid/renderer/virtual-row-model-generator.ts +90 -0
  127. package/dist/ts/treegrid/renderer/virtual-tree-content-render.d.ts +353 -0
  128. package/dist/ts/treegrid/renderer/virtual-tree-content-render.ts +1125 -0
  129. package/dist/ts/treegrid/utils.d.ts +70 -0
  130. package/dist/ts/treegrid/utils.ts +217 -0
  131. package/package.json +51 -15
  132. package/src/treegrid/actions/context-menu.js +3 -1
  133. package/src/treegrid/actions/excel-export.d.ts +8 -0
  134. package/src/treegrid/actions/excel-export.js +12 -0
  135. package/src/treegrid/actions/freeze-column.js +1 -1
  136. package/src/treegrid/actions/pdf-export.d.ts +8 -0
  137. package/src/treegrid/actions/pdf-export.js +12 -0
  138. package/src/treegrid/actions/selection.js +1 -1
  139. package/src/treegrid/actions/virtual-scroll.js +2 -2
  140. package/src/treegrid/base/data.js +1 -1
  141. package/src/treegrid/base/treegrid-model.d.ts +32 -2
  142. package/src/treegrid/base/treegrid.d.ts +29 -2
  143. package/src/treegrid/base/treegrid.js +39 -2
  144. package/src/treegrid/models/column-chooser-settings-model.d.ts +62 -0
  145. package/src/treegrid/models/column-chooser-settings.d.ts +53 -0
  146. package/src/treegrid/models/column-chooser-settings.js +52 -0
  147. package/src/treegrid/renderer/virtual-tree-content-render.js +3 -8
  148. package/src/treegrid/utils.js +22 -6
@@ -0,0 +1,152 @@
1
+ /**
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.
8
+ */
9
+ export declare type FilterHierarchyMode = 'Parent' | 'Child' | 'Both' | 'None';
10
+ /**
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.
25
+ *
26
+ * @hidden
27
+ */
28
+ export declare type ToolbarItems = 'Add' | 'Delete' | 'Update' | 'Cancel' | 'Edit' | 'Search' | 'ExpandAll' | 'CollapseAll' | 'ExcelExport' | 'PdfExport' | 'CsvExport' | 'Print';
29
+ /**
30
+ * Defines enumerable toolbar items for programmatic access.
31
+ *
32
+ * @hidden
33
+ */
34
+ export declare enum ToolbarItem {
35
+ Add = 0,
36
+ Edit = 1,
37
+ Update = 2,
38
+ Delete = 3,
39
+ Cancel = 4,
40
+ Search = 5,
41
+ ExpandAll = 6,
42
+ CollapseAll = 7,
43
+ ExcelExport = 8,
44
+ PdfExport = 9,
45
+ CsvExport = 10,
46
+ Print = 11,
47
+ RowIndent = 12,
48
+ RowOutdent = 13
49
+ }
50
+ /**
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.
57
+ */
58
+ export declare type PageSizeMode = 'All' | 'Root';
59
+ /**
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.
80
+ *
81
+ * @hidden
82
+ */
83
+ export declare type ContextMenuItem = 'AutoFitAll' | 'AutoFit' | 'SortAscending' | 'SortDescending' | 'Edit' | 'Delete' | 'Save' | 'Cancel' | 'PdfExport' | 'ExcelExport' | 'CsvExport' | 'FirstPage' | 'PrevPage' | 'LastPage' | 'NextPage' | 'AddRow' | 'Indent' | 'Outdent';
84
+ /**
85
+ * Enumerates detailed context menu items used for menu configurations.
86
+ *
87
+ * @hidden
88
+ */
89
+ export declare enum ContextMenuItems {
90
+ AutoFit = 0,
91
+ AutoFitAll = 1,
92
+ SortAscending = 2,
93
+ SortDescending = 3,
94
+ Edit = 4,
95
+ Delete = 5,
96
+ Save = 6,
97
+ Cancel = 7,
98
+ PdfExport = 8,
99
+ ExcelExport = 9,
100
+ CsvExport = 10,
101
+ FirstPage = 11,
102
+ PrevPage = 12,
103
+ LastPage = 13,
104
+ NextPage = 14,
105
+ AddRow = 15,
106
+ RowIndent = 16,
107
+ RowOutdent = 17
108
+ }
109
+ /**
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
+ */
117
+ export declare type EditMode = 'Cell' | 'Row' | 'Dialog' | 'Batch';
118
+ /**
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.
126
+ */
127
+ export declare type RowPosition = 'Top' | 'Bottom' | 'Above' | 'Below' | 'Child';
128
+ /**
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.
134
+ */
135
+ export declare type FilterType = 'FilterBar' | 'Excel' | 'Menu';
136
+ /**
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.
142
+ */
143
+ export declare type WrapMode = 'Both' | 'Header' | 'Content';
144
+ /**
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.
151
+ */
152
+ export declare type CopyHierarchyType = 'Parent' | 'Child' | 'Both' | 'None';
@@ -0,0 +1,217 @@
1
+ /**
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.
8
+ */
9
+ export type FilterHierarchyMode =
10
+ 'Parent' |
11
+ 'Child' |
12
+ 'Both' |
13
+ 'None';
14
+
15
+ /**
16
+ * Defines predefined toolbar items for TreeGrids.
17
+ * The available toolbar items are:
18
+ * * `Add`: Add a new record.
19
+ * * `Edit`: Edit the selected record.
20
+ * * `Update`: Update the edited record.
21
+ * * `Delete`: Delete the selected record.
22
+ * * `Cancel`: Cancel the current edit operation.
23
+ * * `Search`: Search TreeGrid records by a given key.
24
+ * * `ExpandAll`: Expand all the rows in the TreeGrid.
25
+ * * `CollapseAll`: Collapse all the rows in the TreeGrid.
26
+ * * `ExcelExport`: Export the TreeGrid as an Excel document.
27
+ * * `PdfExport`: Export the TreeGrid as a PDF document.
28
+ * * `CsvExport`: Export the TreeGrid as a CSV document.
29
+ * * `Print`: Print the TreeGrid contents.
30
+ *
31
+ * @hidden
32
+ */
33
+ export type ToolbarItems =
34
+ 'Add' |
35
+ 'Delete' |
36
+ 'Update' |
37
+ 'Cancel' |
38
+ 'Edit' |
39
+ 'Search' |
40
+ 'ExpandAll' |
41
+ 'CollapseAll' |
42
+ 'ExcelExport' |
43
+ 'PdfExport' |
44
+ 'CsvExport' |
45
+ 'Print';
46
+
47
+ /**
48
+ * Defines enumerable toolbar items for programmatic access.
49
+ *
50
+ * @hidden
51
+ */
52
+ export enum ToolbarItem {
53
+ Add,
54
+ Edit,
55
+ Update,
56
+ Delete,
57
+ Cancel,
58
+ Search,
59
+ ExpandAll,
60
+ CollapseAll,
61
+ ExcelExport,
62
+ PdfExport,
63
+ CsvExport,
64
+ Print,
65
+ RowIndent,
66
+ RowOutdent
67
+ }
68
+
69
+ /**
70
+ * Defines the available PageSizeMode options for pagination in a tree grid structure.
71
+ *
72
+ * The available page size modes are:
73
+ *
74
+ * * `All`: Considers all records, including both parent and child records, when calculating the number of records per page.
75
+ * * `Root`: Considers only root-level parent records, excluding child records, when calculating the number of records per page.
76
+ */
77
+ export type PageSizeMode =
78
+ 'All' |
79
+ 'Root';
80
+
81
+ /**
82
+ * Defines predefined context menu items for row and column interactions.
83
+ * The available context menu items are:
84
+ * * `AutoFitAll`: Automatically fit the size of all columns.
85
+ * * `AutoFit`: Automatically fit the size of the current column.
86
+ * * `SortAscending`: Sort the current column in ascending order.
87
+ * * `SortDescending`: Sort the current column in descending order.
88
+ * * `Edit`: Edit the current record.
89
+ * * `Delete`: Delete the current record.
90
+ * * `Save`: Save the edited state.
91
+ * * `Cancel`: Cancel the current edit operation.
92
+ * * `PdfExport`: Export the TreeGrid as a PDF format.
93
+ * * `ExcelExport`: Export the TreeGrid as an Excel format.
94
+ * * `CsvExport`: Export the TreeGrid as a CSV format.
95
+ * * `FirstPage`: Navigate to the first page.
96
+ * * `PrevPage`: Navigate to the previous page.
97
+ * * `LastPage`: Navigate to the last page.
98
+ * * `NextPage`: Navigate to the next page.
99
+ * * `AddRow`: Add a new row.
100
+ * * `Indent`: Indent the selected rows.
101
+ * * `Outdent`: Outdent the selected rows.
102
+ *
103
+ * @hidden
104
+ */
105
+ export type ContextMenuItem =
106
+ 'AutoFitAll' |
107
+ 'AutoFit' |
108
+ 'SortAscending' |
109
+ 'SortDescending' |
110
+ 'Edit' |
111
+ 'Delete' |
112
+ 'Save' |
113
+ 'Cancel' |
114
+ 'PdfExport' |
115
+ 'ExcelExport' |
116
+ 'CsvExport' |
117
+ 'FirstPage' |
118
+ 'PrevPage' |
119
+ 'LastPage' |
120
+ 'NextPage' |
121
+ 'AddRow' |
122
+ 'Indent' |
123
+ 'Outdent';
124
+
125
+ /**
126
+ * Enumerates detailed context menu items used for menu configurations.
127
+ *
128
+ * @hidden
129
+ */
130
+ export enum ContextMenuItems {
131
+ AutoFit,
132
+ AutoFitAll,
133
+ SortAscending,
134
+ SortDescending,
135
+ Edit,
136
+ Delete,
137
+ Save,
138
+ Cancel,
139
+ PdfExport,
140
+ ExcelExport,
141
+ CsvExport,
142
+ FirstPage,
143
+ PrevPage,
144
+ LastPage,
145
+ NextPage,
146
+ AddRow,
147
+ RowIndent,
148
+ RowOutdent
149
+ }
150
+
151
+ /**
152
+ * Defines modes of editing supported by TreeGrids.
153
+ * The available editing modes are:
154
+ * * `Cell`: Enables cell editing mode.
155
+ * * `Row`: Enables row editing mode.
156
+ * * `Dialog`: Opens a dialog for editing.
157
+ * * `Batch`: Allows for batch editing of multiple records.
158
+ */
159
+ export type EditMode =
160
+ 'Cell' |
161
+ 'Row' |
162
+ 'Dialog' |
163
+ 'Batch';
164
+
165
+ /**
166
+ * Defines the target position for adding new rows in the TreeGrid.
167
+ * The available positions are:
168
+ * * `Top`: Adds a new row at the top of all rows.
169
+ * * `Bottom`: Adds a new row at the bottom of all rows.
170
+ * * `Above`: Adds a new row above the currently selected row.
171
+ * * `Below`: Adds a new row below the currently selected row.
172
+ * * `Child`: Adds a new row as a child to the currently selected row.
173
+ */
174
+ export type RowPosition =
175
+ 'Top' |
176
+ 'Bottom' |
177
+ 'Above' |
178
+ 'Below' |
179
+ 'Child';
180
+
181
+ /**
182
+ * Defines types of filters available in TreeGrids.
183
+ * The available filter types are:
184
+ * * `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.
185
+ * * `Excel`: Provides Excel-like filtering capabilities.
186
+ * * `FilterBar`: Uses a filter bar at the top of each column.
187
+ */
188
+ export type FilterType =
189
+ 'FilterBar' |
190
+ 'Excel' |
191
+ 'Menu';
192
+
193
+ /**
194
+ * Defines wrapping modes for column content in TreeGrids.
195
+ * The available wrap modes are:
196
+ * * `Both`: Wraps both header and content.
197
+ * * `Header`: Wraps only the header.
198
+ * * `Content`: Wraps only the content.
199
+ */
200
+ export type WrapMode =
201
+ 'Both' |
202
+ 'Header' |
203
+ 'Content';
204
+
205
+ /**
206
+ * Defines the types of CopyHierarchyMode for grid data.
207
+ * The available copy hierarchy types are:
208
+ * * `Parent`: Copies data maintaining only parent hierarchy.
209
+ * * `Child`: Copies data with child hierarchy.
210
+ * * `Both`: Maintains both parent and child hierarchy during copy.
211
+ * * `None`: Copies data without any hierarchy structure.
212
+ */
213
+ export declare type CopyHierarchyType =
214
+ 'Parent' |
215
+ 'Child' |
216
+ 'Both' |
217
+ 'None';
@@ -0,0 +1,9 @@
1
+ /**
2
+ * TreeGrid component exported items
3
+ */
4
+ export * from './base';
5
+ export * from './models';
6
+ export * from './renderer';
7
+ export * from './utils';
8
+ export * from './enum';
9
+ export * from './actions';
@@ -0,0 +1,9 @@
1
+ /**
2
+ * TreeGrid component exported items
3
+ */
4
+ export * from './base';
5
+ export * from './models';
6
+ export * from './renderer';
7
+ export * from './utils';
8
+ export * from './enum';
9
+ export * from './actions';
@@ -0,0 +1,62 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
+
3
+ /**
4
+ * Interface for a class ColumnChooserSettings
5
+ */
6
+ export interface ColumnChooserSettingsModel {
7
+
8
+ /**
9
+ * Defines the search operator for column chooser.
10
+ *
11
+ * @default 'startsWith'
12
+ * @blazorType Syncfusion.Blazor.Operator
13
+ * @blazorDefaultValue Syncfusion.Blazor.Operator.StartsWith
14
+ */
15
+ operator?: string;
16
+
17
+ /**
18
+ * If ignoreAccent set to true, then ignores the diacritic characters or accents while searching in column chooser dialog.
19
+ *
20
+ * @default false
21
+ */
22
+ ignoreAccent?: boolean;
23
+
24
+ /**
25
+ * Defines the custom header elements for the column chooser header template.
26
+ *
27
+ * @default null
28
+ * @aspType string
29
+ */
30
+ headerTemplate?: string | Function;
31
+
32
+ /**
33
+ * Defines the custom content elements for the column chooser content template.
34
+ *
35
+ * @default null
36
+ * @aspType string
37
+ */
38
+ template?: string | Function;
39
+
40
+ /**
41
+ * Defines the custom footer elements for the column chooser footer template.
42
+ *
43
+ * @default null
44
+ * @aspType string
45
+ */
46
+ footerTemplate?: string | Function;
47
+
48
+ /**
49
+ * Enables or disables the search option in the column chooser.
50
+ *
51
+ * @default true
52
+ */
53
+ enableSearching?: boolean;
54
+
55
+ /**
56
+ * Renders a custom component to replace or extend the default column chooser UI.
57
+ * @param target - The target HTML element where the custom component will be appended in the column chooser dialog.
58
+ * @aspType string
59
+ */
60
+ renderCustomColumnChooser?: string | Function;
61
+
62
+ }
@@ -0,0 +1,53 @@
1
+ import { ChildProperty } from '@syncfusion/ej2-base';
2
+ /**
3
+ * Configures the column chooser behavior of the Grid.
4
+ */
5
+ export declare class ColumnChooserSettings extends ChildProperty<ColumnChooserSettings> {
6
+ /**
7
+ * Defines the search operator for column chooser.
8
+ *
9
+ * @default 'startsWith'
10
+ * @blazorType Syncfusion.Blazor.Operator
11
+ * @blazorDefaultValue Syncfusion.Blazor.Operator.StartsWith
12
+ */
13
+ operator: string;
14
+ /**
15
+ * If ignoreAccent set to true, then ignores the diacritic characters or accents while searching in column chooser dialog.
16
+ *
17
+ * @default false
18
+ */
19
+ ignoreAccent: boolean;
20
+ /**
21
+ * Defines the custom header elements for the column chooser header template.
22
+ *
23
+ * @default null
24
+ * @aspType string
25
+ */
26
+ headerTemplate: string | Function;
27
+ /**
28
+ * Defines the custom content elements for the column chooser content template.
29
+ *
30
+ * @default null
31
+ * @aspType string
32
+ */
33
+ template: string | Function;
34
+ /**
35
+ * Defines the custom footer elements for the column chooser footer template.
36
+ *
37
+ * @default null
38
+ * @aspType string
39
+ */
40
+ footerTemplate: string | Function;
41
+ /**
42
+ * Enables or disables the search option in the column chooser.
43
+ *
44
+ * @default true
45
+ */
46
+ enableSearching: boolean;
47
+ /**
48
+ * Renders a custom component to replace or extend the default column chooser UI.
49
+ * @param target - The target HTML element where the custom component will be appended in the column chooser dialog.
50
+ * @aspType string
51
+ */
52
+ renderCustomColumnChooser: string | Function;
53
+ }
@@ -0,0 +1,67 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
+
3
+ /**
4
+ * Configures the column chooser behavior of the Grid.
5
+ */
6
+ export class ColumnChooserSettings extends ChildProperty<ColumnChooserSettings> {
7
+ /**
8
+ * Defines the search operator for column chooser.
9
+ *
10
+ * @default 'startsWith'
11
+ * @blazorType Syncfusion.Blazor.Operator
12
+ * @blazorDefaultValue Syncfusion.Blazor.Operator.StartsWith
13
+ */
14
+ @Property('startsWith')
15
+ public operator: string;
16
+
17
+ /**
18
+ * If ignoreAccent set to true, then ignores the diacritic characters or accents while searching in column chooser dialog.
19
+ *
20
+ * @default false
21
+ */
22
+ @Property(false)
23
+ public ignoreAccent: boolean;
24
+
25
+ /**
26
+ * Defines the custom header elements for the column chooser header template.
27
+ *
28
+ * @default null
29
+ * @aspType string
30
+ */
31
+ @Property(null)
32
+ public headerTemplate: string | Function;
33
+
34
+ /**
35
+ * Defines the custom content elements for the column chooser content template.
36
+ *
37
+ * @default null
38
+ * @aspType string
39
+ */
40
+ @Property(null)
41
+ public template: string | Function;
42
+
43
+ /**
44
+ * Defines the custom footer elements for the column chooser footer template.
45
+ *
46
+ * @default null
47
+ * @aspType string
48
+ */
49
+ @Property(null)
50
+ public footerTemplate: string | Function;
51
+
52
+ /**
53
+ * Enables or disables the search option in the column chooser.
54
+ *
55
+ * @default true
56
+ */
57
+ @Property(true)
58
+ public enableSearching: boolean;
59
+
60
+ /**
61
+ * Renders a custom component to replace or extend the default column chooser UI.
62
+ * @param target - The target HTML element where the custom component will be appended in the column chooser dialog.
63
+ * @aspType string
64
+ */
65
+ @Property(null)
66
+ public renderCustomColumnChooser: string | Function;
67
+ }
@@ -0,0 +1,30 @@
1
+ import { TextAlign, ClipMode, ValueAccessor, IFilter, IFilterUI, IEditCell, CommandModel, freezeDirection } from '@syncfusion/ej2-grids';import { NumberFormatOptions, DateFormatOptions, merge, Property } from '@syncfusion/ej2-base';import { ITreeGridCellFormatter } from '../base/interface';import { SortComparer} from '@syncfusion/ej2-grids';import { TreeGrid } from '..';
2
+ import {ColumnModel} from "./column";
3
+
4
+ /**
5
+ * Interface for a class Column
6
+ */
7
+ export interface ColumnModel {
8
+
9
+ }
10
+
11
+ /**
12
+ * Interface for a class TreeGridColumn
13
+ */
14
+ export interface TreeGridColumnModel extends ColumnModel{
15
+
16
+ /**
17
+ * Defines stacked columns
18
+ *
19
+ * @default null
20
+ */
21
+ columns?: string[] | ColumnModel[];
22
+
23
+ }
24
+
25
+ /**
26
+ * Interface for a class StackedColumn
27
+ */
28
+ export interface StackedColumnModel extends TreeGridColumnModel{
29
+
30
+ }