@linzjs/step-ag-grid 28.4.1 → 28.4.2

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.
@@ -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 ?? {};