@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.
@@ -2589,10 +2589,10 @@ const GridNoRowsOverlayFr = (props, externalRef) => {
2589
2589
  return jsx(GridLoadingOverlayComponent, { ref: externalRef, headerRowHeight: props.headerRowHeight });
2590
2590
  }
2591
2591
  if (props.rowCount === 0) {
2592
- return jsx("div", { ref: externalRef, children: props.noRowsOverlayText ?? 'There are currently no rows' });
2592
+ return (jsxs("div", { ref: externalRef, className: 'GridNoRowsOverlay', children: [jsx(LuiIcon, { name: "ic_info_outline", alt: "", size: "md" }), props.noRowsOverlayText ?? 'There are currently no rows'] }));
2593
2593
  }
2594
2594
  if (props.filteredRowCount === 0) {
2595
- return jsx("div", { ref: externalRef, children: props.noRowsMatchingOverlayText ?? 'All rows have been filtered' });
2595
+ return (jsxs("div", { ref: externalRef, className: 'GridNoRowsOverlay', children: [jsx(LuiIcon, { name: "ic_info_outline", alt: "", size: "md" }), props.noRowsMatchingOverlayText ?? 'All rows have been filtered'] }));
2596
2596
  }
2597
2597
  return jsx("div", { ref: externalRef });
2598
2598
  };
@@ -3341,11 +3341,13 @@ const GridCellRenderer = (props) => {
3341
3341
  let warningText = props.data !== undefined && warningFn ? warningFn(props) : undefined;
3342
3342
  const infoFn = rendererParams?.info;
3343
3343
  let infoText = props.data !== undefined && infoFn ? infoFn(props) : undefined;
3344
- if (Array.isArray(warningText))
3344
+ if (Array.isArray(warningText)) {
3345
3345
  warningText = warningText.join('\n');
3346
- if (Array.isArray(infoText))
3346
+ }
3347
+ if (Array.isArray(infoText)) {
3347
3348
  infoText = infoText.join('\n');
3348
- return checkUpdating(colDef.field ?? colDef.colId ?? '', props.data.id) ? (jsx(GridLoadableCell, {})) : (jsxs(Fragment, { children: [!!warningText && (jsx(GridIcon, { icon: 'ic_warning_outline', title: typeof warningText === 'string' ? warningText : 'Warning' })), !!infoText && jsx(GridIcon, { icon: 'ic_info_outline', title: typeof infoText === 'string' ? infoText : 'Info' }), jsx("div", { className: 'GridCell-container', children: colDef.cellRendererParams?.originalCellRenderer ? (jsx(colDef.cellRendererParams.originalCellRenderer, { ...props })) : (jsx("span", { title: props.valueFormatted ?? undefined, children: props.valueFormatted })) }), fnOrVar(colDef.editable, props) && rendererParams?.rightHoverElement && (jsx("div", { className: 'GridCell-hoverRight', children: rendererParams?.rightHoverElement }))] }));
3349
+ }
3350
+ return checkUpdating(colDef.field ?? colDef.colId ?? '', props.data.id) ? (jsx(GridLoadableCell, {})) : (jsxs(Fragment, { children: [!!warningText && (jsx(GridIcon, { icon: 'ic_warning_outline', title: typeof warningText === 'string' ? warningText : 'Warning' })), !!infoText && jsx(GridIcon, { icon: 'ic_info_outline', title: typeof infoText === 'string' ? infoText : 'Info' }), jsx("div", { className: 'GridCell-container', children: colDef.cellRendererParams?.originalCellRenderer ? (jsx(colDef.cellRendererParams.originalCellRenderer, { ...props })) : (jsx("span", { title: props.valueFormatted ?? undefined, children: props.valueFormatted || '–' })) }), fnOrVar(colDef.editable, props) && rendererParams?.rightHoverElement && (jsx("div", { className: 'GridCell-hoverRight', children: rendererParams?.rightHoverElement }))] }));
3349
3351
  };
3350
3352
  const suppressCellKeyboardEvents = (e) => {
3351
3353
  const shortcutKeys = e.colDef.cellRendererParams?.shortcutKeys ?? {};