@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
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Character classes and associated utilities for the 4th edition of XML 1.0.
|
|
3
|
+
*
|
|
4
|
+
* These are deprecated in the 5th edition but some of the standards related to
|
|
5
|
+
* XML 1.0 (e.g. XML Schema 1.0) refer to these. So they are still generally
|
|
6
|
+
* useful.
|
|
7
|
+
*
|
|
8
|
+
* @author Louis-Dominique Dubeau
|
|
9
|
+
* @license MIT
|
|
10
|
+
* @copyright Louis-Dominique Dubeau
|
|
11
|
+
*/
|
|
12
|
+
export declare const CHAR = "\t\n\r -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF";
|
|
13
|
+
export declare const S = " \t\r\n";
|
|
14
|
+
export declare const BASE_CHAR = "A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF\u0100-\u0131\u0134-\u013E\u0141-\u0148\u014A-\u017E\u0180-\u01C3\u01CD-\u01F0\u01F4-\u01F5\u01FA-\u0217\u0250-\u02A8\u02BB-\u02C1\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03CE\u03D0-\u03D6\u03DA\u03DC\u03DE\u03E0\u03E2-\u03F3\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E-\u0481\u0490-\u04C4\u04C7-\u04C8\u04CB-\u04CC\u04D0-\u04EB\u04EE-\u04F5\u04F8-\u04F9\u0531-\u0556\u0559\u0561-\u0586\u05D0-\u05EA\u05F0-\u05F2\u0621-\u063A\u0641-\u064A\u0671-\u06B7\u06BA-\u06BE\u06C0-\u06CE\u06D0-\u06D3\u06D5\u06E5-\u06E6\u0905-\u0939\u093D\u0958-\u0961\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8B\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AE0\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B36-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB5\u0BB7-\u0BB9\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CDE\u0CE0-\u0CE1\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D28\u0D2A-\u0D39\u0D60-\u0D61\u0E01-\u0E2E\u0E30\u0E32-\u0E33\u0E40-\u0E45\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EAE\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0F40-\u0F47\u0F49-\u0F69\u10A0-\u10C5\u10D0-\u10F6\u1100\u1102-\u1103\u1105-\u1107\u1109\u110B-\u110C\u110E-\u1112\u113C\u113E\u1140\u114C\u114E\u1150\u1154-\u1155\u1159\u115F-\u1161\u1163\u1165\u1167\u1169\u116D-\u116E\u1172-\u1173\u1175\u119E\u11A8\u11AB\u11AE-\u11AF\u11B7-\u11B8\u11BA\u11BC-\u11C2\u11EB\u11F0\u11F9\u1E00-\u1E9B\u1EA0-\u1EF9\u1F00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2126\u212A-\u212B\u212E\u2180-\u2182\u3041-\u3094\u30A1-\u30FA\u3105-\u312C\uAC00-\uD7A3";
|
|
15
|
+
export declare const IDEOGRAPHIC = "\u4E00-\u9FA5\u3007\u3021-\u3029";
|
|
16
|
+
export declare const COMBINING_CHAR = "\u0300-\u0345\u0360-\u0361\u0483-\u0486\u0591-\u05A1\u05A3-\u05B9\u05BB-\u05BD\u05BF\u05C1-\u05C2\u05C4\u064B-\u0652\u0670\u06D6-\u06DC\u06DD-\u06DF\u06E0-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u0901-\u0903\u093C\u093E-\u094C\u094D\u0951-\u0954\u0962-\u0963\u0981-\u0983\u09BC\u09BE\u09BF\u09C0-\u09C4\u09C7-\u09C8\u09CB-\u09CD\u09D7\u09E2-\u09E3\u0A02\u0A3C\u0A3E\u0A3F\u0A40-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A70-\u0A71\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0B01-\u0B03\u0B3C\u0B3E-\u0B43\u0B47-\u0B48\u0B4B-\u0B4D\u0B56-\u0B57\u0B82-\u0B83\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C01-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C82-\u0C83\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5-\u0CD6\u0D02-\u0D03\u0D3E-\u0D43\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0F18-\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86-\u0F8B\u0F90-\u0F95\u0F97\u0F99-\u0FAD\u0FB1-\u0FB7\u0FB9\u20D0-\u20DC\u20E1\u302A-\u302F\u3099\u309A";
|
|
17
|
+
export declare const DIGIT = "0-9\u0660-\u0669\u06F0-\u06F9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE7-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29";
|
|
18
|
+
export declare const EXTENDER = "\u00B7\u02D0\u02D1\u0387\u0640\u0E46\u0EC6\u3005\u3031-\u3035\u309D-\u309E\u30FC-\u30FE";
|
|
19
|
+
export declare const LETTER: string;
|
|
20
|
+
export declare const NAME_CHAR = "-A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF\u0100-\u0131\u0134-\u013E\u0141-\u0148\u014A-\u017E\u0180-\u01C3\u01CD-\u01F0\u01F4-\u01F5\u01FA-\u0217\u0250-\u02A8\u02BB-\u02C1\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03CE\u03D0-\u03D6\u03DA\u03DC\u03DE\u03E0\u03E2-\u03F3\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E-\u0481\u0490-\u04C4\u04C7-\u04C8\u04CB-\u04CC\u04D0-\u04EB\u04EE-\u04F5\u04F8-\u04F9\u0531-\u0556\u0559\u0561-\u0586\u05D0-\u05EA\u05F0-\u05F2\u0621-\u063A\u0641-\u064A\u0671-\u06B7\u06BA-\u06BE\u06C0-\u06CE\u06D0-\u06D3\u06D5\u06E5-\u06E6\u0905-\u0939\u093D\u0958-\u0961\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8B\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AE0\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B36-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB5\u0BB7-\u0BB9\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CDE\u0CE0-\u0CE1\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D28\u0D2A-\u0D39\u0D60-\u0D61\u0E01-\u0E2E\u0E30\u0E32-\u0E33\u0E40-\u0E45\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EAE\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0F40-\u0F47\u0F49-\u0F69\u10A0-\u10C5\u10D0-\u10F6\u1100\u1102-\u1103\u1105-\u1107\u1109\u110B-\u110C\u110E-\u1112\u113C\u113E\u1140\u114C\u114E\u1150\u1154-\u1155\u1159\u115F-\u1161\u1163\u1165\u1167\u1169\u116D-\u116E\u1172-\u1173\u1175\u119E\u11A8\u11AB\u11AE-\u11AF\u11B7-\u11B8\u11BA\u11BC-\u11C2\u11EB\u11F0\u11F9\u1E00-\u1E9B\u1EA0-\u1EF9\u1F00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2126\u212A-\u212B\u212E\u2180-\u2182\u3041-\u3094\u30A1-\u30FA\u3105-\u312C\uAC00-\uD7A3\u4E00-\u9FA5\u3007\u3021-\u30290-9\u0660-\u0669\u06F0-\u06F9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE7-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29._:\u0300-\u0345\u0360-\u0361\u0483-\u0486\u0591-\u05A1\u05A3-\u05B9\u05BB-\u05BD\u05BF\u05C1-\u05C2\u05C4\u064B-\u0652\u0670\u06D6-\u06DC\u06DD-\u06DF\u06E0-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u0901-\u0903\u093C\u093E-\u094C\u094D\u0951-\u0954\u0962-\u0963\u0981-\u0983\u09BC\u09BE\u09BF\u09C0-\u09C4\u09C7-\u09C8\u09CB-\u09CD\u09D7\u09E2-\u09E3\u0A02\u0A3C\u0A3E\u0A3F\u0A40-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A70-\u0A71\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0B01-\u0B03\u0B3C\u0B3E-\u0B43\u0B47-\u0B48\u0B4B-\u0B4D\u0B56-\u0B57\u0B82-\u0B83\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C01-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C82-\u0C83\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5-\u0CD6\u0D02-\u0D03\u0D3E-\u0D43\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0F18-\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86-\u0F8B\u0F90-\u0F95\u0F97\u0F99-\u0FAD\u0FB1-\u0FB7\u0FB9\u20D0-\u20DC\u20E1\u302A-\u302F\u3099\u309A\u00B7\u02D0\u02D1\u0387\u0640\u0E46\u0EC6\u3005\u3031-\u3035\u309D-\u309E\u30FC-\u30FE";
|
|
21
|
+
export declare const CHAR_RE: RegExp;
|
|
22
|
+
export declare const S_RE: RegExp;
|
|
23
|
+
export declare const BASE_CHAR_RE: RegExp;
|
|
24
|
+
export declare const IDEOGRAPHIC_RE: RegExp;
|
|
25
|
+
export declare const COMBINING_CHAR_RE: RegExp;
|
|
26
|
+
export declare const DIGIT_RE: RegExp;
|
|
27
|
+
export declare const EXTENDER_RE: RegExp;
|
|
28
|
+
export declare const LETTER_RE: RegExp;
|
|
29
|
+
export declare const NAME_CHAR_RE: RegExp;
|
|
30
|
+
export declare const NAME_RE: RegExp;
|
|
31
|
+
export declare const NMTOKEN_RE: RegExp;
|
|
32
|
+
//# sourceMappingURL=ed4.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ed4.d.ts","sourceRoot":"","sources":["../../../../../../../../src/reader/sax/xmlchars/xml/1.0/ed4.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAMH,eAAO,MAAM,IAAI,yDAAyD,CAAC;AAE3E,eAAO,MAAM,CAAC,YAAY,CAAC;AAG3B,eAAO,MAAM,SAAS,usEAAusE,CAAC;AAE9tE,eAAO,MAAM,WAAW,qCAAqC,CAAC;AAG9D,eAAO,MAAM,cAAc,6gCAA6gC,CAAC;AAGziC,eAAO,MAAM,KAAK,8LAA8L,CAAC;AAGjN,eAAO,MAAM,QAAQ,4FAA4F,CAAC;AAElH,eAAO,MAAM,MAAM,QAA2B,CAAC;AAE/C,eAAO,MAAM,SAAS,mgHAAsD,CAAC;AAM7E,eAAO,MAAM,OAAO,QAAiC,CAAC;AAEtD,eAAO,MAAM,IAAI,QAA+B,CAAC;AAEjD,eAAO,MAAM,YAAY,QAAsC,CAAC;AAEhE,eAAO,MAAM,cAAc,QAAwC,CAAC;AAEpE,eAAO,MAAM,iBAAiB,QAA2C,CAAC;AAE1E,eAAO,MAAM,QAAQ,QAAkC,CAAC;AAExD,eAAO,MAAM,WAAW,QAAqC,CAAC;AAE9D,eAAO,MAAM,SAAS,QAAmC,CAAC;AAE1D,eAAO,MAAM,YAAY,QAAsC,CAAC;AAEhE,eAAO,MAAM,OAAO,QAAoD,CAAC;AAEzE,eAAO,MAAM,UAAU,QAAuC,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Character classes and associated utilities for the 5th edition of XML 1.0.
|
|
3
|
+
*
|
|
4
|
+
* @author Louis-Dominique Dubeau
|
|
5
|
+
* @license MIT
|
|
6
|
+
* @copyright Louis-Dominique Dubeau
|
|
7
|
+
*/
|
|
8
|
+
export declare const CHAR = "\t\n\r -\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF";
|
|
9
|
+
export declare const S = " \t\r\n";
|
|
10
|
+
export declare const NAME_START_CHAR = ":A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\uD800\uDC00-\uDB7F\uDFFF";
|
|
11
|
+
export declare const NAME_CHAR = "-:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\uD800\uDC00-\uDB7F\uDFFF.0-9\u00B7\u0300-\u036F\u203F-\u2040";
|
|
12
|
+
export declare const CHAR_RE: RegExp;
|
|
13
|
+
export declare const S_RE: RegExp;
|
|
14
|
+
export declare const NAME_START_CHAR_RE: RegExp;
|
|
15
|
+
export declare const NAME_CHAR_RE: RegExp;
|
|
16
|
+
export declare const NAME_RE: RegExp;
|
|
17
|
+
export declare const NMTOKEN_RE: RegExp;
|
|
18
|
+
/** All characters in the ``S`` production. */
|
|
19
|
+
export declare const S_LIST: number[];
|
|
20
|
+
/**
|
|
21
|
+
* Determines whether a codepoint matches the ``CHAR`` production.
|
|
22
|
+
*
|
|
23
|
+
* @param c The code point.
|
|
24
|
+
*
|
|
25
|
+
* @returns ``true`` if the codepoint matches ``CHAR``.
|
|
26
|
+
*/
|
|
27
|
+
export declare function isChar(c: number): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Determines whether a codepoint matches the ``S`` (space) production.
|
|
30
|
+
*
|
|
31
|
+
* @param c The code point.
|
|
32
|
+
*
|
|
33
|
+
* @returns ``true`` if the codepoint matches ``S``.
|
|
34
|
+
*/
|
|
35
|
+
export declare function isS(c: number): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Determines whether a codepoint matches the ``NAME_START_CHAR`` production.
|
|
38
|
+
*
|
|
39
|
+
* @param c The code point.
|
|
40
|
+
*
|
|
41
|
+
* @returns ``true`` if the codepoint matches ``NAME_START_CHAR``.
|
|
42
|
+
*/
|
|
43
|
+
export declare function isNameStartChar(c: number): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Determines whether a codepoint matches the ``NAME_CHAR`` production.
|
|
46
|
+
*
|
|
47
|
+
* @param c The code point.
|
|
48
|
+
*
|
|
49
|
+
* @returns ``true`` if the codepoint matches ``NAME_CHAR``.
|
|
50
|
+
*/
|
|
51
|
+
export declare function isNameChar(c: number): boolean;
|
|
52
|
+
//# sourceMappingURL=ed5.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ed5.d.ts","sourceRoot":"","sources":["../../../../../../../../src/reader/sax/xmlchars/xml/1.0/ed5.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,eAAO,MAAM,IAAI,yDAAyD,CAAC;AAE3E,eAAO,MAAM,CAAC,YAAY,CAAC;AAG3B,eAAO,MAAM,eAAe,oLAA8K,CAAC;AAE3M,eAAO,MAAM,SAAS,yNACqC,CAAC;AAM5D,eAAO,MAAM,OAAO,QAAiC,CAAC;AAEtD,eAAO,MAAM,IAAI,QAA+B,CAAC;AAEjD,eAAO,MAAM,kBAAkB,QAA4C,CAAC;AAE5E,eAAO,MAAM,YAAY,QAAsC,CAAC;AAEhE,eAAO,MAAM,OAAO,QAA2D,CAAC;AAEhF,eAAO,MAAM,UAAU,QAAuC,CAAC;AAW/D,8CAA8C;AAC9C,eAAO,MAAM,MAAM,UAAuB,CAAC;AAE3C;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAKzC;AAED;;;;;;GAMG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAEtC;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAkBlD;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAQ7C"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Character classes and associated utilities for the 2nd edition of XML 1.1.
|
|
3
|
+
*
|
|
4
|
+
* @author Louis-Dominique Dubeau
|
|
5
|
+
* @license MIT
|
|
6
|
+
* @copyright Louis-Dominique Dubeau
|
|
7
|
+
*/
|
|
8
|
+
export declare const CHAR = "\u0001-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF";
|
|
9
|
+
export declare const RESTRICTED_CHAR = "\u0001-\b\v\f\u000E-\u001F-\u0084\u0086-\u009F";
|
|
10
|
+
export declare const S = " \t\r\n";
|
|
11
|
+
export declare const NAME_START_CHAR = ":A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\uD800\uDC00-\uDB7F\uDFFF";
|
|
12
|
+
export declare const NAME_CHAR = "-:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\uD800\uDC00-\uDB7F\uDFFF.0-9\u00B7\u0300-\u036F\u203F-\u2040";
|
|
13
|
+
export declare const CHAR_RE: RegExp;
|
|
14
|
+
export declare const RESTRICTED_CHAR_RE: RegExp;
|
|
15
|
+
export declare const S_RE: RegExp;
|
|
16
|
+
export declare const NAME_START_CHAR_RE: RegExp;
|
|
17
|
+
export declare const NAME_CHAR_RE: RegExp;
|
|
18
|
+
export declare const NAME_RE: RegExp;
|
|
19
|
+
export declare const NMTOKEN_RE: RegExp;
|
|
20
|
+
/** All characters in the ``S`` production. */
|
|
21
|
+
export declare const S_LIST: number[];
|
|
22
|
+
/**
|
|
23
|
+
* Determines whether a codepoint matches the ``CHAR`` production.
|
|
24
|
+
*
|
|
25
|
+
* @param c The code point.
|
|
26
|
+
*
|
|
27
|
+
* @returns ``true`` if the codepoint matches ``CHAR``.
|
|
28
|
+
*/
|
|
29
|
+
export declare function isChar(c: number): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Determines whether a codepoint matches the ``RESTRICTED_CHAR`` production.
|
|
32
|
+
*
|
|
33
|
+
* @param c The code point.
|
|
34
|
+
*
|
|
35
|
+
* @returns ``true`` if the codepoint matches ``RESTRICTED_CHAR``.
|
|
36
|
+
*/
|
|
37
|
+
export declare function isRestrictedChar(c: number): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Determines whether a codepoint matches the ``CHAR`` production and does not
|
|
40
|
+
* match the ``RESTRICTED_CHAR`` production. ``isCharAndNotRestricted(x)`` is
|
|
41
|
+
* equivalent to ``isChar(x) && !isRestrictedChar(x)``. This function is faster
|
|
42
|
+
* than running the two-call equivalent.
|
|
43
|
+
*
|
|
44
|
+
* @param c The code point.
|
|
45
|
+
*
|
|
46
|
+
* @returns ``true`` if the codepoint matches ``CHAR`` and does not match
|
|
47
|
+
* ``RESTRICTED_CHAR``.
|
|
48
|
+
*/
|
|
49
|
+
export declare function isCharAndNotRestricted(c: number): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Determines whether a codepoint matches the ``S`` (space) production.
|
|
52
|
+
*
|
|
53
|
+
* @param c The code point.
|
|
54
|
+
*
|
|
55
|
+
* @returns ``true`` if the codepoint matches ``S``.
|
|
56
|
+
*/
|
|
57
|
+
export declare function isS(c: number): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Determines whether a codepoint matches the ``NAME_START_CHAR`` production.
|
|
60
|
+
*
|
|
61
|
+
* @param c The code point.
|
|
62
|
+
*
|
|
63
|
+
* @returns ``true`` if the codepoint matches ``NAME_START_CHAR``.
|
|
64
|
+
*/
|
|
65
|
+
export declare function isNameStartChar(c: number): boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Determines whether a codepoint matches the ``NAME_CHAR`` production.
|
|
68
|
+
*
|
|
69
|
+
* @param c The code point.
|
|
70
|
+
*
|
|
71
|
+
* @returns ``true`` if the codepoint matches ``NAME_CHAR``.
|
|
72
|
+
*/
|
|
73
|
+
export declare function isNameChar(c: number): boolean;
|
|
74
|
+
//# sourceMappingURL=ed2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ed2.d.ts","sourceRoot":"","sources":["../../../../../../../../src/reader/sax/xmlchars/xml/1.1/ed2.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,eAAO,MAAM,IAAI,wDAAmD,CAAC;AAErE,eAAO,MAAM,eAAe,oDACwC,CAAC;AAErE,eAAO,MAAM,CAAC,YAAY,CAAC;AAG3B,eAAO,MAAM,eAAe,oLAA8K,CAAC;AAE3M,eAAO,MAAM,SAAS,yNACqC,CAAC;AAM5D,eAAO,MAAM,OAAO,QAAiC,CAAC;AAEtD,eAAO,MAAM,kBAAkB,QAA4C,CAAC;AAE5E,eAAO,MAAM,IAAI,QAA+B,CAAC;AAEjD,eAAO,MAAM,kBAAkB,QAA4C,CAAC;AAE5E,eAAO,MAAM,YAAY,QAAsC,CAAC;AAEhE,eAAO,MAAM,OAAO,QAA2D,CAAC;AAEhF,eAAO,MAAM,UAAU,QAAuC,CAAC;AAW/D,8CAA8C;AAC9C,eAAO,MAAM,MAAM,UAAuB,CAAC;AAE3C;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAIzC;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAOnD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CASzD;AAED;;;;;;GAMG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAEtC;AAED;;;;;;GAMG;AAEH,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAkBlD;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAQ7C"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Character class utilities for XML NS 1.0 edition 3.
|
|
3
|
+
*
|
|
4
|
+
* @author Louis-Dominique Dubeau
|
|
5
|
+
* @license MIT
|
|
6
|
+
* @copyright Louis-Dominique Dubeau
|
|
7
|
+
*/
|
|
8
|
+
export declare const NC_NAME_START_CHAR = "A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\uD800\uDC00-\uDB7F\uDFFF";
|
|
9
|
+
export declare const NC_NAME_CHAR = "-A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\uD800\uDC00-\uDB7F\uDFFF.0-9\u00B7\u0300-\u036F\u203F-\u2040";
|
|
10
|
+
export declare const NC_NAME_START_CHAR_RE: RegExp;
|
|
11
|
+
export declare const NC_NAME_CHAR_RE: RegExp;
|
|
12
|
+
export declare const NC_NAME_RE: RegExp;
|
|
13
|
+
/**
|
|
14
|
+
* Determines whether a codepoint matches [[NC_NAME_START_CHAR]].
|
|
15
|
+
*
|
|
16
|
+
* @param c The code point.
|
|
17
|
+
*
|
|
18
|
+
* @returns ``true`` if the codepoint matches.
|
|
19
|
+
*/
|
|
20
|
+
export declare function isNCNameStartChar(c: number): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Determines whether a codepoint matches [[NC_NAME_CHAR]].
|
|
23
|
+
*
|
|
24
|
+
* @param c The code point.
|
|
25
|
+
*
|
|
26
|
+
* @returns ``true`` if the codepoint matches.
|
|
27
|
+
*/
|
|
28
|
+
export declare function isNCNameChar(c: number): boolean;
|
|
29
|
+
//# sourceMappingURL=ed3.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ed3.d.ts","sourceRoot":"","sources":["../../../../../../../../src/reader/sax/xmlchars/xmlns/1.0/ed3.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,eAAO,MAAM,kBAAkB,oLAA8K,CAAC;AAE9M,eAAO,MAAM,YAAY,yNACqC,CAAC;AAM/D,eAAO,MAAM,qBAAqB,QACY,CAAC;AAE/C,eAAO,MAAM,eAAe,QAAyC,CAAC;AAEtE,eAAO,MAAM,UAAU,QACyC,CAAC;AAEjE;;;;;;GAMG;AAEH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAgBpD;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAQ/C"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { SaxParser } from '../sax';
|
|
2
|
+
/**
|
|
3
|
+
* The type → part-paths index built from `[Content_Types].xml`.
|
|
4
|
+
*
|
|
5
|
+
* Each bucket holds the `PartName` paths (e.g. `/xl/styles.xml`) of the parts
|
|
6
|
+
* with a matching content type. `defaults` maps a (lower-cased) file extension to
|
|
7
|
+
* its default content type. `sst`/`style` are the first shared-strings/styles
|
|
8
|
+
* part for convenience.
|
|
9
|
+
*
|
|
10
|
+
* The index allows arbitrary extra keys because the reader layers a few computed
|
|
11
|
+
* locations on top (e.g. `richstructure`, `slicersCache`) that have no content
|
|
12
|
+
* type of their own.
|
|
13
|
+
*/
|
|
14
|
+
export interface ContentTypesDirectory {
|
|
15
|
+
workbooks: string[];
|
|
16
|
+
sheets: string[];
|
|
17
|
+
charts: string[];
|
|
18
|
+
dialogs: string[];
|
|
19
|
+
macros: string[];
|
|
20
|
+
strs: string[];
|
|
21
|
+
comments: string[];
|
|
22
|
+
threadedcomments: string[];
|
|
23
|
+
links: string[];
|
|
24
|
+
coreprops: string[];
|
|
25
|
+
extprops: string[];
|
|
26
|
+
custprops: string[];
|
|
27
|
+
themes: string[];
|
|
28
|
+
styles: string[];
|
|
29
|
+
metadata: string[];
|
|
30
|
+
people: string[];
|
|
31
|
+
/** First shared-strings part, or `''`. */
|
|
32
|
+
sst: string;
|
|
33
|
+
/** First styles part, or `''`. */
|
|
34
|
+
style: string;
|
|
35
|
+
/** Lower-cased extension → default content type. */
|
|
36
|
+
defaults: Record<string, string>;
|
|
37
|
+
[key: string]: string[] | string | Record<string, string>;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Create an empty directory with every bucket initialized.
|
|
41
|
+
*/
|
|
42
|
+
export declare const newContentTypesDirectory: () => ContentTypesDirectory;
|
|
43
|
+
/**
|
|
44
|
+
* Streaming SAX handler for `[Content_Types].xml`.
|
|
45
|
+
*
|
|
46
|
+
* The file is flat - `<Default>` and `<Override>` leaf elements with no text - so
|
|
47
|
+
* we read everything off the open tag and finalize derived fields (`sst`/`style`)
|
|
48
|
+
* on `onEnd`.
|
|
49
|
+
*
|
|
50
|
+
* @param directory Pre-initialized buckets to populate (see {@link newContentTypesDirectory}).
|
|
51
|
+
* @param onWarning Optional sink for parse errors.
|
|
52
|
+
*/
|
|
53
|
+
export declare const createContentTypesSaxVisitor: (directory: ContentTypesDirectory, onWarning?: (message: string) => void) => SaxParser.EventHandler;
|
|
54
|
+
//# sourceMappingURL=ContentTypesVisitor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentTypesVisitor.d.ts","sourceRoot":"","sources":["../../../../../src/reader/saxVisitors/ContentTypesVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAExC;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,0CAA0C;IAC1C,GAAG,EAAE,MAAM,CAAC;IACZ,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,oDAAoD;IACpD,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC3D;AA+DD;;GAEG;AACH,eAAO,MAAM,wBAAwB,QAAO,qBAO1C,CAAC;AAOH;;;;;;;;;GASG;AACH,eAAO,MAAM,4BAA4B,GACvC,WAAW,qBAAqB,EAChC,YAAY,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,KACpC,SAAS,CAAC,YA8BZ,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SaxParser } from '../sax';
|
|
2
|
+
/**
|
|
3
|
+
* Streaming SAX handler for `xl/sharedStrings.xml`, a flat repeated structure:
|
|
4
|
+
*
|
|
5
|
+
* ```xml
|
|
6
|
+
* <sst count="..." uniqueCount="...">
|
|
7
|
+
* <si><t>plain text</t></si>
|
|
8
|
+
* <si><r><t>rich </t></r><r><rPr>...</rPr><t>text</t></r></si>
|
|
9
|
+
* </sst>
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* We collect all `<t>` text while inside an `<si>` and emit the concatenated,
|
|
13
|
+
* unescaped string when the `<si>` closes. Concatenating runs yields the plain
|
|
14
|
+
* text for rich strings; run formatting (`<r>`/`<rPr>`) is ignored for now, though
|
|
15
|
+
* the structure leaves room to capture it later. Phonetic guides
|
|
16
|
+
* (`<rPh>`/`<phoneticPr>`) are skipped so they don't leak into the value.
|
|
17
|
+
*
|
|
18
|
+
* @param onString Called once per `<si>`, in document order, with the value.
|
|
19
|
+
* @param onWarning Optional sink for parse errors.
|
|
20
|
+
*/
|
|
21
|
+
export declare const createSharedStringsSaxVisitor: (onString: (text: string) => void, onWarning?: (message: string) => void) => SaxParser.EventHandler;
|
|
22
|
+
//# sourceMappingURL=SharedStringsVisitor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SharedStringsVisitor.d.ts","sourceRoot":"","sources":["../../../../../src/reader/saxVisitors/SharedStringsVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AASxC;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,6BAA6B,GACxC,UAAU,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,EAChC,YAAY,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,KACpC,SAAS,CAAC,YA0CZ,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Tuple, ISheet, ICell } from '@sheetxl/sdk';
|
|
2
|
+
import { SaxParser } from '../sax';
|
|
3
|
+
export declare const createWorksheetSaxVisitor: (sheet: ISheet.JSON, getRef: (relId: string, asBinary?: boolean) => any, // TODO - this should be a context like DOM.
|
|
4
|
+
addSharedString: (str: string) => number, mapDxfs?: Map<number, any>, onEnd?: () => void, onWarning?: (message: string) => void, onProgress?: (amount: number, total?: number) => void, paramMap?: Map<string, any>) => SaxParser.EventHandler;
|
|
5
|
+
export declare class RowAttributeType {
|
|
6
|
+
static Collapsed: number;
|
|
7
|
+
static CustomFormat: number;
|
|
8
|
+
static CustomHeight: number;
|
|
9
|
+
static Hidden: number;
|
|
10
|
+
static Ht: number;
|
|
11
|
+
static OutlineLevel: number;
|
|
12
|
+
static Ph: number;
|
|
13
|
+
static R: number;
|
|
14
|
+
static S: number;
|
|
15
|
+
static Spans: number;
|
|
16
|
+
static ThickBot: number;
|
|
17
|
+
static ThickTop: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Special handler optimized for performance while reading sheet data.
|
|
21
|
+
*
|
|
22
|
+
* TODO - **PERFORMANCE**. Create a saxes flag that says to not build attribute object and event only (less objects and less lookups but would be per tag type)
|
|
23
|
+
*/
|
|
24
|
+
export declare const createSheetDataSaxVisitor: (tupleBuilder: Tuple.IBuilder<ICell.JSON>, sheet: ISheet.JSON, delegate: SaxParser.EventHandler, onWarning: ((message: string) => void) | undefined, onProgress: ((amount: number, total?: number) => void) | undefined, stringHandler: SaxParser.EventHandler<number | undefined>, paramMap?: Map<string, any>) => SaxParser.EventHandler;
|
|
25
|
+
//# sourceMappingURL=WorksheetVisitor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorksheetVisitor.d.ts","sourceRoot":"","sources":["../../../../../src/reader/saxVisitors/WorksheetVisitor.ts"],"names":[],"mappings":"AAAA,OAAO,EACoB,KAAK,EACF,KAAK,MAAM,EAAmB,KAAK,KAAK,EAGrE,MAAM,cAAc,CAAC;AAEtB,OAAO,EAA2D,KAAK,SAAS,EAAmB,MAAM,QAAQ,CAAC;AAsGlH,eAAO,MAAM,yBAAyB,GACpC,OAAO,MAAM,CAAC,IAAI,EAClB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,KAAK,GAAG,EAAE,4CAA4C;AAChG,iBAAiB,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,EACxC,UAAU,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1B,QAAQ,MAAM,IAAI,EAClB,YAAY,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,EACrC,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,EACrD,WAAW,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAC1B,SAAS,CAAC,YAsvDZ,CAAA;AAED,qBAAa,gBAAgB;IAE3B,MAAM,CAAC,SAAS,SAAO;IAEvB,MAAM,CAAC,YAAY,SAAQ;IAE3B,MAAM,CAAC,YAAY,SAAS;IAE5B,MAAM,CAAC,MAAM,SAAU;IAEvB,MAAM,CAAC,EAAE,SAAW;IAEpB,MAAM,CAAC,YAAY,SAAY;IAE/B,MAAM,CAAC,EAAE,SAAa;IAEtB,MAAM,CAAC,CAAC,SAAc;IAEtB,MAAM,CAAC,CAAC,SAAe;IAEvB,MAAM,CAAC,KAAK,SAAgB;IAE5B,MAAM,CAAC,QAAQ,SAAiB;IAEhC,MAAM,CAAC,QAAQ,SAAkB;CAClC;AAWD;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,GACpC,cAAc,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,EACxC,OAAO,MAAM,CAAC,IAAI,EAClB,UAAU,SAAS,CAAC,YAAY,EAChC,WAAW,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,EAClD,YAAY,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,SAAS,EAClE,eAAe,SAAS,CAAC,YAAY,CAAC,MAAM,GAAG,SAAS,CAAC,EACzD,WAAW,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAC1B,SAAS,CAAC,YAurBZ,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Decompress a VBA “compressed container” as defined in MS-OVBA §2.4.1
|
|
3
|
+
*
|
|
4
|
+
* * https://learn.microsoft.com/en-us/openspecs/office_file_formats/ms-ovba/7ce7fb12-f761-4d40-9561-d4db201ef5bc
|
|
5
|
+
*
|
|
6
|
+
* * https://github.com/chelh/VBACompressionCodec
|
|
7
|
+
* * https://raw.githubusercontent.com/chelh/VBACompressionCodec/refs/heads/master/CompoundDocumentCompression.cs
|
|
8
|
+
* * https://msopenspecs.microsoft.com/files/MS-OVBA/%5bMS-OVBA%5d-240521.pdf
|
|
9
|
+
* * https://blog.nviso.eu/2020/02/25/evidence-of-vba-purging-found-in-malicious-documents/
|
|
10
|
+
* * https://msopenspecs.microsoft.com/files/MS-OVBA/%5BMS-OVBA%5D.pdf
|
|
11
|
+
*
|
|
12
|
+
* The VBA compression uses a combination of RLE (Run Length Encoding) and
|
|
13
|
+
* dictionary-based compression, processing data in 4096-byte chunks.
|
|
14
|
+
*/
|
|
15
|
+
export declare namespace CompoundDocumentCompression {
|
|
16
|
+
/**
|
|
17
|
+
* Compression using a run-length encoding algorithm.
|
|
18
|
+
* See MS-OVBA Section 2.4.
|
|
19
|
+
* This implementation aims to match EPPlus's behavior which primarily emits CompressedChunks.
|
|
20
|
+
* @param part Byte array to compress.
|
|
21
|
+
* @returns Compressed byte array.
|
|
22
|
+
*/
|
|
23
|
+
function CompressPart(part: Uint8Array): Uint8Array;
|
|
24
|
+
/**
|
|
25
|
+
* Inflate the “compressed container” that holds VBA source.
|
|
26
|
+
*
|
|
27
|
+
* @param part Uint8Array that begins with 0x00 | 0x01 signature.
|
|
28
|
+
* @param startPos Byte index where the container starts (default 0).
|
|
29
|
+
* @param verbose true = log internals to console.debug
|
|
30
|
+
* @returns Inflated bytes, or null if signature invalid.
|
|
31
|
+
*
|
|
32
|
+
* @see
|
|
33
|
+
* See MS-OVBA Section 2.4.
|
|
34
|
+
*/
|
|
35
|
+
function DecompressPart(part: Uint8Array, startPos?: number): Uint8Array | null;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=CompoundDocumentCompression.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompoundDocumentCompression.d.ts","sourceRoot":"","sources":["../../../../src/vba/CompoundDocumentCompression.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,yBAAiB,2BAA2B,CAAC;IAqG3C;;;;;;OAMG;IACH,SAAgB,YAAY,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU,CA6BzD;IAED;;;;;;;;;;OAUG;IACH,SAAgB,cAAc,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,GAAE,MAAU,GAAG,UAAU,GAAG,IAAI,CAyBxF;CACF"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extracts VBA macro **source text** from an `xl/vbaProject.bin` part.
|
|
3
|
+
*
|
|
4
|
+
* @see https://learn.microsoft.com/en-us/openspecs/office_file_formats/ms-ovba/575462ba-bf67-4190-9fac-c275523c75fc
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* This reads source only — it never executes anything. The pipeline is:
|
|
8
|
+
* 1. {@link CompoundFileReader} walks the OLE compound file (`vbaProject.bin`).
|
|
9
|
+
* 2. The `VBA/dir` stream is decompressed (MS-OVBA §2.4.1) and parsed for the
|
|
10
|
+
* project code page and the per-module `(name, streamName, textOffset)`.
|
|
11
|
+
* 3. Each module's stream is decompressed from `textOffset` (it is preceded by a
|
|
12
|
+
* compiled "performance cache" we skip) and decoded with the project code page.
|
|
13
|
+
*/
|
|
14
|
+
export declare namespace VBAProject {
|
|
15
|
+
/** A single extracted VBA module. */
|
|
16
|
+
interface Module {
|
|
17
|
+
/** Module name as shown in the VBE project tree (e.g. `Module1`, `ThisWorkbook`). */
|
|
18
|
+
name: string;
|
|
19
|
+
/** Full source, including the leading `Attribute VB_*` lines Excel keeps hidden. */
|
|
20
|
+
code: string;
|
|
21
|
+
}
|
|
22
|
+
interface Project {
|
|
23
|
+
/** Code page declared by the project (e.g. 1252). */
|
|
24
|
+
codePage: number;
|
|
25
|
+
modules: Module[];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Extract all VBA modules from a raw `xl/vbaProject.bin`.
|
|
29
|
+
*
|
|
30
|
+
* The `dir` stream is a flat sequence of `Id(2) Size(4) Data(Size)` records,
|
|
31
|
+
* **with one exception**: `PROJECTVERSION` (0x0009) stores a fixed reserved value
|
|
32
|
+
* `4` in the size slot but is followed by 6 bytes (VersionMajor + VersionMinor).
|
|
33
|
+
* Treating its size as a skip length misaligns everything after it — which is why
|
|
34
|
+
* a naive walk never finds the module records.
|
|
35
|
+
*
|
|
36
|
+
* @param vbaProjectBin The bytes of the `xl/vbaProject.bin` part.
|
|
37
|
+
* @returns The parsed project, or `null` if the bytes are not a compound file.
|
|
38
|
+
*/
|
|
39
|
+
const extract: (vbaProjectBin: Uint8Array | ArrayBuffer) => Project | null;
|
|
40
|
+
/**
|
|
41
|
+
* Strip the leading hidden `Attribute VB_*` lines from a module's source so the
|
|
42
|
+
* result matches what the VBA editor displays. Procedure-level `Attribute` lines
|
|
43
|
+
* (indented, inside a `Sub`/`Function`) are left untouched.
|
|
44
|
+
*/
|
|
45
|
+
const stripAttributes: (code: string) => string;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=VBAProject.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VBAProject.d.ts","sourceRoot":"","sources":["../../../../src/vba/VBAProject.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AACH,yBAAiB,UAAU,CAAC;IAC1B,qCAAqC;IACrC,UAAiB,MAAM;QACrB,qFAAqF;QACrF,IAAI,EAAE,MAAM,CAAC;QACb,oFAAoF;QACpF,IAAI,EAAE,MAAM,CAAC;KACd;IAED,UAAiB,OAAO;QACtB,qDAAqD;QACrD,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,EAAE,CAAC;KACnB;IAsCD;;;;;;;;;;;OAWG;IACI,MAAM,OAAO,GAAI,eAAe,UAAU,GAAG,WAAW,KAAG,OAAO,GAAG,IA6C3E,CAAC;IAEF;;;;OAIG;IACI,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,MAK9C,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/vba/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"XLSXWriter.d.ts","sourceRoot":"","sources":["../../../../src/writer/XLSXWriter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAQjD,eAAO,MAAM,SAAS,GACpB,UAAU,SAAS,EACnB,UAAU,gBAAgB,KACzB,OAAO,CAAC,eAAe,CA+DzB,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare class ContentTypes {
|
|
2
|
+
private _defaultsSet;
|
|
3
|
+
private _overridesSet;
|
|
4
|
+
protected _defaults: {
|
|
5
|
+
key: string;
|
|
6
|
+
content: string;
|
|
7
|
+
}[];
|
|
8
|
+
protected _overrides: {
|
|
9
|
+
key: string;
|
|
10
|
+
content: string;
|
|
11
|
+
}[];
|
|
12
|
+
constructor();
|
|
13
|
+
addDefault(ext: string, contentType: string): void;
|
|
14
|
+
addOverride(partName: string, contentType: string): void;
|
|
15
|
+
toXmlBytes(): Uint8Array;
|
|
16
|
+
}
|
|
17
|
+
export declare const NS_CT = "http://schemas.openxmlformats.org/package/2006/content-types";
|
|
18
|
+
//# sourceMappingURL=ContentTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentTypes.d.ts","sourceRoot":"","sources":["../../../../../src/writer/builder/ContentTypes.ts"],"names":[],"mappings":"AAGA,qBAAa,YAAY;IACvB,OAAO,CAAC,YAAY,CAAqB;IACzC,OAAO,CAAC,aAAa,CAAqB;IAC1C,SAAS,CAAC,SAAS,EAAE;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAC,EAAE,CAAM;IAC3D,SAAS,CAAC,UAAU,EAAE;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAC,EAAE,CAAM;;IAK5D,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IAO3C,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM;IAOjD,UAAU,IAAI,UAAU;CA8BzB;AAED,eAAO,MAAM,KAAK,iEAAiE,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IEmitter, EmitContext } from './Types';
|
|
2
|
+
/** @inheritdoc IEmitter */
|
|
3
|
+
export declare abstract class Emitter<T = any> implements IEmitter<T> {
|
|
4
|
+
protected _kind: string;
|
|
5
|
+
protected _contentType: string;
|
|
6
|
+
protected _relTypeUri: string;
|
|
7
|
+
protected _path: string | ((instance: T) => string) | undefined;
|
|
8
|
+
constructor(options: {
|
|
9
|
+
kind: string;
|
|
10
|
+
contentType: string;
|
|
11
|
+
relTypeUri: string;
|
|
12
|
+
path?: string | ((instance: T) => string);
|
|
13
|
+
});
|
|
14
|
+
/** @inheritdoc IEmitter.emit */
|
|
15
|
+
abstract emit(instance: T, ctx: EmitContext): Promise<void> | void;
|
|
16
|
+
/** @inheritdoc IEmitter.kind */
|
|
17
|
+
get kind(): string;
|
|
18
|
+
/** @inheritdoc IEmitter.contentType */
|
|
19
|
+
get contentType(): string;
|
|
20
|
+
/** @inheritdoc IEmitter.relTypeUri */
|
|
21
|
+
get relTypeUri(): string;
|
|
22
|
+
/** @inheritdoc IEmitter.getPath */
|
|
23
|
+
getPath(instance: T): string;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=Emitter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Emitter.d.ts","sourceRoot":"","sources":["../../../../../src/writer/builder/Emitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAE1D,2BAA2B;AAC3B,8BAAsB,OAAO,CAAC,CAAC,GAAC,GAAG,CAAE,YAAW,QAAQ,CAAC,CAAC,CAAC;IACzD,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,YAAY,EAAE,MAAM,CAAC;IAC/B,SAAS,CAAC,WAAW,EAAE,MAAM,CAAC;IAC9B,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,KAAK,MAAM,CAAC,GAAG,SAAS,CAAC;gBAEpD,OAAO,EAAE;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,KAAK,MAAM,CAAC,CAAC;KAC3C;IAOD,gCAAgC;IAChC,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;IAElE,gCAAgC;IAChC,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,uCAAuC;IACvC,IAAI,WAAW,IAAI,MAAM,CAExB;IAED,sCAAsC;IACtC,IAAI,UAAU,IAAI,MAAM,CAEvB;IAED,mCAAmC;IACnC,OAAO,CAAC,QAAQ,EAAE,CAAC,GAAG,MAAM;CAM7B"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IEmitter } from './Types';
|
|
2
|
+
/**
|
|
3
|
+
* A registry for managing emitters by their kind.
|
|
4
|
+
*/
|
|
5
|
+
export declare class EmitterRegistry {
|
|
6
|
+
private map;
|
|
7
|
+
/**
|
|
8
|
+
* Registers an emitter for a specific kind.
|
|
9
|
+
* @param type The emitter to register.
|
|
10
|
+
* @throws Error if an emitter for the same kind is already registered.
|
|
11
|
+
*/
|
|
12
|
+
register<T>(type: IEmitter<T>): void;
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves the emitter for the given kind.
|
|
15
|
+
*
|
|
16
|
+
* @param kind The kind of the emitter.
|
|
17
|
+
* @returns The emitter for the given kind.
|
|
18
|
+
* @throws Error if no emitter for the given kind is registered.
|
|
19
|
+
*/
|
|
20
|
+
get(kind: string): IEmitter<any>;
|
|
21
|
+
/**
|
|
22
|
+
* Checks if an emitter for the given kind is registered.
|
|
23
|
+
*
|
|
24
|
+
* @param kind The kind of the emitter.
|
|
25
|
+
* @returns True if an emitter for the kind is registered, false otherwise.
|
|
26
|
+
*/
|
|
27
|
+
has(kind: string): boolean;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=EmitterRegistry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmitterRegistry.d.ts","sourceRoot":"","sources":["../../../../../src/writer/builder/EmitterRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC;;GAEG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,GAAG,CAAoC;IAE/C;;;;OAIG;IACH,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC;IAK7B;;;;;;OAMG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,CAAC,GAAG,CAAC;IAQhC;;;;;OAKG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;CAG3B"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minimal, dependency-free parsing for the two flat OPC manifest formats the writer needs to read
|
|
3
|
+
* back from a retained source package: `[Content_Types].xml` and `*.rels`. Both are, per spec, a
|
|
4
|
+
* single level of self-closing elements with only attributes — no text content, no nesting beyond
|
|
5
|
+
* the root — so an attribute-order-independent regex parser is enough, and it keeps the writer from
|
|
6
|
+
* needing a DOM parser (it otherwise only ever produces XML, never parses it). See
|
|
7
|
+
* `DESIGN-PACKAGE-PASSTHROUGH.md` §6.
|
|
8
|
+
*/
|
|
9
|
+
export declare function decodeXmlEntities(s: string): string;
|
|
10
|
+
export interface SourceContentTypes {
|
|
11
|
+
readonly defaults: readonly {
|
|
12
|
+
ext: string;
|
|
13
|
+
contentType: string;
|
|
14
|
+
}[];
|
|
15
|
+
/** Keyed by absolute part name, e.g. `/docProps/custom.xml`. */
|
|
16
|
+
readonly overrides: ReadonlyMap<string, string>;
|
|
17
|
+
}
|
|
18
|
+
export declare function parseContentTypesXml(bytes: Uint8Array): SourceContentTypes;
|
|
19
|
+
export interface SourceRelationship {
|
|
20
|
+
readonly type: string;
|
|
21
|
+
/** Verbatim from the source XML — relative to the referencing part, exactly as OPC requires. */
|
|
22
|
+
readonly target: string;
|
|
23
|
+
readonly external: boolean;
|
|
24
|
+
}
|
|
25
|
+
export declare function parseRelationshipsXml(bytes: Uint8Array): SourceRelationship[];
|
|
26
|
+
//# sourceMappingURL=OpcXmlUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpcXmlUtils.d.ts","sourceRoot":"","sources":["../../../../../src/writer/builder/OpcXmlUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAkBH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAEnD;AAsBD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,QAAQ,EAAE,SAAS;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACnE,gEAAgE;IAChE,QAAQ,CAAC,SAAS,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,UAAU,GAAG,kBAAkB,CAU1E;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,gGAAgG;IAChG,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,UAAU,GAAG,kBAAkB,EAAE,CAK7E"}
|