@syncfusion/ej2-angular-treegrid 31.1.21-ngcc → 31.1.21

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 (94) hide show
  1. package/CHANGELOG.md +14 -65
  2. package/esm2020/public_api.mjs +2 -0
  3. package/esm2020/src/index.mjs +9 -0
  4. package/esm2020/src/treegrid/aggregate-columns.directive.mjs +72 -0
  5. package/esm2020/src/treegrid/aggregates.directive.mjs +69 -0
  6. package/esm2020/src/treegrid/columns.directive.mjs +100 -0
  7. package/esm2020/src/treegrid/stacked-column.directive.mjs +100 -0
  8. package/esm2020/src/treegrid/treegrid-all.module.mjs +89 -0
  9. package/esm2020/src/treegrid/treegrid.component.mjs +271 -0
  10. package/esm2020/src/treegrid/treegrid.module.mjs +61 -0
  11. package/esm2020/syncfusion-ej2-angular-treegrid.mjs +5 -0
  12. package/fesm2015/syncfusion-ej2-angular-treegrid.mjs +734 -0
  13. package/fesm2015/syncfusion-ej2-angular-treegrid.mjs.map +1 -0
  14. package/fesm2020/syncfusion-ej2-angular-treegrid.mjs +734 -0
  15. package/fesm2020/syncfusion-ej2-angular-treegrid.mjs.map +1 -0
  16. package/package.json +44 -47
  17. package/src/treegrid/aggregate-columns.directive.d.ts +31 -28
  18. package/src/treegrid/aggregates.directive.d.ts +7 -2
  19. package/src/treegrid/columns.directive.d.ts +60 -77
  20. package/src/treegrid/stacked-column.directive.d.ts +60 -77
  21. package/src/treegrid/treegrid-all.module.d.ts +6 -0
  22. package/src/treegrid/treegrid.component.d.ts +23 -1
  23. package/src/treegrid/treegrid.module.d.ts +10 -0
  24. package/styles/bds-lite.css +1 -0
  25. package/styles/bds-lite.scss +1 -0
  26. package/styles/bds.css +1 -0
  27. package/styles/bds.scss +1 -0
  28. package/styles/bootstrap-dark-lite.css +1 -0
  29. package/styles/bootstrap-dark-lite.scss +1 -0
  30. package/styles/bootstrap-lite.css +1 -0
  31. package/styles/bootstrap-lite.scss +1 -0
  32. package/styles/bootstrap4-lite.css +1 -0
  33. package/styles/bootstrap4-lite.scss +1 -0
  34. package/styles/bootstrap5-dark-lite.css +1 -0
  35. package/styles/bootstrap5-dark-lite.scss +1 -0
  36. package/styles/bootstrap5-lite.css +1 -0
  37. package/styles/bootstrap5-lite.scss +1 -0
  38. package/styles/bootstrap5.3-lite.css +1 -0
  39. package/styles/bootstrap5.3-lite.scss +1 -0
  40. package/styles/bootstrap5.3.css +1 -0
  41. package/styles/bootstrap5.3.scss +1 -0
  42. package/styles/fabric-dark-lite.css +1 -0
  43. package/styles/fabric-dark-lite.scss +1 -0
  44. package/styles/fabric-lite.css +1 -0
  45. package/styles/fabric-lite.scss +1 -0
  46. package/styles/fluent-dark-lite.css +1 -0
  47. package/styles/fluent-dark-lite.scss +1 -0
  48. package/styles/fluent-lite.css +1 -0
  49. package/styles/fluent-lite.scss +1 -0
  50. package/styles/fluent2-lite.css +1 -0
  51. package/styles/fluent2-lite.scss +1 -0
  52. package/styles/fluent2.css +1 -0
  53. package/styles/fluent2.scss +1 -0
  54. package/styles/highcontrast-light-lite.css +1 -0
  55. package/styles/highcontrast-light-lite.scss +1 -0
  56. package/styles/highcontrast-lite.css +1 -0
  57. package/styles/highcontrast-lite.scss +1 -0
  58. package/styles/material-dark-lite.css +1 -0
  59. package/styles/material-dark-lite.scss +1 -0
  60. package/styles/material-lite.css +1 -0
  61. package/styles/material-lite.scss +1 -0
  62. package/styles/material3-dark-lite.css +1 -0
  63. package/styles/material3-dark-lite.scss +1 -0
  64. package/styles/material3-lite.css +1 -0
  65. package/styles/material3-lite.scss +1 -0
  66. package/styles/tailwind-dark-lite.css +1 -0
  67. package/styles/tailwind-dark-lite.scss +1 -0
  68. package/styles/tailwind-lite.css +1 -0
  69. package/styles/tailwind-lite.scss +1 -0
  70. package/styles/tailwind3-lite.css +1 -0
  71. package/styles/tailwind3-lite.scss +1 -0
  72. package/styles/tailwind3.css +1 -0
  73. package/styles/tailwind3.scss +1 -0
  74. package/styles/treegrid/bds.css +1 -0
  75. package/styles/treegrid/bds.scss +1 -0
  76. package/styles/treegrid/bootstrap5.3.css +1 -0
  77. package/styles/treegrid/bootstrap5.3.scss +1 -0
  78. package/styles/treegrid/fluent2.css +1 -0
  79. package/styles/treegrid/fluent2.scss +1 -0
  80. package/styles/treegrid/tailwind3.css +1 -0
  81. package/styles/treegrid/tailwind3.scss +1 -0
  82. package/syncfusion-ej2-angular-treegrid.d.ts +5 -0
  83. package/@syncfusion/ej2-angular-treegrid.es5.js +0 -798
  84. package/@syncfusion/ej2-angular-treegrid.es5.js.map +0 -1
  85. package/@syncfusion/ej2-angular-treegrid.js +0 -748
  86. package/@syncfusion/ej2-angular-treegrid.js.map +0 -1
  87. package/dist/ej2-angular-treegrid.umd.js +0 -979
  88. package/dist/ej2-angular-treegrid.umd.js.map +0 -1
  89. package/dist/ej2-angular-treegrid.umd.min.js +0 -11
  90. package/dist/ej2-angular-treegrid.umd.min.js.map +0 -1
  91. package/ej2-angular-treegrid.d.ts +0 -5
  92. package/ej2-angular-treegrid.metadata.json +0 -1
  93. package/license +0 -10
  94. package/postinstall/tagchange.js +0 -18
