@linzjs/step-ag-grid 28.4.1 → 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 +7 -5
- package/dist/step-ag-grid.cjs.map +1 -1
- package/dist/step-ag-grid.esm.js +7 -5
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/GridCell.tsx +7 -4
- 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
|
};
|
|
@@ -3343,11 +3343,13 @@ const GridCellRenderer = (props) => {
|
|
|
3343
3343
|
let warningText = props.data !== undefined && warningFn ? warningFn(props) : undefined;
|
|
3344
3344
|
const infoFn = rendererParams?.info;
|
|
3345
3345
|
let infoText = props.data !== undefined && infoFn ? infoFn(props) : undefined;
|
|
3346
|
-
if (Array.isArray(warningText))
|
|
3346
|
+
if (Array.isArray(warningText)) {
|
|
3347
3347
|
warningText = warningText.join('\n');
|
|
3348
|
-
|
|
3348
|
+
}
|
|
3349
|
+
if (Array.isArray(infoText)) {
|
|
3349
3350
|
infoText = infoText.join('\n');
|
|
3350
|
-
|
|
3351
|
+
}
|
|
3352
|
+
return checkUpdating(colDef.field ?? colDef.colId ?? '', props.data.id) ? (jsxRuntime.jsx(GridLoadableCell, {})) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [!!warningText && (jsxRuntime.jsx(GridIcon, { icon: 'ic_warning_outline', title: typeof warningText === 'string' ? warningText : 'Warning' })), !!infoText && jsxRuntime.jsx(GridIcon, { icon: 'ic_info_outline', title: typeof infoText === 'string' ? infoText : 'Info' }), jsxRuntime.jsx("div", { className: 'GridCell-container', children: colDef.cellRendererParams?.originalCellRenderer ? (jsxRuntime.jsx(colDef.cellRendererParams.originalCellRenderer, { ...props })) : (jsxRuntime.jsx("span", { title: props.valueFormatted ?? undefined, children: props.valueFormatted || '–' })) }), fnOrVar(colDef.editable, props) && rendererParams?.rightHoverElement && (jsxRuntime.jsx("div", { className: 'GridCell-hoverRight', children: rendererParams?.rightHoverElement }))] }));
|
|
3351
3353
|
};
|
|
3352
3354
|
const suppressCellKeyboardEvents = (e) => {
|
|
3353
3355
|
const shortcutKeys = e.colDef.cellRendererParams?.shortcutKeys ?? {};
|