@sheetxl/io-xlsx 0.7.23-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +11 -0
- package/README.md +23 -0
- package/browser/cjs/5QaWZ2tRVhz1rf3W.cjs +1 -0
- package/browser/cjs/B6sirGz6w-Bm7Ofo.cjs +1 -0
- package/browser/cjs/B7_pDFYCVzt-3hUs.cjs +1 -0
- package/browser/cjs/BE7AtU1GCShmJ8Yu.cjs +1 -0
- package/browser/cjs/CIpMN7SDVREKQUQE.cjs +6 -0
- package/browser/cjs/Chkqh5BZ-MJjAcPF.cjs +5 -0
- package/browser/cjs/D-8WoJkvdPf-79sB.cjs +2 -0
- package/browser/cjs/D5Y4KQhKdukOkjvA.cjs +2 -0
- package/browser/cjs/DWkuoJSgvcXJTdN1.cjs +1 -0
- package/browser/cjs/index.cjs +1 -0
- package/browser/cjs/sEmMmxaNBSY_o-Zb.cjs +1 -0
- package/browser/cjs/xQ6-wbTw5UzZUM1Y.cjs +1 -0
- package/browser/esm/B20zuEvdeypuSU5s.mjs +3851 -0
- package/browser/esm/BVAAJynubTdvPOQA.mjs +24 -0
- package/browser/esm/CLo2oPoIised6GbD.mjs +3617 -0
- package/browser/esm/COSdjubnJ_UgB-Gr.mjs +111 -0
- package/browser/esm/CS1t46OUALKkZxTa.mjs +494 -0
- package/browser/esm/CS8eRkAhoCN8KdGO.mjs +52 -0
- package/browser/esm/CcXnQZ4Fk_nkbq2G.mjs +99 -0
- package/browser/esm/Ch5gA6g56cOtRvJA.mjs +2193 -0
- package/browser/esm/DRuB-nlH4kq_OQJ5.mjs +196 -0
- package/browser/esm/DoKP-E832M9vPWgU.mjs +4675 -0
- package/browser/esm/XoDWB6uCJVrra-pE.mjs +2623 -0
- package/browser/esm/index.mjs +8 -0
- package/licenses/dependencies.txt +60 -0
- package/node/esm/B3Hb3GSFs_FIoXoI.mjs +209 -0
- package/node/esm/BqwG-e5ddQ45fg8w.mjs +2702 -0
- package/node/esm/C81WoKHbCRwhcHWd.mjs +2413 -0
- package/node/esm/CIzCy_gyysEIa_HI.mjs +3700 -0
- package/node/esm/CL8002u21KKQkkL0.mjs +108 -0
- package/node/esm/DF893ovKIDS88O7b.mjs +2237 -0
- package/node/esm/DTuPlHBTHnbLGvxd.mjs +504 -0
- package/node/esm/DVJuJqAXDwgA-ge8.mjs +118 -0
- package/node/esm/index.mjs +52 -0
- package/package.json +55 -0
- package/types/index.d.ts +2 -0
- package/types/src/ConditionalFormatRules.d.ts +86 -0
- package/types/src/ConditionalFormatRules.d.ts.map +1 -0
- package/types/src/DataValidationRules.d.ts +59 -0
- package/types/src/DataValidationRules.d.ts.map +1 -0
- package/types/src/ExcelCompat.d.ts +142 -0
- package/types/src/ExcelCompat.d.ts.map +1 -0
- package/types/src/ExcelFunctionFacts.d.ts +375 -0
- package/types/src/ExcelFunctionFacts.d.ts.map +1 -0
- package/types/src/ExcelReservedNames.d.ts +67 -0
- package/types/src/ExcelReservedNames.d.ts.map +1 -0
- package/types/src/LegacyFormula.d.ts +74 -0
- package/types/src/LegacyFormula.d.ts.map +1 -0
- package/types/src/OOXMLEscape.d.ts +28 -0
- package/types/src/OOXMLEscape.d.ts.map +1 -0
- package/types/src/OOXMLExtensions.d.ts +53 -0
- package/types/src/OOXMLExtensions.d.ts.map +1 -0
- package/types/src/OperandLiterals.d.ts +34 -0
- package/types/src/OperandLiterals.d.ts.map +1 -0
- package/types/src/Plugin.d.ts +16 -0
- package/types/src/Plugin.d.ts.map +1 -0
- package/types/src/SourcePackage.d.ts +76 -0
- package/types/src/SourcePackage.d.ts.map +1 -0
- package/types/src/Types.d.ts +44 -0
- package/types/src/Types.d.ts.map +1 -0
- package/types/src/cfb/CompoundFileReader.d.ts +73 -0
- package/types/src/cfb/CompoundFileReader.d.ts.map +1 -0
- package/types/src/cfb/CompoundFileWriter.d.ts +57 -0
- package/types/src/cfb/CompoundFileWriter.d.ts.map +1 -0
- package/types/src/cfb/index.d.ts +3 -0
- package/types/src/cfb/index.d.ts.map +1 -0
- package/types/src/index.d.ts +3 -0
- package/types/src/index.d.ts.map +1 -0
- package/types/src/legacyChart/OOXMLMappings.d.ts +8 -0
- package/types/src/legacyChart/OOXMLMappings.d.ts.map +1 -0
- package/types/src/legacyChart/OOXMLUtils.d.ts +78 -0
- package/types/src/legacyChart/OOXMLUtils.d.ts.map +1 -0
- package/types/src/legacyChart/ToOOXMLConverter.d.ts +30 -0
- package/types/src/legacyChart/ToOOXMLConverter.d.ts.map +1 -0
- package/types/src/offcrypto/AgileCrypto.d.ts +85 -0
- package/types/src/offcrypto/AgileCrypto.d.ts.map +1 -0
- package/types/src/offcrypto/EncryptionInfo.d.ts +109 -0
- package/types/src/offcrypto/EncryptionInfo.d.ts.map +1 -0
- package/types/src/offcrypto/LazyOffCryptoEncryption.d.ts +18 -0
- package/types/src/offcrypto/LazyOffCryptoEncryption.d.ts.map +1 -0
- package/types/src/offcrypto/OffCryptoEncryption.d.ts +15 -0
- package/types/src/offcrypto/OffCryptoEncryption.d.ts.map +1 -0
- package/types/src/offcrypto/index.d.ts +5 -0
- package/types/src/offcrypto/index.d.ts.map +1 -0
- package/types/src/reader/DummyFunctionUnwrap.d.ts +58 -0
- package/types/src/reader/DummyFunctionUnwrap.d.ts.map +1 -0
- package/types/src/reader/ReaderProfiler.d.ts +45 -0
- package/types/src/reader/ReaderProfiler.d.ts.map +1 -0
- package/types/src/reader/ReaderUtils.d.ts +66 -0
- package/types/src/reader/ReaderUtils.d.ts.map +1 -0
- package/types/src/reader/XLSXReader.d.ts +11 -0
- package/types/src/reader/XLSXReader.d.ts.map +1 -0
- package/types/src/reader/ZipReader.d.ts +62 -0
- package/types/src/reader/ZipReader.d.ts.map +1 -0
- package/types/src/reader/dom/DOMTransformer.d.ts +22 -0
- package/types/src/reader/dom/DOMTransformer.d.ts.map +1 -0
- package/types/src/reader/dom/DefaultVisitor.d.ts +8 -0
- package/types/src/reader/dom/DefaultVisitor.d.ts.map +1 -0
- package/types/src/reader/dom/ExecutionContext.d.ts +78 -0
- package/types/src/reader/dom/ExecutionContext.d.ts.map +1 -0
- package/types/src/reader/dom/NumberUtils.d.ts +17 -0
- package/types/src/reader/dom/NumberUtils.d.ts.map +1 -0
- package/types/src/reader/dom/Types.d.ts +27 -0
- package/types/src/reader/dom/Types.d.ts.map +1 -0
- package/types/src/reader/dom/VisitContext.d.ts +10 -0
- package/types/src/reader/dom/VisitContext.d.ts.map +1 -0
- package/types/src/reader/dom/Visitor.d.ts +23 -0
- package/types/src/reader/dom/Visitor.d.ts.map +1 -0
- package/types/src/reader/dom/VisitorUtils.d.ts +16 -0
- package/types/src/reader/dom/VisitorUtils.d.ts.map +1 -0
- package/types/src/reader/dom/index.d.ts +7 -0
- package/types/src/reader/dom/index.d.ts.map +1 -0
- package/types/src/reader/domVisitors/AppPropertiesVisitor.d.ts +11 -0
- package/types/src/reader/domVisitors/AppPropertiesVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/AutoFilterVisitor.d.ts +25 -0
- package/types/src/reader/domVisitors/AutoFilterVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/AxisVisitor.d.ts +12 -0
- package/types/src/reader/domVisitors/AxisVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/BarChartTypeVisitor.d.ts +6 -0
- package/types/src/reader/domVisitors/BarChartTypeVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/ChartSpaceVisitor.d.ts +6 -0
- package/types/src/reader/domVisitors/ChartSpaceVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/ChartTypeVisitor.d.ts +7 -0
- package/types/src/reader/domVisitors/ChartTypeVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/ChartVisitor.d.ts +7 -0
- package/types/src/reader/domVisitors/ChartVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/ClrSchemeVisitor.d.ts +7 -0
- package/types/src/reader/domVisitors/ClrSchemeVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/ColorContainerVisitor.d.ts +37 -0
- package/types/src/reader/domVisitors/ColorContainerVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/CommentVisitor.d.ts +6 -0
- package/types/src/reader/domVisitors/CommentVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/CommentsVisitor.d.ts +7 -0
- package/types/src/reader/domVisitors/CommentsVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/CorePropertiesVisitor.d.ts +11 -0
- package/types/src/reader/domVisitors/CorePropertiesVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/DataLabelsVisitor.d.ts +8 -0
- package/types/src/reader/domVisitors/DataLabelsVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/DataPointVisitor.d.ts +6 -0
- package/types/src/reader/domVisitors/DataPointVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/DrawingAnchorVisitor.d.ts +8 -0
- package/types/src/reader/domVisitors/DrawingAnchorVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/DrawingCxnSpVisitor.d.ts +7 -0
- package/types/src/reader/domVisitors/DrawingCxnSpVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/DrawingElementVisitor.d.ts +6 -0
- package/types/src/reader/domVisitors/DrawingElementVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/DrawingGraphicFrameVisitor.d.ts +7 -0
- package/types/src/reader/domVisitors/DrawingGraphicFrameVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/DrawingGrpSpVisitor.d.ts +7 -0
- package/types/src/reader/domVisitors/DrawingGrpSpVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/DrawingPicVisitor.d.ts +7 -0
- package/types/src/reader/domVisitors/DrawingPicVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/DrawingSpVisitor.d.ts +7 -0
- package/types/src/reader/domVisitors/DrawingSpVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/DrawingVisitor.d.ts +5 -0
- package/types/src/reader/domVisitors/DrawingVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/ExternalLinkVisitor.d.ts +32 -0
- package/types/src/reader/domVisitors/ExternalLinkVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/FmtSchemeVisitor.d.ts +22 -0
- package/types/src/reader/domVisitors/FmtSchemeVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/FontSchemeVisitor.d.ts +7 -0
- package/types/src/reader/domVisitors/FontSchemeVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/HyperlinkVisitor.d.ts +6 -0
- package/types/src/reader/domVisitors/HyperlinkVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/LayoutVisitor.d.ts +5 -0
- package/types/src/reader/domVisitors/LayoutVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/LegendEntryVisitor.d.ts +5 -0
- package/types/src/reader/domVisitors/LegendEntryVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/LegendVisitor.d.ts +5 -0
- package/types/src/reader/domVisitors/LegendVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/MarkerVisitor.d.ts +5 -0
- package/types/src/reader/domVisitors/MarkerVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/MetadataVisitor.d.ts +104 -0
- package/types/src/reader/domVisitors/MetadataVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/NegativeShapeVisitor.d.ts +6 -0
- package/types/src/reader/domVisitors/NegativeShapeVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/OOXMLVisitorUtils.d.ts +3 -0
- package/types/src/reader/domVisitors/OOXMLVisitorUtils.d.ts.map +1 -0
- package/types/src/reader/domVisitors/PersonListVisitor.d.ts +5 -0
- package/types/src/reader/domVisitors/PersonListVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/PlotAreaVisitor.d.ts +5 -0
- package/types/src/reader/domVisitors/PlotAreaVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/PresetTableStylesVisitor.d.ts +8 -0
- package/types/src/reader/domVisitors/PresetTableStylesVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/RelsVisitor.d.ts +9 -0
- package/types/src/reader/domVisitors/RelsVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/RichValueDataVisitor.d.ts +7 -0
- package/types/src/reader/domVisitors/RichValueDataVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/RichValueStructureVisitor.d.ts +6 -0
- package/types/src/reader/domVisitors/RichValueStructureVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/SeriesVisitor.d.ts +8 -0
- package/types/src/reader/domVisitors/SeriesVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/ShapePropertiesVisitor.d.ts +6 -0
- package/types/src/reader/domVisitors/ShapePropertiesVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/SheetColorContainerVisitor.d.ts +28 -0
- package/types/src/reader/domVisitors/SheetColorContainerVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/SheetStyleVisitor.d.ts +20 -0
- package/types/src/reader/domVisitors/SheetStyleVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/SlicerCacheDefinitionVisitor.d.ts +6 -0
- package/types/src/reader/domVisitors/SlicerCacheDefinitionVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/SlicersVisitor.d.ts +7 -0
- package/types/src/reader/domVisitors/SlicersVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/SortStateVisitor.d.ts +8 -0
- package/types/src/reader/domVisitors/SortStateVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/TableVisitor.d.ts +10 -0
- package/types/src/reader/domVisitors/TableVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/TableX14Visitor.d.ts +6 -0
- package/types/src/reader/domVisitors/TableX14Visitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/TextPropertiesVisitor.d.ts +11 -0
- package/types/src/reader/domVisitors/TextPropertiesVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/ThemeVisitor.d.ts +6 -0
- package/types/src/reader/domVisitors/ThemeVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/ThreadedCommentVisitor.d.ts +9 -0
- package/types/src/reader/domVisitors/ThreadedCommentVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/ThreadedCommentsVisitor.d.ts +6 -0
- package/types/src/reader/domVisitors/ThreadedCommentsVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/TitleVisitor.d.ts +9 -0
- package/types/src/reader/domVisitors/TitleVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/WorkbookVisitor.d.ts +30 -0
- package/types/src/reader/domVisitors/WorkbookVisitor.d.ts.map +1 -0
- package/types/src/reader/domVisitors/index.d.ts +101 -0
- package/types/src/reader/domVisitors/index.d.ts.map +1 -0
- package/types/src/reader/sax/SaxParser.d.ts +34 -0
- package/types/src/reader/sax/SaxParser.d.ts.map +1 -0
- package/types/src/reader/sax/SaxVisitor.d.ts +59 -0
- package/types/src/reader/sax/SaxVisitor.d.ts.map +1 -0
- package/types/src/reader/sax/Saxes.d.ts +641 -0
- package/types/src/reader/sax/Saxes.d.ts.map +1 -0
- package/types/src/reader/sax/index.d.ts +3 -0
- package/types/src/reader/sax/index.d.ts.map +1 -0
- package/types/src/reader/sax/xmlchars/xml/1.0/ed4.d.ts +32 -0
- package/types/src/reader/sax/xmlchars/xml/1.0/ed4.d.ts.map +1 -0
- package/types/src/reader/sax/xmlchars/xml/1.0/ed5.d.ts +52 -0
- package/types/src/reader/sax/xmlchars/xml/1.0/ed5.d.ts.map +1 -0
- package/types/src/reader/sax/xmlchars/xml/1.1/ed2.d.ts +74 -0
- package/types/src/reader/sax/xmlchars/xml/1.1/ed2.d.ts.map +1 -0
- package/types/src/reader/sax/xmlchars/xmlns/1.0/ed3.d.ts +29 -0
- package/types/src/reader/sax/xmlchars/xmlns/1.0/ed3.d.ts.map +1 -0
- package/types/src/reader/saxVisitors/ContentTypesVisitor.d.ts +54 -0
- package/types/src/reader/saxVisitors/ContentTypesVisitor.d.ts.map +1 -0
- package/types/src/reader/saxVisitors/SharedStringsVisitor.d.ts +22 -0
- package/types/src/reader/saxVisitors/SharedStringsVisitor.d.ts.map +1 -0
- package/types/src/reader/saxVisitors/WorksheetVisitor.d.ts +25 -0
- package/types/src/reader/saxVisitors/WorksheetVisitor.d.ts.map +1 -0
- package/types/src/vba/CompoundDocumentCompression.d.ts +37 -0
- package/types/src/vba/CompoundDocumentCompression.d.ts.map +1 -0
- package/types/src/vba/VBAProject.d.ts +47 -0
- package/types/src/vba/VBAProject.d.ts.map +1 -0
- package/types/src/vba/index.d.ts +3 -0
- package/types/src/vba/index.d.ts.map +1 -0
- package/types/src/writer/XLSXWriter.d.ts +4 -0
- package/types/src/writer/XLSXWriter.d.ts.map +1 -0
- package/types/src/writer/builder/ContentTypes.d.ts +18 -0
- package/types/src/writer/builder/ContentTypes.d.ts.map +1 -0
- package/types/src/writer/builder/Emitter.d.ts +25 -0
- package/types/src/writer/builder/Emitter.d.ts.map +1 -0
- package/types/src/writer/builder/EmitterRegistry.d.ts +29 -0
- package/types/src/writer/builder/EmitterRegistry.d.ts.map +1 -0
- package/types/src/writer/builder/OpcXmlUtils.d.ts +26 -0
- package/types/src/writer/builder/OpcXmlUtils.d.ts.map +1 -0
- package/types/src/writer/builder/PackageBuilder.d.ts +148 -0
- package/types/src/writer/builder/PackageBuilder.d.ts.map +1 -0
- package/types/src/writer/builder/PartWriter.d.ts +24 -0
- package/types/src/writer/builder/PartWriter.d.ts.map +1 -0
- package/types/src/writer/builder/RelationshipSet.d.ts +18 -0
- package/types/src/writer/builder/RelationshipSet.d.ts.map +1 -0
- package/types/src/writer/builder/Types.d.ts +311 -0
- package/types/src/writer/builder/Types.d.ts.map +1 -0
- package/types/src/writer/builder/Utils.d.ts +63 -0
- package/types/src/writer/builder/Utils.d.ts.map +1 -0
- package/types/src/writer/builder/XmlWriter.d.ts +3 -0
- package/types/src/writer/builder/XmlWriter.d.ts.map +1 -0
- package/types/src/writer/builder/ZipBackend.d.ts +21 -0
- package/types/src/writer/builder/ZipBackend.d.ts.map +1 -0
- package/types/src/writer/builder/_Types.d.ts +102 -0
- package/types/src/writer/builder/_Types.d.ts.map +1 -0
- package/types/src/writer/builder/index.d.ts +6 -0
- package/types/src/writer/builder/index.d.ts.map +1 -0
- package/types/src/writer/emitters/ChartColorsEmitter.d.ts +7 -0
- package/types/src/writer/emitters/ChartColorsEmitter.d.ts.map +1 -0
- package/types/src/writer/emitters/ChartEmitter.d.ts +14 -0
- package/types/src/writer/emitters/ChartEmitter.d.ts.map +1 -0
- package/types/src/writer/emitters/ChartStyleEmitter.d.ts +46 -0
- package/types/src/writer/emitters/ChartStyleEmitter.d.ts.map +1 -0
- package/types/src/writer/emitters/DrawingEmitter.d.ts +15 -0
- package/types/src/writer/emitters/DrawingEmitter.d.ts.map +1 -0
- package/types/src/writer/emitters/MetadataEmitter.d.ts +8 -0
- package/types/src/writer/emitters/MetadataEmitter.d.ts.map +1 -0
- package/types/src/writer/emitters/PropsAppEmitter.d.ts +12 -0
- package/types/src/writer/emitters/PropsAppEmitter.d.ts.map +1 -0
- package/types/src/writer/emitters/PropsCoreEmitter.d.ts +7 -0
- package/types/src/writer/emitters/PropsCoreEmitter.d.ts.map +1 -0
- package/types/src/writer/emitters/RichValueEmitter.d.ts +8 -0
- package/types/src/writer/emitters/RichValueEmitter.d.ts.map +1 -0
- package/types/src/writer/emitters/RichValueStructureEmitter.d.ts +28 -0
- package/types/src/writer/emitters/RichValueStructureEmitter.d.ts.map +1 -0
- package/types/src/writer/emitters/RichValueTypesEmitter.d.ts +10 -0
- package/types/src/writer/emitters/RichValueTypesEmitter.d.ts.map +1 -0
- package/types/src/writer/emitters/SharedStringsEmitter.d.ts +13 -0
- package/types/src/writer/emitters/SharedStringsEmitter.d.ts.map +1 -0
- package/types/src/writer/emitters/StylesEmitter.d.ts +17 -0
- package/types/src/writer/emitters/StylesEmitter.d.ts.map +1 -0
- package/types/src/writer/emitters/TableEmitter.d.ts +14 -0
- package/types/src/writer/emitters/TableEmitter.d.ts.map +1 -0
- package/types/src/writer/emitters/ThemeEmitter.d.ts +16 -0
- package/types/src/writer/emitters/ThemeEmitter.d.ts.map +1 -0
- package/types/src/writer/emitters/WorkbookEmitter.d.ts +11 -0
- package/types/src/writer/emitters/WorkbookEmitter.d.ts.map +1 -0
- package/types/src/writer/emitters/WorksheetEmitter.d.ts +18 -0
- package/types/src/writer/emitters/WorksheetEmitter.d.ts.map +1 -0
- package/types/src/writer/emitters/index.d.ts +3 -0
- package/types/src/writer/emitters/index.d.ts.map +1 -0
- package/types/src/writer/utils/AutoFilter.d.ts +15 -0
- package/types/src/writer/utils/AutoFilter.d.ts.map +1 -0
- package/types/src/writer/utils/ColorUtils.d.ts +46 -0
- package/types/src/writer/utils/ColorUtils.d.ts.map +1 -0
- package/types/src/writer/utils/DrawMLUtils.d.ts +26 -0
- package/types/src/writer/utils/DrawMLUtils.d.ts.map +1 -0
- package/types/src/writer/utils/DummyFunction.d.ts +66 -0
- package/types/src/writer/utils/DummyFunction.d.ts.map +1 -0
- package/types/src/writer/utils/DxfCollector.d.ts +22 -0
- package/types/src/writer/utils/DxfCollector.d.ts.map +1 -0
- package/types/src/writer/utils/ExtLstUtils.d.ts +3 -0
- package/types/src/writer/utils/ExtLstUtils.d.ts.map +1 -0
- package/types/src/writer/utils/IDUtils.d.ts +2 -0
- package/types/src/writer/utils/IDUtils.d.ts.map +1 -0
- package/types/src/writer/utils/MetadataCollector.d.ts +146 -0
- package/types/src/writer/utils/MetadataCollector.d.ts.map +1 -0
- package/types/src/writer/utils/ProtectionUtils.d.ts +3 -0
- package/types/src/writer/utils/ProtectionUtils.d.ts.map +1 -0
- package/types/src/writer/utils/RichValueCollector.d.ts +200 -0
- package/types/src/writer/utils/RichValueCollector.d.ts.map +1 -0
- package/types/src/writer/utils/TextUtils.d.ts +8 -0
- package/types/src/writer/utils/TextUtils.d.ts.map +1 -0
- package/types/src/writer/utils/UnsupportedFunctions.d.ts +19 -0
- package/types/src/writer/utils/UnsupportedFunctions.d.ts.map +1 -0
- package/types/src/writer/utils/VersionUtils.d.ts +26 -0
- package/types/src/writer/utils/VersionUtils.d.ts.map +1 -0
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sheetxl/io-xlsx",
|
|
3
|
+
"description": "SheetXL - Import/Export from/to Excel",
|
|
4
|
+
"version": "0.7.23-beta.1",
|
|
5
|
+
"license": "SEE LICENSE IN <LICENSE>",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./types/index.d.ts",
|
|
10
|
+
"browser": "./browser/esm/index.mjs",
|
|
11
|
+
"node": "./node/esm/index.mjs",
|
|
12
|
+
"import": "./browser/esm/index.mjs",
|
|
13
|
+
"require": "./browser/cjs/index.cjs"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"types": "./types/index.d.ts",
|
|
17
|
+
"module": "./browser/esm/index.mjs",
|
|
18
|
+
"main": "./browser/cjs/index.cjs",
|
|
19
|
+
"sideEffects": false,
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=22"
|
|
22
|
+
},
|
|
23
|
+
"engineStrict": true,
|
|
24
|
+
"homepage": "https://sheetxl.com",
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "https://github.com/sheetxl/sheetxl.git"
|
|
28
|
+
},
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/sheetxl/sheetxl/issues"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [
|
|
33
|
+
"sheetxl",
|
|
34
|
+
"spreadsheet",
|
|
35
|
+
"javascript",
|
|
36
|
+
"typescript",
|
|
37
|
+
"data grid",
|
|
38
|
+
"excel",
|
|
39
|
+
"xlsx",
|
|
40
|
+
"io",
|
|
41
|
+
"automation",
|
|
42
|
+
"csv",
|
|
43
|
+
"office",
|
|
44
|
+
"charting",
|
|
45
|
+
"utilities"
|
|
46
|
+
],
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@sheetxl/sdk": "^0.7.23-beta.1",
|
|
49
|
+
"@sheetxl/utils": "^0.7.23-beta.1",
|
|
50
|
+
"@xmldom/xmldom": "^0.9.10",
|
|
51
|
+
"@zip.js/zip.js": "^2.8.34",
|
|
52
|
+
"web-streams-polyfill": "^4.3.0",
|
|
53
|
+
"xml-formatter": "^3.7.0"
|
|
54
|
+
}
|
|
55
|
+
}
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { ICondition, IConditionalFormat, IStyle } from '@sheetxl/sdk';
|
|
2
|
+
/**
|
|
3
|
+
* The border between OOXML's `cfRule` and the SDK's condition-canonical conditional format.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* Fifteen of the eighteen `CT_CfRule` types are a predicate plus a differential style. The SDK
|
|
7
|
+
* models the predicate once, as an {@link ICondition}; the flat OOXML spelling of it — `type`,
|
|
8
|
+
* `operator`, `text`, `timePeriod`, the `aboveAverage`/`top10` attribute pairs, and the generated
|
|
9
|
+
* `<formula>` children — exists only here.
|
|
10
|
+
*
|
|
11
|
+
* Both directions live in one file on purpose: they are one table, and a mapping whose halves drift
|
|
12
|
+
* apart is exactly the bug the round-trip corpus is built to catch.
|
|
13
|
+
*/
|
|
14
|
+
/** A `cfRule` in OOXML's own shape. Reader input, writer output — never persisted. */
|
|
15
|
+
export interface OOXMLCfRule {
|
|
16
|
+
type?: string;
|
|
17
|
+
operator?: string;
|
|
18
|
+
/** `containsText` and friends. */
|
|
19
|
+
text?: string;
|
|
20
|
+
timePeriod?: string;
|
|
21
|
+
aboveAverage?: boolean;
|
|
22
|
+
equalAverage?: boolean;
|
|
23
|
+
stdDev?: number;
|
|
24
|
+
bottom?: boolean;
|
|
25
|
+
percent?: boolean;
|
|
26
|
+
rank?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Operands for `cellIs`/`expression`, and the generated formula Excel stores alongside the text
|
|
29
|
+
* and blank/error rules.
|
|
30
|
+
*/
|
|
31
|
+
formulas?: string[];
|
|
32
|
+
style?: IStyle.JSON;
|
|
33
|
+
scale?: IConditionalFormat.Scale;
|
|
34
|
+
stopIfTrue?: boolean;
|
|
35
|
+
pivot?: boolean;
|
|
36
|
+
/** Read from the attribute and used to order the rules; never persisted (design §2.5). */
|
|
37
|
+
priority?: number;
|
|
38
|
+
/**
|
|
39
|
+
* The `x14:id` GUID from the rule's own extLst — the link to its x14 twin in the worksheet
|
|
40
|
+
* extLst. Used to merge the twin's payload on read; regenerated on write. Never persisted.
|
|
41
|
+
*/
|
|
42
|
+
x14Id?: string;
|
|
43
|
+
}
|
|
44
|
+
/** OOXML `cfRule/@type` values. */
|
|
45
|
+
export declare const CfType: {
|
|
46
|
+
readonly AboveAverage: "aboveAverage";
|
|
47
|
+
readonly BeginsWith: "beginsWith";
|
|
48
|
+
readonly CellIs: "cellIs";
|
|
49
|
+
readonly ColorScale: "colorScale";
|
|
50
|
+
readonly ContainsBlanks: "containsBlanks";
|
|
51
|
+
readonly ContainsErrors: "containsErrors";
|
|
52
|
+
readonly ContainsText: "containsText";
|
|
53
|
+
readonly DataBar: "dataBar";
|
|
54
|
+
readonly DuplicateValues: "duplicateValues";
|
|
55
|
+
readonly EndsWith: "endsWith";
|
|
56
|
+
readonly Expression: "expression";
|
|
57
|
+
readonly IconSet: "iconSet";
|
|
58
|
+
readonly NotContainsBlanks: "notContainsBlanks";
|
|
59
|
+
readonly NotContainsErrors: "notContainsErrors";
|
|
60
|
+
readonly NotContainsText: "notContainsText";
|
|
61
|
+
readonly TimePeriod: "timePeriod";
|
|
62
|
+
readonly Top10: "top10";
|
|
63
|
+
readonly UniqueValues: "uniqueValues";
|
|
64
|
+
};
|
|
65
|
+
export type CfType = typeof CfType[keyof typeof CfType];
|
|
66
|
+
/**
|
|
67
|
+
* Reads a `cfRule`'s predicate attributes as a condition.
|
|
68
|
+
*
|
|
69
|
+
* @returns The condition, or `null` for the three scale rules and for any type this does not know
|
|
70
|
+
* (the caller keeps the rule regardless — see design §2.1).
|
|
71
|
+
*/
|
|
72
|
+
export declare function toCondition(rule: OOXMLCfRule, warn?: (message: string) => void): ICondition.JSON | null;
|
|
73
|
+
/**
|
|
74
|
+
* The inverse of {@link toCondition}: a condition as OOXML's flat attributes plus the `<formula>`
|
|
75
|
+
* children Excel expects.
|
|
76
|
+
*
|
|
77
|
+
* @param origin The top-left cell of the rule's FIRST range, in A1 form. Relative references in a
|
|
78
|
+
* generated formula are anchored to it (design §2.6).
|
|
79
|
+
*
|
|
80
|
+
* @returns `null` when the condition cannot be spelled in OOXML's CF schema; the caller warns and
|
|
81
|
+
* skips the rule.
|
|
82
|
+
*/
|
|
83
|
+
export declare function fromCondition(condition: ICondition.JSON | undefined, origin: string, warn?: (message: string) => void): OOXMLCfRule | null;
|
|
84
|
+
/** The `cfRule/@type` a scale carries. */
|
|
85
|
+
export declare function scaleToType(scale: IConditionalFormat.Scale): string;
|
|
86
|
+
//# sourceMappingURL=ConditionalFormatRules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConditionalFormatRules.d.ts","sourceRoot":"","sources":["../../../src/ConditionalFormatRules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,kBAAkB,EAAE,KAAK,MAAM,EAAe,MAAM,cAAc,CAAC;AAI7F;;;;;;;;;;;GAWG;AAEH,sFAAsF;AACtF,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kCAAkC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAEpB,KAAK,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,kBAAkB,CAAC,KAAK,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,0FAA0F;IAC1F,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,mCAAmC;AACnC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;CAmBT,CAAC;AACX,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC;AAqDxD;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,IAAI,EAAE,WAAW,EACjB,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAC/B,UAAU,CAAC,IAAI,GAAG,IAAI,CAuFxB;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAC3B,SAAS,EAAE,UAAU,CAAC,IAAI,GAAG,SAAS,EACtC,MAAM,EAAE,MAAM,EACd,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAC/B,WAAW,GAAG,IAAI,CAwGpB;AAED,0CAA0C;AAC1C,wBAAgB,WAAW,CAAC,KAAK,EAAE,kBAAkB,CAAC,KAAK,GAAG,MAAM,CAEnE"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ICondition, Scalar } from '@sheetxl/sdk';
|
|
2
|
+
/**
|
|
3
|
+
* The border between OOXML's `dataValidation` and the SDK's condition.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* OOXML splits a validation's predicate across two attributes that mean different things:
|
|
7
|
+
* `type` says what KIND of value is being validated (a whole number, a date, a text length) and
|
|
8
|
+
* `operator` says how it is compared. The SDK models those as a **selector** and an **operator**
|
|
9
|
+
* respectively — so `type` is a selector, never an operator, and the two never share a slot.
|
|
10
|
+
*
|
|
11
|
+
* Both directions live in one file, as they do for conditional formats: they are one table, and a
|
|
12
|
+
* mapping whose halves drift apart is exactly the bug the round-trip corpus exists to catch.
|
|
13
|
+
*
|
|
14
|
+
* Not handled here, deliberately: `allowBlank`, `showDropDown` and the `errorStyle` default. Those
|
|
15
|
+
* are polarity/default questions that only Excel-authored fixtures can settle
|
|
16
|
+
* (CONDITIONS-IO-DESIGN §8.1/§8.2), and guessing at them is what produced the current bugs.
|
|
17
|
+
*/
|
|
18
|
+
/** A `dataValidation` in OOXML's own shape. Reader input, writer output — never persisted. */
|
|
19
|
+
export interface OOXMLDataValidation {
|
|
20
|
+
type?: string;
|
|
21
|
+
operator?: string;
|
|
22
|
+
formula1?: Scalar;
|
|
23
|
+
formula2?: Scalar;
|
|
24
|
+
}
|
|
25
|
+
/** OOXML `dataValidation/@type` values. */
|
|
26
|
+
export declare const DvType: {
|
|
27
|
+
readonly Custom: "custom";
|
|
28
|
+
readonly Date: "date";
|
|
29
|
+
readonly Decimal: "decimal";
|
|
30
|
+
readonly List: "list";
|
|
31
|
+
readonly None: "none";
|
|
32
|
+
readonly TextLength: "textLength";
|
|
33
|
+
readonly Time: "time";
|
|
34
|
+
readonly Whole: "whole";
|
|
35
|
+
};
|
|
36
|
+
export type DvType = typeof DvType[keyof typeof DvType];
|
|
37
|
+
/**
|
|
38
|
+
* Folds a comparison bound's formula text into the condition param: a literal becomes its value,
|
|
39
|
+
* anything else is a formula marked `'=' + text` — see {@link formulaTextToParam}.
|
|
40
|
+
*
|
|
41
|
+
* @remarks
|
|
42
|
+
* List sources and custom formulas are TYPED slots and are never folded — `"a,b,c"` and
|
|
43
|
+
* `$A$1:$A$5` are formula text by type, carried verbatim with no marker.
|
|
44
|
+
*/
|
|
45
|
+
export declare function formulaToParam(text: string, type: string | undefined): Scalar;
|
|
46
|
+
/**
|
|
47
|
+
* Reads a `dataValidation`'s type/operator/formulas as a condition.
|
|
48
|
+
*
|
|
49
|
+
* @returns The condition, or `null` for a prompt-only validation (no `type`, Excel's "Any value").
|
|
50
|
+
*/
|
|
51
|
+
export declare function toCondition(rule: OOXMLDataValidation, warn?: (message: string) => void): ICondition.JSON | null;
|
|
52
|
+
/**
|
|
53
|
+
* The inverse of {@link toCondition}.
|
|
54
|
+
*
|
|
55
|
+
* @returns `null` when the condition cannot be spelled in OOXML; the caller warns and writes the
|
|
56
|
+
* validation as prompt-only rather than dropping it.
|
|
57
|
+
*/
|
|
58
|
+
export declare function fromCondition(condition: ICondition.JSON | undefined, warn?: (message: string) => void): OOXMLDataValidation | null;
|
|
59
|
+
//# sourceMappingURL=DataValidationRules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataValidationRules.d.ts","sourceRoot":"","sources":["../../../src/DataValidationRules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAIvD;;;;;;;;;;;;;;;GAeG;AAEH,8FAA8F;AAC9F,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,2CAA2C;AAC3C,eAAO,MAAM,MAAM;;;;;;;;;CAST,CAAC;AACX,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC;AA6CxD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAG7E;AAUD;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,IAAI,EAAE,mBAAmB,EACzB,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAC/B,UAAU,CAAC,IAAI,GAAG,IAAI,CAiCxB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,SAAS,EAAE,UAAU,CAAC,IAAI,GAAG,SAAS,EACtC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAC/B,mBAAmB,GAAG,IAAI,CAkD5B"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { IFunction, ICalculation } from '@sheetxl/sdk';
|
|
2
|
+
/**
|
|
3
|
+
* The implicit-intersection translation between the modern (dynamic) formula model and what a
|
|
4
|
+
* legacy xlsx `<f>` means — item 47's `ExcelCompat.ts`, born in io-xlsx
|
|
5
|
+
* (DESIGN-FORMULA-DIALECT.md §3).
|
|
6
|
+
*
|
|
7
|
+
* Both directions live here, built on ONE site rule so they cannot drift (FORMULA-SEMANTICS §6.1
|
|
8
|
+
* — after the read transform a divergence is a wrong VALUE, not non-canonical XML):
|
|
9
|
+
*
|
|
10
|
+
* - READ (rules 1/2): a plain `<f>` — no `t="array"`, no `cm` — has legacy semantics whatever its
|
|
11
|
+
* age, and loading it means putting the `@` back where Excel would
|
|
12
|
+
* (`=ABS(A1:A5)` → `=ABS(@A1:A5)`). The reader wraps exactly those formulas in the
|
|
13
|
+
* {@link INTERSECT_MARKER} pseudo-function, which is how the per-CELL decision reaches a
|
|
14
|
+
* per-FORMULA transform; {@link createCompatReadTransform} strips the marker at the root and
|
|
15
|
+
* injects.
|
|
16
|
+
* - WRITE: the `cm="1"` + `t="array"` marker goes on every formula legacy intersection would
|
|
17
|
+
* change — {@link hasIntersectionSite}, consumed by `WorksheetEmitter`.
|
|
18
|
+
*
|
|
19
|
+
* ### Two kinds of arrayness, and only one of them is a site
|
|
20
|
+
*
|
|
21
|
+
* Being an array is not the same question as being intersected. Arrayness that comes from a
|
|
22
|
+
* REFERENCE — a range, a spill anchor, a table reference, a defined name, an array-returning or
|
|
23
|
+
* `valueReturn` call — is a site wherever a value-typed slot holds it, whatever encloses it.
|
|
24
|
+
* Arrayness that comes from an inline array CONSTANT is not: legacy Excel LIFTS `{…}` and only
|
|
25
|
+
* collapses it where one value is genuinely wanted, which is the cell root and whatever the root's
|
|
26
|
+
* demand reaches through ({@link _childDemand}). That is the split `constants` carries through
|
|
27
|
+
* {@link _isRangeValued}.
|
|
28
|
+
*
|
|
29
|
+
* Measured on plain-`<f>` opens, `probe-array-constant-intersection{,2}.ps1` (40 rows, 2026-08-17):
|
|
30
|
+
* `={1,2,3}` opens as `=@{1,2,3}` and `=ABS({-1,-2,-3})` as `=ABS(@{-1,-2,-3})`, while
|
|
31
|
+
* `=SUM(ABS({-1,-2,-3}))` opens UNTOUCHED at 6 — where the same shape over a range,
|
|
32
|
+
* `=SUM(ABS(H1:H3))`, opens as `=SUM(ABS(@H1:H3))`. A name is reference-derived even when its body
|
|
33
|
+
* is a constant, which is the pair that kills the simpler reading: `=SUM(ArrConst&0)` opens as
|
|
34
|
+
* `=SUM(@ArrConst&0)` = 10 against `=SUM({1,2,3}&0)` = 0.
|
|
35
|
+
*
|
|
36
|
+
* ### Everything measured; facts OVERRIDE declarations
|
|
37
|
+
*
|
|
38
|
+
* Every per-function fact the rules below consult lives in the measured `ExcelFunctionFacts` map
|
|
39
|
+
* (one row per name, probe provenance and slot addressing documented there). The registry's
|
|
40
|
+
* declarations state what a BODY needs and serve as the DEFAULT; wherever Excel measurably
|
|
41
|
+
* disagrees, the fact wins (CALC-ISSUES item 44: "use the measured list, not a derived
|
|
42
|
+
* predicate"). Re-run the probes when adding a function — no test can detect a new function Excel
|
|
43
|
+
* happens to disagree with.
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* The reader's per-cell legacy marker — a pseudo-function the reader wraps around every formula
|
|
47
|
+
* persisted WITHOUT array semantics, so the (single, per-formula) parse transform can see the
|
|
48
|
+
* per-cell dialect bit in the tree itself.
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
* The same idiom as `__xludf.DUMMYFUNCTION`: formula text only this package writes and only this
|
|
52
|
+
* package strips, alive purely between the reader's JSON assembly and the parse-time transform.
|
|
53
|
+
* If the transform is ever missing the marker surfaces as a loud `#NAME?`, never as a silently
|
|
54
|
+
* wrong value.
|
|
55
|
+
*/
|
|
56
|
+
export declare const INTERSECT_MARKER = "__sxl.INTERSECT";
|
|
57
|
+
/** Does any call in this tree name a function on Excel's volatile list
|
|
58
|
+
* (`ExcelFunctionFact.volatile`)? (Defined-name bodies are not chased: Excel's `ca` reflects the
|
|
59
|
+
* CELL's own formula text.) */
|
|
60
|
+
export declare const hasVolatileCall: (root: ICalculation.FormulaNode | undefined) => boolean;
|
|
61
|
+
/**
|
|
62
|
+
* The resolution context the walks need — everything else is the formula's own tree.
|
|
63
|
+
*/
|
|
64
|
+
export interface CompatContext {
|
|
65
|
+
/** Resolves a canonical function name against the live registry, or `null` when unknown. */
|
|
66
|
+
getFunction(name: string): IFunction | null;
|
|
67
|
+
/**
|
|
68
|
+
* The lite root of a defined name's body, or `null` when the name is unresolvable — an
|
|
69
|
+
* unresolved name evaluates to `#NAME?`, which is never a range.
|
|
70
|
+
*/
|
|
71
|
+
getNamedRoot(name: string, scope?: string | null): ICalculation.FormulaNode | null;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Builds a {@link CompatContext} over a (lazily supplied) calculation.
|
|
75
|
+
*
|
|
76
|
+
* @param calculation Deferred on purpose: at READ time the transform is constructed before the
|
|
77
|
+
* `Workbook` it serves — formulas compile in queued load drains after the constructor returns, so
|
|
78
|
+
* the reference is live by the first call. Defined names hydrate ahead of cell formulas (the
|
|
79
|
+
* calculation's priority drain), which is what makes a name's body answerable mid-load.
|
|
80
|
+
*
|
|
81
|
+
* @remarks
|
|
82
|
+
* The name-body lookup reads the LIVE item through the public
|
|
83
|
+
* `getExpression({ formulaTransform })` collector — the same live-model pattern the emitter uses — and
|
|
84
|
+
* memoizes per name for the context's (load- or save-long) lifetime.
|
|
85
|
+
*/
|
|
86
|
+
export declare function createCompatContext(calculation: () => ICalculation | null | undefined): CompatContext;
|
|
87
|
+
/**
|
|
88
|
+
* Rules 1/2 — rewrites a LEGACY formula into its modern equivalent by inserting `@` at every
|
|
89
|
+
* implicit-intersection site, exactly as Excel does when it opens a pre-dynamic-array cell.
|
|
90
|
+
*
|
|
91
|
+
* @returns The rewritten root, or `root` itself when the formula has no site.
|
|
92
|
+
*
|
|
93
|
+
* @remarks
|
|
94
|
+
* Post-order, so the ROOT is re-answered against the REWRITTEN tree — an `@` collapses
|
|
95
|
+
* arrayness, which is what produces Excel's `@` COUNT (`=IF(A1:A5,1,2)` gains one, root no
|
|
96
|
+
* longer ranged; `=TRANSPOSE(A1:A5)` gains two) and what makes the transform idempotent: nothing
|
|
97
|
+
* under an `@` is range-valued, so a second pass finds nothing.
|
|
98
|
+
*
|
|
99
|
+
* There is no conservative direction here — a missed site drops an `@` and answers a different
|
|
100
|
+
* number, an invented one adds a spurious `@` and also answers a different number. That is why
|
|
101
|
+
* every rule above traces to Excel's own insertion, not our reading of it.
|
|
102
|
+
*/
|
|
103
|
+
export declare const insertImplicitIntersection: (root: ICalculation.FormulaNode, ctx: CompatContext) => ICalculation.FormulaNode;
|
|
104
|
+
/**
|
|
105
|
+
* The WRITE decision — whether legacy implicit intersection would change this formula's meaning,
|
|
106
|
+
* which is the exact condition under which Excel writes `cm="1"` + `t="array"`.
|
|
107
|
+
*
|
|
108
|
+
* @remarks
|
|
109
|
+
* A STATIC property of the formula, not the value: `=IF(FALSE,H1:H3,5)` computes `5` and is still
|
|
110
|
+
* marked. The same rule as {@link insertImplicitIntersection} by construction: a formula is
|
|
111
|
+
* marked exactly when the insertion would change it — plus one clause the insertion rule does not
|
|
112
|
+
* share: a `call` node ANYWHERE marks, because immediate application does not exist in the legacy
|
|
113
|
+
* dialect at all. Measured (`probe-lambda-call.xlsx`, every accepted case): Excel puts
|
|
114
|
+
* `cm="1"` + `t="array"` on `SUM(LAMBDA(x,x+1)(3),1)` (call in an argument slot, scalar root),
|
|
115
|
+
* `MyLam(3)`, `A1(3)`, `-LAMBDA(x,-x)(1)`, the curried and partial forms — all of them. Without
|
|
116
|
+
* the marker Excel reads the cell back as a LEGACY formula and re-inserts `@` at the root and on
|
|
117
|
+
* the lambda parameters (`=@LAMBDA(a,b,@a+@b)(1,2)`), which is exactly what the Excel-open gate
|
|
118
|
+
* caught (verify-lambda-call-opens.ps1, 2026-08-13).
|
|
119
|
+
*
|
|
120
|
+
* "Marked exactly when the insertion would change it" is OUR rule, and Excel's marker is not
|
|
121
|
+
* only that — measured `probe-sumproduct-monthyear.ps1` + `probe-slot-class-intersect2.ps1`
|
|
122
|
+
* (2026-08-14): the same text entered through legacy `.Formula` saves PLAIN and through modern
|
|
123
|
+
* `.Formula2` saves `cm="1" t="array"`, at identical values, on every array-scope shape here. So
|
|
124
|
+
* Excel's marker also records the ENTRY CHANNEL, which we do not persist. We write the legacy
|
|
125
|
+
* channel's answer, which is the self-consistent one: the file we emit reads back — by Excel and
|
|
126
|
+
* by us — to the tree we emitted it from. Carrying a read-side "was marked" bit instead is the
|
|
127
|
+
* open alternative.
|
|
128
|
+
*/
|
|
129
|
+
export declare const hasIntersectionSite: (root: ICalculation.FormulaNode, ctx: CompatContext) => boolean;
|
|
130
|
+
/**
|
|
131
|
+
* The reader's complete READ transform: the legacy spelling unwrap on every node
|
|
132
|
+
* ({@link createLegacyReadTransform}), plus — at the root of a formula the reader wrapped in
|
|
133
|
+
* {@link INTERSECT_MARKER} — the marker strip and rules-1/2 insertion.
|
|
134
|
+
*
|
|
135
|
+
* @remarks
|
|
136
|
+
* Defined names and array-anchored cells arrive UNWRAPPED, so they take the spelling pass only —
|
|
137
|
+
* no marker, no insertion; the per-cell dialect decision was the reader's and rode in on the
|
|
138
|
+
* marker. No-op-safe on an errored tree: a root that is not the marker (the parse broke before
|
|
139
|
+
* the wrapper closed) is left alone.
|
|
140
|
+
*/
|
|
141
|
+
export declare function createCompatReadTransform(calculation: () => ICalculation | null | undefined): ICalculation.FormulaTransform;
|
|
142
|
+
//# sourceMappingURL=ExcelCompat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExcelCompat.d.ts","sourceRoot":"","sources":["../../../src/ExcelCompat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAe,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAS9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,oBAAoB,CAAC;AAElD;;+BAE+B;AAC/B,eAAO,MAAM,eAAe,GAAI,MAAM,YAAY,CAAC,WAAW,GAAG,SAAS,KAAG,OAS5E,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,4FAA4F;IAC5F,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;IAC5C;;;OAGG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,YAAY,CAAC,WAAW,GAAG,IAAI,CAAC;CACpF;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,YAAY,GAAG,IAAI,GAAG,SAAS,GAAG,aAAa,CA+BrG;AA8gBD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,0BAA0B,GACrC,MAAM,YAAY,CAAC,WAAW,EAC9B,KAAK,aAAa,KACjB,YAAY,CAAC,WAyCf,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,mBAAmB,GAC9B,MAAM,YAAY,CAAC,WAAW,EAC9B,KAAK,aAAa,KACjB,OAgCF,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,MAAM,YAAY,GAAG,IAAI,GAAG,SAAS,GACjD,YAAY,CAAC,gBAAgB,CAc/B"}
|