@angular-bootstrap/ngbootstrap 0.0.12 → 0.0.13
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-bootstrap/ngbootstrap",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "Angular UI library providing datagrid, drag-and-drop, pagination, stepper, splitter, typeahead and chips components with Bootstrap-friendly styling.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Harmeet Singh"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { TemplateRef, AfterContentInit,
|
|
2
|
+
import { TemplateRef, AfterContentInit, OnChanges, ElementRef, EventEmitter, SimpleChanges, InjectionToken, QueryList, AfterViewInit, OnDestroy, ChangeDetectorRef } from '@angular/core';
|
|
3
3
|
import { AbstractControl, FormGroup, FormControl, ControlValueAccessor } from '@angular/forms';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
|
|
@@ -9,6 +9,10 @@ interface ColumnDef<T = any> {
|
|
|
9
9
|
field: Extract<keyof T, string>;
|
|
10
10
|
/** human‐readable header text */
|
|
11
11
|
header: string;
|
|
12
|
+
/** Optional tooltip/title for the header cell; defaults to header text. */
|
|
13
|
+
title?: string;
|
|
14
|
+
/** Optional tooltip/title for body cells; defaults to the cell text. */
|
|
15
|
+
cellTitle?: string | ((row: T) => string);
|
|
12
16
|
/** enable clicking to sort */
|
|
13
17
|
sortable?: boolean;
|
|
14
18
|
/** enable filtering on this column */
|
|
@@ -19,6 +23,7 @@ interface ColumnDef<T = any> {
|
|
|
19
23
|
label: string;
|
|
20
24
|
value: any;
|
|
21
25
|
}>;
|
|
26
|
+
width?: number;
|
|
22
27
|
required?: boolean;
|
|
23
28
|
}
|
|
24
29
|
|
|
@@ -211,7 +216,7 @@ interface NgbSelectionLabels {
|
|
|
211
216
|
selectRow?: string;
|
|
212
217
|
unselectRow?: string;
|
|
213
218
|
}
|
|
214
|
-
declare class Datagrid<T = any> implements AfterContentInit,
|
|
219
|
+
declare class Datagrid<T = any> implements AfterContentInit, OnChanges {
|
|
215
220
|
/** Column definitions to render */
|
|
216
221
|
columns: ColumnDef<T>[];
|
|
217
222
|
/** Row data to display */
|
|
@@ -234,7 +239,7 @@ declare class Datagrid<T = any> implements AfterContentInit, AfterViewInit, OnCh
|
|
|
234
239
|
stickyHeader: boolean;
|
|
235
240
|
/** Enables sticky footer when scrolling. */
|
|
236
241
|
stickyFooter: boolean;
|
|
237
|
-
/** Enables scroll
|
|
242
|
+
/** Enables scroll table body container */
|
|
238
243
|
scrollable: boolean;
|
|
239
244
|
/** Row height used to stack multiple sticky rows without overlap (px). */
|
|
240
245
|
stickyRowHeight: number;
|
|
@@ -262,7 +267,6 @@ declare class Datagrid<T = any> implements AfterContentInit, AfterViewInit, OnCh
|
|
|
262
267
|
highlightRowKey: NgbRowKey | null;
|
|
263
268
|
/** Column key for highlighting. */
|
|
264
269
|
highlightColKey: NgbColKey | null;
|
|
265
|
-
scrollbarWidth: number;
|
|
266
270
|
/** Accessible label for the global filter input. */
|
|
267
271
|
globalFilterAriaLabel: string;
|
|
268
272
|
/** Accessible label announced when expanding a row. */
|
|
@@ -383,6 +387,8 @@ declare class Datagrid<T = any> implements AfterContentInit, AfterViewInit, OnCh
|
|
|
383
387
|
get responsiveWrapperClasses(): string[];
|
|
384
388
|
updateHighlightCache(): void;
|
|
385
389
|
headerText(col: ColumnDef<T>): string;
|
|
390
|
+
headerTitle(col: ColumnDef<T>): string;
|
|
391
|
+
cellTitle(row: T, col: ColumnDef<T>): string;
|
|
386
392
|
columnFilterAriaLabel(col: ColumnDef<T>): string;
|
|
387
393
|
inputAriaLabel(col: ColumnDef<T>): string;
|
|
388
394
|
ariaSortFor(field: Extract<keyof T, string>): 'ascending' | 'descending' | 'none';
|
|
@@ -404,7 +410,6 @@ declare class Datagrid<T = any> implements AfterContentInit, AfterViewInit, OnCh
|
|
|
404
410
|
export(kind: 'pdf' | 'excel'): Promise<void>;
|
|
405
411
|
private resolveDataset;
|
|
406
412
|
ngAfterContentInit(): void;
|
|
407
|
-
ngAfterViewInit(): void;
|
|
408
413
|
ngOnChanges(ch: SimpleChanges): void;
|
|
409
414
|
private getRowId;
|
|
410
415
|
private getEditService;
|
|
@@ -454,8 +459,6 @@ declare class Datagrid<T = any> implements AfterContentInit, AfterViewInit, OnCh
|
|
|
454
459
|
selectAllLabel(): string;
|
|
455
460
|
rowSelectionLabel(index: number): string;
|
|
456
461
|
onRowSelect(ev: MouseEvent, pagedIndex: number): void;
|
|
457
|
-
onHeaderScroll(): void;
|
|
458
|
-
private syncScrollbarWidth;
|
|
459
462
|
static ɵfac: i0.ɵɵFactoryDeclaration<Datagrid<any>, never>;
|
|
460
463
|
static ɵcmp: i0.ɵɵComponentDeclaration<Datagrid<any>, "ngb-datagrid", never, { "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "enableSorting": { "alias": "enableSorting"; "required": false; }; "enableFiltering": { "alias": "enableFiltering"; "required": false; }; "enableGlobalFilter": { "alias": "enableGlobalFilter"; "required": false; }; "enablePagination": { "alias": "enablePagination"; "required": false; }; "enableEdit": { "alias": "enableEdit"; "required": false; }; "enableDelete": { "alias": "enableDelete"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "enableAdd": { "alias": "enableAdd"; "required": false; }; "addButtonAriaLabel": { "alias": "addButtonAriaLabel"; "required": false; }; "addButtonText": { "alias": "addButtonText"; "required": false; }; "stickyRows": { "alias": "stickyRows"; "required": false; }; "stickyHeader": { "alias": "stickyHeader"; "required": false; }; "stickyFooter": { "alias": "stickyFooter"; "required": false; }; "scrollable": { "alias": "scrollable"; "required": false; }; "stickyRowHeight": { "alias": "stickyRowHeight"; "required": false; }; "stickyHeaderHeight": { "alias": "stickyHeaderHeight"; "required": false; }; "stickyFooterHeight": { "alias": "stickyFooterHeight"; "required": false; }; "tableOptions": { "alias": "tableOptions"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "selectionBehavior": { "alias": "selectionBehavior"; "required": false; }; "selectionKeyMode": { "alias": "selectionKeyMode"; "required": false; }; "selectAllEnabled": { "alias": "selectAllEnabled"; "required": false; }; "selectionA11yLabels": { "alias": "selectionA11yLabels"; "required": false; }; "selectionDisabledFn": { "alias": "selectionDisabledFn"; "required": false; }; "highlightedIndex": { "alias": "highlightedIndex"; "required": false; }; "highlightRowKey": { "alias": "highlightRowKey"; "required": false; }; "highlightColKey": { "alias": "highlightColKey"; "required": false; }; "globalFilterAriaLabel": { "alias": "globalFilterAriaLabel"; "required": false; }; "expandRowAriaLabel": { "alias": "expandRowAriaLabel"; "required": false; }; "collapseRowAriaLabel": { "alias": "collapseRowAriaLabel"; "required": false; }; "exportPdfAriaLabel": { "alias": "exportPdfAriaLabel"; "required": false; }; "exportExcelAriaLabel": { "alias": "exportExcelAriaLabel"; "required": false; }; "newRowDefaults": { "alias": "newRowDefaults"; "required": false; }; "strictEmail": { "alias": "strictEmail"; "required": false; }; "editOnRowClick": { "alias": "editOnRowClick"; "required": false; }; "singleExpand": { "alias": "singleExpand"; "required": false; }; "exportOptions": { "alias": "exportOptions"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "responsive": { "alias": "responsive"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; "editService": { "alias": "editService"; "required": false; }; "dataProviderAll": { "alias": "dataProviderAll"; "required": false; }; "dataProviderSelection": { "alias": "dataProviderSelection"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; }, { "rowAdd": "rowAdd"; "rowEdit": "rowEdit"; "rowSave": "rowSave"; "rowCancel": "rowCancel"; "rowDelete": "rowDelete"; "sortChange": "sortChange"; "filtersChange": "filtersChange"; "pageChange": "pageChange"; "selectionChange": "selectionChange"; }, ["exportButtonDir", "rowDetailTpl", "cellTplQ", "editTplQ", "filterTplQ", "globalTplQ"], never, true, never>;
|
|
461
464
|
}
|