@linzjs/step-ag-grid 2.0.1 → 2.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/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/src/components/Grid.d.ts +0 -1
- package/dist/step-ag-grid.esm.js +1 -2
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +10 -1
- package/src/components/Grid.tsx +1 -3
- package/src/stories/components/GridPopoutBearing.stories.tsx +2 -3
- package/src/stories/components/GridPopoutEditDropDown.stories.tsx +2 -3
- package/src/stories/components/GridPopoutEditGeneric.stories.tsx +2 -3
- package/src/stories/components/GridPopoutEditGenericTextArea.stories.tsx +2 -3
- package/src/stories/components/GridPopoutEditMultiSelect.stories.tsx +2 -3
- package/src/stories/components/GridReadOnly.stories.tsx +4 -5
|
@@ -12,7 +12,6 @@ export interface GridProps {
|
|
|
12
12
|
domLayout?: GridOptions["domLayout"];
|
|
13
13
|
externalSelectedItems?: any[];
|
|
14
14
|
setExternalSelectedItems?: (items: any[]) => void;
|
|
15
|
-
onGridReady?: GridOptions["onGridReady"];
|
|
16
15
|
defaultColDef?: GridOptions["defaultColDef"];
|
|
17
16
|
columnDefs: GridOptions["columnDefs"];
|
|
18
17
|
rowData: GridOptions["rowData"];
|
package/dist/step-ag-grid.esm.js
CHANGED
|
@@ -2413,10 +2413,9 @@ var Grid = function (params) {
|
|
|
2413
2413
|
}, [clickSelectorCheckboxWhenContainingCellClicked, params.columnDefs, params.selectable]);
|
|
2414
2414
|
var onGridReady = useCallback(function (event) {
|
|
2415
2415
|
setGridApi(event.api);
|
|
2416
|
-
params.onGridReady && params.onGridReady(event);
|
|
2417
2416
|
synchroniseExternallySelectedItemsToGrid();
|
|
2418
2417
|
updateQuickFilter();
|
|
2419
|
-
}, [
|
|
2418
|
+
}, [setGridApi, synchroniseExternallySelectedItemsToGrid, updateQuickFilter]);
|
|
2420
2419
|
var noRowsOverlayComponent = useCallback(function () { var _a; return jsx("span", { children: (_a = params.noRowsOverlayText) !== null && _a !== void 0 ? _a : "There are currently no rows" }); }, [params.noRowsOverlayText]);
|
|
2421
2420
|
var refreshSelectedRows = useCallback(function (event) {
|
|
2422
2421
|
// Force-refresh all selected rows to re-run class function, to update selection highlighting
|