@linzjs/step-ag-grid 17.12.0 → 17.13.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/GridTheme.scss +5 -1
- package/dist/src/components/Grid.d.ts +1 -0
- package/dist/src/components/GridNoRowsOverlay.d.ts +1 -0
- package/dist/step-ag-grid.cjs.js +2 -2
- package/dist/step-ag-grid.cjs.js.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/Grid.tsx +2 -0
- package/src/components/GridNoRowsOverlay.tsx +3 -1
- package/src/styles/GridTheme.scss +5 -1
package/package.json
CHANGED
package/src/components/Grid.tsx
CHANGED
|
@@ -53,6 +53,7 @@ export interface GridProps {
|
|
|
53
53
|
*/
|
|
54
54
|
selectColumnPinned?: ColDef["pinned"];
|
|
55
55
|
noRowsOverlayText?: string;
|
|
56
|
+
noRowsMatchingOverlayText?: string;
|
|
56
57
|
animateRows?: boolean;
|
|
57
58
|
rowHeight?: number;
|
|
58
59
|
rowClassRules?: GridOptions["rowClassRules"];
|
|
@@ -716,6 +717,7 @@ export const Grid = ({
|
|
|
716
717
|
headerRowHeight={headerRowCount * rowHeight}
|
|
717
718
|
filteredRowCount={event.api.getDisplayedRowCount()}
|
|
718
719
|
noRowsOverlayText={params.noRowsOverlayText}
|
|
720
|
+
noRowsMatchingOverlayText={params.noRowsMatchingOverlayText}
|
|
719
721
|
/>
|
|
720
722
|
);
|
|
721
723
|
}}
|
|
@@ -24,12 +24,14 @@ export interface GridNoRowsOverlayProps {
|
|
|
24
24
|
rowCount: number | undefined | null;
|
|
25
25
|
filteredRowCount: number;
|
|
26
26
|
noRowsOverlayText: string | undefined;
|
|
27
|
+
noRowsMatchingOverlayText: string | undefined;
|
|
27
28
|
headerRowHeight: number;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
export const GridNoRowsOverlay = (props: GridNoRowsOverlayProps) => {
|
|
31
32
|
if (props.loading) return <GridLoadingOverlayComponent headerRowHeight={props.headerRowHeight} />;
|
|
32
33
|
if (props.rowCount === 0) return <div>{props.noRowsOverlayText ?? "There are currently no rows"}</div>;
|
|
33
|
-
if (props.filteredRowCount === 0)
|
|
34
|
+
if (props.filteredRowCount === 0)
|
|
35
|
+
return <div>{props.noRowsMatchingOverlayText ?? "All rows have been filtered"}</div>;
|
|
34
36
|
return <span />;
|
|
35
37
|
};
|
|
@@ -288,7 +288,11 @@ $grid-base-font-size: calc(#{lui.$base-font-size} - 1px);
|
|
|
288
288
|
font-size: 14px;
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
.ag-row .ag-cell
|
|
291
|
+
.ag-row .ag-cell:first-of-type {
|
|
292
292
|
padding-left: 32px;
|
|
293
293
|
}
|
|
294
|
+
|
|
295
|
+
.ag-row .ag-cell:last-of-type {
|
|
296
|
+
padding-right: 32px;
|
|
297
|
+
}
|
|
294
298
|
}
|