UNPKG

4.81 kBTypeScriptView Raw
1import { IterableDiffers, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
2import { NbCellDefDirective, NbFooterCellDefDirective, NbHeaderCellDefDirective } from '../cdk/table/cell';
3import { NbFooterRowDefDirective, NbHeaderRowDefDirective, NbRowDefDirective } from '../cdk/table/row';
4import { NbColumnsService } from './tree-grid-columns.service';
5import * as i0 from "@angular/core";
6export interface NbTreeGridResponsiveRowDef {
7 hideColumn(column: string): any;
8 showColumn(column: string): any;
9}
10/**
11 * Data row definition for the tree-grid.
12 * Captures the header row's template and columns to display.
13 */
14export declare class NbTreeGridRowDefDirective<T> extends NbRowDefDirective<T> implements OnChanges, NbTreeGridResponsiveRowDef {
15 private columnsService;
16 /**
17 * Columns to be displayed on this row
18 */
19 columns: Iterable<string>;
20 constructor(template: TemplateRef<any>, differs: IterableDiffers, columnsService: NbColumnsService);
21 ngOnChanges(changes: SimpleChanges): void;
22 updateColumns(columns: Iterable<string>): void;
23 getVisibleColumns(): Iterable<string>;
24 /** @docs-private */
25 hideColumn(column: string): void;
26 /** @docs-private */
27 showColumn(column: string): void;
28 static ɵfac: i0.ɵɵFactoryDeclaration<NbTreeGridRowDefDirective<any>, never>;
29 static ɵdir: i0.ɵɵDirectiveDeclaration<NbTreeGridRowDefDirective<any>, "[nbTreeGridRowDef]", never, { "columns": { "alias": "nbTreeGridRowDefColumns"; "required": false; }; }, {}, never, never, false, never>;
30}
31export declare class NbTreeGridHeaderRowDefDirective extends NbHeaderRowDefDirective implements OnChanges, NbTreeGridResponsiveRowDef {
32 private columnsService;
33 /**
34 * Columns to be displayed on this row
35 */
36 columns: Iterable<string>;
37 constructor(template: TemplateRef<any>, differs: IterableDiffers, columnsService: NbColumnsService);
38 ngOnChanges(changes: SimpleChanges): void;
39 updateColumns(columns: Iterable<string>): void;
40 getVisibleColumns(): Iterable<string>;
41 /** @docs-private */
42 hideColumn(column: string): void;
43 /** @docs-private */
44 showColumn(column: string): void;
45 static ɵfac: i0.ɵɵFactoryDeclaration<NbTreeGridHeaderRowDefDirective, never>;
46 static ɵdir: i0.ɵɵDirectiveDeclaration<NbTreeGridHeaderRowDefDirective, "[nbTreeGridHeaderRowDef]", never, { "columns": { "alias": "nbTreeGridHeaderRowDef"; "required": false; }; }, {}, never, never, false, never>;
47}
48export declare class NbTreeGridFooterRowDefDirective extends NbFooterRowDefDirective implements OnChanges, NbTreeGridResponsiveRowDef {
49 private columnsService;
50 /**
51 * Columns to be displayed on this row
52 */
53 columns: Iterable<string>;
54 constructor(template: TemplateRef<any>, differs: IterableDiffers, columnsService: NbColumnsService);
55 ngOnChanges(changes: SimpleChanges): void;
56 updateColumns(columns: Iterable<string>): void;
57 getVisibleColumns(): Iterable<string>;
58 /** @docs-private */
59 hideColumn(column: string): void;
60 /** @docs-private */
61 showColumn(column: string): void;
62 static ɵfac: i0.ɵɵFactoryDeclaration<NbTreeGridFooterRowDefDirective, never>;
63 static ɵdir: i0.ɵɵDirectiveDeclaration<NbTreeGridFooterRowDefDirective, "[nbTreeGridFooterRowDef]", never, { "columns": { "alias": "nbTreeGridFooterRowDef"; "required": false; }; }, {}, never, never, false, never>;
64}
65/**
66 * Cell definition for a nb-table.
67 * Captures the template of a column's data row cell as well as cell-specific properties.
68 */
69export declare class NbTreeGridCellDefDirective extends NbCellDefDirective {
70 static ɵfac: i0.ɵɵFactoryDeclaration<NbTreeGridCellDefDirective, never>;
71 static ɵdir: i0.ɵɵDirectiveDeclaration<NbTreeGridCellDefDirective, "[nbTreeGridCellDef]", never, {}, {}, never, never, false, never>;
72}
73/**
74 * Header cell definition for the nb-table.
75 * Captures the template of a column's header cell and as well as cell-specific properties.
76 */
77export declare class NbTreeGridHeaderCellDefDirective extends NbHeaderCellDefDirective {
78 static ɵfac: i0.ɵɵFactoryDeclaration<NbTreeGridHeaderCellDefDirective, never>;
79 static ɵdir: i0.ɵɵDirectiveDeclaration<NbTreeGridHeaderCellDefDirective, "[nbTreeGridHeaderCellDef]", never, {}, {}, never, never, false, never>;
80}
81/**
82 * Footer cell definition for the nb-table.
83 * Captures the template of a column's footer cell and as well as cell-specific properties.
84 */
85export declare class NbTreeGridFooterCellDefDirective extends NbFooterCellDefDirective {
86 static ɵfac: i0.ɵɵFactoryDeclaration<NbTreeGridFooterCellDefDirective, never>;
87 static ɵdir: i0.ɵɵDirectiveDeclaration<NbTreeGridFooterCellDefDirective, "[nbTreeGridFooterCellDef]", never, {}, {}, never, never, false, never>;
88}