diff --git a/package-lock.json b/package-lock.json index eea517007..3752b1b3c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@timechimp/tacugama", - "version": "14.2.0", + "version": "14.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@timechimp/tacugama", - "version": "14.2.0", + "version": "14.3.0", "license": "MIT", "dependencies": { "@ag-grid-community/client-side-row-model": "25.0.1", diff --git a/package.json b/package.json index bdd5f142e..2665b6f22 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "14.2.0", + "version": "14.3.0", "license": "MIT", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", diff --git a/src/components/data-grid/DataGrid.tsx b/src/components/data-grid/DataGrid.tsx index 996351d88..d4e4f87f7 100755 --- a/src/components/data-grid/DataGrid.tsx +++ b/src/components/data-grid/DataGrid.tsx @@ -897,7 +897,7 @@ export const DataGrid = ({ onBulkDelete={onBulkDelete} hideDownload={hideDownload} hideDelete={hideDelete} - showExportTooltip={!!selectedGroupOption} + showExportTooltip={!!selectedGroupOption || rowsSelected > 0} /> )} diff --git a/src/components/data-grid/DataGridActions.tsx b/src/components/data-grid/DataGridActions.tsx index 760024ed1..453f1b97e 100755 --- a/src/components/data-grid/DataGridActions.tsx +++ b/src/components/data-grid/DataGridActions.tsx @@ -63,6 +63,18 @@ export const DataGridActions = ({ return null; } + const getToolTipText = () => { + if (!showExportTooltip) { + return ''; + } + + if (rowsSelected) { + return translations.exportTooltipGrouping; + } + + return translations.exportTooltipNoSelection; + }; + return ( {!hideDelete && onBulkDelete ? ( @@ -89,7 +101,7 @@ export const DataGridActions = ({ >