import * as React from 'react'; import { RowWrapper, RowWrapperRow } from '@patternfly/react-table'; import { WindowDimensions, ClientBoundingRect } from '../../utils/utils'; import { EditConfig } from '../Body'; import '@patternfly/react-styles/css/components/Table/inline-edit.css'; export interface EditableRowWrapperRow extends RowWrapperRow { isEditing?: boolean; isTableEditing?: boolean; isFirstVisible?: boolean; isLastVisible?: boolean; isChildEditing?: boolean; isParentEditing?: boolean; isLastVisibleParent?: boolean; editConfig?: EditConfig; } export interface EditableRowWrapperProps extends RowWrapper { className?: string; row: EditableRowWrapperRow; trRef: (instance: any) => void; onScroll: (event: React.UIEvent) => void; onResize: (event: React.UIEvent) => void; rowProps: { rowIndex: number; rowKey: string; }; } interface EditableRowWrapperState { hasConfirmationButtons?: boolean; window?: WindowDimensions; rowDimensions?: ClientBoundingRect; } export declare const editableRowWrapper: (RowWrapperComponent: typeof RowWrapper) => { new (props: EditableRowWrapperProps | Readonly): { state: { hasConfirmationButtons: boolean; window: WindowDimensions; rowDimensions: ClientBoundingRect; }; element: React.RefObject; tableElem: HTMLElement; setStateWith2dEquals: (newState: EditableRowWrapperState) => void; componentDidMount(): void; updateRowDimensions: () => void; handleScroll: () => void; handleResize: () => void; fetchClientDimensions(): void; getConfirmationButtons(): React.ReactPortal; render(): JSX.Element; context: unknown; setState(state: EditableRowWrapperState | ((prevState: Readonly, props: Readonly) => EditableRowWrapperState | Pick) | Pick, callback?: () => void): void; forceUpdate(callback?: () => void): void; readonly props: Readonly; refs: { [key: string]: React.ReactInstance; }; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly): any; componentDidUpdate?(prevProps: Readonly, prevState: Readonly, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; }; new (props: EditableRowWrapperProps, context: any): { state: { hasConfirmationButtons: boolean; window: WindowDimensions; rowDimensions: ClientBoundingRect; }; element: React.RefObject; tableElem: HTMLElement; setStateWith2dEquals: (newState: EditableRowWrapperState) => void; componentDidMount(): void; updateRowDimensions: () => void; handleScroll: () => void; handleResize: () => void; fetchClientDimensions(): void; getConfirmationButtons(): React.ReactPortal; render(): JSX.Element; context: unknown; setState(state: EditableRowWrapperState | ((prevState: Readonly, props: Readonly) => EditableRowWrapperState | Pick) | Pick, callback?: () => void): void; forceUpdate(callback?: () => void): void; readonly props: Readonly; refs: { [key: string]: React.ReactInstance; }; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly): any; componentDidUpdate?(prevProps: Readonly, prevState: Readonly, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; }; defaultProps: { onScroll: () => void; onResize: () => void; }; getDerivedStateFromProps: (props: EditableRowWrapperProps) => { hasConfirmationButtons: boolean; }; contextType?: React.Context; }; export {}; //# sourceMappingURL=editableRowWrapper.d.ts.map