@firestitch/list 12.1.3 → 12.1.6
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/app/components/list/list.component.d.ts +1 -0
- package/app/interfaces/listconfig.interface.d.ts +6 -1
- package/bundles/firestitch-list.umd.js +18 -1
- package/bundles/firestitch-list.umd.js.map +1 -1
- package/esm2015/app/components/body/row/cell/cell.component.js +2 -1
- package/esm2015/app/components/body/row/row.component.js +11 -2
- package/esm2015/app/components/list/list.component.js +4 -1
- package/esm2015/app/interfaces/listconfig.interface.js +1 -1
- package/esm2015/public_api.js +1 -1
- package/fesm2015/firestitch-list.js +14 -1
- package/fesm2015/firestitch-list.js.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -1
|
@@ -55,6 +55,7 @@ export declare class FsListComponent implements OnInit, OnDestroy {
|
|
|
55
55
|
get groupEnabled(): boolean;
|
|
56
56
|
get paginatorVisible(): boolean;
|
|
57
57
|
set groupEnabled(value: boolean);
|
|
58
|
+
get filtersQuery(): Record<string, unknown>;
|
|
58
59
|
ngOnInit(): void;
|
|
59
60
|
ngOnDestroy(): void;
|
|
60
61
|
nextPage(): void;
|
|
@@ -31,7 +31,7 @@ export interface FsListConfig {
|
|
|
31
31
|
savedFilters?: IFilterSavedFiltersConfig;
|
|
32
32
|
persist?: FsListPersitance;
|
|
33
33
|
rowActions?: (FsListRowActionGroup | FsListRowAction)[];
|
|
34
|
-
rowClass?: (row: any) => string;
|
|
34
|
+
rowClass?: (row: any, options?: FsListRowClassOptions) => string;
|
|
35
35
|
actions?: FsListAction[];
|
|
36
36
|
fetch?: FsListFetchFn;
|
|
37
37
|
afterFetch?: FsListAfterFetchFn;
|
|
@@ -241,3 +241,8 @@ export declare type FsListFetchFn = (query: Record<string, any>, options: FsList
|
|
|
241
241
|
}>;
|
|
242
242
|
export declare type FsListAfterFetchFn = (query: Record<string, any>, data: unknown[]) => void;
|
|
243
243
|
export declare type FsListAfterContentInitFn = (query: Record<string, any>, data: unknown[]) => void;
|
|
244
|
+
export interface FsListRowClassOptions {
|
|
245
|
+
index: number;
|
|
246
|
+
groupIndex?: number;
|
|
247
|
+
groupChildIndex?: number;
|
|
248
|
+
}
|
|
@@ -4861,6 +4861,7 @@
|
|
|
4861
4861
|
}
|
|
4862
4862
|
else if (this.row.isChild) {
|
|
4863
4863
|
this.cellContext.groupChildIndex = this.row.index;
|
|
4864
|
+
this.cellContext.groupRow = this.row.parent.data;
|
|
4864
4865
|
}
|
|
4865
4866
|
}
|
|
4866
4867
|
this.cellContext.column = this.column;
|
|
@@ -5484,7 +5485,16 @@
|
|
|
5484
5485
|
if (this.row && this.row.isGroup)
|
|
5485
5486
|
cls += ' fs-list-row-group';
|
|
5486
5487
|
if (this.rowClass) {
|
|
5487
|
-
var
|
|
5488
|
+
var options = {
|
|
5489
|
+
index: this.rowIndex,
|
|
5490
|
+
};
|
|
5491
|
+
if (this.row.isGroup) {
|
|
5492
|
+
options.groupIndex = this.row.index;
|
|
5493
|
+
}
|
|
5494
|
+
else if (this.row.isChild) {
|
|
5495
|
+
options.groupChildIndex = this.row.index;
|
|
5496
|
+
}
|
|
5497
|
+
var resultClass = this.rowClass(this.row.data, options);
|
|
5488
5498
|
if (typeof resultClass === 'string') {
|
|
5489
5499
|
cls += " " + resultClass;
|
|
5490
5500
|
}
|
|
@@ -6092,6 +6102,13 @@
|
|
|
6092
6102
|
enumerable: false,
|
|
6093
6103
|
configurable: true
|
|
6094
6104
|
});
|
|
6105
|
+
Object.defineProperty(FsListComponent.prototype, "filtersQuery", {
|
|
6106
|
+
get: function () {
|
|
6107
|
+
return this.list.filtersQuery;
|
|
6108
|
+
},
|
|
6109
|
+
enumerable: false,
|
|
6110
|
+
configurable: true
|
|
6111
|
+
});
|
|
6095
6112
|
FsListComponent.prototype.ngOnInit = function () {
|
|
6096
6113
|
this._subscribeToRemoveRow();
|
|
6097
6114
|
this._subscribeToGroupExpandStatusChange();
|