@linzjs/step-ag-grid 27.2.3 → 27.3.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.
@@ -13,6 +13,8 @@ export interface GridProps<TData extends GridBaseRow = GridBaseRow> {
13
13
  readOnly?: boolean;
14
14
  defaultPostSort?: boolean;
15
15
  selectable?: boolean;
16
+ enableClickSelection?: boolean;
17
+ enableSelectionWithoutKeys?: boolean;
16
18
  hideSelectColumn?: boolean;
17
19
  theme?: string;
18
20
  ['data-testid']?: string;
@@ -3187,7 +3187,8 @@ const Grid = ({ 'data-testid': dataTestId, defaultPostSort = true, rowSelection
3187
3187
  const headerRowCount = columnDefs.some((c) => c.children) ? 2 : 1;
3188
3188
  return (jsxRuntime.jsxs("div", { "data-testid": dataTestId, className: clsx('Grid-container', theme, 'theme-specific', staleGrid && 'Grid-sortIsStale', gridReady && rowData && autoSized && 'Grid-ready'), children: [gridContextMenu.component, jsxRuntime.jsx("div", { style: { flex: 1 }, ref: gridDivRef, children: jsxRuntime.jsx(agGridReact.AgGridReact, { theme: 'legacy', rowSelection: selectable
3189
3189
  ? {
3190
- enableClickSelection: false,
3190
+ enableSelectionWithoutKeys: params.enableSelectionWithoutKeys ?? false,
3191
+ enableClickSelection: params.enableClickSelection ?? false,
3191
3192
  mode: rowSelection == 'single' ? 'singleRow' : 'multiRow',
3192
3193
  }
3193
3194
  : undefined, rowHeight: rowHeight, animateRows: params.animateRows ?? false, rowClassRules: params.rowClassRules, getRowId: (params) => `${params.data.id}`, onGridSizeChanged: onGridSizeChanged, suppressColumnVirtualisation: suppressColumnVirtualization, suppressClickEdit: true, onColumnVisible: setInitialContentSize, onRowDataUpdated: onRowDataChanged, onCellKeyDown: onCellKeyPress, onCellClicked: onCellClicked, onCellDoubleClicked: onCellDoubleClick, onCellEditingStarted: refreshSelectedRows, domLayout: params.domLayout, onColumnResized: onColumnResized, defaultColDef: { minWidth: 48, ...lodashEs.omit(params.defaultColDef, ['editable']) }, columnDefs: columnDefsAdjusted, rowData: rowData, noRowsOverlayComponent: (event) => {