@syncfusion/ej2-angular-grids 32.1.24 → 32.1.25-ngcc

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 (130) hide show
  1. package/@syncfusion/ej2-angular-grids.es5.js +1008 -0
  2. package/@syncfusion/ej2-angular-grids.es5.js.map +1 -0
  3. package/@syncfusion/ej2-angular-grids.js +947 -0
  4. package/@syncfusion/ej2-angular-grids.js.map +1 -0
  5. package/LICENSE +10 -0
  6. package/README.md +8 -16
  7. package/dist/ej2-angular-grids.umd.js +1634 -0
  8. package/dist/ej2-angular-grids.umd.js.map +1 -0
  9. package/dist/ej2-angular-grids.umd.min.js +11 -0
  10. package/dist/ej2-angular-grids.umd.min.js.map +1 -0
  11. package/ej2-angular-grids.d.ts +6 -0
  12. package/ej2-angular-grids.metadata.json +1 -0
  13. package/package.json +47 -29
  14. package/public_api.d.ts +1 -1
  15. package/schematics/utils/lib-details.js +2 -2
  16. package/schematics/utils/lib-details.ts +2 -2
  17. package/src/grid/aggregate-columns.directive.d.ts +114 -119
  18. package/src/grid/aggregates.directive.d.ts +40 -45
  19. package/src/grid/columns.directive.d.ts +479 -484
  20. package/src/grid/grid-all.module.d.ts +30 -36
  21. package/src/grid/grid.component.d.ts +163 -168
  22. package/src/grid/grid.module.d.ts +5 -15
  23. package/src/grid/stacked-column.directive.d.ts +481 -486
  24. package/src/index.d.ts +11 -11
  25. package/src/pager/pager-all.module.d.ts +5 -11
  26. package/src/pager/pager.component.d.ts +40 -43
  27. package/src/pager/pager.module.d.ts +5 -11
  28. package/styles/bds-lite.scss +1 -1
  29. package/styles/bds.scss +2 -2
  30. package/styles/bootstrap-dark-lite.scss +1 -1
  31. package/styles/bootstrap-dark.scss +2 -2
  32. package/styles/bootstrap-lite.scss +1 -1
  33. package/styles/bootstrap.scss +2 -2
  34. package/styles/bootstrap4-lite.scss +1 -1
  35. package/styles/bootstrap4.scss +2 -2
  36. package/styles/bootstrap5-dark-lite.scss +1 -1
  37. package/styles/bootstrap5-dark.scss +2 -2
  38. package/styles/bootstrap5-lite.scss +1 -1
  39. package/styles/bootstrap5.3-lite.scss +1 -1
  40. package/styles/bootstrap5.3.scss +2 -2
  41. package/styles/bootstrap5.scss +2 -2
  42. package/styles/excel-filter/bds.scss +1 -1
  43. package/styles/excel-filter/bootstrap-dark.scss +1 -1
  44. package/styles/excel-filter/bootstrap.scss +1 -1
  45. package/styles/excel-filter/bootstrap4.scss +1 -1
  46. package/styles/excel-filter/bootstrap5-dark.scss +1 -1
  47. package/styles/excel-filter/bootstrap5.3.scss +1 -1
  48. package/styles/excel-filter/bootstrap5.scss +1 -1
  49. package/styles/excel-filter/fabric-dark.scss +1 -1
  50. package/styles/excel-filter/fabric.scss +1 -1
  51. package/styles/excel-filter/fluent-dark.scss +1 -1
  52. package/styles/excel-filter/fluent.scss +1 -1
  53. package/styles/excel-filter/fluent2.scss +1 -1
  54. package/styles/excel-filter/highcontrast-light.scss +1 -1
  55. package/styles/excel-filter/highcontrast.scss +1 -1
  56. package/styles/excel-filter/material-dark.scss +1 -1
  57. package/styles/excel-filter/material.scss +1 -1
  58. package/styles/excel-filter/material3-dark.scss +2 -1
  59. package/styles/excel-filter/material3.scss +2 -1
  60. package/styles/excel-filter/tailwind-dark.scss +1 -1
  61. package/styles/excel-filter/tailwind.scss +1 -1
  62. package/styles/excel-filter/tailwind3.scss +1 -1
  63. package/styles/fabric-dark-lite.scss +1 -1
  64. package/styles/fabric-dark.scss +2 -2
  65. package/styles/fabric-lite.scss +1 -1
  66. package/styles/fabric.scss +2 -2
  67. package/styles/fluent-dark-lite.scss +1 -1
  68. package/styles/fluent-dark.scss +2 -2
  69. package/styles/fluent-lite.scss +1 -1
  70. package/styles/fluent.scss +2 -2
  71. package/styles/fluent2-lite.scss +1 -1
  72. package/styles/fluent2.scss +2 -2
  73. package/styles/grid/bds.scss +1 -1
  74. package/styles/grid/bootstrap-dark.scss +1 -1
  75. package/styles/grid/bootstrap.scss +1 -1
  76. package/styles/grid/bootstrap4.scss +1 -1
  77. package/styles/grid/bootstrap5-dark.scss +1 -1
  78. package/styles/grid/bootstrap5.3.scss +1 -1
  79. package/styles/grid/bootstrap5.scss +1 -1
  80. package/styles/grid/fabric-dark.scss +1 -1
  81. package/styles/grid/fabric.scss +1 -1
  82. package/styles/grid/fluent-dark.scss +1 -1
  83. package/styles/grid/fluent.scss +1 -1
  84. package/styles/grid/fluent2.scss +1 -1
  85. package/styles/grid/highcontrast-light.scss +1 -1
  86. package/styles/grid/highcontrast.scss +1 -1
  87. package/styles/grid/material-dark.scss +1 -1
  88. package/styles/grid/material.scss +1 -1
  89. package/styles/grid/material3-dark.scss +2 -1
  90. package/styles/grid/material3.scss +2 -1
  91. package/styles/grid/tailwind-dark.scss +1 -1
  92. package/styles/grid/tailwind.scss +1 -1
  93. package/styles/grid/tailwind3.scss +1 -1
  94. package/styles/highcontrast-light-lite.scss +1 -1
  95. package/styles/highcontrast-light.scss +2 -2
  96. package/styles/highcontrast-lite.scss +1 -1
  97. package/styles/highcontrast.scss +2 -2
  98. package/styles/material-dark-lite.scss +1 -1
  99. package/styles/material-dark.scss +2 -2
  100. package/styles/material-lite.scss +1 -1
  101. package/styles/material.scss +2 -2
  102. package/styles/material3-dark-lite.scss +1 -1
  103. package/styles/material3-dark.scss +3 -2
  104. package/styles/material3-lite.scss +1 -1
  105. package/styles/material3.scss +3 -2
  106. package/styles/tailwind-dark-lite.scss +1 -1
  107. package/styles/tailwind-dark.scss +2 -2
  108. package/styles/tailwind-lite.scss +1 -1
  109. package/styles/tailwind.scss +2 -2
  110. package/styles/tailwind3-lite.scss +1 -1
  111. package/styles/tailwind3.scss +2 -2
  112. package/CHANGELOG.md +0 -2844
  113. package/esm2020/public_api.mjs +0 -2
  114. package/esm2020/src/grid/aggregate-columns.directive.mjs +0 -84
  115. package/esm2020/src/grid/aggregates.directive.mjs +0 -69
  116. package/esm2020/src/grid/columns.directive.mjs +0 -100
  117. package/esm2020/src/grid/grid-all.module.mjs +0 -98
  118. package/esm2020/src/grid/grid.component.mjs +0 -298
  119. package/esm2020/src/grid/grid.module.mjs +0 -61
  120. package/esm2020/src/grid/stacked-column.directive.mjs +0 -100
  121. package/esm2020/src/index.mjs +0 -12
  122. package/esm2020/src/pager/pager-all.module.mjs +0 -23
  123. package/esm2020/src/pager/pager.component.mjs +0 -66
  124. package/esm2020/src/pager/pager.module.mjs +0 -25
  125. package/esm2020/syncfusion-ej2-angular-grids.mjs +0 -5
  126. package/fesm2015/syncfusion-ej2-angular-grids.mjs +0 -881
  127. package/fesm2015/syncfusion-ej2-angular-grids.mjs.map +0 -1
  128. package/fesm2020/syncfusion-ej2-angular-grids.mjs +0 -881
  129. package/fesm2020/syncfusion-ej2-angular-grids.mjs.map +0 -1
  130. package/syncfusion-ej2-angular-grids.d.ts +0 -5
