@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 +1 -1
- package/dist/src/contexts/GridPopoverContext.d.ts +1 -0
- package/dist/step-ag-grid.cjs.js +3 -0
- package/dist/step-ag-grid.cjs.js.map +1 -1
- package/dist/step-ag-grid.esm.js +3 -0
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/contexts/GridPopoverContext.tsx +2 -0
- package/src/contexts/GridPopoverContextProvider.tsx +3 -0
package/dist/step-ag-grid.esm.js
CHANGED
|
@@ -2812,6 +2812,7 @@ const GridPopoverContext = createContext({
|
|
|
2812
2812
|
anchorRef: { current: null },
|
|
2813
2813
|
saving: false,
|
|
2814
2814
|
setSaving: () => { },
|
|
2815
|
+
colId: "",
|
|
2815
2816
|
field: "",
|
|
2816
2817
|
value: null,
|
|
2817
2818
|
data: {},
|
|
@@ -2832,6 +2833,7 @@ const GridPopoverContextProvider = ({ props, children }) => {
|
|
|
2832
2833
|
// Then item that is clicked on will always be first in the list
|
|
2833
2834
|
const selectedRows = useMemo(() => multiEdit ? sortBy(getFilteredSelectedRows(), (row) => row.id !== props.data.id) : [props.data], [getFilteredSelectedRows, multiEdit, props.data]);
|
|
2834
2835
|
const field = props.colDef?.field ?? "";
|
|
2836
|
+
const colId = props.colDef?.colId ?? field ?? "";
|
|
2835
2837
|
const updateValue = useCallback(async (saveFn, tabDirection) => {
|
|
2836
2838
|
if (hasSaved.current)
|
|
2837
2839
|
return true;
|
|
@@ -2843,6 +2845,7 @@ const GridPopoverContextProvider = ({ props, children }) => {
|
|
|
2843
2845
|
saving,
|
|
2844
2846
|
setSaving,
|
|
2845
2847
|
selectedRows,
|
|
2848
|
+
colId,
|
|
2846
2849
|
field,
|
|
2847
2850
|
data: props.data,
|
|
2848
2851
|
value: props.value,
|