/** * The single source of truth for what XLSX import/export does **not** carry, so * the importer and exporter cannot drift. Merges and defined names used to live * here; they now travel (see importer/exporter), so they are gone from the list. * * Each entry names the OOXML element/attribute that signals the feature's * presence in a worksheet, so the importer can detect surviving drops and report * them as {@link Issue}s rather than only documenting them. */ export interface DroppedFeature { /** Human label. */ label: string /** Worksheet-XML element whose presence signals this feature (if detectable). */ element?: string /** Whether occurrences are addressable to specific cells/ranges. */ cellAddressable: boolean } export const DROPPED_FEATURES: Array = [ { label: 'fonts, fills, and borders', cellAddressable: false }, { label: 'column widths and row heights', cellAddressable: false }, { label: 'data validations', element: 'dataValidations', cellAddressable: true, }, { label: 'conditional formatting', element: 'conditionalFormatting', cellAddressable: true, }, { label: 'array formulas', cellAddressable: true }, // detected via { label: 'charts and drawings', element: 'drawing', cellAddressable: false }, { label: 'pivot tables', cellAddressable: false }, { label: 'table (list) ranges', element: 'tableParts', cellAddressable: false, }, ] /** The drop list as a human sentence, for doc/header use. */ export const DROPPED_FEATURES_SENTENCE = DROPPED_FEATURES.map( (d) => d.label, ).join(', ')