@linzjs/step-ag-grid 21.0.4 → 21.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/README.md CHANGED
@@ -277,4 +277,4 @@ This will throw an exception if the row id is not found.
277
277
 
278
278
  ```tsx
279
279
  window.__stepAgGrid.grids[dataTestId].scrollRowIntoViewById("1000")
280
- ```
280
+ ```
@@ -4,6 +4,7 @@ export interface GridPopoverContextType<TData extends GridBaseRow> {
4
4
  anchorRef: RefObject<Element>;
5
5
  saving: boolean;
6
6
  setSaving: (saving: boolean) => void;
7
+ colId: string;
7
8
  field: keyof TData;
8
9
  value: any;
9
10
  data: TData;
@@ -2814,6 +2814,7 @@ const GridPopoverContext = React.createContext({
2814
2814
  anchorRef: { current: null },
2815
2815
  saving: false,
2816
2816
  setSaving: () => { },
2817
+ colId: "",
2817
2818
  field: "",
2818
2819
  value: null,
2819
2820
  data: {},
@@ -2834,6 +2835,7 @@ const GridPopoverContextProvider = ({ props, children }) => {
2834
2835
  // Then item that is clicked on will always be first in the list
2835
2836
  const selectedRows = React.useMemo(() => multiEdit ? lodashEs.sortBy(getFilteredSelectedRows(), (row) => row.id !== props.data.id) : [props.data], [getFilteredSelectedRows, multiEdit, props.data]);
2836
2837
  const field = props.colDef?.field ?? "";
2838
+ const colId = props.colDef?.colId ?? field ?? "";
2837
2839
  const updateValue = React.useCallback(async (saveFn, tabDirection) => {
2838
2840
  if (hasSaved.current)
2839
2841
  return true;
@@ -2845,6 +2847,7 @@ const GridPopoverContextProvider = ({ props, children }) => {
2845
2847
  saving,
2846
2848
  setSaving,
2847
2849
  selectedRows,
2850
+ colId,
2848
2851
  field,
2849
2852
  data: props.data,
2850
2853
  value: props.value,