@syncfusion/ej2-angular-treegrid 21.2.8 → 21.2.9

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.
@@ -0,0 +1,350 @@
1
+ import { ViewContainerRef } from '@angular/core';
2
+ import { ComplexBase, ArrayBase } from '@syncfusion/ej2-angular-base';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * `e-stacked-column` directive represent the stacked column of the Angular TreeGrid.
6
+ * It must be contained in a StackedColumns component(`e-stacked-columns`).
7
+ * ```html
8
+ * <ejs-treegrid [dataSource]='data' allowPaging='true' allowSorting='true'>
9
+ * <e-columns>
10
+ * <e-column field='ID' width='100'></e-column>
11
+ * <e-column headerText='Details' width='100'>
12
+ * <e-stacked-columns>
13
+ * <e-stacked-column field='Name' width='140'></e-stacked-column>
14
+ * </e-stacked-columns>
15
+ * </e-column>
16
+ * </e-columns>
17
+ * </ejs-treegrid>
18
+ * ```
19
+ */
20
+ export declare class StackedColumnDirective extends ComplexBase<StackedColumnDirective> {
21
+ private viewContainerRef;
22
+ directivePropList: any;
23
+ /**
24
+ * Defines the data type of the column.
25
+ * @default null
26
+ */
27
+ type: any;
28
+ /**
29
+ * If `allowEditing` set to false, then it disables editing of a particular column.
30
+ * By default all columns are editable.
31
+ * @default true
32
+ */
33
+ allowEditing: any;
34
+ /**
35
+ * If `allowFiltering` set to false, then it disables filtering option and filter bar element of a particular column.
36
+ * By default all columns are filterable.
37
+ * @default true
38
+ */
39
+ allowFiltering: any;
40
+ /**
41
+ * If `allowReordering` set to false, then it disables reorder of a particular column.
42
+ * By default all columns can be reorder.
43
+ * @default true
44
+ */
45
+ allowReordering: any;
46
+ /**
47
+ * If `allowResizing` set to false, it disables resize option of a particular column.
48
+ * @default true
49
+ */
50
+ allowResizing: any;
51
+ /**
52
+ * If `allowSorting` set to false, then it disables sorting option of a particular column.
53
+ * By default all columns are sortable.
54
+ * @default true
55
+ */
56
+ allowSorting: any;
57
+ /**
58
+ * Defines the cell content's overflow mode. The available modes are
59
+ *
60
+ * also it will display tooltip while hover on ellipsis applied cell.
61
+ * @default Syncfusion.EJ2.Grids.ClipMode.Ellipsis
62
+ * @isenumeration true
63
+ * @asptype Syncfusion.EJ2.Grids.ClipMode
64
+ */
65
+ clipMode: any;
66
+ /**
67
+ * Used to render multiple header rows(stacked headers) on TreeGrid header.
68
+ * @default null
69
+ */
70
+ columns: any;
71
+ /**
72
+ * `commands` provides an option to display command buttons in every cell.
73
+ * The available built-in command buttons are
74
+ * * Edit - Edit the record.
75
+ * * Delete - Delete the record.
76
+ * * Save - Save the record.
77
+ * * Cancel - Cancel the edit state.
78
+ *
79
+ * The following code example implements the custom command column.
80
+ *```html
81
+ *<style type="text/css" class="cssStyles">
82
+ *.details-icon:before
83
+ *{
84
+ * content:"\e74d";
85
+ *}
86
+ *</style>
87
+ *<div id="TreeGrid"></div>
88
+ *```
89
+ *```typescript
90
+ *var gridObj = new TreeGrid({
91
+ *datasource: window.gridData,
92
+ *columns : [
93
+ * { field: 'CustomerID', headerText: 'Customer ID' },
94
+ * { field: 'CustomerName', headerText: 'Customer Name' },
95
+ * {commands: [{buttonOption:{content: 'Details', click: onClick, cssClass: details-icon}}], headerText: 'Customer Details'}
96
+ *]
97
+ *gridObj.appendTo("#TreeGrid");
98
+ *```
99
+ *
100
+ * @default null
101
+ */
102
+ commands: any;
103
+ /**
104
+ * The CSS styles and attributes of the content cells of a particular column can be customized.
105
+ * @default null
106
+ */
107
+ customAttributes: any;
108
+ /**
109
+ * Defines default values for the component when adding a new record to the TreeGrid.
110
+ * @default null
111
+ */
112
+ defaultValue: any;
113
+ /**
114
+ * If `disableHtmlEncode` is set to true, it encodes the HTML of the header and content cells.
115
+ * @default true
116
+ */
117
+ disableHtmlEncode: any;
118
+ /**
119
+ * If `displayAsCheckBox` is set to true, it displays the column value as a check box instead of Boolean value.
120
+ * @default false
121
+ */
122
+ displayAsCheckBox: any;
123
+ /**
124
+ * Defines the `IEditCell` object to customize default edit cell.
125
+ * @default {}
126
+ */
127
+ edit: any;
128
+ /**
129
+ * Defines the type of component for editing.
130
+ * @default 'stringedit'
131
+ */
132
+ editType: any;
133
+ /**
134
+ * Defines the field name of column which is mapped with mapping name of DataSource.
135
+ * The bounded columns can be sort, filter etc.,
136
+ * The `field` name must be a valid JavaScript identifier,
137
+ * the first character must be an alphabet and should not contain spaces and special characters.
138
+ * @default 'undefined'
139
+ */
140
+ field: any;
141
+ /**
142
+ * Defines the filter options to customize filtering for the particular column.
143
+ *
144
+ * @default null
145
+ *
146
+ */
147
+ filter: any;
148
+ /**
149
+ * The `filterBarTemplate` is used to add a custom component instead of default input component for filter bar.
150
+ * It have create and read functions.
151
+ * * create: It is used for creating custom components.
152
+ * * read: It is used to perform custom filter action.
153
+ *
154
+ * ```html
155
+ *<div id="TreeGrid"></div>
156
+ *```
157
+ *```typescript
158
+ *let gridObj: TreeGrid = new TreeGrid({
159
+ *dataSource: filterData,
160
+ *columns: [
161
+ * { field: 'OrderID', headerText: 'Order ID' },
162
+ * {
163
+ * field: 'EmployeeID', filterBarTemplate: {
164
+ * create: (args: { element: Element, column: Column }) => {
165
+ * let input: HTMLInputElement = document.createElement('input');
166
+ * input.id = 'EmployeeID';
167
+ * input.type = 'text';
168
+ * return input;
169
+ * },
170
+ * write: (args: { element: Element, column: Column }) => {
171
+ * args.element.addEventListener('input', args.column.filterBarTemplate.read as EventListener);
172
+ * },
173
+ * read: (args: { element: HTMLInputElement, columnIndex: number, column: Column }) => {
174
+ * gridObj.filterByColumn(args.element.id, 'equal', args.element.value);
175
+ * }
176
+ * }
177
+ * }],
178
+ * allowFiltering: true
179
+ *});
180
+ *gridObj.appendTo('#TreeGrid');
181
+ *```
182
+ *
183
+ * @default null
184
+ */
185
+ filterBarTemplate: any;
186
+ /**
187
+ * It is used to change display value with the given format and does not affect the original data.
188
+ * Gets the format from the user which can be standard or custom
189
+ * [`number`](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string)
190
+ * and [`date`](https://ej2.syncfusion.com/documentation/common/internationalization/#supported-format-string-1) formats.
191
+ * @default null
192
+ * @asptype string
193
+ */
194
+ format: any;
195
+ /**
196
+ * Defines the method which is used to achieve custom formatting from an external function.
197
+ * This function triggers before rendering of each cell.
198
+ * @default null
199
+ */
200
+ formatter: any;
201
+ /**
202
+ * Defines which side the column need to freeze
203
+ * @default Syncfusion.EJ2.Grids.FreezeDirection.None
204
+ * @isenumeration true
205
+ * @asptype Syncfusion.EJ2.Grids.FreezeDirection
206
+ */
207
+ freeze: any;
208
+ /**
209
+ * Defines the header text of column which is used to display in column header.
210
+ * If `headerText` is not defined, then field name value will be assigned to header text.
211
+ * @default 'undefined'
212
+ */
213
+ headerText: any;
214
+ /**
215
+ * Define the alignment of column header which is used to align the text of column header.
216
+ * @default null
217
+ * @aspdefaultvalueignore
218
+ * @isenumeration true
219
+ * @asptype Syncfusion.EJ2.Grids.TextAlign
220
+ */
221
+ headerTextAlign: any;
222
+ /**
223
+ * Column visibility can change based on [`Media Queries`](http://cssmediaqueries.com/what-are-css-media-queries.html).
224
+ * `hideAtMedia` accepts only valid Media Queries.
225
+ * @default 'undefined'
226
+ */
227
+ hideAtMedia: any;
228
+ /**
229
+ * You can use this property to freeze selected columns in grid.
230
+ * @default false
231
+ */
232
+ isFrozen: any;
233
+ /**
234
+ * If `isIdentity` is set to true, then this column is considered as identity column.
235
+ * @default false
236
+ */
237
+ isIdentity: any;
238
+ /**
239
+ * If `isPrimaryKey` is set to true, considers this column as the primary key constraint.
240
+ * @default false
241
+ */
242
+ isPrimaryKey: any;
243
+ /**
244
+ * If `lockColumn` set to true, then it disables Reordering of a particular column.
245
+ * The locked column will be moved to first position.
246
+ * @default false
247
+ */
248
+ lockColumn: any;
249
+ /**
250
+ * Defines the maximum width of the column in pixels or percentage, which will restrict resizing beyond this pixels or percentage.
251
+ * @default 'undefined'
252
+ */
253
+ maxWidth: any;
254
+ /**
255
+ * Defines the minimum width of the column in pixels or percentage.
256
+ * @default 'undefined'
257
+ */
258
+ minWidth: any;
259
+ /**
260
+ * If `showCheckbox` set to true, then the checkboxes will be displayed in particular column.
261
+ * @default false
262
+ */
263
+ showCheckbox: any;
264
+ /**
265
+ * If `showColumnMenu` set to false, then it disable the column menu of a particular column.
266
+ * By default column menu will show for all columns
267
+ * @default true
268
+ */
269
+ showColumnMenu: any;
270
+ /**
271
+ * If `showInColumnChooser` set to false, then hide the particular column in column chooser.
272
+ * By default all columns are displayed in column Chooser.
273
+ * @default true
274
+ */
275
+ showInColumnChooser: any;
276
+ /**
277
+ * Defines the sort comparer property.
278
+ * @default 'undefined'
279
+ */
280
+ sortComparer: any;
281
+ /**
282
+ * Defines the alignment of the column in both header and content cells.
283
+ * @default Syncfusion.EJ2.Grids.TextAlign.Left
284
+ * @isenumeration true
285
+ * @asptype Syncfusion.EJ2.Grids.TextAlign
286
+ */
287
+ textAlign: any;
288
+ /**
289
+ * Gets the unique identifier value of the column. It is used to get the object.
290
+ * @default 'undefined'
291
+ */
292
+ uid: any;
293
+ /**
294
+ * Defines rules to validate data before creating and updating.
295
+ * @default null
296
+ */
297
+ validationRules: any;
298
+ /**
299
+ * Defines the method used to apply custom cell values from external function and display this on each cell rendered.
300
+ * @default null
301
+ */
302
+ valueAccessor: any;
303
+ /**
304
+ * If `visible` is set to false, hides the particular column. By default, columns are displayed.
305
+ * @default true
306
+ */
307
+ visible: any;
308
+ /**
309
+ * Defines the width of the column in pixels or percentage.
310
+ * @default 'undefined'
311
+ */
312
+ width: any;
313
+ /**
314
+ * Defines the column template that renders customized element in each cell of the column.
315
+ * It accepts either [template string](https://ej2.syncfusion.com/documentation/common/template-engine/) or HTML element ID.
316
+ * @default null
317
+ */
318
+ template: any;
319
+ /**
320
+ * Defines the header template as string or HTML element ID which is used to add customized element in the column header.
321
+ * @default null
322
+ */
323
+ headerTemplate: any;
324
+ filter_itemTemplate: any;
325
+ /**
326
+ * Defines the filter template/UI that is used as filter for a particular column.
327
+ * It accepts either template string or HTML element ID.
328
+ * @aspignore
329
+ */
330
+ filterTemplate: any;
331
+ commandsTemplate: any;
332
+ /**
333
+ * Defines the cell edit template that used as editor for a particular column.
334
+ * It accepts either template string or HTML element ID.
335
+ * @aspignore
336
+ */
337
+ editTemplate: any;
338
+ constructor(viewContainerRef: ViewContainerRef);
339
+ static ɵfac: i0.ɵɵFactoryDeclaration<StackedColumnDirective, never>;
340
+ static ɵdir: i0.ɵɵDirectiveDeclaration<StackedColumnDirective, "ejs-treegrid>e-columns>e-column>e-stacked-columns>e-stacked-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"]>;
341
+ }
342
+ /**
343
+ * StackedColumn Array Directive
344
+ * @private
345
+ */
346
+ export declare class StackedColumnsDirective extends ArrayBase<StackedColumnsDirective> {
347
+ constructor();
348
+ static ɵfac: i0.ɵɵFactoryDeclaration<StackedColumnsDirective, never>;
349
+ static ɵdir: i0.ɵɵDirectiveDeclaration<StackedColumnsDirective, "ejs-treegrid>e-columns>e-column>e-stacked-columns", never, {}, {}, ["children"]>;
350
+ }
@@ -1,14 +1,15 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./treegrid.component";
3
- import * as i2 from "./columns.directive";
4
- import * as i3 from "./aggregate-columns.directive";
5
- import * as i4 from "./aggregates.directive";
6
- import * as i5 from "@angular/common";
3
+ import * as i2 from "./stacked-column.directive";
4
+ import * as i3 from "./columns.directive";
5
+ import * as i4 from "./aggregate-columns.directive";
6
+ import * as i5 from "./aggregates.directive";
7
+ import * as i6 from "@angular/common";
7
8
  /**
8
9
  * NgModule definition for the TreeGrid component.
9
10
  */
