@linzjs/step-ag-grid 27.3.3 → 28.0.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/dist/src/utils/__tests__/storybookTestUtil.ts +1 -1
- package/dist/step-ag-grid.cjs +7 -1
- package/dist/step-ag-grid.cjs.map +1 -1
- package/dist/step-ag-grid.esm.js +7 -1
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +24 -24
- package/src/components/Grid.tsx +9 -0
- package/src/components/GridCellMultiSelectClassRules.tsx +1 -1
- package/src/stories/components/ActionButton.stories.tsx +1 -1
- package/src/stories/grid/GridDragRow.stories.tsx +1 -1
- package/src/stories/grid/GridFilterButtons.stories.tsx +1 -1
- package/src/stories/grid/GridNoRowsOverlay.stories.tsx +2 -3
- package/src/stories/grid/GridNonEditableRow.stories.tsx +3 -2
- package/src/stories/grid/GridPinnedRow.stories.tsx +1 -1
- package/src/stories/grid/GridPopoutContextMenu.stories.tsx +1 -1
- package/src/stories/grid/GridPopoutEditBoolean.stories.tsx +1 -1
- package/src/stories/grid/GridPopoutEditGeneric.stories.tsx +1 -1
- package/src/stories/grid/GridPopoutEditGenericTextArea.stories.tsx +1 -1
- package/src/stories/grid/GridPopoverEditBearing.stories.tsx +1 -1
- package/src/stories/grid/GridPopoverEditDropDown.stories.tsx +1 -1
- package/src/stories/grid/GridPopoverEditMultiSelect.stories.tsx +1 -1
- package/src/stories/grid/GridPopoverEditMultiSelectGrid.stories.tsx +1 -1
- package/src/stories/grid/GridReadOnly.stories.tsx +1 -1
- package/src/stories/grid/GridViewList.stories.tsx +1 -1
- package/src/stories/grid/gridFormInteraction/GridFormDropDownInteraction.stories.tsx +2 -2
- package/src/stories/grid/gridFormInteraction/GridFormEditBearingCorrectionInteraction.stories.tsx +2 -2
- package/src/stories/grid/gridFormInteraction/GridFormEditBearingInteraction.stories.tsx +2 -2
- package/src/stories/grid/gridFormInteraction/GridFormMultiSelectGridInteraction.stories.tsx +2 -2
- package/src/stories/grid/gridFormInteraction/GridFormMultiSelectInteraction.stories.tsx +2 -2
- package/src/stories/grid/gridFormInteraction/GridFormPopoverMenuInteraction.stories.tsx +3 -3
- package/src/stories/grid/gridFormInteraction/GridFormTextAreaInteraction.stories.tsx +2 -2
- package/src/stories/grid/gridFormInteraction/GridFormTextInputInteraction.stories.tsx +2 -2
- package/src/stories/grid/gridFormStatic/GridFormDropDown.stories.tsx +1 -1
- package/src/stories/grid/gridFormStatic/GridFormEditBearing.stories.tsx +1 -1
- package/src/stories/grid/gridFormStatic/GridFormEditBearingCorrection.stories.tsx +1 -1
- package/src/stories/grid/gridFormStatic/GridFormMessage.stories.tsx +1 -1
- package/src/stories/grid/gridFormStatic/GridFormMultiSelect.stories.tsx +1 -1
- package/src/stories/grid/gridFormStatic/GridFormPopoverMenu.stories.tsx +1 -1
- package/src/stories/grid/gridFormStatic/GridFormTextArea.stories.tsx +1 -1
- package/src/stories/grid/gridFormStatic/GridFormTextInput.stories.tsx +1 -1
- package/src/stories/grid/interactions/GridKeyboardInteractions.stories.tsx +4 -4
- package/src/stories/react-menu/ReactMenu.stories.tsx +4 -4
- package/src/utils/__tests__/storybookTestUtil.ts +1 -1
package/dist/step-ag-grid.esm.js
CHANGED
|
@@ -3181,6 +3181,12 @@ const Grid = ({ 'data-testid': dataTestId, defaultPostSort = true, rowSelection
|
|
|
3181
3181
|
void params.onRowDragEnd({ movedRow, targetRow, direction: yDiff > 0 ? 1 : -1 });
|
|
3182
3182
|
}
|
|
3183
3183
|
}, [params, clearHighlightRowClasses]);
|
|
3184
|
+
useEffect(() => {
|
|
3185
|
+
if (params.setExternalSelectedItems && selectable == null) {
|
|
3186
|
+
console.warn('<Grid/> has setExternalSelectedItems parameter, but is missing selectable parameter,' +
|
|
3187
|
+
'this will cause weird delays in editing.\nIf you need to hide selection column use hideSelectColumn=true');
|
|
3188
|
+
}
|
|
3189
|
+
}, [params.setExternalSelectedItems, selectable]);
|
|
3184
3190
|
// This is setting a ref in the GridContext so won't be triggering an update loop
|
|
3185
3191
|
setOnCellEditingComplete(params.onCellEditingComplete);
|
|
3186
3192
|
const selectWidth = params.hideSelectColumn ? 0 : selectable && params.onRowDragEnd ? 76 : 48;
|
|
@@ -3285,7 +3291,7 @@ const GridCellMultiSelectClassRules = {
|
|
|
3285
3291
|
.getSelectedNodes()
|
|
3286
3292
|
?.map((row) => row.id)
|
|
3287
3293
|
?.includes(node.id) &&
|
|
3288
|
-
api.getEditingCells().some((cell) => cell.
|
|
3294
|
+
api.getEditingCells().some((cell) => cell.colId === colDef.colId));
|
|
3289
3295
|
},
|
|
3290
3296
|
};
|
|
3291
3297
|
|