import type { DataTableProps } from 'primevue'; import type { WtTableHeader, WtTableRow } from './types/WtTable'; interface Props extends DataTableProps { /** * 'Accepts list of header objects. Draws text depending on "text" property, looks for data values through "value", "show" boolean controls visibility of a column (if undefined, all visible by default). ' Column width is calculated by "width" param. By default, sets 140px. ' */ headers?: WtTableHeader[]; /** * 'List of data, represented by table. ' */ data?: WtTableRow[]; /** * 'If true, draws sorting arrows and sends sorting events at header click. Draws a sorting arrow by "sort": "asc"/"desc" header value. ' */ sortable?: boolean; /** * 'If true, draws row selection checkboxes. Checkbox toggles data object _isSelected property. It's IMPORTANT to set this property before sending data to table. ' */ selectable?: boolean; selected?: Array; /** * 'If true, reserves space for 3 icon actions in the last column. Accessible by "actions" slot. ' */ gridActions?: boolean; /** * 'If true, 3 icon actions in the last column have position:sticky and fixed on the right' */ fixedActions?: boolean; /** * 'If true, displays table without header.' */ headless?: boolean; /** * 'If true, applies alternating row background colors.' */ stripedRows?: boolean; /** * 'If true, allows to reorder rows.' */ rowReorder?: boolean; /** * @author @Oleksandr Palonnyi * * [WTEL-8629](https://webitel.atlassian.net/browse/WTEL-8629) * * Unique field name used to identify a row. * Required for selection, expansion, and virtual scrolling to work correctly. * The value must be stable and unique across all rows. */ dataKey?: string; /** * 'If true, restrict sprecific row reorder.' */ isRowReorderDisabled?: (row: WtTableRow) => boolean; rowExpansion?: boolean; rowClass?: (data: WtTableRow) => string; /** * Row highlighted as active (e.g. opened in a side panel). Independent from checkbox selection. Compared by dataKey if set, otherwise by reference. */ activeRow?: WtTableRow | null; rowStyle?: () => { [key: string]: string; }; resizableColumns?: boolean; reorderableColumns?: boolean; rowExpansionDisabled?: (row: object) => boolean; lazy?: boolean; onLoading?: () => Promise; loading?: boolean; itemSize?: number | undefined; } declare var __VLS_1: {}, __VLS_74: `header-${string}`, __VLS_75: { index: number; header: WtTableHeader; }, __VLS_94: { header: WtTableHeader; hide: (event?: Event) => void; formView: boolean; }, __VLS_97: { header: WtTableHeader; formView: boolean; }, __VLS_101: string, __VLS_102: { index: any; item: any; }, __VLS_107: `${string}-footer`, __VLS_108: {}, __VLS_122: {}, __VLS_125: { index: any; item: any; }, __VLS_128: { item: any; }, __VLS_131: {}; type __VLS_Slots = {} & { [K in NonNullable]?: (props: typeof __VLS_75) => any; } & { [K in NonNullable]?: (props: typeof __VLS_102) => any; } & { [K in NonNullable]?: (props: typeof __VLS_108) => any; } & { empty?: (props: typeof __VLS_1) => any; } & { 'column-filter'?: (props: typeof __VLS_94) => any; } & { 'column-filter'?: (props: typeof __VLS_97) => any; } & { 'actions-header'?: (props: typeof __VLS_122) => any; } & { actions?: (props: typeof __VLS_125) => any; } & { expansion?: (props: typeof __VLS_128) => any; } & { footer?: (props: typeof __VLS_131) => any; }; declare const __VLS_base: import("vue").DefineComponent void; "update:selected": (...args: any[]) => void; "reorder:row": (...args: any[]) => void; "column-resize": (...args: any[]) => void; "column-reorder": (...args: any[]) => void; "row-click": (...args: any[]) => void; }, string, import("vue").PublicProps, Readonly & Readonly<{ onSort?: ((...args: any[]) => any) | undefined; "onUpdate:selected"?: ((...args: any[]) => any) | undefined; "onReorder:row"?: ((...args: any[]) => any) | undefined; "onColumn-resize"?: ((...args: any[]) => any) | undefined; "onColumn-reorder"?: ((...args: any[]) => any) | undefined; "onRow-click"?: ((...args: any[]) => any) | undefined; }>, { data: WtTableRow[]; lazy: boolean; dataKey: string; resizableColumns: boolean; headers: WtTableHeader[]; sortable: boolean; selectable: boolean; gridActions: boolean; fixedActions: boolean; headless: boolean; stripedRows: boolean; rowReorder: boolean; isRowReorderDisabled: (row: WtTableRow) => boolean; rowExpansion: boolean; rowClass: (data: WtTableRow) => string; activeRow: WtTableRow | null; rowStyle: () => { [key: string]: string; }; reorderableColumns: boolean; rowExpansionDisabled: (row: object) => boolean; itemSize: number; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>; declare const __VLS_export: __VLS_WithSlots; declare const _default: typeof __VLS_export; export default _default; type __VLS_WithSlots = T & { new (): { $slots: S; }; };