@@ -1,5 +1,6 @@
1
1
  import { ViewContainerRef } from '@angular/core';
2
2
  import { ComplexBase, ArrayBase } from '@syncfusion/ej2-angular-base';
3
+ import * as i0 from "@angular/core";
3
4
  /**
4
5
  * `e-column` directive represent a column of the Angular TreeGrid.
5
6
  * It must be contained in a TreeGrid component(`ejs-treegrid`).
@@ -18,60 +19,53 @@ export declare class ColumnDirective extends ComplexBase<ColumnDirective> {
18
19
  childColumns: any;
19
20
  tags: string[];
20
21
  /**
21
- * Defines the data type of the column.
22
+ * Defines the type of data stored in the column, which may be string, number, date, or other types.
22
23
  * @default null
23
24
  */
24
25
  type: any;
25
26
  /**
26
- * If `allowEditing` set to false, then it disables editing of a particular column.
27
- * By default all columns are editable.
27
+ * Controls whether editing is permitted for the column. By default, all columns are editable.
28
28
  * @default true
29
29
  */
30
30
  allowEditing: any;
31
31
  /**
32
- * If `allowFiltering` set to false, then it disables filtering option and filter bar element of a particular column.
33
- * By default all columns are filterable.
32
+ * Controls whether the column supports filtering. If set to false, users cannot filter data by this column.
34
33
  * @default true
35
34
  */
36
35
  allowFiltering: any;
37
36
  /**
38
- * If `allowReordering` set to false, then it disables reorder of a particular column.
39
- * By default all columns can be reorder.
37
+ * Enables or disables the reordering of this column via drag-and-drop. Allows for dynamic column adjustments.
40
38
  * @default true
41
39
  */
42
40
  allowReordering: any;
