import { ParserBase } from './ParserBase.js'; import { TableMatrix } from '../../model-matrix/index.js'; import type { TableInterface } from '../../model/index.js'; import type { ImporterInterface } from '../../importer-xlsx/index.js'; import type { ParserParseRequest } from './ParserInterface.js'; /** * The parser for the matrix tables. */ export declare class ParserMatrix extends ParserBase { /** This sequence is used to give each field a unique name. */ fieldNameSequence: number; /** If a complete column is empty, it must not be parsed */ emptyColumns: Set; /** If a complete row is empty, it must not be parsed */ emptyRows: Set; /** * Parses the sheet with the given name und uses the given importer to access * the data. * @param request - The parameters as defined in @see ParserParseRequest * @returns The created table model */ parse(request: ParserParseRequest): TableInterface | undefined; /** * Creates a unique field name. * @returns The new generated fieldName */ getFieldName(): string; /** * This function checks that the column header of the meta data is valid * @param request - The parameters as defined * @returns true if there is no error */ private checkMetaDataColumn; /** * This function checks that the row header of the meta data is valid * @param request - The parameters as defined * @returns true if there is no error */ private checkMetaDataRow; /** * Reads the meta data information of each column and stores it in the * table object * @param request - The parameter as defined */ parseMetaDataColumn(request: { /** The table to store the current sheet data */ table: TableMatrix; /** The name of the sheet */ sheetName: string; /** The importer */ importer: ImporterInterface; /** The last column of the sheed (Exclusive) */ sheetEndColumn: number; /** The last row of the sheet (Exclusive) */ sheetEndRow: number; }): void; /** * Checks that the complete row is empty. * If the column has no name, then the complete row must be null * @param request - The parameter as defined */ private checkForEmptyColumn; /** * Reads the meta data information of each row and stores it in the * table object * @param request - the parameter as defined */ private parseMetaDataRow; /** * Checks that the complete row is empty. * If the column has no name, then the complete row must be null * @param request - the parameter as defined */ private checkForEmptyRow; /** * Reads the data section of the matrix table * @param request - The parameter as defined */ private parseFieldData; } //# sourceMappingURL=ParserMatrix.d.ts.map