@syncfusion/ej2-treegrid 28.2.6 → 29.1.37
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.
- package/README.md +2 -2
- package/dist/ej2-treegrid.min.js +2 -2
- package/dist/ej2-treegrid.umd.min.js +2 -2
- package/dist/ej2-treegrid.umd.min.js.map +1 -1
- package/dist/es6/ej2-treegrid.es2015.js +1281 -519
- package/dist/es6/ej2-treegrid.es2015.js.map +1 -1
- package/dist/es6/ej2-treegrid.es5.js +1283 -519
- package/dist/es6/ej2-treegrid.es5.js.map +1 -1
- package/dist/global/ej2-treegrid.min.js +2 -2
- package/dist/global/ej2-treegrid.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +10 -10
- package/src/treegrid/actions/batch-edit.js +12 -5
- package/src/treegrid/actions/edit.js +12 -12
- package/src/treegrid/actions/page.js +1 -1
- package/src/treegrid/actions/rowdragdrop.d.ts +21 -1
- package/src/treegrid/actions/rowdragdrop.js +252 -48
- package/src/treegrid/actions/summary.js +1 -1
- package/src/treegrid/actions/virtual-scroll.d.ts +34 -1
- package/src/treegrid/actions/virtual-scroll.js +58 -11
- package/src/treegrid/base/constant.d.ts +0 -4
- package/src/treegrid/base/constant.js +0 -4
- package/src/treegrid/base/data.js +47 -46
- package/src/treegrid/base/treegrid-model.d.ts +195 -208
- package/src/treegrid/base/treegrid.d.ts +598 -411
- package/src/treegrid/base/treegrid.js +526 -307
- package/src/treegrid/enum.d.ts +77 -80
- package/src/treegrid/enum.js +2 -2
- package/src/treegrid/models/column.d.ts +122 -177
- package/src/treegrid/models/column.js +14 -26
- package/src/treegrid/models/edit-settings-model.d.ts +24 -25
- package/src/treegrid/models/edit-settings.d.ts +25 -26
- package/src/treegrid/models/edit-settings.js +1 -1
- package/src/treegrid/models/filter-settings-model.d.ts +41 -49
- package/src/treegrid/models/filter-settings.d.ts +43 -51
- package/src/treegrid/models/filter-settings.js +2 -2
- package/src/treegrid/models/infinite-scroll-settings-model.d.ts +4 -4
- package/src/treegrid/models/infinite-scroll-settings.d.ts +4 -4
- package/src/treegrid/models/infinite-scroll-settings.js +1 -1
- package/src/treegrid/models/loading-indicator-model.d.ts +3 -4
- package/src/treegrid/models/loading-indicator.d.ts +4 -4
- package/src/treegrid/models/loading-indicator.js +1 -1
- package/src/treegrid/models/page-settings-model.d.ts +10 -13
- package/src/treegrid/models/page-settings.d.ts +11 -14
- package/src/treegrid/models/page-settings.js +1 -1
- package/src/treegrid/models/rowdrop-settings-model.d.ts +1 -1
- package/src/treegrid/models/rowdrop-settings.d.ts +13 -6
- package/src/treegrid/models/rowdrop-settings.js +1 -1
- package/src/treegrid/models/search-settings-model.d.ts +13 -11
- package/src/treegrid/models/search-settings.d.ts +14 -12
- package/src/treegrid/models/search-settings.js +1 -1
- package/src/treegrid/models/selection-settings-model.d.ts +18 -29
- package/src/treegrid/models/selection-settings.d.ts +18 -29
- package/src/treegrid/models/sort-settings-model.d.ts +8 -5
- package/src/treegrid/models/sort-settings.d.ts +10 -7
- package/src/treegrid/models/sort-settings.js +2 -2
- package/src/treegrid/models/summary-model.d.ts +28 -29
- package/src/treegrid/models/summary.d.ts +32 -30
- package/src/treegrid/models/summary.js +4 -1
- package/src/treegrid/models/textwrap-settings-model.d.ts +7 -4
- package/src/treegrid/models/textwrap-settings.d.ts +8 -5
- package/src/treegrid/models/textwrap-settings.js +1 -1
- package/src/treegrid/renderer/render.js +11 -5
- package/src/treegrid/renderer/virtual-row-model-generator.js +5 -4
- package/src/treegrid/renderer/virtual-tree-content-render.d.ts +277 -0
- package/src/treegrid/renderer/virtual-tree-content-render.js +328 -35
- package/src/treegrid/utils.d.ts +1 -1
- package/styles/bootstrap-lite.css +0 -12
- package/styles/bootstrap.css +0 -12
- package/styles/bootstrap5-dark-lite.css +1 -1
- package/styles/bootstrap5-dark.css +1 -1
- package/styles/treegrid/_layout.scss +0 -1
- package/styles/treegrid/_material-dark-definition.scss +2 -2
- package/styles/treegrid/_material-definition.scss +2 -2
- package/styles/treegrid/bootstrap.css +0 -12
- package/styles/treegrid/bootstrap5-dark.css +1 -1
- package/styles/treegrid/icons/_bootstrap.scss +0 -17
- package/styles/treegrid/icons/_bootstrap5.scss +1 -1
- package/styles/treegrid/icons/_fabric-dark.scss +1 -1
- package/styles/treegrid/icons/_fabric.scss +1 -1
- package/styles/treegrid/icons/_fluent2.scss +1 -1
- package/styles/treegrid/icons/_fusionnew.scss +1 -0
- package/styles/treegrid/icons/_highcontrast-light.scss +1 -1
- package/styles/treegrid/icons/_tailwind-dark.scss +2 -2
package/src/treegrid/enum.d.ts
CHANGED
|
@@ -1,35 +1,33 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Defines modes of Filter Hierarchy
|
|
3
|
-
*
|
|
4
|
-
* * Parent
|
|
5
|
-
* * Child
|
|
6
|
-
* * Both
|
|
7
|
-
* * None
|
|
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
|
|
13
|
-
*
|
|
14
|
-
* * Add
|
|
15
|
-
* * Edit
|
|
16
|
-
* * Update
|
|
17
|
-
* * Delete
|
|
18
|
-
* * Cancel
|
|
19
|
-
* * Search
|
|
20
|
-
* * ExpandAll
|
|
21
|
-
* * CollapseAll
|
|
22
|
-
* * ExcelExport
|
|
23
|
-
* * PdfExport
|
|
24
|
-
* * CsvExport
|
|
25
|
-
* * Print
|
|
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
|
|
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
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
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
|
|
62
|
-
*
|
|
63
|
-
* * AutoFitAll
|
|
64
|
-
* * AutoFit
|
|
65
|
-
* * SortAscending
|
|
66
|
-
* * SortDescending
|
|
67
|
-
* * Edit
|
|
68
|
-
* * Delete
|
|
69
|
-
* * Save
|
|
70
|
-
* * Cancel
|
|
71
|
-
* * PdfExport
|
|
72
|
-
* * ExcelExport
|
|
73
|
-
* * CsvExport
|
|
74
|
-
* * FirstPage
|
|
75
|
-
* * PrevPage
|
|
76
|
-
* * LastPage
|
|
77
|
-
* * NextPage
|
|
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
|
-
*
|
|
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
|
-
*
|
|
111
|
-
* * Cell
|
|
112
|
-
* * Row
|
|
113
|
-
* * Dialog
|
|
114
|
-
* * 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
|
|
120
|
-
*
|
|
121
|
-
* * Top
|
|
122
|
-
* * Bottom
|
|
123
|
-
* * Above
|
|
124
|
-
* * Below
|
|
125
|
-
* * Child
|
|
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
|
|
131
|
-
*
|
|
132
|
-
* * Menu
|
|
133
|
-
* * Excel
|
|
134
|
-
* * 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
|
|
140
|
-
*
|
|
141
|
-
* * Both
|
|
142
|
-
* * Header
|
|
143
|
-
* * Content
|
|
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
|
|
148
|
-
*
|
|
149
|
-
* * Parent
|
|
150
|
-
* * Child
|
|
151
|
-
* * Both
|
|
152
|
-
* * 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';
|
package/src/treegrid/enum.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Defines
|
|
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
|
-
*
|
|
24
|
+
* Enumerates detailed context menu items used for menu configurations.
|
|
25
25
|
*
|
|
26
26
|
* @hidden
|
|
27
27
|
*/
|