43
41
  /**
44
- * If `allowResizing` set to false, it disables resize option of a particular column.
42
+ * Determines if this column can be resized. If false, the column size is fixed.
45
43
  * @default true
46
44
  */
47
45
  allowResizing: any;
48
46
  /**
49
- * If `allowSorting` set to false, then it disables sorting option of a particular column.
50
- * By default all columns are sortable.
47
+ * Specifies whether sorting is enabled for this column. Set to false to prevent sort actions.
51
48
  * @default true
52
49
  */
53
50
  allowSorting: any;
54
51
  /**
55
- * Defines the cell content's overflow mode. The available modes are
56
- *
57
- * also it will display tooltip while hover on ellipsis applied cell.
52
+ * Determines how overflow content is handled within a cell. Options include:
53
+ * * `Clip`: Truncates the content.
54
+ * * `Ellipsis`: Shows ellipsis for overflow.
55
+ * * `EllipsisWithTooltip`: Shows ellipsis and tooltip on hover.
58
56
  * @default Syncfusion.EJ2.Grids.ClipMode.Ellipsis
59
57
  * @isenumeration true
60
58
  * @asptype Syncfusion.EJ2.Grids.ClipMode
61
59
  */
62
60
  clipMode: any;
63
61
  /**
64
- * Used to render multiple header rows(stacked headers) on TreeGrid header.
62
+ * Allows for the creation of stacked headers by using multiple rows in the grid's header.
65
63
  * @default null
66
64
  */
67
65
  columns: any;
68
66
  /**
69
- * `commands` provides an option to display command buttons in every cell.
70
- * The available built-in command buttons are
71
- * * Edit - Edit the record.
72
- * * Delete - Delete the record.
73
- * * Save - Save the record.
74
- * * Cancel - Cancel the edit state.
67
+ * Provides built-in command button options for cells. Options include Edit, Delete, Save, and Cancel.
68
+ * Custom command button implementations are possible.
75
69
  *
76
70
  * The following code example implements the custom command column.
77
71
  *```html
@@ -98,55 +92,49 @@ export declare class ColumnDirective extends ComplexBase<ColumnDirective> {
98
92
  */
99
93
  commands: any;
100
94
  /**
101
- * The CSS styles and attributes of the content cells of a particular column can be customized.
95
+ * Enables the addition of CSS styles and attributes for the content cells in a particular column.
102
96
  * @default null
103
97
  */
104
98
  customAttributes: any;
105
99
  /**
106
- * Defines default values for the component when adding a new record to the TreeGrid.
100
+ * Sets default values when new records are added to the TreeGrid involving this column.
107
101
  * @default null
108
102
  */
109
103
  defaultValue: any;
110
104
  /**
111
- * If `disableHtmlEncode` is set to true, it encodes the HTML of the header and content cells.
105
+ * If set to `true`, the HTML content within header and content cells is encoded to prevent injection attacks.
112
106
  * @default true
113
107
  */
114
108
  disableHtmlEncode: any;
115
109
  /**
116
- * If `displayAsCheckBox` is set to true, it displays the column value as a check box instead of Boolean value.
110
+ * Displays the column value as a checkbox instead of a Boolean value when set to `true`.
117
111
  * @default false
118
112
  */
119
113
  displayAsCheckBox: any;
120
114
  /**
121
- * Defines the `IEditCell` object to customize default edit cell.
115
+ * Allows customizing the default edit cell through the `IEditCell` object for more control over editing.
122
116
  * @default {}
123
117
  */
124
118
  edit: any;
125
119
  /**
126
- * Defines the type of component for editing.
120
+ * Specifies the component type used for editing cells within this column.
127
121
  * @default 'stringedit'
128
122
  */
129
123
  editType: any;
130
124
  /**
131
- * Defines the field name of column which is mapped with mapping name of DataSource.
132
- * The bounded columns can be sort, filter etc.,
133
- * The `field` name must be a valid JavaScript identifier,
134
- * the first character must be an alphabet and should not contain spaces and special characters.
125
+ * Specifies the field name in the data source to which the column is bound. This field is used for operations like sorting and filtering.
126
+ * The field name must be a valid JavaScript identifier, beginning with a letter and avoiding spaces and special characters.
135
127
  * @default 'undefined'
136
128
  */
