@mui/x-data-grid
Version: 
The Community plan edition of the MUI X Data Grid components.
18 lines • 985 B
TypeScript
import { GridColumnGroupingModel, GridColumnGroup } from "../../../models/gridColumnGrouping.js";
import { GridColDef } from "../../../models/colDef/index.js";
import { GridGroupingStructure } from "./gridColumnGroupsInterfaces.js";
type UnwrappedGroupingModel = {
  [key: GridColDef['field']]: GridColumnGroup['groupId'][];
};
/**
 * This is a function that provide for each column the array of its parents.
 * Parents are ordered from the root to the leaf.
 * @param columnGroupingModel The model such as provided in DataGrid props
 * @returns An object `{[field]: groupIds}` where `groupIds` is the parents of the column `field`
 */
export declare const unwrapGroupingColumnModel: (columnGroupingModel?: GridColumnGroupingModel) => UnwrappedGroupingModel;
export declare const getColumnGroupsHeaderStructure: (orderedColumns: string[], unwrappedGroupingModel: UnwrappedGroupingModel, pinnedFields: {
  right?: string[];
  left?: string[];
}) => GridGroupingStructure[][];
export {};