@linzjs/step-ag-grid 28.4.2 → 28.5.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/index.css +11 -0
- package/dist/step-ag-grid.cjs +4 -3
- package/dist/step-ag-grid.cjs.map +1 -1
- package/dist/step-ag-grid.esm.js +4 -3
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Grid.tsx +4 -1
- package/src/components/GridNoRowsOverlay.tsx +13 -3
- package/src/stories/grid/GridNoRowsOverlay.stories.tsx +2 -0
- package/src/styles/Grid.scss +10 -1
package/dist/step-ag-grid.esm.js
CHANGED
|
@@ -2589,10 +2589,10 @@ const GridNoRowsOverlayFr = (props, externalRef) => {
|
|
|
2589
2589
|
return jsx(GridLoadingOverlayComponent, { ref: externalRef, headerRowHeight: props.headerRowHeight });
|
|
2590
2590
|
}
|
|
2591
2591
|
if (props.rowCount === 0) {
|
|
2592
|
-
return
|
|
2592
|
+
return (jsxs("div", { ref: externalRef, className: 'GridNoRowsOverlay', children: [jsx(LuiIcon, { name: "ic_info_outline", alt: "", size: "md" }), props.noRowsOverlayText ?? 'There are currently no rows'] }));
|
|
2593
2593
|
}
|
|
2594
2594
|
if (props.filteredRowCount === 0) {
|
|
2595
|
-
return
|
|
2595
|
+
return (jsxs("div", { ref: externalRef, className: 'GridNoRowsOverlay', children: [jsx(LuiIcon, { name: "ic_info_outline", alt: "", size: "md" }), props.noRowsMatchingOverlayText ?? 'All rows have been filtered'] }));
|
|
2596
2596
|
}
|
|
2597
2597
|
return jsx("div", { ref: externalRef });
|
|
2598
2598
|
};
|
|
@@ -2859,7 +2859,8 @@ const Grid = ({ 'data-testid': dataTestId, defaultPostSort = true, rowSelection
|
|
|
2859
2859
|
needsAutoSize.current = true;
|
|
2860
2860
|
}
|
|
2861
2861
|
}
|
|
2862
|
-
if (needsAutoSize.current ||
|
|
2862
|
+
if (needsAutoSize.current ||
|
|
2863
|
+
(!hasSetContentSize.current && (sizeColumns === 'auto' || sizeColumns === 'auto-skip-headers'))) {
|
|
2863
2864
|
needsAutoSize.current = false;
|
|
2864
2865
|
setInitialContentSize();
|
|
2865
2866
|
}
|