@@ -1,484 +1,479 @@
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-column` directive represent a column of the Angular Grid.
6
- * It must be contained in a Grid component(`ejs-grid`).
7
- * ```html
8
- * <ejs-grid [dataSource]='data' allowPaging='true' allowSorting='true'>
9
- * <e-columns>
10
- * <e-column field='ID' width='100'></e-column>
11
- * <e-column field='name' headerText='Name' width='100'></e-column>
12
- * </e-columns>
13
- * </ejs-grid>
14
- * ```
15
- */
16
- export declare class ColumnDirective extends ComplexBase<ColumnDirective> {
17
- private viewContainerRef;
18
- directivePropList: any;
19
- childColumns: any;
20
- tags: string[];
21
- /**
22
- * Defines the data type of the column.
23
- * @default null
24
- */
25
- type: any;
26
- /**
27
- * If `allowEditing` set to false, then it disables editing of a particular column.
28
- * By default all columns are editable.
29
- * @default true
30
- */
31
- allowEditing: any;
32
- /**
33
- * If `allowFiltering` set to false, then it disables filtering option and filter bar element of a particular column.
34
- * By default all columns are filterable.
35
- * @default true
36
- */
37
- allowFiltering: any;
38
- /**
39
- * If `allowGrouping` set to false, then it disables grouping of a particular column.
40
- * By default all columns are groupable.
41
- * @default true
42
- */
43
- allowGrouping: any;
44
- /**
45
- * If `allowReordering` set to false, then it disables reorder of a particular column.
46
- * By default all columns can be reorder.
47
- * @default true
48
- */
49
- allowReordering: any;
50
- /**
51
- * If `allowResizing` set to false, it disables resize option of a particular column.
52
- * @default true
53
- */
54
- allowResizing: any;
55
- /**
56
- * If `allowSearching` set to false, then it disables Searching of a particular column.
57
- * By default all columns allow Searching.
58
- * @default true
59
- */
60
- allowSearching: any;
61
- /**
62
- * If `allowSorting` set to false, then it disables sorting option of a particular column.
63
- * By default all columns are sortable.
64
- * @default true
65
- */
66
- allowSorting: any;
67
- /**
68
- * If `autoFit` set to true, then the particular column content width will be
69
- * adjusted based on its content in the initial rendering itself.
70
- * Setting this property as true is equivalent to calling `autoFitColumns` method in the `dataBound` event.
71
- * @default false
72
- */
73
- autoFit: any;
74
- /**
75
- * Defines the cell content's overflow mode. The available modes are
76
- * * `Clip` - Truncates the cell content when it overflows its area.
77
- * * `Ellipsis` - Displays ellipsis when the cell content overflows its area.
78
- * * `EllipsisWithTooltip` - Displays ellipsis when the cell content overflows its area
79
- * also it will display tooltip while hover on ellipsis applied cell.
80
- * @default Ellipsis
81
- */
82
- clipMode: any;
83
- /**
84
- * Used to render multiple header rows(stacked headers) on the Grid header.
85
- * @default null
86
- */
87
- columns: any;
88
- /**
89
- * `commands` provides an option to display command buttons in every cell.
90
- * The available built-in command buttons are
91
- * * Edit - Edit the record.
92
- * * Delete - Delete the record.
93
- * * Save - Save the record.
94
- * * Cancel - Cancel the edit state.
95
- *
96
- * The following code example implements the custom command column.
97
- *```html
98
- *<style type="text/css" class="cssStyles">
99
- *.details-icon:before
100
- *{
101
- * content:"\e74d";
102
- *}
103
- *</style>
104
- *<div id="Grid"></div>
105
- *```
106
- *```typescript
107
- *var gridObj = new Grid({
108
- *datasource: window.gridData,
109
- *columns : [
110
- * { field: 'CustomerID', headerText: 'Customer ID' },
111
- * { field: 'CustomerName', headerText: 'Customer Name' },
112
- * {commands: [{buttonOption:{content: 'Details', click: onClick, cssClass: details-icon}}], headerText: 'Customer Details'}
113
- *]
114
- *gridObj.appendTo("#Grid");
115
- *```
116
- *
117
- * @default null
118
- */
119
- commands: any;
120
- /**
121
- * The CSS styles and attributes of the content cells of a particular column can be customized.
122
- *
123
- * ```html
124
- *<div id="Grid"></div>
125
- *```
126
- *```typescript
127
- *let gridObj: Grid = new Grid({
128
- *dataSource: filterData,
129
- *columns: [
130
- * { field: 'OrderID', headerText: 'Order ID' },
131
- * {
132
- * field: 'EmployeeID', headerText: 'Employee ID', customAttributes: {
133
- * class: 'employeeid',
134
- * type: 'employee-id-cell'
135
- * }
136
- * }]
137
- *});
138
- *gridObj.appendTo('#Grid');
139
- *```
140
- *
141
- * @default null
142
- */
143
- customAttributes: any;
144
- /**
145
- * Defines the column data source which will act as foreign data source.
146
- * @default null
147
- */
148
- dataSource: any;
149
- /**
150
- * Defines default values for the component when adding a new record to the Grid.
151
- * @default null
152
- * @asptype object
153
- */
154
- defaultValue: any;
155
- /**
156
- * If `disableHtmlEncode` is set to true, it encodes the HTML of the header and content cells.
157
- * @default true
158
- */
159
- disableHtmlEncode: any;
160
- /**
161
- * If `displayAsCheckBox` is set to true, it displays the column value as a check box instead of Boolean value.
162
- * @default false
163
- */
164
- displayAsCheckBox: any;
165
- /**
166
- * Defines the `IEditCell`(../../grid/edit/#cell-edit-template) object to customize default edit cell.
167
- * @default {}
168
- */
169
- edit: any;
170
- /**
171
- * Defines the type of component for editing.
172
- * @default 'stringedit'
173
- */
174
- editType: any;
175
- /**
176
- * Allows grid to perform column spanning on the specified column.
177
- * @default true
178
- */
179
- enableColumnSpan: any;
180
- /**
181
- * If `enableGroupByFormat` set to true, then it groups the particular column by formatted values.
182
- * By default no columns are group by format.
183
- * @default true
184
- */
185
- enableGroupByFormat: any;
186
- /**
187
- * Allows grid to perform row spanning on the specified column.
188
- * @default true
189
- */
190
- enableRowSpan: any;
191
- /**
192
- * Defines the field name of column which is mapped with mapping name of DataSource.
193
- * The bounded columns can be sort, filter and group etc.,
194
- * If the `field` name contains “dot”, then it is considered as complex binding.
195
- * The `field` name must be a valid JavaScript identifier,
196
- * the first character must be an alphabet and should not contain spaces and special characters.
197
- * @default ''
198
- */
199
- field: any;
200
- /**
201
- * Defines the filter options to customize filtering for the particular column.
202
- * @default {}
203
- */
204
- filter: any;
205
- /**
206
- * The `filterBarTemplate` is used to add a custom component instead of default input component for filter bar.
207
- * It have create and read functions.
208
- * * create: It is used for creating custom components.
209
- * * read: It is used to perform custom filter action.
210
- *
211
- * ```html
212
- *<div id="Grid"></div>
213
- *```
214
- *```typescript
215
- *let gridObj: Grid = new Grid({
216
- *dataSource: filterData,
217
- *columns: [
218
- * { field: 'OrderID', headerText: 'Order ID' },
219
- * {
220
- * field: 'EmployeeID', filterBarTemplate: {
221
- * create: (args: { element: Element, column: Column }) => {
222
- * let input: HTMLInputElement = document.createElement('input');
223
- * input.id = 'EmployeeID';
224
- * input.type = 'text';
225
- * return input;
226
- * },
227
- * write: (args: { element: Element, column: Column }) => {
228
- * args.element.addEventListener('input', args.column.filterBarTemplate.read as EventListener);
229
- * },
230
- * read: (args: { element: HTMLInputElement, columnIndex: number, column: Column }) => {
231
- * gridObj.filterByColumn(args.element.id, 'equal', args.element.value);
232
- * }
233
- * }
234
- * }],
235
- * allowFiltering: true
236
- *});
237
- *gridObj.appendTo('#Grid');
238
- *```
239
- *
240
- * @default null
241
- */
242
- filterBarTemplate: any;
243
- /**
244
- * Defines the mapping column name of the foreign data source.
245
- * If it is not defined then the `columns.field` will be considered as mapping column name
246
- * @default null
247
- */
248
- foreignKeyField: any;
249
- /**
250
- * Defines the display column name from the foreign data source which will be obtained from comparing local and foreign data
251
- * @default null
252
- */
253
- foreignKeyValue: any;
254
- /**
255
- * It is used to change display value with the given format and does not affect the original data.
256
- * Gets the format from the user which can be standard or custom
257
- * [`number`](../../common/internationalization/#manipulating-numbers)
258
- * and [`date`](../../common/internationalization/#manipulating-datetime) formats.
259
- * @default null
260
- * @asptype string
261
- */
262
- format: any;
263
- /**
264
- * Defines the method which is used to achieve custom formatting from an external function.
265
- * This function triggers before rendering of each cell.
266
- *
267
- * ```html
268
- *<div id="Grid"></div>
269
- *```
270
- *```typescript
271
- *class ExtendedFormatter implements ICellFormatter {
272
- *public getValue(column: Column, data: Object): Object {
273
- * return '<span style="color:' + (data['Verified'] ? 'green' : 'red') + '"><i>' + data['Verified'] + '</i><span>';
274
- *}
275
- *}
276
- *let gridObj: Grid = new Grid({
277
- * dataSource: filterData,
278
- * columns: [
279
- * { field: 'ShipName', headerText: 'Ship Name' },
280
- * { field: 'Verified', headerText: 'Verified Status', formatter: ExtendedFormatter }]
281
- *});
282
- *gridObj.appendTo('#Grid');
283
- *```
284
- *
285
- * @default null
286
- */
287
- formatter: any;
288
- /**
289
- * defines which side the column need to freeze
290
- * The available built-in freeze directions are
291
- * * Left - Freeze the column at left side.
292
- * * Right - Freeze the column at right side.
293
- * * Fixed - Freeze the column at Center.
294
- * * None - Does not freeze the column.
295
- * @default None
296
- */
297
- freeze: any;
298
- /**
299
- * Defines the header text of column which is used to display in column header.
300
- * If `headerText` is not defined, then field name value will be assigned to header text.
301
- * @default null
302
- */
303
- headerText: any;
304
- /**
305
- * Define the alignment of column header which is used to align the text of column header.
306
- * @aspdefaultvalueignore
307
- * @default null
308
- */
309
- headerTextAlign: any;
310
- /**
311
- * Defines the method used to apply custom header cell values from external function and display this on each cell rendered.
312
- *
313
- * ```html
314
- *<div id="Grid"></div>
315
- *```
316
- *```typescript
317
- *let gridObj: Grid = new Grid({
318
- *dataSource: [{ EmployeeID: 1, EmployeeName: ['John', 'M'] }, { EmployeeID: 2, EmployeeName: ['Peter', 'A'] }],
319
- *columns: [
320
- * { field: 'EmployeeID', headerText: 'Employee ID' },
321
- * { field: 'EmployeeName', headerText: 'Employee First Name',
322
- * headerValueAccessor: (field: string,column: Column) => {
323
- * return "newheadername";
324
- * },
325
- * }]
326
- *});
327
- *```
328
- *
329
- * @default null
330
- */
331
- headerValueAccessor: any;
332
- /**
333
- * column visibility can change based on its [`Media Queries`](http://cssmediaqueries.com/what-are-css-media-queries.html).
334
- * `hideAtMedia` accepts only valid Media Queries.
335
- * @default ''
336
- */
337
- hideAtMedia: any;
338
- /**
339
- * Gets the unique identifier value of the column. It is used to get the object.
340
- * @default null
341
- */
342
- index: any;
343
- /**
344
- * You can use this property to freeze selected columns in grid.
345
- * @default false
346
- */
347
- isFrozen: any;
348
- /**
349
- * If `isIdentity` is set to true, then this column is considered as identity column.
350
- * @default false
351
- */
352
- isIdentity: any;
353
- /**
354
- * If `isPrimaryKey` is set to true, considers this column as the primary key constraint.
355
- * @default false
356
- */
357
- isPrimaryKey: any;
358
- /**
359
- * Defines the mapping column name of the foreign data source.
360
- * If it is not defined then the `columns.field` will be considered as mapping column name
361
- * @default false
362
- */
363
- lockColumn: any;
364
- /**
365
- * Defines the maximum width of the column in pixel or percentage, which will restrict resizing beyond this pixel or percentage.
366
- * @default ''
367
- */
368
- maxWidth: any;
369
- /**
370
- * Defines the minimum width of the column in pixels or percentage.
371
- * @default ''
372
- */
373
- minWidth: any;
374
- /**
375
- * If `showColumnMenu` set to false, then it disable the column menu of a particular column.
376
- * By default column menu will show for all columns
377
- * @default true
378
- */
379
- showColumnMenu: any;
380
- /**
381
- * If `showInColumnChooser` set to false, then hides the particular column in column chooser.
382
- * By default all columns are displayed in column Chooser.
383
- * @default true
384
- */
385
- showInColumnChooser: any;
386
- /**
387
- * It defines the custom sort comparer function.
388
- */
389
- sortComparer: any;
390
- /**
391
- * Determines the behavior of the `aria-label` attribute for cells in template columns.
392
- * If enableAriaLabel is set to false, the aria-label attribute is not applied to template column cells, which affects screen reader accessibility.
393
- * @default {}
394
- */
395
- templateOptions: any;
396
- /**
397
- * Defines the alignment of the column in both header and content cells.
398
- * @default Left
399
- */
400
- textAlign: any;
401
- /**
402
- * Gets the unique identifier value of the column. It is used to get the object.
403
- * @default ''
404
- */
405
- uid: any;
406
- /**
407
- * `editType`(../../grid/edit/#cell-edit-type-and-its-params) Defines rules to validate data before creating and updating.
408
- * @default null
409
- */
410
- validationRules: any;
411
- /**
412
- * Defines the method used to apply custom cell values from external function and display this on each cell rendered.
413
- *
414
- * ```html
415
- *<div id="Grid"></div>
416
- *```
417
- *```typescript
418
- *let gridObj: Grid = new Grid({
419
- *dataSource: [{ EmployeeID: 1, EmployeeName: ['John', 'M'] }, { EmployeeID: 2, EmployeeName: ['Peter', 'A'] }],
420
- *columns: [
421
- * { field: 'EmployeeID', headerText: 'Employee ID' },
422
- * { field: 'EmployeeName', headerText: 'Employee First Name',
423
- * valueAccessor: (field: string, data: Object, column: Column) => {
424
- * return data['EmployeeName'][0];
425
- * },
426
- * }]
427
- *});
428
- *```
429
- *
430
- * @default null
431
- */
432
- valueAccessor: any;
433
- /**
434
- * If `visible` is set to false, hides the particular column. By default, all columns are displayed.
435
- * @default true
436
- */
437
- visible: any;
438
- /**
439
- * Defines the width of the column in pixels or percentage.
440
- * @default ''
441
- */
442
- width: any;
443
- /**
444
- * Defines the column template that renders customized element in each cell of the column.
445
- * It accepts either [template string](../../common/template/) or HTML element ID.
446
- * @default null
447
- * @asptype string
448
- */
449
- template: any;
450
- /**
451
- * Defines the column template as string or HTML element ID which is used to add customized element in the column header.
452
- * @default null
453
- * @asptype string
454
- */
455
- headerTemplate: any;
456
- commandsTemplate: any;
457
- filter_itemTemplate: any;
458
- /**
459
- * Defines the cell edit template that used as editor for a particular column.
460
- * It accepts either template string or HTML element ID.
461
- * @default null
462
- * @asptype string
463
- */
464
- editTemplate: any;
465
- /**
466
- * Defines the filter template/UI that used as filter for a particular column.
467
- * It accepts either template string or HTML element ID.
468
- * @default null
469
- * @asptype string
470
- */
471
- filterTemplate: any;
472
- constructor(viewContainerRef: ViewContainerRef);
473
- static ɵfac: i0.ɵɵFactoryDeclaration<ColumnDirective, never>;
474
- static ɵdir: i0.ɵɵDirectiveDeclaration<ColumnDirective, "ejs-grid>e-columns>e-column", never, { "allowEditing": "allowEditing"; "allowFiltering": "allowFiltering"; "allowGrouping": "allowGrouping"; "allowReordering": "allowReordering"; "allowResizing": "allowResizing"; "allowSearching": "allowSearching"; "allowSorting": "allowSorting"; "autoFit": "autoFit"; "clipMode": "clipMode"; "columns": "columns"; "commands": "commands"; "customAttributes": "customAttributes"; "dataSource": "dataSource"; "defaultValue": "defaultValue"; "disableHtmlEncode": "disableHtmlEncode"; "displayAsCheckBox": "displayAsCheckBox"; "edit": "edit"; "editTemplate": "editTemplate"; "editType": "editType"; "enableColumnSpan": "enableColumnSpan"; "enableGroupByFormat": "enableGroupByFormat"; "enableRowSpan": "enableRowSpan"; "field": "field"; "filter": "filter"; "filterBarTemplate": "filterBarTemplate"; "filterTemplate": "filterTemplate"; "foreignKeyField": "foreignKeyField"; "foreignKeyValue": "foreignKeyValue"; "format": "format"; "formatter": "formatter"; "freeze": "freeze"; "headerTemplate": "headerTemplate"; "headerText": "headerText"; "headerTextAlign": "headerTextAlign"; "headerValueAccessor": "headerValueAccessor"; "hideAtMedia": "hideAtMedia"; "index": "index"; "isFrozen": "isFrozen"; "isIdentity": "isIdentity"; "isPrimaryKey": "isPrimaryKey"; "lockColumn": "lockColumn"; "maxWidth": "maxWidth"; "minWidth": "minWidth"; "showColumnMenu": "showColumnMenu"; "showInColumnChooser": "showInColumnChooser"; "sortComparer": "sortComparer"; "template": "template"; "templateOptions": "templateOptions"; "textAlign": "textAlign"; "type": "type"; "uid": "uid"; "validationRules": "validationRules"; "valueAccessor": "valueAccessor"; "visible": "visible"; "width": "width"; }, {}, ["template", "headerTemplate", "commandsTemplate", "filter_itemTemplate", "editTemplate", "filterTemplate", "childColumns"]>;
475
- }
476
- /**
477
- * Column Array Directive
478
- * @private
479
- */
480
- export declare class ColumnsDirective extends ArrayBase<ColumnsDirective> {
481
- constructor();
482
- static ɵfac: i0.ɵɵFactoryDeclaration<ColumnsDirective, never>;
483
- static ɵdir: i0.ɵɵDirectiveDeclaration<ColumnsDirective, "ejs-grid>e-columns", never, {}, {}, ["children"]>;
484
- }
1
+ import { ViewContainerRef } from '@angular/core';
2
+ import { ComplexBase, ArrayBase } from '@syncfusion/ej2-angular-base';
3
+ /**
4
+ * `e-column` directive represent a column of the Angular Grid.
5
+ * It must be contained in a Grid component(`ejs-grid`).
6
+ * ```html
7
+ * <ejs-grid [dataSource]='data' allowPaging='true' allowSorting='true'>
8
+ * <e-columns>
9
+ * <e-column field='ID' width='100'></e-column>
10
+ * <e-column field='name' headerText='Name' width='100'></e-column>
11
+ * </e-columns>
12
+ * </ejs-grid>
13
+ * ```
14
+ */
15
+ export declare class ColumnDirective extends ComplexBase<ColumnDirective> {
16
+ private viewContainerRef;
17
+ directivePropList: any;
18
+ childColumns: any;
19
+ tags: string[];
20
+ /**
21
+ * Defines the data type of the column.
22
+ * @default null
23
+ */
24
+ type: any;
25
+ /**
26
+ * If `allowEditing` set to false, then it disables editing of a particular column.
27
+ * By default all columns are editable.
28
+ * @default true
29
+ */
30
+ allowEditing: any;
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.
34
+ * @default true
35
+ */
36
+ allowFiltering: any;
37
+ /**
38
+ * If `allowGrouping` set to false, then it disables grouping of a particular column.
39
+ * By default all columns are groupable.
40
+ * @default true
41
+ */
42
+ allowGrouping: any;
43
+ /**
44
+ * If `allowReordering` set to false, then it disables reorder of a particular column.
45
+ * By default all columns can be reorder.
46
+ * @default true
47
+ */
48
+ allowReordering: any;
49
+ /**
50
+ * If `allowResizing` set to false, it disables resize option of a particular column.
51
+ * @default true
52
+ */
53
+ allowResizing: any;
54
+ /**
55
+ * If `allowSearching` set to false, then it disables Searching of a particular column.
56
+ * By default all columns allow Searching.
57
+ * @default true
58
+ */
59
+ allowSearching: any;
60
+ /**
61
+ * If `allowSorting` set to false, then it disables sorting option of a particular column.
62
+ * By default all columns are sortable.
63
+ * @default true
64
+ */
65
+ allowSorting: any;
66
+ /**
67
+ * If `autoFit` set to true, then the particular column content width will be
68
+ * adjusted based on its content in the initial rendering itself.
69
+ * Setting this property as true is equivalent to calling `autoFitColumns` method in the `dataBound` event.
70
+ * @default false
71
+ */
72
+ autoFit: any;
73
+ /**
74
+ * Defines the cell content's overflow mode. The available modes are
75
+ * * `Clip` - Truncates the cell content when it overflows its area.
76
+ * * `Ellipsis` - Displays ellipsis when the cell content overflows its area.
77
+ * * `EllipsisWithTooltip` - Displays ellipsis when the cell content overflows its area
78
+ * also it will display tooltip while hover on ellipsis applied cell.
79
+ * @default Ellipsis
80
+ */
81
+ clipMode: any;
82
+ /**
83
+ * Used to render multiple header rows(stacked headers) on the Grid header.
84
+ * @default null
85
+ */
86
+ columns: any;
87
+ /**
88
+ * `commands` provides an option to display command buttons in every cell.
89
+ * The available built-in command buttons are
90
+ * * Edit - Edit the record.
91
+ * * Delete - Delete the record.
92
+ * * Save - Save the record.
93
+ * * Cancel - Cancel the edit state.
94
+ *
95
+ * The following code example implements the custom command column.
96
+ *```html
97
+ *<style type="text/css" class="cssStyles">
98
+ *.details-icon:before
99
+ *{
100
+ * content:"\e74d";
101
+ *}
102
+ *</style>
103
+ *<div id="Grid"></div>
104
+ *```
105
+ *```typescript
106
+ *var gridObj = new Grid({
107
+ *datasource: window.gridData,
108
+ *columns : [
109
+ * { field: 'CustomerID', headerText: 'Customer ID' },
110
+ * { field: 'CustomerName', headerText: 'Customer Name' },
111
+ * {commands: [{buttonOption:{content: 'Details', click: onClick, cssClass: details-icon}}], headerText: 'Customer Details'}
112
+ *]
113
+ *gridObj.appendTo("#Grid");
114
+ *```
115
+ *
116
+ * @default null
117
+ */
118
+ commands: any;
119
+ /**
120
+ * The CSS styles and attributes of the content cells of a particular column can be customized.
121
+ *
122
+ * ```html
123
+ *<div id="Grid"></div>
124
+ *```
125
+ *```typescript
126
+ *let gridObj: Grid = new Grid({
127
+ *dataSource: filterData,
128
+ *columns: [
129
+ * { field: 'OrderID', headerText: 'Order ID' },
130
+ * {
131
+ * field: 'EmployeeID', headerText: 'Employee ID', customAttributes: {
132
+ * class: 'employeeid',
133
+ * type: 'employee-id-cell'
134
+ * }
135
+ * }]
136
+ *});
137
+ *gridObj.appendTo('#Grid');
138
+ *```
139
+ *
140
+ * @default null
141
+ */
142
+ customAttributes: any;
143
+ /**
144
+ * Defines the column data source which will act as foreign data source.
145
+ * @default null
146
+ */
147
+ dataSource: any;
148
+ /**
149
+ * Defines default values for the component when adding a new record to the Grid.
150
+ * @default null
151
+ * @asptype object
152
+ */
153
+ defaultValue: any;
154
+ /**
155
+ * If `disableHtmlEncode` is set to true, it encodes the HTML of the header and content cells.
156
+ * @default true
157
+ */
158
+ disableHtmlEncode: any;
159
+ /**
160
+ * If `displayAsCheckBox` is set to true, it displays the column value as a check box instead of Boolean value.
161
+ * @default false
162
+ */
163
+ displayAsCheckBox: any;
164
+ /**
165
+ * Defines the `IEditCell`(../../grid/edit/#cell-edit-template) object to customize default edit cell.
166
+ * @default {}
167
+ */
168
+ edit: any;
169
+ /**
170
+ * Defines the type of component for editing.
171
+ * @default 'stringedit'
172
+ */
173
+ editType: any;
174
+ /**
175
+ * Allows grid to perform column spanning on the specified column.
176
+ * @default true
177
+ */
178
+ enableColumnSpan: any;
179
+ /**
180
+ * If `enableGroupByFormat` set to true, then it groups the particular column by formatted values.
181
+ * By default no columns are group by format.
182
+ * @default true
183
+ */
184
+ enableGroupByFormat: any;
185
+ /**
186
+ * Allows grid to perform row spanning on the specified column.
187
+ * @default true
188
+ */
189
+ enableRowSpan: any;
190
+ /**
191
+ * Defines the field name of column which is mapped with mapping name of DataSource.
192
+ * The bounded columns can be sort, filter and group etc.,
193
+ * If the `field` name contains “dot”, then it is considered as complex binding.
194
+ * The `field` name must be a valid JavaScript identifier,
195
+ * the first character must be an alphabet and should not contain spaces and special characters.
196
+ * @default ''
197
+ */
198
+ field: any;
199
+ /**
200
+ * Defines the filter options to customize filtering for the particular column.
201
+ * @default {}
202
+ */
203
+ filter: any;
204
+ /**
205
+ * The `filterBarTemplate` is used to add a custom component instead of default input component for filter bar.
206
+ * It have create and read functions.
207
+ * * create: It is used for creating custom components.
208
+ * * read: It is used to perform custom filter action.
209
+ *
210
+ * ```html
211
+ *<div id="Grid"></div>
212
+ *```
213
+ *```typescript
214
+ *let gridObj: Grid = new Grid({
215
+ *dataSource: filterData,
216
+ *columns: [
217
+ * { field: 'OrderID', headerText: 'Order ID' },
218
+ * {
219
+ * field: 'EmployeeID', filterBarTemplate: {
220
+ * create: (args: { element: Element, column: Column }) => {
221
+ * let input: HTMLInputElement = document.createElement('input');
222
+ * input.id = 'EmployeeID';
223
+ * input.type = 'text';
224
+ * return input;
225
+ * },
226
+ * write: (args: { element: Element, column: Column }) => {
227
+ * args.element.addEventListener('input', args.column.filterBarTemplate.read as EventListener);
228
+ * },
229
+ * read: (args: { element: HTMLInputElement, columnIndex: number, column: Column }) => {
230
+ * gridObj.filterByColumn(args.element.id, 'equal', args.element.value);
231
+ * }
232
+ * }
233
+ * }],
234
+ * allowFiltering: true
235
+ *});
236
+ *gridObj.appendTo('#Grid');
237
+ *```
238
+ *
239
+ * @default null
240
+ */
241
+ filterBarTemplate: any;
242
+ /**
243
+ * Defines the mapping column name of the foreign data source.
244
+ * If it is not defined then the `columns.field` will be considered as mapping column name
245
+ * @default null
246
+ */
247
+ foreignKeyField: any;
248
+ /**
249
+ * Defines the display column name from the foreign data source which will be obtained from comparing local and foreign data
250
+ * @default null
251
+ */
252
+ foreignKeyValue: any;
253
+ /**
254
+ * It is used to change display value with the given format and does not affect the original data.
255
+ * Gets the format from the user which can be standard or custom
256
+ * [`number`](../../common/internationalization/#manipulating-numbers)
257
+ * and [`date`](../../common/internationalization/#manipulating-datetime) formats.
258
+ * @default null
259
+ * @asptype string
260
+ */
261
+ format: any;
262
+ /**
263
+ * Defines the method which is used to achieve custom formatting from an external function.
264
+ * This function triggers before rendering of each cell.
265
+ *
266
+ * ```html
267
+ *<div id="Grid"></div>
268
+ *```
269
+ *```typescript
270
+ *class ExtendedFormatter implements ICellFormatter {
271
+ *public getValue(column: Column, data: Object): Object {
272
+ * return '<span style="color:' + (data['Verified'] ? 'green' : 'red') + '"><i>' + data['Verified'] + '</i><span>';
273
+ *}
274
+ *}
275
+ *let gridObj: Grid = new Grid({
276
+ * dataSource: filterData,
277
+ * columns: [
278
+ * { field: 'ShipName', headerText: 'Ship Name' },
279
+ * { field: 'Verified', headerText: 'Verified Status', formatter: ExtendedFormatter }]
280
+ *});
281
+ *gridObj.appendTo('#Grid');
282
+ *```
283
+ *
284
+ * @default null
285
+ */
286
+ formatter: any;
287
+ /**
288
+ * defines which side the column need to freeze
289
+ * The available built-in freeze directions are
290
+ * * Left - Freeze the column at left side.
291
+ * * Right - Freeze the column at right side.
292
+ * * Fixed - Freeze the column at Center.
293
+ * * None - Does not freeze the column.
294
+ * @default None
295
+ */
296
+ freeze: any;
297
+ /**
298
+ * Defines the header text of column which is used to display in column header.
299
+ * If `headerText` is not defined, then field name value will be assigned to header text.
300
+ * @default null
301
+ */
302
+ headerText: any;
303
+ /**
304
+ * Define the alignment of column header which is used to align the text of column header.
305
+ * @aspdefaultvalueignore
306
+ * @default null
307
+ */
308
+ headerTextAlign: any;
309
+ /**
310
+ * Defines the method used to apply custom header cell values from external function and display this on each cell rendered.
311
+ *
312
+ * ```html
313
+ *<div id="Grid"></div>
314
+ *```
315
+ *```typescript
316
+ *let gridObj: Grid = new Grid({
317
+ *dataSource: [{ EmployeeID: 1, EmployeeName: ['John', 'M'] }, { EmployeeID: 2, EmployeeName: ['Peter', 'A'] }],
318
+ *columns: [
319
+ * { field: 'EmployeeID', headerText: 'Employee ID' },
320
+ * { field: 'EmployeeName', headerText: 'Employee First Name',
321
+ * headerValueAccessor: (field: string,column: Column) => {
322
+ * return "newheadername";
323
+ * },
324
+ * }]
325
+ *});
326
+ *```
327
+ *
328
+ * @default null
329
+ */
330
+ headerValueAccessor: any;
331
+ /**
332
+ * column visibility can change based on its [`Media Queries`](http://cssmediaqueries.com/what-are-css-media-queries.html).
333
+ * `hideAtMedia` accepts only valid Media Queries.
334
+ * @default ''
335
+ */
336
+ hideAtMedia: any;
337
+ /**
338
+ * Gets the unique identifier value of the column. It is used to get the object.
339
+ * @default null
340
+ */
341
+ index: any;
342
+ /**
343
+ * You can use this property to freeze selected columns in grid.
344
+ * @default false
345
+ */
346
+ isFrozen: any;
347
+ /**
348
+ * If `isIdentity` is set to true, then this column is considered as identity column.
349
+ * @default false
350
+ */
351
+ isIdentity: any;
352
+ /**
353
+ * If `isPrimaryKey` is set to true, considers this column as the primary key constraint.
354
+ * @default false
355
+ */
356
+ isPrimaryKey: any;
357
+ /**
358
+ * Defines the mapping column name of the foreign data source.
359
+ * If it is not defined then the `columns.field` will be considered as mapping column name
360
+ * @default false
361
+ */
362
+ lockColumn: any;
363
+ /**
364
+ * Defines the maximum width of the column in pixel or percentage, which will restrict resizing beyond this pixel or percentage.
365
+ * @default ''
366
+ */
367
+ maxWidth: any;
368
+ /**
369
+ * Defines the minimum width of the column in pixels or percentage.
370
+ * @default ''
371
+ */
372
+ minWidth: any;
373
+ /**
374
+ * If `showColumnMenu` set to false, then it disable the column menu of a particular column.
375
+ * By default column menu will show for all columns
376
+ * @default true
377
+ */
378
+ showColumnMenu: any;
379
+ /**
380
+ * If `showInColumnChooser` set to false, then hides the particular column in column chooser.
381
+ * By default all columns are displayed in column Chooser.
382
+ * @default true
383
+ */
384
+ showInColumnChooser: any;
385
+ /**
386
+ * It defines the custom sort comparer function.
387
+ */
388
+ sortComparer: any;
389
+ /**
390
+ * Determines the behavior of the `aria-label` attribute for cells in template columns.
391
+ * If enableAriaLabel is set to false, the aria-label attribute is not applied to template column cells, which affects screen reader accessibility.
392
+ * @default {}
393
+ */
394
+ templateOptions: any;
395
+ /**
396
+ * Defines the alignment of the column in both header and content cells.
397
+ * @default Left
398
+ */
399
+ textAlign: any;
400
+ /**
401
+ * Gets the unique identifier value of the column. It is used to get the object.
402
+ * @default ''
403
+ */
404
+ uid: any;
405
+ /**
406
+ * `editType`(../../grid/edit/#cell-edit-type-and-its-params) Defines rules to validate data before creating and updating.
407
+ * @default null
408
+ */
409
+ validationRules: any;
410
+ /**
411
+ * Defines the method used to apply custom cell values from external function and display this on each cell rendered.
412
+ *
413
+ * ```html
414
+ *<div id="Grid"></div>
415
+ *```
416
+ *```typescript
417
+ *let gridObj: Grid = new Grid({
418
+ *dataSource: [{ EmployeeID: 1, EmployeeName: ['John', 'M'] }, { EmployeeID: 2, EmployeeName: ['Peter', 'A'] }],
419
+ *columns: [
420
+ * { field: 'EmployeeID', headerText: 'Employee ID' },
421
+ * { field: 'EmployeeName', headerText: 'Employee First Name',
422
+ * valueAccessor: (field: string, data: Object, column: Column) => {
423
+ * return data['EmployeeName'][0];
424
+ * },
425
+ * }]
426
+ *});
427
+ *```
428
+ *
429
+ * @default null
430
+ */
431
+ valueAccessor: any;
432
+ /**
433
+ * If `visible` is set to false, hides the particular column. By default, all columns are displayed.
434
+ * @default true
435
+ */
436
+ visible: any;
437
+ /**
438
+ * Defines the width of the column in pixels or percentage.
439
+ * @default ''
440
+ */
441
+ width: any;
442
+ /**
443
+ * Defines the column template that renders customized element in each cell of the column.
444
+ * It accepts either [template string](../../common/template-engine/) or HTML element ID.
445
+ * @default null
446
+ * @asptype string
447
+ */
448
+ template: any;
449
+ /**
450
+ * Defines the column template as string or HTML element ID which is used to add customized element in the column header.
451
+ * @default null
452
+ * @asptype string
453
+ */
454
+ headerTemplate: any;
455
+ commandsTemplate: any;
456
+ filter_itemTemplate: any;
457
+ /**
458
+ * Defines the cell edit template that used as editor for a particular column.
459
+ * It accepts either template string or HTML element ID.
460
+ * @default null
461
+ * @asptype string
462
+ */
463
+ editTemplate: any;
464
+ /**
465
+ * Defines the filter template/UI that used as filter for a particular column.
466
+ * It accepts either template string or HTML element ID.
467
+ * @default null
468
+ * @asptype string
469
+ */
470
+ filterTemplate: any;
471
+ constructor(viewContainerRef: ViewContainerRef);
472
+ }
473
+ /**
474
+ * Column Array Directive
475
+ * @private
476
+ */
477
+ export declare class ColumnsDirective extends ArrayBase<ColumnsDirective> {
478
+ constructor();
479
+ }