@odoo/o-spreadsheet
Version:
A spreadsheet component
20 lines (19 loc) • 1 kB
TypeScript
import { ExcelWorkbookData } from "../types/workbook_data";
import { XLSXExport } from "../types/xlsx";
/**
* Return the spreadsheet data in the Office Open XML file format.
* See ECMA-376 standard.
* https://www.ecma-international.org/publications-and-standards/standards/ecma-376/
*/
export declare function getXLSX(data: ExcelWorkbookData): XLSXExport;
/**
* Excel sheet names are maximum 31 characters while o-spreadsheet do not have this limit.
* This method converts the sheet names to be within the 31 characters limit.
* The cells/charts referencing this sheet will be updated accordingly.
*/
export declare function fixLengthySheetNames(data: ExcelWorkbookData): ExcelWorkbookData;
/** Excel files do not support tables with a single row the defined range
* Since those tables are not really useful (no filtering/limited styling)
* This function filters out all tables with a single row.
*/
export declare function purgeSingleRowTables(data: ExcelWorkbookData): ExcelWorkbookData;