import React from "react"; import { RosterMatrix } from "./formDesign"; import { ResponseData, RosterData } from "./response"; import { Schema } from "@mwater/expressions"; import ResponseRow from "./ResponseRow"; import { InnerFormContext } from "./formContext"; export interface RosterMatrixComponentProps { rosterMatrix: RosterMatrix; /** Current data of response */ data: ResponseData; onDataChange: (data: ResponseData) => void; /** (id) tells if an item is visible or not */ isVisible: (id: string) => boolean; schema: Schema; responseRow: ResponseRow; /** Form context */ formCtx: InnerFormContext; } interface RosterMatrixComponentState { /** Map of "_" to validation error */ validationErrors: { [id: string]: string | true; }; } export default class RosterMatrixComponent extends React.Component { prompt: HTMLHeadingElement | null; constructor(props: RosterMatrixComponentProps); getAnswerId(): string; getAnswer(): RosterData; validate(scrollToFirstInvalid: any): Promise; handleAnswerChange: (answer: any) => void; handleEntryDataChange: (index: any, data: any) => void; handleAdd: () => void; handleRemove: (index: any) => void; handleCellChange: (entryIndex: any, columnId: any, answer: any) => void; handleSort: (column: any, order: any) => void; renderName(): import("react/jsx-runtime").JSX.Element; renderColumnHeader(column: any, index: any): import("react/jsx-runtime").JSX.Element; renderHeader(): import("react/jsx-runtime").JSX.Element; renderCell(entry: any, entryIndex: any, column: any, columnIndex: any): import("react/jsx-runtime").JSX.Element; renderEntry: (entry: any, index: any, connectDragSource: any, connectDragPreview: any, connectDropTarget: any) => any; renderAdd(): import("react/jsx-runtime").JSX.Element | null; renderBody(): import("react/jsx-runtime").JSX.Element; renderEmptyPrompt(): import("react/jsx-runtime").JSX.Element; render(): import("react/jsx-runtime").JSX.Element; } export {};