137
129
  field: any;
138
130
  /**
139
- * Defines the filter options to customize filtering for the particular column.
140
- *
141
- * @default null
142
- *
131
+ * Customizes filter options for the column, enabling specialized filtering functionality.
132
+ * @default null
143
133
  */
144
134
  filter: any;
145
135
  /**
146
- * The `filterBarTemplate` is used to add a custom component instead of default input component for filter bar.
147
- * It have create and read functions.
148
- * * create: It is used for creating custom components.
149
- * * read: It is used to perform custom filter action.
136
+ * Allows for a custom component within the filter bar, facilitating advanced filter interfaces.
137
+ * Includes create and read functions for custom component management.
150
138
  *
151
139
  * ```html
152
140
  *<div id="TreeGrid"></div>
@@ -171,7 +159,7 @@ export declare class ColumnDirective extends ComplexBase<ColumnDirective> {
171
159
  * gridObj.filterByColumn(args.element.id, 'equal', args.element.value);
172
160
  * }
173
161
  * }
174
- * }],
162
+ *}],
175
163
  * allowFiltering: true
176
164
  *});
177
165
  *gridObj.appendTo('#TreeGrid');
@@ -181,35 +169,33 @@ export declare class ColumnDirective extends ComplexBase<ColumnDirective> {
181
169
  */
182
170
  filterBarTemplate: any;
183
171
  /**
184
- * It is used to change display value with the given format and does not affect the original data.
185
- * Gets the format from the user which can be standard or custom
186
- * [`number`](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string)
187
- * and [`date`](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string-1) formats.
172
+ * Formats the displayed value of the column without affecting the underlying data. Supports standard and custom formats for numbers and dates.
173
+ *
174
+ * References for [number](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string)
175
+ *and [date](https://ej2.syncfusion.com/documentation/common/internationalization#date-formatting) formats.
188
176
  * @default null
189
177
  * @asptype string
190
178
  */
191
179
  format: any;
192
180
  /**
193
- * Defines the method which is used to achieve custom formatting from an external function.
194
- * This function triggers before rendering of each cell.
181
+ * Allows for custom cell content formatting using an external method, executed prior to rendering.
195
182
  * @default null
196
183
  */
197
184
  formatter: any;
198
185
  /**
199
- * Defines which side the column need to freeze
186
+ * Determines which side (left, right, or center) the column should be frozen on.
200
187
  * @default Syncfusion.EJ2.Grids.FreezeDirection.None
201
188
  * @isenumeration true
202
189
  * @asptype Syncfusion.EJ2.Grids.FreezeDirection
203
190
  */
204
191
  freeze: any;
205
192
  /**
206
- * Defines the header text of column which is used to display in column header.
207
- * If `headerText` is not defined, then field name value will be assigned to header text.
193
+ * Specifies the text displayed in the column header. If omitted, the `field` value is used as the header text.
208
194
  * @default 'undefined'
209
195
  */
210
196
  headerText: any;
211
197
  /**
212
- * Define the alignment of column header which is used to align the text of column header.
198
+ * Aligns the text in the column header. By default, the alignment corresponds to other content alignments.
213
199
  * @default null
214
200
  * @aspdefaultvalueignore
215
201
  * @isenumeration true
@@ -217,124 +203,119 @@ export declare class ColumnDirective extends ComplexBase<ColumnDirective> {
217
203
  */
218
204
  headerTextAlign: any;
219
205
  /**
220
- * Column visibility can change based on [`Media Queries`](http://cssmediaqueries.com/what-are-css-media-queries.html).
221
- * `hideAtMedia` accepts only valid Media Queries.
206
+ * Adjusts column visibility based on [Media Queries](http://cssmediaqueries.com/what-are-css-media-queries.html). Accepts valid CSS media query strings for responsive adjustments.
222
207
  * @default 'undefined'
223
208
  */
224
209
  hideAtMedia: any;
