@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/index.css
CHANGED
|
@@ -444,6 +444,17 @@ div.ag-ltr div.ag-header-cell-resize {
|
|
|
444
444
|
width: 34px;
|
|
445
445
|
}
|
|
446
446
|
|
|
447
|
+
.GridNoRowsOverlay {
|
|
448
|
+
display: flex;
|
|
449
|
+
gap: 4px;
|
|
450
|
+
fill: #6b6966;
|
|
451
|
+
color: #6b6966;
|
|
452
|
+
font-size: 16px;
|
|
453
|
+
font-family: "Open Sans", system-ui, sans-serif;
|
|
454
|
+
font-style: normal;
|
|
455
|
+
font-weight: normal;
|
|
456
|
+
}
|
|
457
|
+
|
|
447
458
|
.GridCell-container {
|
|
448
459
|
overflow: hidden;
|
|
449
460
|
text-overflow: ellipsis;
|
package/dist/step-ag-grid.cjs
CHANGED
|
@@ -2591,10 +2591,10 @@ const GridNoRowsOverlayFr = (props, externalRef) => {
|
|
|
2591
2591
|
return jsxRuntime.jsx(GridLoadingOverlayComponent, { ref: externalRef, headerRowHeight: props.headerRowHeight });
|
|
2592
2592
|
}
|
|
2593
2593
|
if (props.rowCount === 0) {
|
|
2594
|
-
return jsxRuntime.
|
|
2594
|
+
return (jsxRuntime.jsxs("div", { ref: externalRef, className: 'GridNoRowsOverlay', children: [jsxRuntime.jsx(lui.LuiIcon, { name: "ic_info_outline", alt: "", size: "md" }), props.noRowsOverlayText ?? 'There are currently no rows'] }));
|
|
2595
2595
|
}
|
|
2596
2596
|
if (props.filteredRowCount === 0) {
|
|
2597
|
-
return jsxRuntime.
|
|
2597
|
+
return (jsxRuntime.jsxs("div", { ref: externalRef, className: 'GridNoRowsOverlay', children: [jsxRuntime.jsx(lui.LuiIcon, { name: "ic_info_outline", alt: "", size: "md" }), props.noRowsMatchingOverlayText ?? 'All rows have been filtered'] }));
|
|
2598
2598
|
}
|
|
2599
2599
|
return jsxRuntime.jsx("div", { ref: externalRef });
|
|
2600
2600
|
};
|
|
@@ -2861,7 +2861,8 @@ const Grid = ({ 'data-testid': dataTestId, defaultPostSort = true, rowSelection
|
|
|
2861
2861
|
needsAutoSize.current = true;
|
|
2862
2862
|
}
|
|
2863
2863
|
}
|
|
2864
|
-
if (needsAutoSize.current ||
|
|
2864
|
+
if (needsAutoSize.current ||
|
|
2865
|
+
(!hasSetContentSize.current && (sizeColumns === 'auto' || sizeColumns === 'auto-skip-headers'))) {
|
|
2865
2866
|
needsAutoSize.current = false;
|
|
2866
2867
|
setInitialContentSize();
|
|
2867
2868
|
}
|