Skip to content

Commit dae476f

Browse files
authored
Merge pull request #199 from lflangis/feat/FLUI-25-26/fix-table-and-query-builder-tools
Feat/fl UI 25 26/fix table and query builder tools
2 parents 939fc17 + 16861fb commit dae476f

File tree

5 files changed

+21
-17
lines changed

5 files changed

+21
-17
lines changed

packages/style/components/queryBuilder/QueryBuilderHeaderTools.module.scss

+11-14
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
.queryBuilderHeaderTools {
44
.toolsContainer {
55
.queryBuilderHeaderActionIconBtn {
6-
&:focus,
7-
&:hover {
8-
background-color: transparent;
9-
}
10-
116
&:focus-visible {
127
border: 1px solid !important;
138
}
@@ -19,18 +14,20 @@
1914
color: $query-builder-header-tools-icon-color-dirty;
2015

2116
&:not(span) {
22-
@include hoverFocus(
23-
$query-builder-header-tools-icon-color-dirty,
24-
$query-builder-header-tools-icon-color-dirty
25-
);
17+
&:hover,
18+
&:focus {
19+
border: $query-builder-header-tools-icon-color-dirty;
20+
color: $query-builder-header-tools-icon-color-dirty;
21+
}
2622
}
2723
}
2824

2925
&:not(span) {
30-
@include hoverFocus(
31-
$query-builder-header-tools-icon-hover,
32-
$query-builder-header-tools-icon-focus
33-
);
26+
&:hover,
27+
&:focus {
28+
border: $query-builder-header-tools-icon-color-dirty;
29+
color: $query-builder-header-tools-icon-color-dirty;
30+
}
3431
}
3532
}
3633
}
@@ -63,4 +60,4 @@
6360
overflow: hidden;
6461
white-space: nowrap;
6562
}
66-
}
63+
}

packages/style/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ferlab/style",
3-
"version": "1.26.1",
3+
"version": "1.26.2",
44
"description": "Core components for scientific research data portals",
55
"publishConfig": {
66
"access": "public"

packages/ui/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ferlab/ui",
3-
"version": "4.7.7",
3+
"version": "4.7.8",
44
"description": "Core components for scientific research data portals",
55
"publishConfig": {
66
"access": "public"
@@ -79,7 +79,6 @@
7979
"md5": "^2.3.0",
8080
"query-string": "^7.0.1",
8181
"react-icons": "^4.2.0",
82-
"simplebar-react": "^2.3.6",
8382
"uuid": "^8.3.2",
8483
"xss": "^1.0.9"
8584
},

packages/ui/src/components/ProTable/index.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { Button, Space, Table, Tooltip } from 'antd';
44
import cx from 'classnames';
55
import { isEmpty } from 'lodash';
66

7+
import Empty from '../Empty';
8+
79
import ColumnSelector from './ColumnSelector';
810
import TableHeader from './Header';
911
import Pagination from './Pagination';
@@ -215,6 +217,9 @@ const ProTable = <RecordType extends object & { key: string } = any>({
215217
.map(({ key }) => columns.find((column) => column.key === key)!)
216218
.filter((column) => !isEmpty(column))
217219
.map(generateColumnTitle)}
220+
locale={{
221+
emptyText: <Empty description={dictionary.table?.emptyText || 'No available data'} size="mini" />,
222+
}}
218223
pagination={
219224
pagination && (pagination as IPaginationProps)?.searchAfter === undefined
220225
? {

packages/ui/src/components/ProTable/types.ts

+3
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ export interface IProTableDictionary {
5050
view: string;
5151
};
5252
numberFormat?: (value: number) => React.ReactNode;
53+
table?: {
54+
emptyText: string;
55+
};
5356
}
5457

5558
export interface ProColumnType<T = any> extends ColumnType<T> {

0 commit comments

Comments
 (0)