@coolon/angular-ui-powerups 16.1.0-alpha.321 → 16.1.0-alpha.322
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.
|
@@ -32,6 +32,14 @@ import * as i0 from "@angular/core";
|
|
|
32
32
|
* </div>
|
|
33
33
|
* </aup-table>
|
|
34
34
|
*
|
|
35
|
+
* Nothing to show
|
|
36
|
+
* @example
|
|
37
|
+
* <aup-table [tableModel]="heroTableModel" [filterModel]="heroFilterModel">
|
|
38
|
+
* <aup-empty-state slot="empty"><p>No hero matches the search.</p></aup-empty-state>
|
|
39
|
+
* </aup-table>
|
|
40
|
+
* Content in the empty slot takes the body's place, header included, while the filters leave no row.
|
|
41
|
+
* The footer stays. A table with nothing in the slot shows its header over an empty body, as before.
|
|
42
|
+
*
|
|
35
43
|
* Styling
|
|
36
44
|
* @example
|
|
37
45
|
* // global settings
|
|
@@ -70,6 +78,7 @@ export declare class TableComponent<Row extends object> extends AbstractTableCom
|
|
|
70
78
|
accessor tableModel: TableModel<Row>;
|
|
71
79
|
accessor filterModel: TableFilterModel<Row>;
|
|
72
80
|
tableBody: TableBodyComponent<Row>;
|
|
81
|
+
private readonly emptyContent;
|
|
73
82
|
/**
|
|
74
83
|
* Set to true to scroll mode to classic or virtual (default). Virtual scrolll performs better for large data sets but clamps the row height. Classic scroll
|
|
75
84
|
* renders all rows but allows row heights to grow.
|
|
@@ -82,9 +91,15 @@ export declare class TableComponent<Row extends object> extends AbstractTableCom
|
|
|
82
91
|
constructor(injector: Injector);
|
|
83
92
|
ngOnInit(): void;
|
|
84
93
|
protected getModel(): AbstractTableModel<Row>;
|
|
94
|
+
/**
|
|
95
|
+
* True while the filters leave no row and the host gave content for the empty slot. A host that
|
|
96
|
+
* projects the slot behind an *ngIf adds or removes it at any time, so the slot is checked on each
|
|
97
|
+
* read rather than once.
|
|
98
|
+
*/
|
|
99
|
+
protected get showsEmptyContent(): boolean;
|
|
85
100
|
footerContentChanged($event: unknown): void;
|
|
86
101
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any>, never>;
|
|
87
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "aup-table", never, { "tableModel": { "alias": "tableModel"; "required": false; }; "filterModel": { "alias": "filterModel"; "required": false; }; "scrollMode$": { "alias": "scrollMode$"; "required": false; }; "scrollMode": { "alias": "scrollMode"; "required": false; }; }, {}, never, ["[footer], [slot=footer]"], false, never>;
|
|
102
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "aup-table", never, { "tableModel": { "alias": "tableModel"; "required": false; }; "filterModel": { "alias": "filterModel"; "required": false; }; "scrollMode$": { "alias": "scrollMode$"; "required": false; }; "scrollMode": { "alias": "scrollMode"; "required": false; }; }, {}, never, ["[empty], [slot=empty]", "[footer], [slot=footer]"], false, never>;
|
|
88
103
|
}
|
|
89
104
|
export declare namespace TableComponent {
|
|
90
105
|
type ScrollMode = Omit<TableBodyComponent.ScrollMode, 'none'>;
|