@ifsworld/granite-components 13.2.9-beta.1 → 13.2.9
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/esm2022/lib/toggle-switch/toggle-switch.component.mjs +2 -2
- package/esm2022/table/lib/table.component.mjs +18 -4
- package/esm2022/table/lib/table.model.mjs +2 -0
- package/fesm2022/ifsworld-granite-components-table.mjs +17 -3
- package/fesm2022/ifsworld-granite-components-table.mjs.map +1 -1
- package/fesm2022/ifsworld-granite-components.mjs +2 -2
- package/fesm2022/ifsworld-granite-components.mjs.map +1 -1
- package/package.json +1 -1
- package/table/lib/table.component.d.ts +10 -3
- package/table/lib/table.model.d.ts +6 -0
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { AfterContentChecked, ChangeDetectorRef, QueryList, TrackByFunction } from '@angular/core';
|
|
1
|
+
import { AfterContentChecked, ChangeDetectorRef, EventEmitter, QueryList, TrackByFunction } from '@angular/core';
|
|
2
2
|
import { GraniteTableColumnDirective } from './column/table-column.directive';
|
|
3
|
+
import { GraniteTableRowStylesInterface } from './table.model';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class GraniteTableComponent<T> implements AfterContentChecked {
|
|
5
6
|
private cd;
|
|
6
|
-
dataSource:
|
|
7
|
+
dataSource: T[];
|
|
7
8
|
horizontalScroll: boolean;
|
|
8
9
|
trackBy: TrackByFunction<T>;
|
|
10
|
+
conditionalRowStyles: GraniteTableRowStylesInterface[];
|
|
11
|
+
rowClick: EventEmitter<any>;
|
|
9
12
|
tableColumnsComponent: QueryList<GraniteTableColumnDirective>;
|
|
10
13
|
readonly cellIdPrefix: string;
|
|
11
14
|
_columns: GraniteTableColumnDirective[];
|
|
@@ -13,7 +16,11 @@ export declare class GraniteTableComponent<T> implements AfterContentChecked {
|
|
|
13
16
|
constructor(cd: ChangeDetectorRef);
|
|
14
17
|
ngAfterContentChecked(): void;
|
|
15
18
|
_trackColumnName(index: number, column: GraniteTableColumnDirective): string;
|
|
19
|
+
handleRowClick(event: Event, row: T, rowIndex: number): void;
|
|
20
|
+
getStyles(row: T, rowIndex: number): {
|
|
21
|
+
[key: string]: string;
|
|
22
|
+
};
|
|
16
23
|
private refreshData;
|
|
17
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<GraniteTableComponent<any>, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GraniteTableComponent<any>, "granite-table", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "horizontalScroll": { "alias": "horizontalScroll"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; }, {}, ["tableColumnsComponent"], never, false, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GraniteTableComponent<any>, "granite-table", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "horizontalScroll": { "alias": "horizontalScroll"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; "conditionalRowStyles": { "alias": "conditionalRowStyles"; "required": false; }; }, { "rowClick": "rowClick"; }, ["tableColumnsComponent"], never, false, never>;
|
|
19
26
|
}
|