@one-paragon/angular-utilities 2.3.4 → 2.3.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/index.d.ts
CHANGED
|
@@ -374,6 +374,14 @@ interface BaseMeta<T = any> {
|
|
|
374
374
|
filterType?: FieldType;
|
|
375
375
|
};
|
|
376
376
|
noFilter?: boolean;
|
|
377
|
+
groupByLogic?: {
|
|
378
|
+
groupBy?: ((t: T) => any) | 'use map';
|
|
379
|
+
/**
|
|
380
|
+
* It will be called with the groupBy value. This will be the type of value table builder uses for the column unless groupBy is a function,
|
|
381
|
+
* in which case groupByHeader will be called with the value returned by groupBy.
|
|
382
|
+
*/
|
|
383
|
+
groupByHeader?: (groupByVal: any) => string;
|
|
384
|
+
};
|
|
377
385
|
customCell?: boolean;
|
|
378
386
|
/**
|
|
379
387
|
* @deprecated Use `map`
|
|
@@ -1284,12 +1292,12 @@ interface GlobalStorageState {
|
|
|
1284
1292
|
localProfiles: Dictionary<Profile>;
|
|
1285
1293
|
}
|
|
1286
1294
|
|
|
1287
|
-
declare function setCustomGroupBy(customGroupBy: <T extends NoneGroupHeader = any>(data: T[], groupByKeys: string[], level?: number, parentGroupName?: string) => DataGroup<T>[] | GroupGroup<T>[]): void;
|
|
1295
|
+
declare function setCustomGroupBy(customGroupBy: <T extends NoneGroupHeader = any>(data: T[], groupByKeys: string[], level?: number, metaData?: Dictionary$1<MetaData<T>>, parentGroupName?: string) => DataGroup<T>[] | GroupGroup<T>[]): void;
|
|
1288
1296
|
declare function updateGroupByState<T extends NoneGroupHeader = any>(groupedData: any[], { data, groups, expanded }: {
|
|
1289
1297
|
data: Timestamp<T[]>;
|
|
1290
1298
|
groups: Timestamp<string[]>;
|
|
1291
1299
|
expanded: Timestamp<GroupedData[]>;
|
|
1292
|
-
}, firstRun: boolean): GroupByState;
|
|
1300
|
+
}, firstRun: boolean, metaData: Dictionary$1<MetaData<T>>): GroupByState;
|
|
1293
1301
|
declare function mapGroupHeader(obj: DataGroup | GroupGroup, expandedHeaders: string[] | true): any[];
|
|
1294
1302
|
interface GroupByState {
|
|
1295
1303
|
displayData: any[];
|