225
210
  /**
226
- * You can use this property to freeze selected columns in grid.
211
+ * Allows the column to be frozen, keeping it stationary while scrolling horizontally through the grid.
227
212
  * @default false
228
213
  */
229
214
  isFrozen: any;
230
215
  /**
231
- * If `isIdentity` is set to true, then this column is considered as identity column.
216
+ * Identifies the column as an identity column in database terms, if set to `true`.
232
217
  * @default false
233
218
  */
234
219
  isIdentity: any;
235
220
  /**
236
- * If `isPrimaryKey` is set to true, considers this column as the primary key constraint.
221
+ * Identifies the column as a primary key if set to `true`, enforcing uniqueness.
237
222
  * @default false
238
223
  */
239
224
  isPrimaryKey: any;
240
225
  /**
241
- * If `lockColumn` set to true, then it disables Reordering of a particular column.
242
- * The locked column will be moved to first position.
226
+ * Prevents column reordering when set to true, locking the column into a set position.
243
227
  * @default false
244
228
  */
245
229
  lockColumn: any;
246
230
  /**
247
- * Defines the maximum width of the column in pixels or percentage, which will restrict resizing beyond this pixels or percentage.
231
+ * Defines the maximum allowable width of the column in pixels or as a percentage, preventing resizing beyond this limit.
248
232
  * @default 'undefined'
249
233
  */
250
234
  maxWidth: any;
251
235
  /**
252
- * Defines the minimum width of the column in pixels or percentage.
236
+ * Determines the minimum width of the column in pixels or percentage. This ensures the column does not shrink below this size.
253
237
  * @default 'undefined'
254
238
  */
255
239
  minWidth: any;
256
240
  /**
257
- * If `showCheckbox` set to true, then the checkboxes will be displayed in particular column.
241
+ * Displays checkboxes in the column when enabled, allowing for selections and certain operations.
258
242
  * @default false
259
243
  */
260
244
  showCheckbox: any;
261
245
  /**
262
- * If `showColumnMenu` set to false, then it disable the column menu of a particular column.
263
- * By default column menu will show for all columns
246
+ * Decides if the column menu should be available, providing options for column customization.
264
247
  * @default true
265
248
  */
266
249
  showColumnMenu: any;
267
250
  /**
268
- * If `showInColumnChooser` set to false, then hide the particular column in column chooser.
269
- * By default all columns are displayed in column Chooser.
251
+ * Determines whether the column should appear in the Column Chooser. Set to false to exclude it.
270
252
  * @default true
271
253
  */
272
254
  showInColumnChooser: any;
273
255
  /**
274
- * Defines the sort comparer property.
256
+ * Provides a custom sort comparer property to control how sorting is handled for this column's data.
275
257
  * @default 'undefined'
276
258
  */
277
259
  sortComparer: any;
278
260
  /**
279
- * Defines the alignment of the column in both header and content cells.
261
+ * Specifies the horizontal alignment for the column content and header. Options include alignment to the left, center, or right.
280
262
  * @default Syncfusion.EJ2.Grids.TextAlign.Left
281
263
  * @isenumeration true
282
264
  * @asptype Syncfusion.EJ2.Grids.TextAlign
283
265
  */
284
266
  textAlign: any;
285
267
  /**
286
- * Gets the unique identifier value of the column. It is used to get the object.
268
+ * Retrieves the unique identifier for the column. This UID is used internally to reference and manipulate the column.
287
269
  * @default 'undefined'
288
270
  */
289
271
  uid: any;
290
272
  /**
291
- * Defines rules to validate data before creating and updating.
273
+ * Establishes validation rules to ensure data integrity during creation and updates.
292
274
  * @default null
293
275
  */
294
276
  validationRules: any;
295
277
  /**
296
- * Defines the method used to apply custom cell values from external function and display this on each cell rendered.
278
+ * Applies custom cell values using an external function, allowing for dynamic display adjustments.
297
279
  * @default null
298
280
  */
299
281
  valueAccessor: any;
300
282
  /**
301
- * If `visible` is set to false, hides the particular column. By default, columns are displayed.
283
+ * Toggles the visibility of the column. Set to false to hide the column from view. Columns are visible by default.
302
284
  * @default true
303
285
  */
