@swimlane/ngx-datatable 20.1.0 → 21.0.0-alpha.0
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.
- package/{fesm2020 → fesm2022}/swimlane-ngx-datatable.mjs +3404 -2536
- package/fesm2022/swimlane-ngx-datatable.mjs.map +1 -0
- package/lib/components/body/body-cell.component.d.ts +28 -23
- package/lib/components/body/body-group-header-template.directive.d.ts +3 -4
- package/lib/components/body/body-group-header.directive.d.ts +14 -9
- package/lib/components/body/body-row-def.component.d.ts +34 -0
- package/lib/components/body/body-row-wrapper.component.d.ts +34 -22
- package/lib/components/body/body-row.component.d.ts +28 -34
- package/lib/components/body/body.component.d.ts +88 -69
- package/lib/components/body/ghost-loader/ghost-loader.component.d.ts +12 -0
- package/lib/components/body/progress-bar.component.d.ts +1 -1
- package/lib/components/body/scroller.component.d.ts +4 -7
- package/lib/components/body/selection.component.d.ts +21 -25
- package/lib/components/body/summary/summary-row.component.d.ts +4 -3
- package/lib/components/columns/column-cell.directive.d.ts +4 -3
- package/lib/components/columns/column-ghost-cell.directive.d.ts +6 -0
- package/lib/components/columns/column-header.directive.d.ts +3 -4
- package/lib/components/columns/column.directive.d.ts +43 -18
- package/lib/components/columns/tree.directive.d.ts +1 -2
- package/lib/components/datatable.component.d.ts +142 -76
- package/lib/components/footer/footer-template.directive.d.ts +3 -4
- package/lib/components/footer/footer.component.d.ts +3 -2
- package/lib/components/footer/footer.directive.d.ts +6 -4
- package/lib/components/footer/pager.component.d.ts +6 -4
- package/lib/components/header/header-cell.component.d.ts +18 -18
- package/lib/components/header/header.component.d.ts +41 -36
- package/lib/components/row-detail/row-detail-template.directive.d.ts +3 -4
- package/lib/components/row-detail/row-detail.directive.d.ts +9 -8
- package/lib/directives/disable-row.directive.d.ts +22 -0
- package/lib/directives/draggable.directive.d.ts +11 -8
- package/lib/directives/long-press.directive.d.ts +16 -5
- package/lib/directives/orderable.directive.d.ts +21 -10
- package/lib/directives/resizeable.directive.d.ts +7 -5
- package/lib/directives/visibility.directive.d.ts +2 -3
- package/lib/ngx-datatable.module.d.ts +29 -30
- package/lib/services/scrollbar-helper.service.d.ts +0 -1
- package/lib/types/internal.types.d.ts +31 -0
- package/lib/types/public.types.d.ts +142 -0
- package/lib/types/table-column.type.d.ts +39 -66
- package/lib/utils/column-helper.d.ts +2 -2
- package/lib/utils/column-prop-getters.d.ts +1 -1
- package/lib/utils/column.d.ts +7 -14
- package/lib/utils/keys.d.ts +6 -6
- package/lib/utils/math.d.ts +4 -3
- package/lib/utils/selection.d.ts +2 -2
- package/lib/utils/sort.d.ts +5 -5
- package/lib/utils/table-token.d.ts +7 -0
- package/lib/utils/tree.d.ts +2 -2
- package/package.json +9 -17
- package/public-api.d.ts +4 -11
- package/LICENSE +0 -22
- package/README.md +0 -47
- package/assets/app.css +0 -302
- package/assets/data/100k.json +0 -100002
- package/assets/data/company.json +0 -505
- package/assets/data/company_tree.json +0 -61
- package/assets/data/forRowGrouping.json +0 -227
- package/assets/fonts/data-table.eot +0 -0
- package/assets/fonts/data-table.svg +0 -26
- package/assets/fonts/data-table.ttf +0 -0
- package/assets/fonts/data-table.woff +0 -0
- package/assets/icons-reference.html +0 -395
- package/assets/icons.css +0 -105
- package/esm2020/lib/components/body/body-cell.component.mjs +0 -432
- package/esm2020/lib/components/body/body-group-header-template.directive.mjs +0 -16
- package/esm2020/lib/components/body/body-group-header.directive.mjs +0 -62
- package/esm2020/lib/components/body/body-row-wrapper.component.mjs +0 -140
- package/esm2020/lib/components/body/body-row.component.mjs +0 -262
- package/esm2020/lib/components/body/body.component.mjs +0 -863
- package/esm2020/lib/components/body/progress-bar.component.mjs +0 -27
- package/esm2020/lib/components/body/scroller.component.mjs +0 -91
- package/esm2020/lib/components/body/selection.component.mjs +0 -150
- package/esm2020/lib/components/body/summary/summary-row.component.mjs +0 -105
- package/esm2020/lib/components/columns/column-cell.directive.mjs +0 -14
- package/esm2020/lib/components/columns/column-header.directive.mjs +0 -14
- package/esm2020/lib/components/columns/column.directive.mjs +0 -98
- package/esm2020/lib/components/columns/tree.directive.mjs +0 -14
- package/esm2020/lib/components/datatable.component.mjs +0 -1008
- package/esm2020/lib/components/footer/footer-template.directive.mjs +0 -14
- package/esm2020/lib/components/footer/footer.component.mjs +0 -128
- package/esm2020/lib/components/footer/footer.directive.mjs +0 -35
- package/esm2020/lib/components/footer/pager.component.mjs +0 -181
- package/esm2020/lib/components/header/header-cell.component.mjs +0 -243
- package/esm2020/lib/components/header/header.component.mjs +0 -376
- package/esm2020/lib/components/row-detail/row-detail-template.directive.mjs +0 -16
- package/esm2020/lib/components/row-detail/row-detail.directive.mjs +0 -63
- package/esm2020/lib/directives/draggable.directive.mjs +0 -108
- package/esm2020/lib/directives/long-press.directive.mjs +0 -117
- package/esm2020/lib/directives/orderable.directive.mjs +0 -136
- package/esm2020/lib/directives/resizeable.directive.mjs +0 -93
- package/esm2020/lib/directives/visibility.directive.mjs +0 -63
- package/esm2020/lib/events.mjs +0 -7
- package/esm2020/lib/ngx-datatable.module.mjs +0 -139
- package/esm2020/lib/services/column-changes.service.mjs +0 -24
- package/esm2020/lib/services/dimensions-helper.service.mjs +0 -17
- package/esm2020/lib/services/scrollbar-helper.service.mjs +0 -37
- package/esm2020/lib/types/click.type.mjs +0 -6
- package/esm2020/lib/types/column-mode.type.mjs +0 -7
- package/esm2020/lib/types/contextmenu.type.mjs +0 -6
- package/esm2020/lib/types/selection.type.mjs +0 -9
- package/esm2020/lib/types/sort-direction.type.mjs +0 -6
- package/esm2020/lib/types/sort-prop-dir.type.mjs +0 -2
- package/esm2020/lib/types/sort.type.mjs +0 -6
- package/esm2020/lib/types/table-column.type.mjs +0 -2
- package/esm2020/lib/utils/camel-case.mjs +0 -28
- package/esm2020/lib/utils/column-helper.mjs +0 -95
- package/esm2020/lib/utils/column-prop-getters.mjs +0 -96
- package/esm2020/lib/utils/column.mjs +0 -69
- package/esm2020/lib/utils/elm-from-point.mjs +0 -38
- package/esm2020/lib/utils/id.mjs +0 -8
- package/esm2020/lib/utils/keys.mjs +0 -10
- package/esm2020/lib/utils/math.mjs +0 -146
- package/esm2020/lib/utils/prefixes.mjs +0 -38
- package/esm2020/lib/utils/row-height-cache.mjs +0 -138
- package/esm2020/lib/utils/selection.mjs +0 -40
- package/esm2020/lib/utils/sort.mjs +0 -127
- package/esm2020/lib/utils/throttle.mjs +0 -60
- package/esm2020/lib/utils/translate.mjs +0 -25
- package/esm2020/lib/utils/tree.mjs +0 -103
- package/esm2020/public-api.mjs +0 -64
- package/esm2020/swimlane-ngx-datatable.mjs +0 -5
- package/fesm2015/swimlane-ngx-datatable.mjs +0 -5979
- package/fesm2015/swimlane-ngx-datatable.mjs.map +0 -1
- package/fesm2020/swimlane-ngx-datatable.mjs.map +0 -1
- package/index.css +0 -198
- package/index.scss +0 -315
- package/lib/events.d.ts +0 -3
- package/lib/services/dimensions-helper.service.d.ts +0 -10
- package/lib/types/click.type.d.ts +0 -4
- package/lib/types/column-mode.type.d.ts +0 -5
- package/lib/types/contextmenu.type.d.ts +0 -4
- package/lib/types/selection.type.d.ts +0 -7
- package/lib/types/sort-direction.type.d.ts +0 -4
- package/lib/types/sort-prop-dir.type.d.ts +0 -6
- package/lib/types/sort.type.d.ts +0 -4
- package/lib/utils/elm-from-point.d.ts +0 -8
- package/lib/utils/prefixes.d.ts +0 -1
- package/lib/utils/translate.d.ts +0 -1
- package/themes/bootstrap.css +0 -67
- package/themes/bootstrap.scss +0 -101
- package/themes/dark.css +0 -75
- package/themes/dark.scss +0 -120
- package/themes/material.css +0 -305
- package/themes/material.scss +0 -480
- /package/{swimlane-ngx-datatable.d.ts → index.d.ts} +0 -0
|
@@ -1,44 +1,37 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AfterContentInit, AfterViewInit, DoCheck, EventEmitter, IterableDiffer, OnDestroy, OnInit, QueryList, TemplateRef } from '@angular/core';
|
|
2
2
|
import { DatatableGroupHeaderDirective } from './body/body-group-header.directive';
|
|
3
3
|
import { BehaviorSubject, Subscription } from 'rxjs';
|
|
4
4
|
import { INgxDatatableConfig } from '../ngx-datatable.module';
|
|
5
5
|
import { TableColumn } from '../types/table-column.type';
|
|
6
|
-
import { ColumnMode } from '../types/column-mode.type';
|
|
7
|
-
import { SelectionType } from '../types/selection.type';
|
|
8
|
-
import { SortType } from '../types/sort.type';
|
|
9
|
-
import { ContextmenuType } from '../types/contextmenu.type';
|
|
10
6
|
import { DataTableColumnDirective } from './columns/column.directive';
|
|
11
7
|
import { DatatableRowDetailDirective } from './row-detail/row-detail.directive';
|
|
12
8
|
import { DatatableFooterDirective } from './footer/footer.directive';
|
|
13
9
|
import { DataTableBodyComponent } from './body/body.component';
|
|
14
10
|
import { DataTableHeaderComponent } from './header/header.component';
|
|
15
|
-
import {
|
|
16
|
-
import { ColumnChangesService } from '../services/column-changes.service';
|
|
17
|
-
import { DimensionsHelper } from '../services/dimensions-helper.service';
|
|
11
|
+
import { ActivateEvent, ColumnMode, ColumnResizeEvent, ContextmenuType, DragEventData, Group, PageEvent, PagerPageEvent, ReorderEvent, RowOrGroup, ScrollEvent, SelectionType, SortEvent, SortPropDir, SortType, TreeStatus } from '../types/public.types';
|
|
18
12
|
import * as i0 from "@angular/core";
|
|
19
|
-
export declare class DatatableComponent implements OnInit, DoCheck, AfterViewInit {
|
|
13
|
+
export declare class DatatableComponent<TRow = any> implements OnInit, DoCheck, AfterViewInit, AfterContentInit, OnDestroy {
|
|
20
14
|
private scrollbarHelper;
|
|
21
|
-
private dimensionsHelper;
|
|
22
15
|
private cd;
|
|
23
16
|
private columnChangesService;
|
|
24
17
|
private configuration;
|
|
25
18
|
/**
|
|
26
19
|
* Template for the target marker of drag target columns.
|
|
27
20
|
*/
|
|
28
|
-
targetMarkerTemplate:
|
|
21
|
+
targetMarkerTemplate: TemplateRef<unknown>;
|
|
29
22
|
/**
|
|
30
23
|
* Rows that are displayed in the table.
|
|
31
24
|
*/
|
|
32
|
-
set rows(val:
|
|
25
|
+
set rows(val: TRow[] | null | undefined);
|
|
33
26
|
/**
|
|
34
27
|
* Gets the rows.
|
|
35
28
|
*/
|
|
36
|
-
get rows():
|
|
29
|
+
get rows(): TRow[];
|
|
37
30
|
/**
|
|
38
31
|
* This attribute allows the user to set the name of the column to group the data with
|
|
39
32
|
*/
|
|
40
|
-
set groupRowsBy(val:
|
|
41
|
-
get groupRowsBy():
|
|
33
|
+
set groupRowsBy(val: keyof TRow);
|
|
34
|
+
get groupRowsBy(): keyof TRow;
|
|
42
35
|
/**
|
|
43
36
|
* This attribute allows the user to set a grouped array in the following format:
|
|
44
37
|
* [
|
|
@@ -54,7 +47,7 @@ export declare class DatatableComponent implements OnInit, DoCheck, AfterViewIni
|
|
|
54
47
|
* ]}
|
|
55
48
|
* ]
|
|
56
49
|
*/
|
|
57
|
-
groupedRows:
|
|
50
|
+
groupedRows: Group<TRow>[];
|
|
58
51
|
/**
|
|
59
52
|
* Columns to be displayed.
|
|
60
53
|
*/
|
|
@@ -68,11 +61,18 @@ export declare class DatatableComponent implements OnInit, DoCheck, AfterViewIni
|
|
|
68
61
|
* represented as selected in the grid.
|
|
69
62
|
* Default value: `[]`
|
|
70
63
|
*/
|
|
71
|
-
selected:
|
|
64
|
+
selected: TRow[];
|
|
72
65
|
/**
|
|
73
66
|
* Enable vertical scrollbars
|
|
74
67
|
*/
|
|
75
68
|
scrollbarV: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Enable vertical scrollbars dynamically on demand.
|
|
71
|
+
* Property `scrollbarV` needs to be set `true` too.
|
|
72
|
+
* Width that is gained when no scrollbar is needed
|
|
73
|
+
* is added to the inner table width.
|
|
74
|
+
*/
|
|
75
|
+
scrollbarVDynamic: boolean;
|
|
76
76
|
/**
|
|
77
77
|
* Enable horz scrollbars
|
|
78
78
|
*/
|
|
@@ -81,7 +81,7 @@ export declare class DatatableComponent implements OnInit, DoCheck, AfterViewIni
|
|
|
81
81
|
* The row height; which is necessary
|
|
82
82
|
* to calculate the height for the lazy rendering.
|
|
83
83
|
*/
|
|
84
|
-
rowHeight: number | 'auto' | ((row?:
|
|
84
|
+
rowHeight: number | 'auto' | ((row?: TRow) => number);
|
|
85
85
|
/**
|
|
86
86
|
* Type of column width distribution formula.
|
|
87
87
|
* Example: flex, force, standard
|
|
@@ -136,6 +136,12 @@ export declare class DatatableComponent implements OnInit, DoCheck, AfterViewIni
|
|
|
136
136
|
* Default value: `false`
|
|
137
137
|
*/
|
|
138
138
|
loadingIndicator: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Show ghost loaders on each cell.
|
|
141
|
+
* Default value: `false`
|
|
142
|
+
*/
|
|
143
|
+
set ghostLoadingIndicator(val: boolean);
|
|
144
|
+
get ghostLoadingIndicator(): boolean;
|
|
139
145
|
/**
|
|
140
146
|
* Type of row selection. Options are:
|
|
141
147
|
*
|
|
@@ -167,11 +173,11 @@ export declare class DatatableComponent implements OnInit, DoCheck, AfterViewIni
|
|
|
167
173
|
* Array of sorted columns by property and type.
|
|
168
174
|
* Default value: `[]`
|
|
169
175
|
*/
|
|
170
|
-
sorts:
|
|
176
|
+
sorts: SortPropDir[];
|
|
171
177
|
/**
|
|
172
178
|
* Css class overrides
|
|
173
179
|
*/
|
|
174
|
-
cssClasses:
|
|
180
|
+
cssClasses: Partial<INgxDatatableConfig['cssClasses']>;
|
|
175
181
|
/**
|
|
176
182
|
* Message overrides for localization
|
|
177
183
|
*
|
|
@@ -179,15 +185,13 @@ export declare class DatatableComponent implements OnInit, DoCheck, AfterViewIni
|
|
|
179
185
|
* totalMessage [default] = 'total'
|
|
180
186
|
* selectedMessage [default] = 'selected'
|
|
181
187
|
*/
|
|
182
|
-
messages:
|
|
188
|
+
messages: Partial<INgxDatatableConfig['messages']>;
|
|
183
189
|
/**
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
*
|
|
187
|
-
* [rowClass]="'first second'"
|
|
188
|
-
* [rowClass]="{ 'first': true, 'second': true, 'third': false }"
|
|
190
|
+
* A function which is called with the row and should return either:
|
|
191
|
+
* - a string: `"class-1 class-2`
|
|
192
|
+
* - a Record<string, boolean>: `{ 'class-1': true, 'class-2': false }`
|
|
189
193
|
*/
|
|
190
|
-
rowClass:
|
|
194
|
+
rowClass: (row: Group<TRow> | TRow) => string | Record<string, boolean>;
|
|
191
195
|
/**
|
|
192
196
|
* A boolean/function you can use to check whether you want
|
|
193
197
|
* to select a particular row based on a criteria. Example:
|
|
@@ -196,7 +200,7 @@ export declare class DatatableComponent implements OnInit, DoCheck, AfterViewIni
|
|
|
196
200
|
* return selection !== 'Ethel Price';
|
|
197
201
|
* }
|
|
198
202
|
*/
|
|
199
|
-
selectCheck:
|
|
203
|
+
selectCheck: (value: TRow, index: number, array: TRow[]) => boolean;
|
|
200
204
|
/**
|
|
201
205
|
* A function you can use to check whether you want
|
|
202
206
|
* to show the checkbox for a particular row based on a criteria. Example:
|
|
@@ -205,7 +209,7 @@ export declare class DatatableComponent implements OnInit, DoCheck, AfterViewIni
|
|
|
205
209
|
* return row.name !== 'Ethel Price';
|
|
206
210
|
* }
|
|
207
211
|
*/
|
|
208
|
-
displayCheck: (row:
|
|
212
|
+
displayCheck: (row: TRow, column: TableColumn, value?: any) => boolean;
|
|
209
213
|
/**
|
|
210
214
|
* A boolean you can use to set the detault behaviour of rows and groups
|
|
211
215
|
* whether they will start expanded or not. If ommited the default is NOT expanded.
|
|
@@ -220,8 +224,6 @@ export declare class DatatableComponent implements OnInit, DoCheck, AfterViewIni
|
|
|
220
224
|
/**
|
|
221
225
|
* Property to which you can use for determining select all
|
|
222
226
|
* rows on current page or not.
|
|
223
|
-
*
|
|
224
|
-
* @memberOf DatatableComponent
|
|
225
227
|
*/
|
|
226
228
|
selectAllRowsOnPage: boolean;
|
|
227
229
|
/**
|
|
@@ -248,34 +250,56 @@ export declare class DatatableComponent implements OnInit, DoCheck, AfterViewIni
|
|
|
248
250
|
* A property holds a summary row position: top/bottom
|
|
249
251
|
*/
|
|
250
252
|
summaryPosition: string;
|
|
253
|
+
/**
|
|
254
|
+
* A function you can use to check whether you want
|
|
255
|
+
* to disable a row. Example:
|
|
256
|
+
*
|
|
257
|
+
* (row) => {
|
|
258
|
+
* return row.name !== 'Ethel Price';
|
|
259
|
+
* }
|
|
260
|
+
*/
|
|
261
|
+
disableRowCheck: (row: TRow) => boolean;
|
|
262
|
+
/**
|
|
263
|
+
* A flag to enable drag behavior of native HTML5 drag and drop API on rows.
|
|
264
|
+
* If set to true, {@link rowDragEvents} will emit dragstart and dragend events.
|
|
265
|
+
*/
|
|
266
|
+
rowDraggable: boolean;
|
|
267
|
+
/**
|
|
268
|
+
* A flag to controll behavior of sort states.
|
|
269
|
+
* By default sort on column toggles between ascending and descending without getting removed.
|
|
270
|
+
* Set true to clear sorting of column after performing ascending and descending sort on that column.
|
|
271
|
+
*/
|
|
272
|
+
enableClearingSortState: boolean;
|
|
251
273
|
/**
|
|
252
274
|
* Body was scrolled typically in a `scrollbarV:true` scenario.
|
|
253
275
|
*/
|
|
254
|
-
scroll: EventEmitter<
|
|
276
|
+
scroll: EventEmitter<ScrollEvent>;
|
|
255
277
|
/**
|
|
256
278
|
* A cell or row was focused via keyboard or mouse click.
|
|
257
279
|
*/
|
|
258
|
-
activate: EventEmitter<
|
|
280
|
+
activate: EventEmitter<ActivateEvent<TRow>>;
|
|
259
281
|
/**
|
|
260
282
|
* A cell or row was selected.
|
|
261
283
|
*/
|
|
262
|
-
select: EventEmitter<
|
|
284
|
+
select: EventEmitter<{
|
|
285
|
+
selected: TRow[];
|
|
286
|
+
}>;
|
|
263
287
|
/**
|
|
264
288
|
* Column sort was invoked.
|
|
265
289
|
*/
|
|
266
|
-
sort: EventEmitter<
|
|
290
|
+
sort: EventEmitter<SortEvent>;
|
|
267
291
|
/**
|
|
268
292
|
* The table was paged either triggered by the pager or the body scroll.
|
|
269
293
|
*/
|
|
270
|
-
page: EventEmitter<
|
|
294
|
+
page: EventEmitter<PageEvent>;
|
|
271
295
|
/**
|
|
272
296
|
* Columns were re-ordered.
|
|
273
297
|
*/
|
|
274
|
-
reorder: EventEmitter<
|
|
298
|
+
reorder: EventEmitter<ReorderEvent>;
|
|
275
299
|
/**
|
|
276
300
|
* Column was resized.
|
|
277
301
|
*/
|
|
278
|
-
resize: EventEmitter<
|
|
302
|
+
resize: EventEmitter<ColumnResizeEvent>;
|
|
279
303
|
/**
|
|
280
304
|
* The context menu was invoked on the table.
|
|
281
305
|
* type indicates whether the header or the body was clicked.
|
|
@@ -284,12 +308,21 @@ export declare class DatatableComponent implements OnInit, DoCheck, AfterViewIni
|
|
|
284
308
|
tableContextmenu: EventEmitter<{
|
|
285
309
|
event: MouseEvent;
|
|
286
310
|
type: ContextmenuType;
|
|
287
|
-
content:
|
|
311
|
+
content: TableColumn | RowOrGroup<TRow>;
|
|
288
312
|
}>;
|
|
289
313
|
/**
|
|
290
314
|
* A row was expanded ot collapsed for tree
|
|
291
315
|
*/
|
|
292
|
-
treeAction: EventEmitter<
|
|
316
|
+
treeAction: EventEmitter<{
|
|
317
|
+
row: TRow;
|
|
318
|
+
rowIndex: number;
|
|
319
|
+
}>;
|
|
320
|
+
/**
|
|
321
|
+
* Emits HTML5 native drag events.
|
|
322
|
+
* Only emits dragenter, dragover, drop events by default.
|
|
323
|
+
* Set {@link rowDraggble} to true for dragstart and dragend.
|
|
324
|
+
*/
|
|
325
|
+
rowDragEvents: EventEmitter<DragEventData>;
|
|
293
326
|
/**
|
|
294
327
|
* CSS class applied if the header height if fixed height.
|
|
295
328
|
*/
|
|
@@ -342,11 +375,7 @@ export declare class DatatableComponent implements OnInit, DoCheck, AfterViewIni
|
|
|
342
375
|
* Column templates gathered from `ContentChildren`
|
|
343
376
|
* if described in your markup.
|
|
344
377
|
*/
|
|
345
|
-
|
|
346
|
-
/**
|
|
347
|
-
* Returns the column templates.
|
|
348
|
-
*/
|
|
349
|
-
get columnTemplates(): QueryList<DataTableColumnDirective>;
|
|
378
|
+
columnTemplates: QueryList<DataTableColumnDirective<TRow>>;
|
|
350
379
|
/**
|
|
351
380
|
* Row Detail templates gathered from the ContentChild
|
|
352
381
|
*/
|
|
@@ -363,14 +392,16 @@ export declare class DatatableComponent implements OnInit, DoCheck, AfterViewIni
|
|
|
363
392
|
* Reference to the body component for manually
|
|
364
393
|
* invoking functions on the body.
|
|
365
394
|
*/
|
|
366
|
-
bodyComponent: DataTableBodyComponent
|
|
395
|
+
bodyComponent: DataTableBodyComponent<TRow & {
|
|
396
|
+
treeStatus?: TreeStatus;
|
|
397
|
+
}>;
|
|
367
398
|
/**
|
|
368
399
|
* Reference to the header component for manually
|
|
369
400
|
* invoking functions on the header.
|
|
370
|
-
*
|
|
371
|
-
* @memberOf DatatableComponent
|
|
372
401
|
*/
|
|
373
402
|
headerComponent: DataTableHeaderComponent;
|
|
403
|
+
private bodyElement;
|
|
404
|
+
rowDefTemplate?: TemplateRef<any>;
|
|
374
405
|
/**
|
|
375
406
|
* Returns if all rows are selected.
|
|
376
407
|
*/
|
|
@@ -380,19 +411,22 @@ export declare class DatatableComponent implements OnInit, DoCheck, AfterViewIni
|
|
|
380
411
|
pageSize: number;
|
|
381
412
|
bodyHeight: number;
|
|
382
413
|
rowCount: number;
|
|
383
|
-
rowDiffer:
|
|
414
|
+
rowDiffer: IterableDiffer<TRow>;
|
|
384
415
|
_offsetX: BehaviorSubject<number>;
|
|
385
416
|
_limit: number | undefined;
|
|
386
417
|
_count: number;
|
|
387
418
|
_offset: number;
|
|
388
|
-
_rows:
|
|
389
|
-
_groupRowsBy:
|
|
390
|
-
_internalRows:
|
|
419
|
+
_rows: TRow[] | null | undefined;
|
|
420
|
+
_groupRowsBy: keyof TRow;
|
|
421
|
+
_internalRows: TRow[];
|
|
391
422
|
_internalColumns: TableColumn[];
|
|
392
423
|
_columns: TableColumn[];
|
|
393
|
-
_columnTemplates: QueryList<DataTableColumnDirective>;
|
|
394
424
|
_subscriptions: Subscription[];
|
|
395
|
-
|
|
425
|
+
_ghostLoadingIndicator: boolean;
|
|
426
|
+
_defaultColumnWidth?: number;
|
|
427
|
+
protected verticalScrollVisible: boolean;
|
|
428
|
+
private _rowInitDone;
|
|
429
|
+
constructor();
|
|
396
430
|
/**
|
|
397
431
|
* Lifecycle hook that is called after data-bound
|
|
398
432
|
* properties of a directive are initialized.
|
|
@@ -414,20 +448,20 @@ export declare class DatatableComponent implements OnInit, DoCheck, AfterViewIni
|
|
|
414
448
|
*
|
|
415
449
|
* (`fn(x) === fn(y)` instead of `x === y`)
|
|
416
450
|
*/
|
|
417
|
-
rowIdentity: (x:
|
|
451
|
+
rowIdentity: (x: TRow | Group<TRow>) => unknown;
|
|
418
452
|
/**
|
|
419
453
|
* Translates the templates to the column objects
|
|
420
454
|
*/
|
|
421
|
-
translateColumns(val:
|
|
455
|
+
translateColumns(val: QueryList<DataTableColumnDirective<TRow>>): void;
|
|
422
456
|
/**
|
|
423
457
|
* Creates a map with the data grouped by the user choice of grouping index
|
|
424
458
|
*
|
|
425
459
|
* @param originalArray the original array passed via parameter
|
|
426
|
-
* @param
|
|
460
|
+
* @param groupBy the key of the column to group the data by
|
|
427
461
|
*/
|
|
428
|
-
groupArrayBy(originalArray:
|
|
429
|
-
key:
|
|
430
|
-
value:
|
|
462
|
+
groupArrayBy(originalArray: TRow[], groupBy: keyof TRow): {
|
|
463
|
+
key: TRow[keyof TRow];
|
|
464
|
+
value: TRow[];
|
|
431
465
|
}[];
|
|
432
466
|
ngDoCheck(): void;
|
|
433
467
|
/**
|
|
@@ -450,7 +484,7 @@ export declare class DatatableComponent implements OnInit, DoCheck, AfterViewIni
|
|
|
450
484
|
* Recalulcates the column widths based on column width
|
|
451
485
|
* distribution mode and scrollbar offsets.
|
|
452
486
|
*/
|
|
453
|
-
recalculateColumns(columns?:
|
|
487
|
+
recalculateColumns(columns?: TableColumn[], forceIdx?: number, allowBleed?: boolean): TableColumn[] | undefined;
|
|
454
488
|
/**
|
|
455
489
|
* Recalculates the dimensions of the table size.
|
|
456
490
|
* Internally calls the page size and row count calcs too.
|
|
@@ -464,55 +498,66 @@ export declare class DatatableComponent implements OnInit, DoCheck, AfterViewIni
|
|
|
464
498
|
/**
|
|
465
499
|
* Body triggered a page event.
|
|
466
500
|
*/
|
|
467
|
-
onBodyPage(
|
|
501
|
+
onBodyPage(offset: number): void;
|
|
468
502
|
/**
|
|
469
503
|
* The body triggered a scroll event.
|
|
470
504
|
*/
|
|
471
|
-
onBodyScroll(event:
|
|
505
|
+
onBodyScroll(event: ScrollEvent): void;
|
|
472
506
|
/**
|
|
473
507
|
* The footer triggered a page event.
|
|
474
508
|
*/
|
|
475
|
-
onFooterPage(event:
|
|
509
|
+
onFooterPage(event: PagerPageEvent): void;
|
|
476
510
|
/**
|
|
477
511
|
* Recalculates the sizes of the page
|
|
478
512
|
*/
|
|
479
|
-
calcPageSize(
|
|
513
|
+
calcPageSize(): number;
|
|
480
514
|
/**
|
|
481
515
|
* Calculates the row count.
|
|
482
516
|
*/
|
|
483
|
-
calcRowCount(
|
|
517
|
+
calcRowCount(): number;
|
|
484
518
|
/**
|
|
485
519
|
* The header triggered a contextmenu event.
|
|
486
520
|
*/
|
|
487
|
-
onColumnContextmenu({ event, column }:
|
|
521
|
+
onColumnContextmenu({ event, column }: {
|
|
522
|
+
event: MouseEvent;
|
|
523
|
+
column: TableColumn;
|
|
524
|
+
}): void;
|
|
488
525
|
/**
|
|
489
526
|
* The body triggered a contextmenu event.
|
|
490
527
|
*/
|
|
491
|
-
onRowContextmenu({ event, row }:
|
|
528
|
+
onRowContextmenu({ event, row }: {
|
|
529
|
+
event: MouseEvent;
|
|
530
|
+
row: RowOrGroup<TRow>;
|
|
531
|
+
}): void;
|
|
492
532
|
/**
|
|
493
533
|
* The header triggered a column resize event.
|
|
494
534
|
*/
|
|
495
|
-
onColumnResize({ column, newValue }:
|
|
535
|
+
onColumnResize({ column, newValue, prevValue }: ColumnResizeEvent): void;
|
|
536
|
+
onColumnResizing({ column, newValue }: ColumnResizeEvent): void;
|
|
496
537
|
/**
|
|
497
538
|
* The header triggered a column re-order event.
|
|
498
539
|
*/
|
|
499
|
-
onColumnReorder({ column, newValue, prevValue }:
|
|
540
|
+
onColumnReorder({ column, newValue, prevValue }: ReorderEvent): void;
|
|
500
541
|
/**
|
|
501
542
|
* The header triggered a column sort event.
|
|
502
543
|
*/
|
|
503
|
-
onColumnSort(event:
|
|
544
|
+
onColumnSort(event: SortEvent): void;
|
|
504
545
|
/**
|
|
505
546
|
* Toggle all row selection
|
|
506
547
|
*/
|
|
507
|
-
onHeaderSelect(
|
|
548
|
+
onHeaderSelect(): void;
|
|
508
549
|
/**
|
|
509
550
|
* A row was selected from body
|
|
510
551
|
*/
|
|
511
|
-
onBodySelect(event:
|
|
552
|
+
onBodySelect(event: {
|
|
553
|
+
selected: TRow[];
|
|
554
|
+
}): void;
|
|
512
555
|
/**
|
|
513
556
|
* A row was expanded or collapsed for tree
|
|
514
557
|
*/
|
|
515
|
-
onTreeAction(event:
|
|
558
|
+
onTreeAction(event: {
|
|
559
|
+
row: TRow;
|
|
560
|
+
}): void;
|
|
516
561
|
ngOnDestroy(): void;
|
|
517
562
|
/**
|
|
518
563
|
* listen for changes to input bindings of all DataTableColumnDirective and
|
|
@@ -520,6 +565,27 @@ export declare class DatatableComponent implements OnInit, DoCheck, AfterViewIni
|
|
|
520
565
|
*/
|
|
521
566
|
private listenForColumnInputChanges;
|
|
522
567
|
private sortInternalRows;
|
|
523
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DatatableComponent
|
|
524
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DatatableComponent
|
|
568
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatatableComponent<any>, never>;
|
|
569
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatatableComponent<any>, "ngx-datatable", never, { "targetMarkerTemplate": { "alias": "targetMarkerTemplate"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "groupRowsBy": { "alias": "groupRowsBy"; "required": false; }; "groupedRows": { "alias": "groupedRows"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "scrollbarV": { "alias": "scrollbarV"; "required": false; }; "scrollbarVDynamic": { "alias": "scrollbarVDynamic"; "required": false; }; "scrollbarH": { "alias": "scrollbarH"; "required": false; }; "rowHeight": { "alias": "rowHeight"; "required": false; }; "columnMode": { "alias": "columnMode"; "required": false; }; "headerHeight": { "alias": "headerHeight"; "required": false; }; "footerHeight": { "alias": "footerHeight"; "required": false; }; "externalPaging": { "alias": "externalPaging"; "required": false; }; "externalSorting": { "alias": "externalSorting"; "required": false; }; "limit": { "alias": "limit"; "required": false; }; "count": { "alias": "count"; "required": false; }; "offset": { "alias": "offset"; "required": false; }; "loadingIndicator": { "alias": "loadingIndicator"; "required": false; }; "ghostLoadingIndicator": { "alias": "ghostLoadingIndicator"; "required": false; }; "selectionType": { "alias": "selectionType"; "required": false; }; "reorderable": { "alias": "reorderable"; "required": false; }; "swapColumns": { "alias": "swapColumns"; "required": false; }; "sortType": { "alias": "sortType"; "required": false; }; "sorts": { "alias": "sorts"; "required": false; }; "cssClasses": { "alias": "cssClasses"; "required": false; }; "messages": { "alias": "messages"; "required": false; }; "rowClass": { "alias": "rowClass"; "required": false; }; "selectCheck": { "alias": "selectCheck"; "required": false; }; "displayCheck": { "alias": "displayCheck"; "required": false; }; "groupExpansionDefault": { "alias": "groupExpansionDefault"; "required": false; }; "trackByProp": { "alias": "trackByProp"; "required": false; }; "selectAllRowsOnPage": { "alias": "selectAllRowsOnPage"; "required": false; }; "virtualization": { "alias": "virtualization"; "required": false; }; "treeFromRelation": { "alias": "treeFromRelation"; "required": false; }; "treeToRelation": { "alias": "treeToRelation"; "required": false; }; "summaryRow": { "alias": "summaryRow"; "required": false; }; "summaryHeight": { "alias": "summaryHeight"; "required": false; }; "summaryPosition": { "alias": "summaryPosition"; "required": false; }; "disableRowCheck": { "alias": "disableRowCheck"; "required": false; }; "rowDraggable": { "alias": "rowDraggable"; "required": false; }; "enableClearingSortState": { "alias": "enableClearingSortState"; "required": false; }; "rowIdentity": { "alias": "rowIdentity"; "required": false; }; }, { "scroll": "scroll"; "activate": "activate"; "select": "select"; "sort": "sort"; "page": "page"; "reorder": "reorder"; "resize": "resize"; "tableContextmenu": "tableContextmenu"; "treeAction": "treeAction"; "rowDragEvents": "rowDragEvents"; }, ["rowDetail", "groupHeader", "footer", "rowDefTemplate", "columnTemplates"], ["[loading-indicator]", "[empty-content]"], true, never>;
|
|
570
|
+
static ngAcceptInputType_scrollbarV: unknown;
|
|
571
|
+
static ngAcceptInputType_scrollbarVDynamic: unknown;
|
|
572
|
+
static ngAcceptInputType_scrollbarH: unknown;
|
|
573
|
+
static ngAcceptInputType_headerHeight: unknown;
|
|
574
|
+
static ngAcceptInputType_footerHeight: unknown;
|
|
575
|
+
static ngAcceptInputType_externalPaging: unknown;
|
|
576
|
+
static ngAcceptInputType_externalSorting: unknown;
|
|
577
|
+
static ngAcceptInputType_limit: unknown;
|
|
578
|
+
static ngAcceptInputType_count: unknown;
|
|
579
|
+
static ngAcceptInputType_offset: unknown;
|
|
580
|
+
static ngAcceptInputType_loadingIndicator: unknown;
|
|
581
|
+
static ngAcceptInputType_ghostLoadingIndicator: unknown;
|
|
582
|
+
static ngAcceptInputType_reorderable: unknown;
|
|
583
|
+
static ngAcceptInputType_swapColumns: unknown;
|
|
584
|
+
static ngAcceptInputType_groupExpansionDefault: unknown;
|
|
585
|
+
static ngAcceptInputType_selectAllRowsOnPage: unknown;
|
|
586
|
+
static ngAcceptInputType_virtualization: unknown;
|
|
587
|
+
static ngAcceptInputType_summaryRow: unknown;
|
|
588
|
+
static ngAcceptInputType_summaryHeight: unknown;
|
|
589
|
+
static ngAcceptInputType_rowDraggable: unknown;
|
|
590
|
+
static ngAcceptInputType_enableClearingSortState: unknown;
|
|
525
591
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FooterContext } from '../../types/public.types';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class DataTableFooterTemplateDirective {
|
|
4
|
-
|
|
5
|
-
constructor(template: TemplateRef<any>);
|
|
4
|
+
static ngTemplateContextGuard(directive: DataTableFooterTemplateDirective, context: unknown): context is FooterContext;
|
|
6
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableFooterTemplateDirective, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DataTableFooterTemplateDirective, "[ngx-datatable-footer-template]", never, {}, {}, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DataTableFooterTemplateDirective, "[ngx-datatable-footer-template]", never, {}, {}, never, never, true, never>;
|
|
8
7
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { DatatableFooterDirective } from './footer.directive';
|
|
3
|
+
import { PagerPageEvent } from '../../types/public.types';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class DataTableFooterComponent {
|
|
5
6
|
footerHeight: number;
|
|
@@ -14,9 +15,9 @@ export declare class DataTableFooterComponent {
|
|
|
14
15
|
footerTemplate: DatatableFooterDirective;
|
|
15
16
|
selectedCount: number;
|
|
16
17
|
selectedMessage: string | boolean;
|
|
17
|
-
page: EventEmitter<
|
|
18
|
+
page: EventEmitter<PagerPageEvent>;
|
|
18
19
|
get isVisible(): boolean;
|
|
19
20
|
get curPage(): number;
|
|
20
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableFooterComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableFooterComponent, "datatable-footer", never, { "footerHeight": "footerHeight"; "rowCount": "rowCount"; "pageSize": "pageSize"; "offset": "offset"; "pagerLeftArrowIcon": "pagerLeftArrowIcon"; "pagerRightArrowIcon": "pagerRightArrowIcon"; "pagerPreviousIcon": "pagerPreviousIcon"; "pagerNextIcon": "pagerNextIcon"; "totalMessage": "totalMessage"; "footerTemplate": "footerTemplate"; "selectedCount": "selectedCount"; "selectedMessage": "selectedMessage"; }, { "page": "page"; }, never, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableFooterComponent, "datatable-footer", never, { "footerHeight": { "alias": "footerHeight"; "required": false; }; "rowCount": { "alias": "rowCount"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "offset": { "alias": "offset"; "required": false; }; "pagerLeftArrowIcon": { "alias": "pagerLeftArrowIcon"; "required": false; }; "pagerRightArrowIcon": { "alias": "pagerRightArrowIcon"; "required": false; }; "pagerPreviousIcon": { "alias": "pagerPreviousIcon"; "required": false; }; "pagerNextIcon": { "alias": "pagerNextIcon"; "required": false; }; "totalMessage": { "alias": "totalMessage"; "required": false; }; "footerTemplate": { "alias": "footerTemplate"; "required": false; }; "selectedCount": { "alias": "selectedCount"; "required": false; }; "selectedMessage": { "alias": "selectedMessage"; "required": false; }; }, { "page": "page"; }, never, never, true, never>;
|
|
22
23
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { FooterContext } from '../../types/public.types';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class DatatableFooterDirective {
|
|
4
5
|
footerHeight: number;
|
|
@@ -8,9 +9,10 @@ export declare class DatatableFooterDirective {
|
|
|
8
9
|
pagerRightArrowIcon: string;
|
|
9
10
|
pagerPreviousIcon: string;
|
|
10
11
|
pagerNextIcon: string;
|
|
11
|
-
_templateInput: TemplateRef<
|
|
12
|
-
_templateQuery: TemplateRef<
|
|
13
|
-
get template(): TemplateRef<
|
|
12
|
+
_templateInput: TemplateRef<FooterContext>;
|
|
13
|
+
_templateQuery: TemplateRef<FooterContext>;
|
|
14
|
+
get template(): TemplateRef<FooterContext>;
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatatableFooterDirective, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DatatableFooterDirective, "ngx-datatable-footer", never, { "footerHeight": "footerHeight"; "totalMessage": "totalMessage"; "selectedMessage": "selectedMessage"; "pagerLeftArrowIcon": "pagerLeftArrowIcon"; "pagerRightArrowIcon": "pagerRightArrowIcon"; "pagerPreviousIcon": "pagerPreviousIcon"; "pagerNextIcon": "pagerNextIcon"; "_templateInput": "template"; }, {}, ["_templateQuery"]>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DatatableFooterDirective, "ngx-datatable-footer", never, { "footerHeight": { "alias": "footerHeight"; "required": false; }; "totalMessage": { "alias": "totalMessage"; "required": false; }; "selectedMessage": { "alias": "selectedMessage"; "required": false; }; "pagerLeftArrowIcon": { "alias": "pagerLeftArrowIcon"; "required": false; }; "pagerRightArrowIcon": { "alias": "pagerRightArrowIcon"; "required": false; }; "pagerPreviousIcon": { "alias": "pagerPreviousIcon"; "required": false; }; "pagerNextIcon": { "alias": "pagerNextIcon"; "required": false; }; "_templateInput": { "alias": "template"; "required": false; }; }, {}, ["_templateQuery"], never, true, never>;
|
|
17
|
+
static ngAcceptInputType_footerHeight: unknown;
|
|
16
18
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { PagerPageEvent } from '../../types/public.types';
|
|
3
|
+
import { Page } from '../../types/internal.types';
|
|
2
4
|
import * as i0 from "@angular/core";
|
|
3
5
|
export declare class DataTablePagerComponent {
|
|
4
6
|
pagerLeftArrowIcon: string;
|
|
@@ -12,17 +14,17 @@ export declare class DataTablePagerComponent {
|
|
|
12
14
|
set page(val: number);
|
|
13
15
|
get page(): number;
|
|
14
16
|
get totalPages(): number;
|
|
15
|
-
change: EventEmitter<
|
|
17
|
+
change: EventEmitter<PagerPageEvent>;
|
|
16
18
|
_count: number;
|
|
17
19
|
_page: number;
|
|
18
20
|
_size: number;
|
|
19
|
-
pages:
|
|
21
|
+
pages: Page[];
|
|
20
22
|
canPrevious(): boolean;
|
|
21
23
|
canNext(): boolean;
|
|
22
24
|
prevPage(): void;
|
|
23
25
|
nextPage(): void;
|
|
24
26
|
selectPage(page: number): void;
|
|
25
|
-
calcPages(page?: number):
|
|
27
|
+
calcPages(page?: number): Page[];
|
|
26
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataTablePagerComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DataTablePagerComponent, "datatable-pager", never, { "pagerLeftArrowIcon": "pagerLeftArrowIcon"; "pagerRightArrowIcon": "pagerRightArrowIcon"; "pagerPreviousIcon": "pagerPreviousIcon"; "pagerNextIcon": "pagerNextIcon"; "size": "size"; "count": "count"; "page": "page"; }, { "change": "change"; }, never, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataTablePagerComponent, "datatable-pager", never, { "pagerLeftArrowIcon": { "alias": "pagerLeftArrowIcon"; "required": false; }; "pagerRightArrowIcon": { "alias": "pagerRightArrowIcon"; "required": false; }; "pagerPreviousIcon": { "alias": "pagerPreviousIcon"; "required": false; }; "pagerNextIcon": { "alias": "pagerNextIcon"; "required": false; }; "size": { "alias": "size"; "required": false; }; "count": { "alias": "count"; "required": false; }; "page": { "alias": "page"; "required": false; }; }, { "change": "change"; }, never, never, true, never>;
|
|
28
30
|
}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { EventEmitter,
|
|
2
|
-
import { SortType } from '../../types/sort.type';
|
|
3
|
-
import { SelectionType } from '../../types/selection.type';
|
|
1
|
+
import { EventEmitter, OnInit, TemplateRef } from '@angular/core';
|
|
4
2
|
import { TableColumn } from '../../types/table-column.type';
|
|
5
|
-
import { SortDirection } from '../../types/
|
|
3
|
+
import { HeaderCellContext, InnerSortEvent, SelectionType, SortDirection, SortPropDir, SortType } from '../../types/public.types';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class DataTableHeaderCellComponent {
|
|
5
|
+
export declare class DataTableHeaderCellComponent implements OnInit {
|
|
8
6
|
private cd;
|
|
9
7
|
sortType: SortType;
|
|
10
8
|
sortAscendingIcon: string;
|
|
11
9
|
sortDescendingIcon: string;
|
|
12
10
|
sortUnsetIcon: string;
|
|
13
11
|
isTarget: boolean;
|
|
14
|
-
targetMarkerTemplate: any
|
|
12
|
+
targetMarkerTemplate: TemplateRef<any>;
|
|
15
13
|
targetMarkerContext: any;
|
|
14
|
+
enableClearingSortState: boolean;
|
|
16
15
|
_allRowsSelected: boolean;
|
|
17
16
|
set allRowsSelected(value: boolean);
|
|
18
17
|
get allRowsSelected(): boolean;
|
|
@@ -20,33 +19,34 @@ export declare class DataTableHeaderCellComponent {
|
|
|
20
19
|
set column(column: TableColumn);
|
|
21
20
|
get column(): TableColumn;
|
|
22
21
|
headerHeight: number;
|
|
23
|
-
set sorts(val:
|
|
24
|
-
get sorts():
|
|
25
|
-
sort: EventEmitter<
|
|
26
|
-
select: EventEmitter<
|
|
22
|
+
set sorts(val: SortPropDir[]);
|
|
23
|
+
get sorts(): SortPropDir[];
|
|
24
|
+
sort: EventEmitter<InnerSortEvent>;
|
|
25
|
+
select: EventEmitter<void>;
|
|
27
26
|
columnContextmenu: EventEmitter<{
|
|
28
27
|
event: MouseEvent;
|
|
29
|
-
column:
|
|
28
|
+
column: TableColumn;
|
|
30
29
|
}>;
|
|
31
|
-
get columnCssClasses():
|
|
30
|
+
get columnCssClasses(): string;
|
|
32
31
|
get name(): string;
|
|
33
32
|
get minWidth(): number;
|
|
34
33
|
get maxWidth(): number;
|
|
35
34
|
get width(): number;
|
|
35
|
+
get tabindex(): number;
|
|
36
36
|
get isCheckboxable(): boolean;
|
|
37
|
-
sortFn: any;
|
|
38
37
|
sortClass: string;
|
|
39
38
|
sortDir: SortDirection;
|
|
40
|
-
|
|
41
|
-
cellContext: any;
|
|
39
|
+
cellContext: HeaderCellContext;
|
|
42
40
|
private _column;
|
|
43
41
|
private _sorts;
|
|
44
|
-
constructor(
|
|
42
|
+
constructor();
|
|
45
43
|
onContextmenu($event: MouseEvent): void;
|
|
44
|
+
enter(): void;
|
|
46
45
|
ngOnInit(): void;
|
|
47
|
-
calcSortDir(sorts:
|
|
46
|
+
calcSortDir(sorts: SortPropDir[]): any;
|
|
47
|
+
private totalSortStatesApplied;
|
|
48
48
|
onSort(): void;
|
|
49
49
|
calcSortClass(sortDir: SortDirection): string;
|
|
50
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableHeaderCellComponent, never>;
|
|
51
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableHeaderCellComponent, "datatable-header-cell", never, { "sortType": "sortType"; "sortAscendingIcon": "sortAscendingIcon"; "sortDescendingIcon": "sortDescendingIcon"; "sortUnsetIcon": "sortUnsetIcon"; "isTarget": "isTarget"; "targetMarkerTemplate": "targetMarkerTemplate"; "targetMarkerContext": "targetMarkerContext"; "allRowsSelected": "allRowsSelected"; "selectionType": "selectionType"; "column": "column"; "headerHeight": "headerHeight"; "sorts": "sorts"; }, { "sort": "sort"; "select": "select"; "columnContextmenu": "columnContextmenu"; }, never, never>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableHeaderCellComponent, "datatable-header-cell", never, { "sortType": { "alias": "sortType"; "required": false; }; "sortAscendingIcon": { "alias": "sortAscendingIcon"; "required": false; }; "sortDescendingIcon": { "alias": "sortDescendingIcon"; "required": false; }; "sortUnsetIcon": { "alias": "sortUnsetIcon"; "required": false; }; "isTarget": { "alias": "isTarget"; "required": false; }; "targetMarkerTemplate": { "alias": "targetMarkerTemplate"; "required": false; }; "targetMarkerContext": { "alias": "targetMarkerContext"; "required": false; }; "enableClearingSortState": { "alias": "enableClearingSortState"; "required": false; }; "allRowsSelected": { "alias": "allRowsSelected"; "required": false; }; "selectionType": { "alias": "selectionType"; "required": false; }; "column": { "alias": "column"; "required": false; }; "headerHeight": { "alias": "headerHeight"; "required": false; }; "sorts": { "alias": "sorts"; "required": false; }; }, { "sort": "sort"; "select": "select"; "columnContextmenu": "columnContextmenu"; }, never, never, true, never>;
|
|
52
52
|
}
|