@linzjs/step-ag-grid 14.0.3 → 14.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/dist/src/components/Grid.d.ts +2 -4
- package/dist/src/contexts/GridContext.d.ts +1 -0
- package/dist/step-ag-grid.esm.js +1897 -1953
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +11 -11
- package/src/components/Grid.tsx +12 -30
- package/src/contexts/GridContext.tsx +5 -0
- package/src/contexts/GridContextProvider.tsx +25 -7
- package/src/react-menu3/components/ControlledMenu.tsx +26 -61
- package/src/react-menu3/utils/utils.ts +3 -3
- package/src/stories/grid/interactions/GridKeyboardInteractions.stories.tsx +3 -0
|
@@ -23,8 +23,6 @@ export interface GridProps {
|
|
|
23
23
|
autoSelectFirstRow?: boolean;
|
|
24
24
|
onColumnMoved?: GridOptions["onColumnMoved"];
|
|
25
25
|
alwaysShowVerticalScroll?: boolean;
|
|
26
|
-
onGridSizeChanged?: GridOptions["onGridSizeChanged"];
|
|
27
|
-
onFirstDataRendered?: GridOptions["onFirstDataRendered"];
|
|
28
26
|
suppressColumnVirtualization?: GridOptions["suppressColumnVirtualisation"];
|
|
29
27
|
/**
|
|
30
28
|
* When the grid is rendered using sizeColumns=="auto" this is called initially with the required container size to fit all content.
|
|
@@ -39,8 +37,8 @@ export interface GridProps {
|
|
|
39
37
|
* <li>"fit" will adjust columns to fit within panel via min/max/initial sizing.
|
|
40
38
|
* <b>Note:</b> This is only really needed if you have auto-height columns which prevents "auto" from working.
|
|
41
39
|
* </li>
|
|
42
|
-
* <li>"auto"
|
|
43
|
-
* <li>"auto-skip-headers" same as auto but does not take headers into account.</li>
|
|
40
|
+
* <li>"auto" will size columns based on their content but still obeying min/max sizing.</li>
|
|
41
|
+
* <li>"auto-skip-headers" (default) same as auto but does not take headers into account.</li>
|
|
44
42
|
* </ul>
|
|
45
43
|
*
|
|
46
44
|
* If you want to stretch to container width if width is greater than the container add a flex column.
|
|
@@ -22,6 +22,7 @@ export interface GridContextType<RowType extends GridBaseRow> {
|
|
|
22
22
|
focusByRowById: (rowId: number) => void;
|
|
23
23
|
ensureRowVisible: (id: number | string) => boolean;
|
|
24
24
|
ensureSelectedRowIsVisible: () => void;
|
|
25
|
+
getFirstRowId: () => number;
|
|
25
26
|
autoSizeAllColumns: (props?: {
|
|
26
27
|
skipHeader?: boolean;
|
|
27
28
|
}) => {
|