304
286
  visible: any;
305
287
  /**
306
- * Defines the width of the column in pixels or percentage.
288
+ * Sets the column's width in pixels or as a percentage. This defines how the column will occupy space in the grid.
307
289
  * @default 'undefined'
308
290
  */
309
291
  width: any;
310
292
  /**
311
- * Defines the column template that renders customized element in each cell of the column.
312
- * It accepts either [template string](https://ej2.syncfusion.com/documentation/common/template-engine/) or HTML element ID.
293
+ * Customizes the rendering of cell content using either a template string or HTML element ID.
313
294
  * @default null
314
295
  * @asptype string
315
296
  */
316
297
  template: any;
317
298
  /**
318
- * Defines the header template as string or HTML element ID which is used to add customized element in the column header.
299
+ * Customizes the header content with a template, defined as a string or an HTML element ID.
319
300
  * @default null
320
301
  * @asptype string
321
302
  */
322
303
  headerTemplate: any;
323
304
  filter_itemTemplate: any;
324
305
  /**
325
- * Defines the filter template/UI that is used as filter for a particular column.
326
- * It accepts either template string or HTML element ID.
306
+ * Specifies a custom template or UI for filtering within this column, utilizing either string templates or HTML element IDs.
327
307
  * @aspignore
328
308
  */
329
309
  filterTemplate: any;
330
310
  commandsTemplate: any;
331
311
  /**
332
- * Defines the cell edit template that used as editor for a particular column.
333
- * It accepts either template string or HTML element ID.
312
+ * Provides a template for editing cells in this column, supporting either a template string or an HTML element ID.
334
313
  * @aspignore
335
314
  */
336
315
  editTemplate: any;
337
316
  constructor(viewContainerRef: ViewContainerRef);
317
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColumnDirective, never>;
318
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColumnDirective, "ejs-treegrid>e-columns>e-column", never, { "allowEditing": "allowEditing"; "allowFiltering": "allowFiltering"; "allowReordering": "allowReordering"; "allowResizing": "allowResizing"; "allowSorting": "allowSorting"; "clipMode": "clipMode"; "columns": "columns"; "commands": "commands"; "customAttributes": "customAttributes"; "defaultValue": "defaultValue"; "disableHtmlEncode": "disableHtmlEncode"; "displayAsCheckBox": "displayAsCheckBox"; "edit": "edit"; "editTemplate": "editTemplate"; "editType": "editType"; "field": "field"; "filter": "filter"; "filterBarTemplate": "filterBarTemplate"; "filterTemplate": "filterTemplate"; "format": "format"; "formatter": "formatter"; "freeze": "freeze"; "headerTemplate": "headerTemplate"; "headerText": "headerText"; "headerTextAlign": "headerTextAlign"; "hideAtMedia": "hideAtMedia"; "isFrozen": "isFrozen"; "isIdentity": "isIdentity"; "isPrimaryKey": "isPrimaryKey"; "lockColumn": "lockColumn"; "maxWidth": "maxWidth"; "minWidth": "minWidth"; "showCheckbox": "showCheckbox"; "showColumnMenu": "showColumnMenu"; "showInColumnChooser": "showInColumnChooser"; "sortComparer": "sortComparer"; "template": "template"; "textAlign": "textAlign"; "type": "type"; "uid": "uid"; "validationRules": "validationRules"; "valueAccessor": "valueAccessor"; "visible": "visible"; "width": "width"; }, {}, ["template", "headerTemplate", "filter_itemTemplate", "filterTemplate", "commandsTemplate", "editTemplate", "childColumns"]>;
338
319
  }
339
320
  /**
340
321
  * Column Array Directive
@@ -342,4 +323,6 @@ export declare class ColumnDirective extends ComplexBase<ColumnDirective> {
342
323
  */
343
324
  export declare class ColumnsDirective extends ArrayBase<ColumnsDirective> {
344
325
  constructor();
326
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColumnsDirective, never>;
327
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ColumnsDirective, "ejs-treegrid>e-columns", never, {}, {}, ["children"]>;
345
328
  }