UNPKG

4.02 kBTypeScriptView Raw
1import { ElementRef, InjectionToken } from '@angular/core';
2import { CdkCell, CdkCellDef, CdkColumnDef, CdkFooterCell, CdkFooterCellDef, CdkHeaderCell, CdkHeaderCellDef } from '@angular/cdk/table';
3import * as i0 from "@angular/core";
4/**
5 * Cell definition for the nb-table.
6 * Captures the template of a column's data row cell as well as cell-specific properties.
7 */
8export declare class NbCellDefDirective extends CdkCellDef {
9 static ɵfac: i0.ɵɵFactoryDeclaration<NbCellDefDirective, never>;
10 static ɵdir: i0.ɵɵDirectiveDeclaration<NbCellDefDirective, "[nbCellDef]", never, {}, {}, never, never, false, never>;
11}
12/**
13 * Header cell definition for the nb-table.
14 * Captures the template of a column's header cell and as well as cell-specific properties.
15 */
16export declare class NbHeaderCellDefDirective extends CdkHeaderCellDef {
17 static ɵfac: i0.ɵɵFactoryDeclaration<NbHeaderCellDefDirective, never>;
18 static ɵdir: i0.ɵɵDirectiveDeclaration<NbHeaderCellDefDirective, "[nbHeaderCellDef]", never, {}, {}, never, never, false, never>;
19}
20/**
21 * Footer cell definition for the nb-table.
22 * Captures the template of a column's footer cell and as well as cell-specific properties.
23 */
24export declare class NbFooterCellDefDirective extends CdkFooterCellDef {
25 static ɵfac: i0.ɵɵFactoryDeclaration<NbFooterCellDefDirective, never>;
26 static ɵdir: i0.ɵɵDirectiveDeclaration<NbFooterCellDefDirective, "[nbFooterCellDef]", never, {}, {}, never, never, false, never>;
27}
28export declare const NB_SORT_HEADER_COLUMN_DEF: InjectionToken<unknown>;
29/**
30 * Column definition for the nb-table.
31 * Defines a set of cells available for a table column.
32 */
33export declare class NbColumnDefDirective extends CdkColumnDef {
34 private _hasStickyCellChanged;
35 /** Unique name for this column. */
36 get name(): string;
37 set name(value: string);
38 /** Whether this column should be sticky positioned at the start of the row */
39 get sticky(): boolean;
40 set sticky(value: boolean);
41 private _stickyCell;
42 /** Whether this column should be sticky positioned on the end of the row */
43 get stickyEnd(): boolean;
44 set stickyEnd(value: boolean);
45 /** Whether the sticky state has changed. */
46 hasStickyChanged(): boolean;
47 /** Resets the sticky changed state. */
48 resetStickyChanged(): void;
49 static ɵfac: i0.ɵɵFactoryDeclaration<NbColumnDefDirective, never>;
50 static ɵdir: i0.ɵɵDirectiveDeclaration<NbColumnDefDirective, "[nbColumnDef]", never, { "name": { "alias": "nbColumnDef"; "required": false; }; "sticky": { "alias": "sticky"; "required": false; }; "stickyEnd": { "alias": "stickyEnd"; "required": false; }; }, {}, never, never, false, never>;
51}
52/** Header cell template container that adds the right classes and role. */
53export declare class NbHeaderCellDirective extends CdkHeaderCell {
54 constructor(columnDef: NbColumnDefDirective, elementRef: ElementRef<HTMLElement>);
55 static ɵfac: i0.ɵɵFactoryDeclaration<NbHeaderCellDirective, never>;
56 static ɵdir: i0.ɵɵDirectiveDeclaration<NbHeaderCellDirective, "nb-header-cell, th[nbHeaderCell]", never, {}, {}, never, never, false, never>;
57}
58/** Footer cell template container that adds the right classes and role. */
59export declare class NbFooterCellDirective extends CdkFooterCell {
60 constructor(columnDef: NbColumnDefDirective, elementRef: ElementRef);
61 static ɵfac: i0.ɵɵFactoryDeclaration<NbFooterCellDirective, never>;
62 static ɵdir: i0.ɵɵDirectiveDeclaration<NbFooterCellDirective, "nb-footer-cell, td[nbFooterCell]", never, {}, {}, never, never, false, never>;
63}
64/** Cell template container that adds the right classes and role. */
65export declare class NbCellDirective extends CdkCell {
66 constructor(columnDef: NbColumnDefDirective, elementRef: ElementRef<HTMLElement>);
67 static ɵfac: i0.ɵɵFactoryDeclaration<NbCellDirective, never>;
68 static ɵdir: i0.ɵɵDirectiveDeclaration<NbCellDirective, "nb-cell, td[nbCell]", never, {}, {}, never, never, false, never>;
69}