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