export const TableColumnDefs = (columnDefs, actionList, columName = 'Actions', crudTableActionRenderName = 'actionsRenderer', panelDirection = 'right') => {
    // Avoid repeated columns
    if (columnDefs.find(x => x.headerName === columName))
        return columnDefs;
    columnDefs.push({
        headerName: columName,
        filter: false,
        pinned: panelDirection,
        width: 200,
        maxWidth: 210,
        cellRenderer: crudTableActionRenderName,
        cellRendererParams: {
            actionList,
        },
        valueGetter: params => params.data,
        suppressMenu: true,
        sortable: false,
        cellStyle: { display: 'flex', alignItems: 'center' },
    });
    return columnDefs;
};
export const defaultColActionsDef = {
    resizable: true,
    editable: false,
    sortable: true,
    filter: true,
    floatingFilter: false,
    enableRowGroup: true,
};
//# sourceMappingURL=TableColumnDefs.js.map