@linzjs/step-ag-grid 26.0.1 → 26.1.0

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@linzjs/step-ag-grid",
3
3
  "repository": "github:linz/step-ag-grid.git",
4
4
  "license": "MIT",
5
- "version": "26.0.1",
5
+ "version": "26.1.0",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -50,6 +50,7 @@ export interface GridProps<TData extends GridBaseRow = GridBaseRow> {
50
50
  readOnly?: boolean; // set all editables to false when read only, make all styles black, otherwise style is gray for not editable
51
51
  defaultPostSort?: boolean; // Retain sort order after edit, Defaults to true.
52
52
  selectable?: boolean;
53
+ hideSelectColumn?: boolean;
53
54
  theme?: string; // should have prefix ag-theme-
54
55
  ['data-testid']?: string;
55
56
  domLayout?: GridOptions['domLayout'];
@@ -643,6 +644,7 @@ export const Grid = <TData extends GridBaseRow = GridBaseRow>({
643
644
  // This is setting a ref in the GridContext so won't be triggering an update loop
644
645
  setOnCellEditingComplete(params.onCellEditingComplete);
645
646
 
647
+ const selectWidth = params.hideSelectColumn ? 0 : selectable && params.onRowDragEnd ? 76 : 48;
646
648
  const headerRowCount = columnDefs.some((c) => (c as any).children) ? 2 : 1;
647
649
  return (
648
650
  <div
@@ -719,9 +721,10 @@ export const Grid = <TData extends GridBaseRow = GridBaseRow>({
719
721
  pinnedTopRowData={params.pinnedTopRowData}
720
722
  pinnedBottomRowData={params.pinnedBottomRowData}
721
723
  selectionColumnDef={{
724
+ suppressNavigable: params.hideSelectColumn,
722
725
  rowDrag: !!params.onRowDragEnd,
723
- minWidth: selectable && params.onRowDragEnd ? 76 : 48,
724
- maxWidth: selectable && params.onRowDragEnd ? 76 : 48,
726
+ minWidth: selectWidth,
727
+ maxWidth: selectWidth,
725
728
  pinned: selectColumnPinned,
726
729
  headerComponentParams: {
727
730
  exportable: false,