@linzjs/step-ag-grid 29.0.1 → 29.1.1

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": "29.0.1",
5
+ "version": "29.1.1",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -16,6 +16,8 @@ import {
16
16
  GridReadyEvent,
17
17
  ModelUpdatedEvent,
18
18
  ModuleRegistry,
19
+ RowClickedEvent,
20
+ RowDoubleClickedEvent,
19
21
  RowDragEndEvent,
20
22
  RowDragMoveEvent,
21
23
  SelectionChangedEvent,
@@ -120,6 +122,8 @@ export interface GridProps<TData extends GridBaseRow = GridBaseRow> {
120
122
  suppressCellFocus?: boolean;
121
123
  pinnedTopRowData?: GridOptions['pinnedTopRowData'];
122
124
  pinnedBottomRowData?: GridOptions['pinnedBottomRowData'];
125
+ onRowClicked?: (event: RowClickedEvent) => void;
126
+ onRowDoubleClicked?: (event: RowDoubleClickedEvent) => void;
123
127
  }
124
128
 
125
129
  /**
@@ -806,6 +810,8 @@ export const Grid = <TData extends GridBaseRow = GridBaseRow>({
806
810
  suppressCellFocus={params.suppressCellFocus}
807
811
  pinnedTopRowData={params.pinnedTopRowData}
808
812
  pinnedBottomRowData={params.pinnedBottomRowData}
813
+ onRowClicked={params.onRowClicked}
814
+ onRowDoubleClicked={params.onRowDoubleClicked}
809
815
  />
810
816
  </div>
811
817
  </div>
@@ -15,7 +15,7 @@ export const setUpUserEvent = (customisedUserEvent: any) => {
15
15
  };
16
16
 
17
17
  export const countRows = (within?: HTMLElement): number => {
18
- return getAllQuick({ tagName: `div[row-id]:not(:empty)` }, within).length;
18
+ return getAllQuick({ tagName: `.ag-center-cols-container div[row-id]:not(:empty)` }, within).length;
19
19
  };
20
20
 
21
21
  export const findRowByIndex = async (rowIndex: number | string, within?: HTMLElement): Promise<HTMLDivElement> => {
@@ -16,7 +16,7 @@ export const setUpUserEvent = (customisedUserEvent: any) => {
16
16
  };
17
17
 
18
18
  export const countRows = (within?: HTMLElement): number => {
19
- return getAllQuick({ tagName: `div[row-id]:not(:empty)` }, within).length;
19
+ return getAllQuick({ tagName: `.ag-center-cols-container div[row-id]:not(:empty)` }, within).length;
20
20
  };
21
21
 
22
22
  export const findRowByIndex = async (rowIndex: number | string, within?: HTMLElement): Promise<HTMLDivElement> => {