UNPKG

@odoo/o-spreadsheet

Version:
82 lines (81 loc) 5.02 kB
import { IconSetType } from "../components/icons/icons"; import { ExcelIconSet } from "../types/xlsx"; /** In XLSX color format (no #) */ export declare const AUTO_COLOR = "000000"; export declare const XLSX_ICONSET_MAP: Record<IconSetType, ExcelIconSet>; export declare const NAMESPACE: { styleSheet: string; sst: string; Relationships: string; Types: string; worksheet: string; workbook: string; drawing: string; table: string; revision: string; revision3: string; markupCompatibility: string; }; export declare const DRAWING_NS_A = "http://schemas.openxmlformats.org/drawingml/2006/main"; export declare const DRAWING_NS_C = "http://schemas.openxmlformats.org/drawingml/2006/chart"; export declare const CONTENT_TYPES: { readonly workbook: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"; readonly macroEnabledWorkbook: "application/vnd.ms-excel.sheet.macroEnabled.main+xml"; readonly templateWorkbook: "application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"; readonly macroEnabledTemplateWorkbook: "application/vnd.ms-excel.template.macroEnabled.main+xml"; readonly excelAddInWorkbook: "application/vnd.ms-excel.addin.macroEnabled.main+xml"; readonly sheet: "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"; readonly metadata: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml"; readonly sharedStrings: "application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"; readonly styles: "application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"; readonly drawing: "application/vnd.openxmlformats-officedocument.drawing+xml"; readonly chart: "application/vnd.openxmlformats-officedocument.drawingml.chart+xml"; readonly themes: "application/vnd.openxmlformats-officedocument.theme+xml"; readonly table: "application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"; readonly pivot: "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml"; readonly externalLink: "application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml"; }; export declare const XLSX_RELATION_TYPE: { readonly document: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument"; readonly sheet: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"; readonly metadata: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata"; readonly sharedStrings: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings"; readonly styles: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles"; readonly drawing: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing"; readonly chart: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart"; readonly theme: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"; readonly table: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"; readonly hyperlink: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink"; readonly image: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image"; }; export declare const ARRAY_FORMULA_URI = "bdbb8cdc-fa1e-496e-a857-3c3f30c029c3"; export declare const RELATIONSHIP_NSR = "http://schemas.openxmlformats.org/officeDocument/2006/relationships"; export declare const HEIGHT_FACTOR = 0.75; /** * Excel says its default column width is 8.43 characters (64px) * which makes WIDTH_FACTOR = 0.1317, but it doesn't work well * 0.143 is a value from dev's experiments. */ export declare const WIDTH_FACTOR = 0.143; /** unit : maximum number of characters a column can hold at the standard font size. What. */ export declare const EXCEL_DEFAULT_COL_WIDTH = 8.43; /** unit : points */ export declare const EXCEL_DEFAULT_ROW_HEIGHT = 12.75; export declare const EXCEL_IMPORT_DEFAULT_NUMBER_OF_COLS = 30; export declare const EXCEL_IMPORT_DEFAULT_NUMBER_OF_ROWS = 100; /** The possible values for the XLSX polynomial trendline order are defined by the ST_Order simple type (§21.2.3.29) */ export declare const MAX_XLSX_POLYNOMIAL_DEGREE = 6; export declare const FIRST_NUMFMT_ID = 164; export declare const DEFAULT_DOUGHNUT_CHART_HOLE_SIZE = 50; interface functionDefaultArg { type: "NUMBER"; value: number; } export declare const FORCE_DEFAULT_ARGS_FUNCTIONS: Record<string, functionDefaultArg[]>; /** * This list contains all "future" functions that are not compatible with older versions of Excel * For more information, see https://docs.microsoft.com/en-us/openspecs/office_standards/ms-xlsx/5d1b6d44-6fc1-4ecd-8fef-0b27406cc2bf */ export declare const NON_RETROCOMPATIBLE_FUNCTIONS: string[]; export declare const CONTENT_TYPES_FILE = "[Content_Types].xml"; export {};