@syncfusion/ej2-angular-grids 19.3.53 → 19.3.57

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,461 @@
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
+ * If `enableGroupByFormat` set to true, then it groups the particular column by formatted values.
178
+ * By default no columns are group by format.
179
+ * @default true
180
+ */
181
+ enableGroupByFormat: any;
182
+ /**
183
+ * Defines the field name of column which is mapped with mapping name of DataSource.
184
+ * The bounded columns can be sort, filter and group etc.,
185
+ * If the `field` name contains “dot”, then it is considered as complex binding.
186
+ * The `field` name must be a valid JavaScript identifier,
187
+ * the first character must be an alphabet and should not contain spaces and special characters.
188
+ * @default ''
189
+ */
190
+ field: any;
191
+ /**
192
+ * Defines the filter options to customize filtering for the particular column.
193
+ *
194
+ * @default null
195
+ *
196
+ */
197
+ filter: any;
198
+ /**
199
+ * The `filterBarTemplate` is used to add a custom component instead of default input component for filter bar.
200
+ * It have create and read functions.
201
+ * * create: It is used for creating custom components.
202
+ * * read: It is used to perform custom filter action.
203
+ *
204
+ * ```html
205
+ *<div id="Grid"></div>
206
+ *```
207
+ *```typescript
208
+ *let gridObj: Grid = new Grid({
209
+ *dataSource: filterData,
210
+ *columns: [
211
+ * { field: 'OrderID', headerText: 'Order ID' },
212
+ * {
213
+ * field: 'EmployeeID', filterBarTemplate: {
214
+ * create: (args: { element: Element, column: Column }) => {
215
+ * let input: HTMLInputElement = document.createElement('input');
216
+ * input.id = 'EmployeeID';
217
+ * input.type = 'text';
218
+ * return input;
219
+ * },
220
+ * write: (args: { element: Element, column: Column }) => {
221
+ * args.element.addEventListener('input', args.column.filterBarTemplate.read as EventListener);
222
+ * },
223
+ * read: (args: { element: HTMLInputElement, columnIndex: number, column: Column }) => {
224
+ * gridObj.filterByColumn(args.element.id, 'equal', args.element.value);
225
+ * }
226
+ * }
227
+ * }],
228
+ * allowFiltering: true
229
+ *});
230
+ *gridObj.appendTo('#Grid');
231
+ *```
232
+ *
233
+ * @default null
234
+ */
235
+ filterBarTemplate: any;
236
+ /**
237
+ * Defines the mapping column name of the foreign data source.
238
+ * If it is not defined then the `columns.field` will be considered as mapping column name
239
+ * @default null
240
+ */
241
+ foreignKeyField: any;
242
+ /**
243
+ * Defines the display column name from the foreign data source which will be obtained from comparing local and foreign data
244
+ * @default null
245
+ */
246
+ foreignKeyValue: any;
247
+ /**
248
+ * It is used to change display value with the given format and does not affect the original data.
249
+ * Gets the format from the user which can be standard or custom
250
+ * [`number`](../../common/internationalization/#manipulating-numbers)
251
+ * and [`date`](../../common/internationalization/#manipulating-datetime) formats.
252
+ * @default null
253
+ * @asptype string
254
+ */
255
+ format: any;
256
+ /**
257
+ * Defines the method which is used to achieve custom formatting from an external function.
258
+ * This function triggers before rendering of each cell.
259
+ *
260
+ * ```html
261
+ *<div id="Grid"></div>
262
+ *```
263
+ *```typescript
264
+ *class ExtendedFormatter implements ICellFormatter {
265
+ *public getValue(column: Column, data: Object): Object {
266
+ * return '<span style="color:' + (data['Verified'] ? 'green' : 'red') + '"><i>' + data['Verified'] + '</i><span>';
267
+ *}
268
+ *}
269
+ *let gridObj: Grid = new Grid({
270
+ * dataSource: filterData,
271
+ * columns: [
272
+ * { field: 'ShipName', headerText: 'Ship Name' },
273
+ * { field: 'Verified', headerText: 'Verified Status', formatter: ExtendedFormatter }]
274
+ *});
275
+ *gridObj.appendTo('#Grid');
276
+ *```
277
+ *
278
+ * @default null
279
+ */
280
+ formatter: any;
281
+ /**
282
+ * defines which side the column need to freeze
283
+ * The available built-in freeze directions are
284
+ * * Left - Freeze the column at left side.
285
+ * * Right - Freeze the column at right side.
286
+ * @default null
287
+ */
288
+ freeze: any;
289
+ /**
290
+ * Defines the header text of column which is used to display in column header.
291
+ * If `headerText` is not defined, then field name value will be assigned to header text.
292
+ * @default null
293
+ */
294
+ headerText: any;
295
+ /**
296
+ * Define the alignment of column header which is used to align the text of column header.
297
+ * @aspdefaultvalueignore
298
+ * @default null
299
+ */
300
+ headerTextAlign: any;
301
+ /**
302
+ * Defines the method used to apply custom header cell values from external function and display this on each cell rendered.
303
+ *
304
+ * ```html
305
+ *<div id="Grid"></div>
306
+ *```
307
+ *```typescript
308
+ *let gridObj: Grid = new Grid({
309
+ *dataSource: [{ EmployeeID: 1, EmployeeName: ['John', 'M'] }, { EmployeeID: 2, EmployeeName: ['Peter', 'A'] }],
310
+ *columns: [
311
+ * { field: 'EmployeeID', headerText: 'Employee ID' },
312
+ * { field: 'EmployeeName', headerText: 'Employee First Name',
313
+ * headerValueAccessor: (field: string,column: Column) => {
314
+ * return "newheadername";
315
+ * },
316
+ * }]
317
+ *});
318
+ *```
319
+ *
320
+ * @default null
321
+ */
322
+ headerValueAccessor: any;
323
+ /**
324
+ * column visibility can change based on its [`Media Queries`](http://cssmediaqueries.com/what-are-css-media-queries.html).
325
+ * `hideAtMedia` accepts only valid Media Queries.
326
+ * @default ''
327
+ */
328
+ hideAtMedia: any;
329
+ /**
330
+ * Gets the unique identifier value of the column. It is used to get the object.
331
+ * @default null
332
+ */
333
+ index: any;
334
+ /**
335
+ * You can use this property to freeze selected columns in grid.
336
+ * @default false
337
+ */
338
+ isFrozen: any;
339
+ /**
340
+ * If `isIdentity` is set to true, then this column is considered as identity column.
341
+ * @default false
342
+ */
343
+ isIdentity: any;
344
+ /**
345
+ * If `isPrimaryKey` is set to true, considers this column as the primary key constraint.
346
+ * @default false
347
+ */
348
+ isPrimaryKey: any;
349
+ /**
350
+ * Defines the mapping column name of the foreign data source.
351
+ * If it is not defined then the `columns.field` will be considered as mapping column name
352
+ * @default false
353
+ */
354
+ lockColumn: any;
355
+ /**
356
+ * Defines the maximum width of the column in pixel or percentage, which will restrict resizing beyond this pixel or percentage.
357
+ * @default ''
358
+ */
359
+ maxWidth: any;
360
+ /**
361
+ * Defines the minimum width of the column in pixels or percentage.
362
+ * @default ''
363
+ */
364
+ minWidth: any;
365
+ /**
366
+ * If `showColumnMenu` set to false, then it disable the column menu of a particular column.
367
+ * By default column menu will show for all columns
368
+ * @default true
369
+ */
370
+ showColumnMenu: any;
371
+ /**
372
+ * If `showInColumnChooser` set to false, then hides the particular column in column chooser.
373
+ * By default all columns are displayed in column Chooser.
374
+ * @default true
375
+ */
376
+ showInColumnChooser: any;
377
+ /**
378
+ * It defines the custom sort comparer function.
379
+ */
380
+ sortComparer: any;
381
+ /**
382
+ * Defines the alignment of the column in both header and content cells.
383
+ * @default Left
384
+ */
385
+ textAlign: any;
386
+ /**
387
+ * Gets the unique identifier value of the column. It is used to get the object.
388
+ * @default ''
389
+ */
390
+ uid: any;
391
+ /**
392
+ * `editType`(../../grid/edit/#cell-edit-type-and-its-params) Defines rules to validate data before creating and updating.
393
+ * @default null
394
+ */
395
+ validationRules: any;
396
+ /**
397
+ * Defines the method used to apply custom cell values from external function and display this on each cell rendered.
398
+ *
399
+ * ```html
400
+ *<div id="Grid"></div>
401
+ *```
402
+ *```typescript
403
+ *let gridObj: Grid = new Grid({
404
+ *dataSource: [{ EmployeeID: 1, EmployeeName: ['John', 'M'] }, { EmployeeID: 2, EmployeeName: ['Peter', 'A'] }],
405
+ *columns: [
406
+ * { field: 'EmployeeID', headerText: 'Employee ID' },
407
+ * { field: 'EmployeeName', headerText: 'Employee First Name',
408
+ * valueAccessor: (field: string, data: Object, column: Column) => {
409
+ * return data['EmployeeName'][0];
410
+ * },
411
+ * }]
412
+ *});
413
+ *```
414
+ *
415
+ * @default null
416
+ */
417
+ valueAccessor: any;
418
+ /**
419
+ * If `visible` is set to false, hides the particular column. By default, all columns are displayed.
420
+ * @default true
421
+ */
422
+ visible: any;
423
+ /**
424
+ * Defines the width of the column in pixels or percentage.
425
+ * @default ''
426
+ */
427
+ width: any;
428
+ /**
429
+ * Defines the column template that renders customized element in each cell of the column.
430
+ * It accepts either [template string](../../common/template-engine/) or HTML element ID.
431
+ * @default null
432
+ */
433
+ template: any;
434
+ /**
435
+ * Defines the column template as string or HTML element ID which is used to add customized element in the column header.
436
+ * @default null
437
+ */
438
+ headerTemplate: any;
439
+ commandsTemplate: any;
440
+ filter_itemTemplate: any;
441
+ /**
442
+ * Defines the cell edit template that used as editor for a particular column.
443
+ * It accepts either template string or HTML element ID.
444
+ * @aspignore
445
+ */
446
+ editTemplate: any;
447
+ /**
448
+ * Defines the filter template/UI that used as filter for a particular column.
449
+ * It accepts either template string or HTML element ID.
450
+ * @aspignore
451
+ */
452
+ filterTemplate: any;
453
+ constructor(viewContainerRef: ViewContainerRef);
454
+ }
455
+ /**
456
+ * StackedColumn Array Directive
457
+ * @private
458
+ */
459
+ export declare class StackedColumnsDirective extends ArrayBase<StackedColumnsDirective> {
460
+ constructor();
461
+ }
package/src/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { StackedColumnDirective, StackedColumnsDirective } from './grid/stacked-column.directive';
1
2
  export { ColumnDirective, ColumnsDirective } from './grid/columns.directive';