10
11
  export declare class TreeGridModule {
11
12
  static ɵfac: i0.ɵɵFactoryDeclaration<TreeGridModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<TreeGridModule, [typeof i1.TreeGridComponent, typeof i2.ColumnDirective, typeof i2.ColumnsDirective, typeof i3.AggregateColumnDirective, typeof i3.AggregateColumnsDirective, typeof i4.AggregateDirective, typeof i4.AggregatesDirective], [typeof i5.CommonModule], [typeof i1.TreeGridComponent, typeof i2.ColumnDirective, typeof i2.ColumnsDirective, typeof i3.AggregateColumnDirective, typeof i3.AggregateColumnsDirective, typeof i4.AggregateDirective, typeof i4.AggregatesDirective]>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TreeGridModule, [typeof i1.TreeGridComponent, typeof i2.StackedColumnDirective, typeof i2.StackedColumnsDirective, typeof i3.ColumnDirective, typeof i3.ColumnsDirective, typeof i4.AggregateColumnDirective, typeof i4.AggregateColumnsDirective, typeof i5.AggregateDirective, typeof i5.AggregatesDirective], [typeof i6.CommonModule], [typeof i1.TreeGridComponent, typeof i2.StackedColumnDirective, typeof i2.StackedColumnsDirective, typeof i3.ColumnDirective, typeof i3.ColumnsDirective, typeof i4.AggregateColumnDirective, typeof i4.AggregateColumnsDirective, typeof i5.AggregateDirective, typeof i5.AggregatesDirective]>;
13
14
  static ɵinj: i0.ɵɵInjectorDeclaration<TreeGridModule>;
14
15
  }