mirror of
https://github.com/apache/superset.git
synced 2026-05-12 11:25:56 +00:00
Merge branch 'master' into msyavuz/chore/react-18
This commit is contained in:
@@ -89,6 +89,7 @@ import { formatColumnValue } from './utils/formatValue';
|
||||
import { PAGE_SIZE_OPTIONS, SERVER_PAGE_SIZE_OPTIONS } from './consts';
|
||||
import { updateTableOwnState } from './DataTable/utils/externalAPIs';
|
||||
import getScrollBarSize from './DataTable/utils/getScrollBarSize';
|
||||
import DateWithFormatter from './utils/DateWithFormatter';
|
||||
|
||||
type ValueRange = [number, number];
|
||||
|
||||
@@ -198,7 +199,7 @@ function SearchInput({
|
||||
{t('Search')}
|
||||
<Input
|
||||
aria-label={t('Search %s records', count)}
|
||||
placeholder={tn('search.num_records', count)}
|
||||
placeholder={tn('%s record', '%s records...', count, count)}
|
||||
value={value}
|
||||
onChange={onChange}
|
||||
onBlur={onBlur}
|
||||
@@ -934,7 +935,10 @@ export default function TableChart<D extends DataRecord = DataRecord>(
|
||||
},
|
||||
className: [
|
||||
className,
|
||||
value == null ? 'dt-is-null' : '',
|
||||
value == null ||
|
||||
(value instanceof DateWithFormatter && value.input == null)
|
||||
? 'dt-is-null'
|
||||
: '',
|
||||
isActiveFilterValue(key, value) ? ' dt-is-active-filter' : '',
|
||||
].join(' '),
|
||||
tabIndex: 0,
|
||||
|
||||
@@ -20,7 +20,7 @@ import { formatSelectOptions } from '@superset-ui/chart-controls';
|
||||
import { t } from '@superset-ui/core';
|
||||
|
||||
export const PAGE_SIZE_OPTIONS = formatSelectOptions<number>([
|
||||
[0, t('page_size.all')],
|
||||
[0, t('All')],
|
||||
10,
|
||||
20,
|
||||
50,
|
||||
|
||||
Reference in New Issue
Block a user