2
3
  export { AggregateColumnDirective, AggregateColumnsDirective } from './grid/aggregate-columns.directive';
3
4
  export { AggregateDirective, AggregatesDirective } from './grid/aggregates.directive';
@@ -842,6 +842,7 @@
842
842
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
843
843
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
844
844
  background: transparent;
845
+ color: inherit;
845
846
  }
846
847
 
847
848
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
@@ -842,6 +842,7 @@
842
842
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
843
843
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
844
844
  background: transparent;
845
+ color: inherit;
845
846
  }
846
847
 
847
848
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
@@ -62,6 +62,7 @@
62
62
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
63
63
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
64
64
  background: transparent;
65
+ color: inherit;
65
66
  }
66
67
 
67
68
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
@@ -62,6 +62,7 @@
62
62
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
63
63
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
64
64
  background: transparent;
65
+ color: inherit;
65
66
  }
66
67
 
67
68
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
@@ -62,6 +62,7 @@
62
62
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
63
63
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
64
64
  background: transparent;
65
+ color: inherit;
65
66
  }
66
67
 
67
68
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],
@@ -62,6 +62,7 @@
62
62
  .e-input-group.e-control-wrapper.e-ddl .e-input[readonly],
63
63
  .e-float-input.e-control-wrapper.e-ddl input[readonly] {
64
64
  background: transparent;
65
+ color: inherit;
65
66
  }
66
67
 
67
68
  .e-input-group.e-control-wrapper.e-ddl.e-readonly .e-input[readonly],