quality / commitlint (push) Skipped
quality / changes (push) Successful in 9s
quality / docker-check (push) Skipped
quality / openapi (push) Successful in 39s
quality / web (push) Successful in 1m29s
quality / go (push) Successful in 1m3s
quality / bird2 (push) Successful in 15s
CD / quality (push) Successful in 3m43s
CD / publish (push) Failing after 8m29s
Единый kitDataGridTableLayout и ResourcePage/FrameDataGrid на всех списках. Календарь задач переведён на EventCalendar, lookup — на cascader, у операций появился вид доски. Удалены settings-7 и самописные DataGridSection/toolbar. Co-authored-by: Cursor <[email protected]>
26 lines
667 B
TypeScript
26 lines
667 B
TypeScript
import type { ReactNode } from 'react'
|
|
|
|
import { FrameDataGrid, type FrameDataGridProps } from './frame-data-grid'
|
|
|
|
/**
|
|
* Frame + DataGrid with expandable rows.
|
|
* Preview: https://reui.io/preview/base/components/c-data-grid-8
|
|
* Docs: https://reui.io/docs/components/base/data-grid
|
|
*/
|
|
export function ExpandableResourceGrid<TData extends object>({
|
|
expandedContent,
|
|
getRowCanExpand,
|
|
...props
|
|
}: FrameDataGridProps<TData> & {
|
|
expandedContent: (row: TData) => ReactNode
|
|
getRowCanExpand?: (row: TData) => boolean
|
|
}) {
|
|
return (
|
|
<FrameDataGrid
|
|
{...props}
|
|
expandedContent={expandedContent}
|
|
getRowCanExpand={getRowCanExpand}
|
|
/>
|
|
)
|
|
}
|