@linzjs/step-ag-grid 7.16.6 → 7.17.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": "7.16.6",
5
+ "version": "7.17.1",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -36,6 +36,7 @@ export interface GridProps {
36
36
  rowSelection?: "single" | "multiple";
37
37
  autoSelectFirstRow?: boolean;
38
38
  onColumnMoved?: GridOptions["onColumnMoved"];
39
+ alwaysShowVerticalScroll?: boolean;
39
40
  }
40
41
 
41
42
  /**
@@ -363,6 +364,7 @@ export const Grid = (params: GridProps): JSX.Element => {
363
364
  postSortRows={params.postSortRows ?? postSortRows}
364
365
  onSelectionChanged={synchroniseExternalStateToGridSelection}
365
366
  onColumnMoved={params.onColumnMoved}
367
+ alwaysShowVerticalScroll={params.alwaysShowVerticalScroll}
366
368
  />
367
369
  </div>
368
370
  );
@@ -21,6 +21,7 @@ export default {
21
21
  args: {
22
22
  quickFilterValue: "",
23
23
  selectable: true,
24
+ alwaysShowVerticalScroll: false,
24
25
  },
25
26
  decorators: [
26
27
  (Story) => (
@@ -76,6 +76,11 @@ export const editCell = async (rowId: number | string, colId: string, within?: H
76
76
  await waitFor(findOpenMenu);
77
77
  };
78
78
 
79
+ export const isCellReadOnly = async (rowId: number | string, colId: string, within?: HTMLElement): Promise<boolean> => {
80
+ const cell = await findCell(rowId, colId, within);
81
+ return cell.className.includes("GridCell-readonly");
82
+ };
83
+
79
84
  const findOpenMenu = async (): Promise<HTMLElement> => findQuick({ classes: ".szh-menu--state-open" });
80
85
 
81
86
  export const queryMenuOption = async (menuOptionText: string | RegExp): Promise<HTMLElement | null> => {