@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,66 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';import { PageSizeMode } from '../enum';
2
+
3
+ /**
4
+ * Interface for a class PageSettings
5
+ */
6
+ export interface PageSettingsModel {
7
+
8
+ /**
9
+ * Specifies the number of records to display per page in the TreeGrid. Adjust this setting to control the volume of data presented on each page.
10
+ *
11
+ * @default 12
12
+ */
13
+ pageSize?: number;
14
+
15
+ /**
16
+ * Determines the number of page numbers displayed in the TreeGrid pager container. This setting helps users navigate between different parts of the dataset.
17
+ *
18
+ * @default 8
19
+ */
20
+ pageCount?: number;
21
+
22
+ /**
23
+ * Sets the current page number in the TreeGrid, defining which page of data is initially displayed to users.
24
+ *
25
+ * @default 1
26
+ */
27
+ currentPage?: number;
28
+
29
+ /**
30
+ * @hidden
31
+ * Retrieves the total number of records in the TreeGrid. This property is primarily used internally by the TreeGrid component.
32
+ */
33
+ totalRecordsCount?: number;
34
+
35
+ /**
36
+ * When set to true, appends the current page information as a query string to the remote service URL during page navigation within the TreeGrid.
37
+ *
38
+ * @default false
39
+ */
40
+ enableQueryString?: boolean;
41
+
42
+ /**
43
+ * Enables a DropDownList in the TreeGrid pager, allowing users to select the page size. Accepts either a boolean to toggle this feature or an array of page size options.
44
+ *
45
+ * @default false
46
+ */
47
+ pageSizes?: boolean | (number | string)[];
48
+
49
+ /**
50
+ * Provides a custom template for rendering pager elements in the TreeGrid, offering enhanced flexibility and control over the pager's appearance and functionality. Accepts a template string or the ID of an HTML element.
51
+ *
52
+ * @default null
53
+ * @aspType string
54
+ */
55
+ template?: string | Function;
56
+
57
+ /**
58
+ * Specifies the mode for counting records on a page, determining whether all records are counted or only zeroth level parent records. The available options are:
59
+ * * `All`: Includes all records in the count.
60
+ * * `Root`: Includes only zeroth level parent records.
61
+ *
62
+ * @default All
63
+ */
64
+ pageSizeMode?: PageSizeMode;
65
+
66
+ }
@@ -0,0 +1,57 @@
1
+ import { ChildProperty } from '@syncfusion/ej2-base';
2
+ import { PageSizeMode } from '../enum';
3
+ /**
4
+ * Configures the paging behavior of the TreeGrid, enabling you to manage and display data efficiently across multiple pages.
5
+ */
6
+ export declare class PageSettings extends ChildProperty<PageSettings> {
7
+ /**
8
+ * Specifies the number of records to display per page in the TreeGrid. Adjust this setting to control the volume of data presented on each page.
9
+ *
10
+ * @default 12
11
+ */
12
+ pageSize: number;
13
+ /**
14
+ * Determines the number of page numbers displayed in the TreeGrid pager container. This setting helps users navigate between different parts of the dataset.
15
+ *
16
+ * @default 8
17
+ */
18
+ pageCount: number;
19
+ /**
20
+ * Sets the current page number in the TreeGrid, defining which page of data is initially displayed to users.
21
+ *
22
+ * @default 1
23
+ */
24
+ currentPage: number;
25
+ /**
26
+ * @hidden
27
+ * Retrieves the total number of records in the TreeGrid. This property is primarily used internally by the TreeGrid component.
28
+ */
29
+ totalRecordsCount: number;
30
+ /**
31
+ * When set to true, appends the current page information as a query string to the remote service URL during page navigation within the TreeGrid.
32
+ *
33
+ * @default false
34
+ */
35
+ enableQueryString: boolean;
36
+ /**
37
+ * Enables a DropDownList in the TreeGrid pager, allowing users to select the page size. Accepts either a boolean to toggle this feature or an array of page size options.
38
+ *
39
+ * @default false
40
+ */
41
+ pageSizes: boolean | (number | string)[];
42
+ /**
43
+ * Provides a custom template for rendering pager elements in the TreeGrid, offering enhanced flexibility and control over the pager's appearance and functionality. Accepts a template string or the ID of an HTML element.
44
+ *
45
+ * @default null
46
+ * @aspType string
47
+ */
48
+ template: string | Function;
49
+ /**
50
+ * Specifies the mode for counting records on a page, determining whether all records are counted or only zeroth level parent records. The available options are:
51
+ * * `All`: Includes all records in the count.
52
+ * * `Root`: Includes only zeroth level parent records.
53
+ *
54
+ * @default All
55
+ */
56
+ pageSizeMode: PageSizeMode;
57
+ }
@@ -0,0 +1,73 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
+ import { PageSizeMode } from '../enum';
3
+
4
+ /**
5
+ * Configures the paging behavior of the TreeGrid, enabling you to manage and display data efficiently across multiple pages.
6
+ */
7
+ export class PageSettings extends ChildProperty<PageSettings> {
8
+ /**
9
+ * Specifies the number of records to display per page in the TreeGrid. Adjust this setting to control the volume of data presented on each page.
10
+ *
11
+ * @default 12
12
+ */
13
+ @Property(12)
14
+ public pageSize: number;
15
+
16
+ /**
17
+ * Determines the number of page numbers displayed in the TreeGrid pager container. This setting helps users navigate between different parts of the dataset.
18
+ *
19
+ * @default 8
20
+ */
21
+ @Property(8)
22
+ public pageCount: number;
23
+
24
+ /**
25
+ * Sets the current page number in the TreeGrid, defining which page of data is initially displayed to users.
26
+ *
27
+ * @default 1
28
+ */
29
+ @Property(1)
30
+ public currentPage: number;
31
+
32
+ /**
33
+ * @hidden
34
+ * Retrieves the total number of records in the TreeGrid. This property is primarily used internally by the TreeGrid component.
35
+ */
36
+ @Property()
37
+ public totalRecordsCount: number;
38
+
39
+ /**
40
+ * When set to true, appends the current page information as a query string to the remote service URL during page navigation within the TreeGrid.
41
+ *
42
+ * @default false
43
+ */
44
+ @Property(false)
45
+ public enableQueryString: boolean;
46
+
47
+ /**
48
+ * Enables a DropDownList in the TreeGrid pager, allowing users to select the page size. Accepts either a boolean to toggle this feature or an array of page size options.
49
+ *
50
+ * @default false
51
+ */
52
+ @Property(false)
53
+ public pageSizes: boolean | (number | string)[];
54
+
55
+ /**
56
+ * Provides a custom template for rendering pager elements in the TreeGrid, offering enhanced flexibility and control over the pager's appearance and functionality. Accepts a template string or the ID of an HTML element.
57
+ *
58
+ * @default null
59
+ * @aspType string
60
+ */
61
+ @Property(null)
62
+ public template: string | Function;
63
+
64
+ /**
65
+ * Specifies the mode for counting records on a page, determining whether all records are counted or only zeroth level parent records. The available options are:
66
+ * * `All`: Includes all records in the count.
67
+ * * `Root`: Includes only zeroth level parent records.
68
+ *
69
+ * @default All
70
+ */
71
+ @Property('All')
72
+ public pageSizeMode: PageSizeMode;
73
+ }
@@ -0,0 +1,15 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';import { ITreeData } from '..';
2
+
3
+ /**
4
+ * Interface for a class RowDropSettings
5
+ */
6
+ export interface RowDropSettingsModel {
7
+
8
+ /**
9
+ * Specifies the ID of the droppable component where rows can be dragged and dropped. Ensures that the row drop operation targets the correct component within the application.
10
+ *
11
+ * @default null
12
+ */
13
+ targetID?: string;
14
+
15
+ }
@@ -0,0 +1,34 @@
1
+ import { ChildProperty } from '@syncfusion/ej2-base';
2
+ import { ITreeData } from '..';
3
+ /**
4
+ * Configures the settings for row dragging and dropping within the TreeGrid, allowing for enhanced user interaction and data manipulation capabilities.
5
+ */
6
+ export declare class RowDropSettings extends ChildProperty<RowDropSettings> {
7
+ /**
8
+ * Specifies the ID of the droppable component where rows can be dragged and dropped. Ensures that the row drop operation targets the correct component within the application.
9
+ *
10
+ * @default null
11
+ */
12
+ targetID: string;
13
+ }
14
+ /**
15
+ * Interface for TreeGrid row drop action event arguments, providing detailed information about the row drop operation and its related context.
16
+ */
17
+ export interface TreeActionEventArgs {
18
+ /** Identifies the type of request made during the action. */
19
+ requestType?: string;
20
+ /** Contains the data of the row(s) involved in the action, either a single row or an array of rows. */
21
+ data?: ITreeData | ITreeData[];
22
+ /** Refers to the rows affected by the action. */
23
+ row?: Object[];
24
+ /** A boolean value indicating whether the action should be canceled. */
25
+ cancel?: boolean;
26
+ /** Describes the specific action being performed. */
27
+ action?: string;
28
+ /** Indicates the target index where the row(s) will be dropped. */
29
+ dropIndex?: number;
30
+ /** Specifies the position where the dragged record will be dropped relative to the target. */
31
+ dropPosition?: string;
32
+ /** Lists the records that have been modified as a result of the action. */
33
+ modifiedRecords?: ITreeData[];
34
+ }
@@ -0,0 +1,37 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
+ import { ITreeData } from '..';
3
+
4
+ /**
5
+ * Configures the settings for row dragging and dropping within the TreeGrid, allowing for enhanced user interaction and data manipulation capabilities.
6
+ */
7
+ export class RowDropSettings extends ChildProperty<RowDropSettings> {
8
+ /**
9
+ * Specifies the ID of the droppable component where rows can be dragged and dropped. Ensures that the row drop operation targets the correct component within the application.
10
+ *
11
+ * @default null
12
+ */
13
+ @Property()
14
+ public targetID: string;
15
+ }
16
+
17
+ /**
18
+ * Interface for TreeGrid row drop action event arguments, providing detailed information about the row drop operation and its related context.
19
+ */
20
+ export interface TreeActionEventArgs {
21
+ /** Identifies the type of request made during the action. */
22
+ requestType?: string;
23
+ /** Contains the data of the row(s) involved in the action, either a single row or an array of rows. */
24
+ data?: ITreeData | ITreeData[];
25
+ /** Refers to the rows affected by the action. */
26
+ row?: Object[];
27
+ /** A boolean value indicating whether the action should be canceled. */
28
+ cancel?: boolean;
29
+ /** Describes the specific action being performed. */
30
+ action?: string;
31
+ /** Indicates the target index where the row(s) will be dropped. */
32
+ dropIndex?: number;
33
+ /** Specifies the position where the dragged record will be dropped relative to the target. */
34
+ dropPosition?: string;
35
+ /** Lists the records that have been modified as a result of the action. */
36
+ modifiedRecords?: ITreeData[];
37
+ }
@@ -0,0 +1,79 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';import { FilterHierarchyMode } from '../enum';
2
+
3
+ /**
4
+ * Interface for a class SearchSettings
5
+ */
6
+ export interface SearchSettingsModel {
7
+
8
+ /**
9
+ * Specifies the columns to be searched upon the initial rendering of the TreeGrid.
10
+ * You can also retrieve the list of columns that are currently searched.
11
+ *
12
+ * @default []
13
+ */
14
+ fields?: string[];
15
+
16
+ /**
17
+ * When set to true, the search operation ignores case sensitivity,
18
+ * including diacritic characters or accents while filtering.
19
+ *
20
+ * > Check the [`Diacritics`](../../treegrid/filtering/filtering#diacritics) filtering.
21
+ *
22
+ * @default false
23
+ */
24
+ ignoreCase?: boolean;
25
+
26
+ /**
27
+ * Defines the operator to search records. The available operators are:
28
+ * <table>
29
+ * <tr>
30
+ * <td colspan=1 rowspan=1>
31
+ * Operator<br/></td><td colspan=1 rowspan=1>
32
+ * Description<br/></td></tr>
33
+ * <tr>
34
+ * <td colspan=1 rowspan=1>
35
+ * startswith<br/></td><td colspan=1 rowspan=1>
36
+ * Checks whether the string begins with the specified string.<br/></td></tr>
37
+ * <tr>
38
+ * <td colspan=1 rowspan=1>
39
+ * endswith<br/></td><td colspan=1 rowspan=1>
40
+ * Checks whether the string ends with the specified string.<br/></td></tr>
41
+ * <tr>
42
+ * <td colspan=1 rowspan=1>
43
+ * contains<br/></td><td colspan=1 rowspan=1>
44
+ * Checks whether the string contains the specified string. <br/></td></tr>
45
+ * <tr>
46
+ * <td colspan=1 rowspan=1>
47
+ * equal<br/></td><td colspan=1 rowspan=1>
48
+ * Checks whether the string is equal to the specified string.<br/></td></tr>
49
+ * <tr>
50
+ * <td colspan=1 rowspan=1>
51
+ * notequal<br/></td><td colspan=1 rowspan=1>
52
+ * Checks for strings not equal to the specified string. <br/></td></tr>
53
+ * </table>
54
+ *
55
+ * @default 'contains'
56
+ */
57
+ operator?: string;
58
+
59
+ /**
60
+ * A keyword used for searching within the TreeGrid content.
61
+ *
62
+ */
63
+ key?: string;
64
+
65
+ /**
66
+ * Defines the search hierarchy modes dictating which parts of the tree should be included in search results.
67
+ * The available options are:
68
+ * * `Parent`: Shows the searched record along with its parent record.
69
+ * * `Child`: Shows the searched record along with its child record.
70
+ * * `Both`: Shows the searched record with both its parent and child records.
71
+ * * `None`: Shows only the searched record.
72
+ *
73
+ * @default Parent
74
+ * @isEnumeration true
75
+ * @aspType FilterHierarchyMode
76
+ */
77
+ hierarchyMode?: FilterHierarchyMode;
78
+
79
+ }
@@ -0,0 +1,73 @@
1
+ import { ChildProperty } from '@syncfusion/ej2-base';
2
+ import { FilterHierarchyMode } from '../enum';
3
+ /**
4
+ * Configures the searching behavior of the TreeGrid.
5
+ */
6
+ export declare class SearchSettings extends ChildProperty<SearchSettings> {
7
+ /**
8
+ * Specifies the columns to be searched upon the initial rendering of the TreeGrid.
9
+ * You can also retrieve the list of columns that are currently searched.
10
+ *
11
+ * @default []
12
+ */
13
+ fields: string[];
14
+ /**
15
+ * When set to true, the search operation ignores case sensitivity,
16
+ * including diacritic characters or accents while filtering.
17
+ *
18
+ * > Check the [`Diacritics`](../../treegrid/filtering/filtering#diacritics) filtering.
19
+ *
20
+ * @default false
21
+ */
22
+ ignoreCase: boolean;
23
+ /**
24
+ * Defines the operator to search records. The available operators are:
25
+ * <table>
26
+ * <tr>
27
+ * <td colspan=1 rowspan=1>
28
+ * Operator<br/></td><td colspan=1 rowspan=1>
29
+ * Description<br/></td></tr>
30
+ * <tr>
31
+ * <td colspan=1 rowspan=1>
32
+ * startswith<br/></td><td colspan=1 rowspan=1>
33
+ * Checks whether the string begins with the specified string.<br/></td></tr>
34
+ * <tr>
35
+ * <td colspan=1 rowspan=1>
36
+ * endswith<br/></td><td colspan=1 rowspan=1>
37
+ * Checks whether the string ends with the specified string.<br/></td></tr>
38
+ * <tr>
39
+ * <td colspan=1 rowspan=1>
40
+ * contains<br/></td><td colspan=1 rowspan=1>
41
+ * Checks whether the string contains the specified string. <br/></td></tr>
42
+ * <tr>
43
+ * <td colspan=1 rowspan=1>
44
+ * equal<br/></td><td colspan=1 rowspan=1>
45
+ * Checks whether the string is equal to the specified string.<br/></td></tr>
46
+ * <tr>
47
+ * <td colspan=1 rowspan=1>
48
+ * notequal<br/></td><td colspan=1 rowspan=1>
49
+ * Checks for strings not equal to the specified string. <br/></td></tr>
50
+ * </table>
51
+ *
52
+ * @default 'contains'
53
+ */
54
+ operator: string;
55
+ /**
56
+ * A keyword used for searching within the TreeGrid content.
57
+ *
58
+ */
59
+ key: string;
60
+ /**
61
+ * Defines the search hierarchy modes dictating which parts of the tree should be included in search results.
62
+ * The available options are:
63
+ * * `Parent`: Shows the searched record along with its parent record.
64
+ * * `Child`: Shows the searched record along with its child record.
65
+ * * `Both`: Shows the searched record with both its parent and child records.
66
+ * * `None`: Shows only the searched record.
67
+ *
68
+ * @default Parent
69
+ * @isEnumeration true
70
+ * @aspType FilterHierarchyMode
71
+ */
72
+ hierarchyMode: FilterHierarchyMode;
73
+ }
@@ -0,0 +1,83 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
+ import { FilterHierarchyMode } from '../enum';
3
+
4
+ /**
5
+ * Configures the searching behavior of the TreeGrid.
6
+ */
7
+ export class SearchSettings extends ChildProperty<SearchSettings> {
8
+ /**
9
+ * Specifies the columns to be searched upon the initial rendering of the TreeGrid.
10
+ * You can also retrieve the list of columns that are currently searched.
11
+ *
12
+ * @default []
13
+ */
14
+ @Property()
15
+ public fields: string[];
16
+
17
+ /**
18
+ * When set to true, the search operation ignores case sensitivity,
19
+ * including diacritic characters or accents while filtering.
20
+ *
21
+ * > Check the [`Diacritics`](../../treegrid/filtering/filtering#diacritics) filtering.
22
+ *
23
+ * @default false
24
+ */
25
+ @Property(false)
26
+ public ignoreCase: boolean;
27
+
28
+ /**
29
+ * Defines the operator to search records. The available operators are:
30
+ * <table>
31
+ * <tr>
32
+ * <td colspan=1 rowspan=1>
33
+ * Operator<br/></td><td colspan=1 rowspan=1>
34
+ * Description<br/></td></tr>
35
+ * <tr>
36
+ * <td colspan=1 rowspan=1>
37
+ * startswith<br/></td><td colspan=1 rowspan=1>
38
+ * Checks whether the string begins with the specified string.<br/></td></tr>
39
+ * <tr>
40
+ * <td colspan=1 rowspan=1>
41
+ * endswith<br/></td><td colspan=1 rowspan=1>
42
+ * Checks whether the string ends with the specified string.<br/></td></tr>
43
+ * <tr>
44
+ * <td colspan=1 rowspan=1>
45
+ * contains<br/></td><td colspan=1 rowspan=1>
46
+ * Checks whether the string contains the specified string. <br/></td></tr>
47
+ * <tr>
48
+ * <td colspan=1 rowspan=1>
49
+ * equal<br/></td><td colspan=1 rowspan=1>
50
+ * Checks whether the string is equal to the specified string.<br/></td></tr>
51
+ * <tr>
52
+ * <td colspan=1 rowspan=1>
53
+ * notequal<br/></td><td colspan=1 rowspan=1>
54
+ * Checks for strings not equal to the specified string. <br/></td></tr>
55
+ * </table>
56
+ *
57
+ * @default 'contains'
58
+ */
59
+ @Property('contains')
60
+ public operator: string;
61
+
62
+ /**
63
+ * A keyword used for searching within the TreeGrid content.
64
+ *
65
+ */
66
+ @Property()
67
+ public key: string;
68
+
69
+ /**
70
+ * Defines the search hierarchy modes dictating which parts of the tree should be included in search results.
71
+ * The available options are:
72
+ * * `Parent`: Shows the searched record along with its parent record.
73
+ * * `Child`: Shows the searched record along with its child record.
74
+ * * `Both`: Shows the searched record with both its parent and child records.
75
+ * * `None`: Shows only the searched record.
76
+ *
77
+ * @default Parent
78
+ * @isEnumeration true
79
+ * @aspType FilterHierarchyMode
80
+ */
81
+ @Property()
82
+ public hierarchyMode: FilterHierarchyMode;
83
+ }
@@ -0,0 +1,76 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';import { SelectionMode, CellSelectionMode, SelectionType, CheckboxSelectionType } from '@syncfusion/ej2-grids';
2
+
3
+ /**
4
+ * Interface for a class SelectionSettings
5
+ */
6
+ export interface SelectionSettingsModel {
7
+
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;
19
+
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;
31
+
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;
42
+
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;
50
+
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;
61
+
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;
68
+
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;
75
+
76
+ }
@@ -0,0 +1,68 @@
1
+ import { ChildProperty } from '@syncfusion/ej2-base';
2
+ import { SelectionMode, CellSelectionMode, SelectionType, CheckboxSelectionType } from '@syncfusion/ej2-grids';
3
+ /**
4
+ * Configures the selection behavior of the TreeGrid.
5
+ */
6
+ export declare class SelectionSettings extends ChildProperty<SelectionSettings> {
7
+ /**
8
+ * Specifies the selection mode for the TreeGrid, which supports row, cell, and both (row and cell) selection modes.
9
+ * * `Row`: Selects the entire row.
10
+ * * `Cell`: Selects a single cell.
11
+ * * `Both`: Selects the entire row and its cells.
12
+ *
13
+ * @default Syncfusion.EJ2.Grids.SelectionMode.Row
14
+ * @isEnumeration true
15
+ * @aspType Syncfusion.EJ2.Grids.SelectionMode
16
+ */
17
+ mode: SelectionMode;
18
+ /**
19
+ * Determines the mode for cell selection, available options are flow and box.
20
+ * Requires the selection `mode` to be either cell or both.
21
+ * * `Flow`: Selects the range between start and end indexes, including other cells of selected rows.
22
+ * * `Box`: Selects cells within the start and end column indexes within the selected rows.
23
+ *
24
+ * @default Syncfusion.EJ2.Grids.CellSelectionMode.Flow
25
+ * @isEnumeration true
26
+ * @aspType Syncfusion.EJ2.Grids.CellSelectionMode
27
+ */
28
+ cellSelectionMode: CellSelectionMode;
29
+ /**
30
+ * Defines the selection type, specifying whether single or multiple selections are allowed.
31
+ * * `Single`: Allows selection of only a single row or cell.
32
+ * * `Multiple`: Allows selection of multiple rows or cells.
33
+ *
34
+ * @default Syncfusion.EJ2.Grids.SelectionType.Single
35
+ * @isEnumeration true
36
+ * @aspType Syncfusion.EJ2.Grids.SelectionType
37
+ */
38
+ type: SelectionType;
39
+ /**
40
+ * When set to true, the TreeGrid selection persists even during various grid operations such as sorting or paging.
41
+ * Requires at least one column to be configured as the primary key for persistence.
42
+ *
43
+ * @default false
44
+ */
45
+ persistSelection: boolean;
46
+ /**
47
+ * Specifies the mode for checkbox selection:
48
+ * * `Default`: Allows selection of multiple rows by clicking on each row individually.
49
+ * * `ResetOnRowClick`: Resets prior selection when a new row is clicked. Multiple rows can be selected using CTRL or SHIFT keys.
50
+ *
51
+ * @default Syncfusion.EJ2.Grids.CheckboxSelectionType.Default
52
+ * @isEnumeration true
53
+ * @aspType Syncfusion.EJ2.Grids.CheckboxSelectionType
54
+ */
55
+ checkboxMode: CheckboxSelectionType;
56
+ /**
57
+ * If set to true, TreeGrid selection is allowed only through checkboxes. Ensure the column type is set to `checkbox` to enable this mode.
58
+ *
59
+ * @default false
60
+ */
61
+ checkboxOnly: boolean;
62
+ /**
63
+ * Enables toggling of the selected row. When true, users can toggle the selection of a row.
64
+ *
65
+ * @default true
66
+ */
67
+ enableToggle: boolean;
68
+ }