このコミットが含まれているのは:
@@ -36,10 +36,11 @@ const CountsSummaryTable = (
|
||||
const columnHeaders: CountsPivotHeader[] = data.columnHeaders
|
||||
?? (data.columnValues ?? [[]]).map (values => ({ values, kind: 'data' }))
|
||||
const sorts = readCountSort (params.get ('sort'))
|
||||
const timezone = params.get ('timezone') ?? 'UTC'
|
||||
const change = (key: string, additive: boolean) => update (
|
||||
'sort', writeCountSort (changeCountSort (sorts, key, additive)))
|
||||
const display = (value: string | number | null, axis: CountsAxis, index: number) =>
|
||||
countsSummaryValue (value, axis, index, data, locale)
|
||||
countsSummaryValue (value, axis, index, data, locale, timezone)
|
||||
const aggregateLabel = (header: CountsPivotHeader) => message (
|
||||
header.labelKey ?? (header.kind === 'grand_total' ? (rows.length + cols.length === 1
|
||||
? 'singleTotal' : 'grandTotal') : 'subtotal')).text
|
||||
@@ -227,7 +228,6 @@ const CountsSummaryTable = (
|
||||
}
|
||||
return <div className="min-h-0 flex-1 overflow-auto" data-counts-results aria-busy={pending}>
|
||||
<CountsSelectableTable family={`pivot_${resource}`} columns={keys}
|
||||
stretched={keys.filter (key => key !== 'row_number').length > 1}
|
||||
copyTable={() => ({ columns: keys.map ((_, index) => ({ label: headingRows[0][index] })),
|
||||
headerRows: headingRows, rows: matrix })}
|
||||
identity={`${countsRequestParams (params)}:${JSON.stringify (keys)}`}
|
||||
@@ -295,7 +295,8 @@ const CountsSummaryResults = (props: Parameters<typeof CountsSummaryTable>[0]) =
|
||||
const dragIds = Object.fromEntries (groups.map ((group, index) => [group, ids[index]]))
|
||||
return <SortableColumns ids={ids} name={id => ({
|
||||
text: countsSummaryValue (JSON.parse (groups[ids.indexOf (id)])[0], columns[0],
|
||||
props.data.rows?.length ?? 0, props.data, locale), language: message ('count').language })}
|
||||
props.data.rows?.length ?? 0, props.data, locale,
|
||||
props.params.get ('timezone') ?? 'UTC'), language: message ('count').language })}
|
||||
onChange={order => props.update ('column_order', encodeCountState ('column_order',
|
||||
order.map (id => ({ value: JSON.parse (groups[ids.indexOf (id)])[0] }))))}>
|
||||
{order => {
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする