@linzjs/step-ag-grid 28.4.2 → 28.5.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.css +11 -0
- package/dist/step-ag-grid.cjs +2 -2
- package/dist/step-ag-grid.cjs.map +1 -1
- package/dist/step-ag-grid.esm.js +2 -2
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -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/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LuiStatusSpinner } from '@linzjs/lui';
|
|
1
|
+
import { LuiIcon, LuiStatusSpinner } from '@linzjs/lui';
|
|
2
2
|
import { ForwardedRef, forwardRef } from 'react';
|
|
3
3
|
|
|
4
4
|
const GridLoadingOverlayComponentFr = (
|
|
@@ -40,10 +40,20 @@ export const GridNoRowsOverlayFr = (props: GridNoRowsOverlayProps, externalRef:
|
|
|
40
40
|
return <GridLoadingOverlayComponent ref={externalRef} headerRowHeight={props.headerRowHeight} />;
|
|
41
41
|
}
|
|
42
42
|
if (props.rowCount === 0) {
|
|
43
|
-
return
|
|
43
|
+
return (
|
|
44
|
+
<div ref={externalRef} className={'GridNoRowsOverlay'}>
|
|
45
|
+
<LuiIcon name="ic_info_outline" alt="" size="md" />
|
|
46
|
+
{props.noRowsOverlayText ?? 'There are currently no rows'}
|
|
47
|
+
</div>
|
|
48
|
+
);
|
|
44
49
|
}
|
|
45
50
|
if (props.filteredRowCount === 0) {
|
|
46
|
-
return
|
|
51
|
+
return (
|
|
52
|
+
<div ref={externalRef} className={'GridNoRowsOverlay'}>
|
|
53
|
+
<LuiIcon name="ic_info_outline" alt="" size="md" />
|
|
54
|
+
{props.noRowsMatchingOverlayText ?? 'All rows have been filtered'}
|
|
55
|
+
</div>
|
|
56
|
+
);
|
|
47
57
|
}
|
|
48
58
|
return <div ref={externalRef} />;
|
|
49
59
|
};
|
package/src/styles/Grid.scss
CHANGED
|
@@ -143,4 +143,13 @@ div.ag-ltr div.ag-header-cell-resize {
|
|
|
143
143
|
.step-ag-grid__alert-icon {
|
|
144
144
|
max-width: 34px;
|
|
145
145
|
width: 34px;
|
|
146
|
-
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.GridNoRowsOverlay {
|
|
149
|
+
display: flex;
|
|
150
|
+
gap: 4px;
|
|
151
|
+
fill: lui.$fuscous;
|
|
152
|
+
color: lui.$fuscous;
|
|
153
|
+
font-size: lui.$base-font-size;
|
|
154
|
+
@include lui.font-regular();
|
|
155
|
+
}
|