@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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@linzjs/step-ag-grid",
3
3
  "repository": "github:linz/step-ag-grid.git",
4
4
  "license": "MIT",
5
- "version": "28.4.2",
5
+ "version": "28.5.0",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -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 <div ref={externalRef}>{props.noRowsOverlayText ?? 'There are currently no rows'}</div>;
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 <div ref={externalRef}>{props.noRowsMatchingOverlayText ?? 'All rows have been filtered'}</div>;
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
  };
@@ -1,3 +1,5 @@
1
+ import '../../styles/GridTheme.scss';
2
+ import '../../styles/index.scss';
1
3
  import '@linzjs/lui/dist/scss/base.scss';
2
4
  import '@linzjs/lui/dist/fonts';
3
5
 
@@ -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
+ }