@firestitch/list 12.14.4 → 12.14.5
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/interfaces/listconfig.interface.d.ts +8 -1
- package/bundles/firestitch-list.umd.js +7 -3
- package/bundles/firestitch-list.umd.js.map +1 -1
- package/esm2015/app/classes/data-controller.js +8 -4
- package/esm2015/app/interfaces/listconfig.interface.js +1 -1
- package/fesm2015/firestitch-list.js +7 -3
- package/fesm2015/firestitch-list.js.map +1 -1
- package/package.json +1 -1
|
@@ -65,7 +65,14 @@ export interface FsListGroupConfig {
|
|
|
65
65
|
initialExpand?: boolean;
|
|
66
66
|
groupBy?: (row: any) => any;
|
|
67
67
|
compareBy?: (row: any) => any;
|
|
68
|
-
footer?: (
|
|
68
|
+
footer?: (row: {
|
|
69
|
+
[key: string]: unknown;
|
|
70
|
+
}, group?: {
|
|
71
|
+
[key: string]: unknown;
|
|
72
|
+
children: {
|
|
73
|
+
[key: string]: unknown;
|
|
74
|
+
}[];
|
|
75
|
+
}) => boolean;
|
|
69
76
|
actions?: (FsListRowActionGroup | FsListRowAction)[];
|
|
70
77
|
}
|
|
71
78
|
export interface FsListLoadMoreConfig {
|
|
@@ -1735,9 +1735,13 @@
|
|
|
1735
1735
|
}
|
|
1736
1736
|
});
|
|
1737
1737
|
groupRows.forEach(function (groupRow) {
|
|
1738
|
-
var
|
|
1739
|
-
|
|
1740
|
-
|
|
1738
|
+
var footerIndex = groupRow.children
|
|
1739
|
+
.findIndex(function (row) {
|
|
1740
|
+
return _this._footerRowFn(row.data, Object.assign(Object.assign({}, groupRow.data), { children: groupRow.childrenData }));
|
|
1741
|
+
});
|
|
1742
|
+
if (footerIndex !== -1) {
|
|
1743
|
+
var footerRow = groupRow.children.slice(footerIndex, footerIndex + 1)[0];
|
|
1744
|
+
groupRow.children.push(new GroupFooterRow(footerRow.data, groupRow));
|
|
1741
1745
|
}
|
|
1742
1746
|
});
|
|
1743
1747
|
return Array.from(this._store.values())
|