@cj-tech-master/excelts 9.4.2 → 9.5.0
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/dist/browser/index.browser.d.ts +8 -5
- package/dist/browser/index.browser.js +19 -1
- package/dist/browser/index.d.ts +4 -2
- package/dist/browser/index.js +9 -1
- package/dist/browser/modules/excel/chart/cache-populator.d.ts +49 -0
- package/dist/browser/modules/excel/chart/cache-populator.js +1171 -0
- package/dist/browser/modules/excel/chart/chart-api.d.ts +92 -0
- package/dist/browser/modules/excel/chart/chart-api.js +364 -0
- package/dist/browser/modules/excel/chart/chart-builder.d.ts +48 -0
- package/dist/browser/modules/excel/chart/chart-builder.js +2432 -0
- package/dist/browser/modules/excel/chart/chart-ex-builder.d.ts +36 -0
- package/dist/browser/modules/excel/chart/chart-ex-builder.js +903 -0
- package/dist/browser/modules/excel/chart/chart-ex-parser.d.ts +8 -0
- package/dist/browser/modules/excel/chart/chart-ex-parser.js +1205 -0
- package/dist/browser/modules/excel/chart/chart-ex-renderer.d.ts +187 -0
- package/dist/browser/modules/excel/chart/chart-ex-renderer.js +5352 -0
- package/dist/browser/modules/excel/chart/chart-ex-types.d.ts +531 -0
- package/dist/browser/modules/excel/chart/chart-ex-types.js +11 -0
- package/dist/browser/modules/excel/chart/chart-images.d.ts +78 -0
- package/dist/browser/modules/excel/chart/chart-images.js +363 -0
- package/dist/browser/modules/excel/chart/chart-presets.d.ts +392 -0
- package/dist/browser/modules/excel/chart/chart-presets.js +179 -0
- package/dist/browser/modules/excel/chart/chart-renderer.d.ts +550 -0
- package/dist/browser/modules/excel/chart/chart-renderer.js +6440 -0
- package/dist/browser/modules/excel/chart/chart-sidecar.d.ts +21 -0
- package/dist/browser/modules/excel/chart/chart-sidecar.js +427 -0
- package/dist/browser/modules/excel/chart/chart-utils.d.ts +306 -0
- package/dist/browser/modules/excel/chart/chart-utils.js +821 -0
- package/dist/browser/modules/excel/chart/chart.d.ts +504 -0
- package/dist/browser/modules/excel/chart/chart.js +1320 -0
- package/dist/browser/modules/excel/chart/glyph-rasterizer.d.ts +62 -0
- package/dist/browser/modules/excel/chart/glyph-rasterizer.js +658 -0
- package/dist/browser/modules/excel/chart/index.d.ts +54 -0
- package/dist/browser/modules/excel/chart/index.js +46 -0
- package/dist/browser/modules/excel/chart/install.d.ts +44 -0
- package/dist/browser/modules/excel/chart/install.js +91 -0
- package/dist/browser/modules/excel/chart/shape-properties.d.ts +156 -0
- package/dist/browser/modules/excel/chart/shape-properties.js +1557 -0
- package/dist/browser/modules/excel/chart/stroke-font.d.ts +36 -0
- package/dist/browser/modules/excel/chart/stroke-font.js +1556 -0
- package/dist/browser/modules/excel/chart/topojson.d.ts +98 -0
- package/dist/browser/modules/excel/chart/topojson.js +236 -0
- package/dist/browser/modules/excel/chart/types.d.ts +2559 -0
- package/dist/browser/modules/excel/chart/types.js +8 -0
- package/dist/browser/modules/excel/chart-host-registry.d.ts +157 -0
- package/dist/browser/modules/excel/chart-host-registry.js +90 -0
- package/dist/browser/modules/excel/chartsheet.d.ts +102 -0
- package/dist/browser/modules/excel/chartsheet.js +196 -0
- package/dist/browser/modules/excel/defined-names.d.ts +35 -0
- package/dist/browser/modules/excel/defined-names.js +44 -4
- package/dist/browser/modules/excel/errors.d.ts +6 -0
- package/dist/browser/modules/excel/errors.js +9 -0
- package/dist/browser/modules/excel/form-control.d.ts +6 -0
- package/dist/browser/modules/excel/form-control.js +17 -0
- package/dist/browser/modules/excel/image.js +12 -2
- package/dist/browser/modules/excel/pivot-chart.d.ts +7 -0
- package/dist/browser/modules/excel/pivot-chart.js +53 -0
- package/dist/browser/modules/excel/pivot-table.d.ts +55 -0
- package/dist/browser/modules/excel/pivot-table.js +35 -0
- package/dist/browser/modules/excel/range.js +5 -1
- package/dist/browser/modules/excel/sparkline/index.d.ts +7 -0
- package/dist/browser/modules/excel/sparkline/index.js +7 -0
- package/dist/browser/modules/excel/sparkline/sparkline.d.ts +206 -0
- package/dist/browser/modules/excel/sparkline/sparkline.js +750 -0
- package/dist/browser/modules/excel/stream/worksheet-writer.js +3 -2
- package/dist/browser/modules/excel/table.js +42 -6
- package/dist/browser/modules/excel/types.d.ts +72 -0
- package/dist/browser/modules/excel/utils/address.d.ts +18 -0
- package/dist/browser/modules/excel/utils/address.js +28 -0
- package/dist/browser/modules/excel/utils/drawing-utils.js +11 -6
- package/dist/browser/modules/excel/utils/guid.d.ts +15 -0
- package/dist/browser/modules/excel/utils/guid.js +35 -0
- package/dist/browser/modules/excel/utils/ooxml-paths.d.ts +74 -0
- package/dist/browser/modules/excel/utils/ooxml-paths.js +206 -9
- package/dist/browser/modules/excel/utils/ooxml-validator/check-chart-sidecar.d.ts +35 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-chart-sidecar.js +101 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-chart.d.ts +32 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-chart.js +2125 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-chartsheet.d.ts +9 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-chartsheet.js +26 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-content-types.d.ts +16 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-content-types.js +181 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-drawing.d.ts +34 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-drawing.js +267 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-pivot.d.ts +14 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-pivot.js +104 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-relationships.d.ts +18 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-relationships.js +184 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-structure.d.ts +21 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-structure.js +56 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-styles.d.ts +15 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-styles.js +89 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-table.d.ts +31 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-table.js +177 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-workbook.d.ts +19 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-workbook.js +163 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-worksheet.d.ts +25 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/check-worksheet.js +569 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/context.d.ts +85 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/context.js +191 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/index.d.ts +31 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/index.js +102 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/path-utils.d.ts +67 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/path-utils.js +156 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/reporter.d.ts +41 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/reporter.js +61 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/types.d.ts +109 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/types.js +12 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/xml-utils.d.ts +38 -0
- package/dist/browser/modules/excel/utils/ooxml-validator/xml-utils.js +100 -0
- package/dist/browser/modules/excel/workbook.browser.d.ts +248 -30
- package/dist/browser/modules/excel/workbook.browser.js +966 -31
- package/dist/browser/modules/excel/workbook.d.ts +43 -0
- package/dist/browser/modules/excel/workbook.js +48 -0
- package/dist/browser/modules/excel/worksheet.d.ts +157 -3
- package/dist/browser/modules/excel/worksheet.js +394 -35
- package/dist/browser/modules/excel/xlsx/rel-type.d.ts +40 -0
- package/dist/browser/modules/excel/xlsx/rel-type.js +41 -1
- package/dist/browser/modules/excel/xlsx/xform/book/defined-name-xform.d.ts +1 -0
- package/dist/browser/modules/excel/xlsx/xform/book/defined-name-xform.js +11 -2
- package/dist/browser/modules/excel/xlsx/xform/book/external-link-xform.js +12 -10
- package/dist/browser/modules/excel/xlsx/xform/book/workbook-xform.js +96 -22
- package/dist/browser/modules/excel/xlsx/xform/chart/chart-space-xform.d.ts +353 -0
- package/dist/browser/modules/excel/xlsx/xform/chart/chart-space-xform.js +6000 -0
- package/dist/browser/modules/excel/xlsx/xform/comment/threaded-comments-xform.d.ts +60 -0
- package/dist/browser/modules/excel/xlsx/xform/comment/threaded-comments-xform.js +213 -0
- package/dist/browser/modules/excel/xlsx/xform/core/content-types-xform.js +150 -11
- package/dist/browser/modules/excel/xlsx/xform/drawing/absolute-anchor-xform.js +20 -1
- package/dist/browser/modules/excel/xlsx/xform/drawing/base-cell-anchor-xform.js +1 -1
- package/dist/browser/modules/excel/xlsx/xform/drawing/drawing-xform.d.ts +30 -0
- package/dist/browser/modules/excel/xlsx/xform/drawing/drawing-xform.js +109 -5
- package/dist/browser/modules/excel/xlsx/xform/drawing/graphic-frame-xform.d.ts +54 -0
- package/dist/browser/modules/excel/xlsx/xform/drawing/graphic-frame-xform.js +225 -0
- package/dist/browser/modules/excel/xlsx/xform/drawing/one-cell-anchor-xform.d.ts +3 -1
- package/dist/browser/modules/excel/xlsx/xform/drawing/one-cell-anchor-xform.js +18 -3
- package/dist/browser/modules/excel/xlsx/xform/drawing/two-cell-anchor-xform.d.ts +46 -0
- package/dist/browser/modules/excel/xlsx/xform/drawing/two-cell-anchor-xform.js +294 -12
- package/dist/browser/modules/excel/xlsx/xform/pivot-table/pivot-table-xform.d.ts +13 -2
- package/dist/browser/modules/excel/xlsx/xform/pivot-table/pivot-table-xform.js +32 -6
- package/dist/browser/modules/excel/xlsx/xform/sheet/chartsheet-xform.d.ts +185 -0
- package/dist/browser/modules/excel/xlsx/xform/sheet/chartsheet-xform.js +441 -0
- package/dist/browser/modules/excel/xlsx/xform/sheet/ext-lst-xform.d.ts +1 -0
- package/dist/browser/modules/excel/xlsx/xform/sheet/ext-lst-xform.js +51 -2
- package/dist/browser/modules/excel/xlsx/xform/sheet/worksheet-xform.js +196 -20
- package/dist/browser/modules/excel/xlsx/xform/table/auto-filter-xform.js +16 -1
- package/dist/browser/modules/excel/xlsx/xform/table/table-column-xform.js +17 -2
- package/dist/browser/modules/excel/xlsx/xform/xsd-values.d.ts +63 -0
- package/dist/browser/modules/excel/xlsx/xform/xsd-values.js +101 -0
- package/dist/browser/modules/excel/xlsx/xlsx.browser.d.ts +115 -21
- package/dist/browser/modules/excel/xlsx/xlsx.browser.js +4422 -78
- package/dist/browser/modules/pdf/builder/document-builder.d.ts +74 -0
- package/dist/browser/modules/pdf/builder/document-builder.js +507 -2
- package/dist/browser/modules/pdf/builder/pdf-editor.js +48 -3
- package/dist/browser/modules/pdf/excel-bridge.d.ts +69 -0
- package/dist/browser/modules/pdf/excel-bridge.js +683 -12
- package/dist/browser/modules/pdf/font/font-manager.d.ts +25 -0
- package/dist/browser/modules/pdf/font/font-manager.js +39 -0
- package/dist/browser/modules/pdf/index.d.ts +5 -2
- package/dist/browser/modules/pdf/index.js +3 -1
- package/dist/browser/modules/pdf/render/chart-surface.d.ts +33 -0
- package/dist/browser/modules/pdf/render/chart-surface.js +200 -0
- package/dist/browser/modules/pdf/render/layout-engine.d.ts +22 -1
- package/dist/browser/modules/pdf/render/layout-engine.js +436 -56
- package/dist/browser/modules/pdf/render/page-renderer.js +169 -28
- package/dist/browser/modules/pdf/render/pdf-exporter.js +117 -7
- package/dist/browser/modules/pdf/types.d.ts +227 -23
- package/dist/browser/modules/pdf/types.js +4 -0
- package/dist/browser/modules/pdf/word-bridge.d.ts +47 -0
- package/dist/browser/modules/pdf/word-bridge.js +304 -0
- package/dist/browser/modules/word/constants.d.ts +179 -0
- package/dist/browser/modules/word/constants.js +231 -0
- package/dist/browser/modules/word/content-types.d.ts +27 -0
- package/dist/browser/modules/word/content-types.js +53 -0
- package/dist/browser/modules/word/digital-signatures.d.ts +87 -0
- package/dist/browser/modules/word/digital-signatures.js +134 -0
- package/dist/browser/modules/word/document.d.ts +728 -0
- package/dist/browser/modules/word/document.js +1795 -0
- package/dist/browser/modules/word/docx-packager.d.ts +14 -0
- package/dist/browser/modules/word/docx-packager.js +822 -0
- package/dist/browser/modules/word/docx-reader.d.ts +11 -0
- package/dist/browser/modules/word/docx-reader.js +4929 -0
- package/dist/browser/modules/word/encryption.d.ts +102 -0
- package/dist/browser/modules/word/encryption.js +274 -0
- package/dist/browser/modules/word/errors.d.ts +49 -0
- package/dist/browser/modules/word/errors.js +68 -0
- package/dist/browser/modules/word/font-obfuscation.d.ts +31 -0
- package/dist/browser/modules/word/font-obfuscation.js +83 -0
- package/dist/browser/modules/word/html-renderer.d.ts +38 -0
- package/dist/browser/modules/word/html-renderer.js +782 -0
- package/dist/browser/modules/word/index.base.d.ts +19 -0
- package/dist/browser/modules/word/index.base.js +51 -0
- package/dist/browser/modules/word/index.browser.d.ts +4 -0
- package/dist/browser/modules/word/index.browser.js +4 -0
- package/dist/browser/modules/word/index.d.ts +4 -0
- package/dist/browser/modules/word/index.js +4 -0
- package/dist/browser/modules/word/internal-utils.d.ts +23 -0
- package/dist/browser/modules/word/internal-utils.js +54 -0
- package/dist/browser/modules/word/relationships.d.ts +31 -0
- package/dist/browser/modules/word/relationships.js +56 -0
- package/dist/browser/modules/word/types.d.ts +2325 -0
- package/dist/browser/modules/word/types.js +10 -0
- package/dist/browser/modules/word/units.d.ts +49 -0
- package/dist/browser/modules/word/units.js +111 -0
- package/dist/browser/modules/word/writers/chart-writer.d.ts +10 -0
- package/dist/browser/modules/word/writers/chart-writer.js +385 -0
- package/dist/browser/modules/word/writers/checkbox-writer.d.ts +9 -0
- package/dist/browser/modules/word/writers/checkbox-writer.js +42 -0
- package/dist/browser/modules/word/writers/comment-writer.d.ts +15 -0
- package/dist/browser/modules/word/writers/comment-writer.js +70 -0
- package/dist/browser/modules/word/writers/document-writer.d.ts +16 -0
- package/dist/browser/modules/word/writers/document-writer.js +461 -0
- package/dist/browser/modules/word/writers/footnote-writer.d.ts +11 -0
- package/dist/browser/modules/word/writers/footnote-writer.js +72 -0
- package/dist/browser/modules/word/writers/header-footer-writer.d.ts +13 -0
- package/dist/browser/modules/word/writers/header-footer-writer.js +129 -0
- package/dist/browser/modules/word/writers/image-writer.d.ts +10 -0
- package/dist/browser/modules/word/writers/image-writer.js +185 -0
- package/dist/browser/modules/word/writers/math-writer.d.ts +9 -0
- package/dist/browser/modules/word/writers/math-writer.js +428 -0
- package/dist/browser/modules/word/writers/numbering-writer.d.ts +10 -0
- package/dist/browser/modules/word/writers/numbering-writer.js +125 -0
- package/dist/browser/modules/word/writers/paragraph-writer.d.ts +13 -0
- package/dist/browser/modules/word/writers/paragraph-writer.js +516 -0
- package/dist/browser/modules/word/writers/parts-writer.d.ts +26 -0
- package/dist/browser/modules/word/writers/parts-writer.js +660 -0
- package/dist/browser/modules/word/writers/run-writer.d.ts +15 -0
- package/dist/browser/modules/word/writers/run-writer.js +649 -0
- package/dist/browser/modules/word/writers/section-writer.d.ts +10 -0
- package/dist/browser/modules/word/writers/section-writer.js +238 -0
- package/dist/browser/modules/word/writers/styles-writer.d.ts +10 -0
- package/dist/browser/modules/word/writers/styles-writer.js +242 -0
- package/dist/browser/modules/word/writers/table-writer.d.ts +10 -0
- package/dist/browser/modules/word/writers/table-writer.js +503 -0
- package/dist/browser/modules/word/writers/textbox-writer.d.ts +9 -0
- package/dist/browser/modules/word/writers/textbox-writer.js +53 -0
- package/dist/browser/modules/word/writers/toc-writer.d.ts +9 -0
- package/dist/browser/modules/word/writers/toc-writer.js +79 -0
- package/dist/browser/modules/xml/encode.d.ts +56 -7
- package/dist/browser/modules/xml/encode.js +157 -11
- package/dist/cjs/index.js +13 -2
- package/dist/cjs/modules/excel/chart/cache-populator.js +1178 -0
- package/dist/cjs/modules/excel/chart/chart-api.js +371 -0
- package/dist/cjs/modules/excel/chart/chart-builder.js +2440 -0
- package/dist/cjs/modules/excel/chart/chart-ex-builder.js +907 -0
- package/dist/cjs/modules/excel/chart/chart-ex-parser.js +1208 -0
- package/dist/cjs/modules/excel/chart/chart-ex-renderer.js +5364 -0
- package/dist/cjs/modules/excel/chart/chart-ex-types.js +12 -0
- package/dist/cjs/modules/excel/chart/chart-images.js +366 -0
- package/dist/cjs/modules/excel/chart/chart-presets.js +184 -0
- package/dist/cjs/modules/excel/chart/chart-renderer.js +6450 -0
- package/dist/cjs/modules/excel/chart/chart-sidecar.js +433 -0
- package/dist/cjs/modules/excel/chart/chart-utils.js +845 -0
- package/dist/cjs/modules/excel/chart/chart.js +1324 -0
- package/dist/cjs/modules/excel/chart/glyph-rasterizer.js +664 -0
- package/dist/cjs/modules/excel/chart/index.js +101 -0
- package/dist/cjs/modules/excel/chart/install.js +95 -0
- package/dist/cjs/modules/excel/chart/shape-properties.js +1577 -0
- package/dist/cjs/modules/excel/chart/stroke-font.js +1559 -0
- package/dist/cjs/modules/excel/chart/topojson.js +239 -0
- package/dist/cjs/modules/excel/chart/types.js +9 -0
- package/dist/cjs/modules/excel/chart-host-registry.js +96 -0
- package/dist/cjs/modules/excel/chartsheet.js +199 -0
- package/dist/cjs/modules/excel/defined-names.js +44 -4
- package/dist/cjs/modules/excel/errors.js +11 -1
- package/dist/cjs/modules/excel/form-control.js +17 -0
- package/dist/cjs/modules/excel/image.js +12 -2
- package/dist/cjs/modules/excel/pivot-chart.js +56 -0
- package/dist/cjs/modules/excel/pivot-table.js +35 -0
- package/dist/cjs/modules/excel/range.js +5 -1
- package/dist/cjs/modules/excel/sparkline/index.js +23 -0
- package/dist/cjs/modules/excel/sparkline/sparkline.js +756 -0
- package/dist/cjs/modules/excel/stream/worksheet-writer.js +3 -2
- package/dist/cjs/modules/excel/table.js +42 -6
- package/dist/cjs/modules/excel/utils/address.js +29 -0
- package/dist/cjs/modules/excel/utils/drawing-utils.js +11 -6
- package/dist/cjs/modules/excel/utils/guid.js +38 -0
- package/dist/cjs/modules/excel/utils/ooxml-paths.js +246 -9
- package/dist/cjs/modules/excel/utils/ooxml-validator/check-chart-sidecar.js +103 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/check-chart.js +2128 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/check-chartsheet.js +29 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/check-content-types.js +184 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/check-drawing.js +270 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/check-pivot.js +107 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/check-relationships.js +188 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/check-structure.js +60 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/check-styles.js +92 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/check-table.js +180 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/check-workbook.js +166 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/check-worksheet.js +572 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/context.js +196 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/index.js +105 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/path-utils.js +168 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/reporter.js +66 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/types.js +13 -0
- package/dist/cjs/modules/excel/utils/ooxml-validator/xml-utils.js +110 -0
- package/dist/cjs/modules/excel/workbook.browser.js +973 -38
- package/dist/cjs/modules/excel/workbook.js +48 -0
- package/dist/cjs/modules/excel/worksheet.js +393 -34
- package/dist/cjs/modules/excel/xlsx/rel-type.js +41 -1
- package/dist/cjs/modules/excel/xlsx/xform/book/defined-name-xform.js +11 -2
- package/dist/cjs/modules/excel/xlsx/xform/book/external-link-xform.js +12 -10
- package/dist/cjs/modules/excel/xlsx/xform/book/workbook-xform.js +96 -22
- package/dist/cjs/modules/excel/xlsx/xform/chart/chart-space-xform.js +6003 -0
- package/dist/cjs/modules/excel/xlsx/xform/comment/threaded-comments-xform.js +219 -0
- package/dist/cjs/modules/excel/xlsx/xform/core/content-types-xform.js +149 -10
- package/dist/cjs/modules/excel/xlsx/xform/drawing/absolute-anchor-xform.js +20 -1
- package/dist/cjs/modules/excel/xlsx/xform/drawing/base-cell-anchor-xform.js +1 -1
- package/dist/cjs/modules/excel/xlsx/xform/drawing/drawing-xform.js +109 -5
- package/dist/cjs/modules/excel/xlsx/xform/drawing/graphic-frame-xform.js +228 -0
- package/dist/cjs/modules/excel/xlsx/xform/drawing/one-cell-anchor-xform.js +18 -3
- package/dist/cjs/modules/excel/xlsx/xform/drawing/two-cell-anchor-xform.js +294 -12
- package/dist/cjs/modules/excel/xlsx/xform/pivot-table/pivot-table-xform.js +32 -6
- package/dist/cjs/modules/excel/xlsx/xform/sheet/chartsheet-xform.js +444 -0
- package/dist/cjs/modules/excel/xlsx/xform/sheet/ext-lst-xform.js +51 -2
- package/dist/cjs/modules/excel/xlsx/xform/sheet/worksheet-xform.js +195 -19
- package/dist/cjs/modules/excel/xlsx/xform/table/auto-filter-xform.js +16 -1
- package/dist/cjs/modules/excel/xlsx/xform/table/table-column-xform.js +17 -2
- package/dist/cjs/modules/excel/xlsx/xform/xsd-values.js +106 -0
- package/dist/cjs/modules/excel/xlsx/xlsx.browser.js +4420 -76
- package/dist/cjs/modules/pdf/builder/document-builder.js +506 -1
- package/dist/cjs/modules/pdf/builder/pdf-editor.js +48 -3
- package/dist/cjs/modules/pdf/excel-bridge.js +684 -12
- package/dist/cjs/modules/pdf/font/font-manager.js +39 -0
- package/dist/cjs/modules/pdf/index.js +5 -1
- package/dist/cjs/modules/pdf/render/chart-surface.js +203 -0
- package/dist/cjs/modules/pdf/render/layout-engine.js +437 -56
- package/dist/cjs/modules/pdf/render/page-renderer.js +169 -28
- package/dist/cjs/modules/pdf/render/pdf-exporter.js +115 -5
- package/dist/cjs/modules/pdf/types.js +5 -0
- package/dist/cjs/modules/pdf/word-bridge.js +307 -0
- package/dist/cjs/modules/word/constants.js +234 -0
- package/dist/cjs/modules/word/content-types.js +57 -0
- package/dist/cjs/modules/word/digital-signatures.js +140 -0
- package/dist/cjs/modules/word/document.js +1909 -0
- package/dist/cjs/modules/word/docx-packager.js +825 -0
- package/dist/cjs/modules/word/docx-reader.js +4932 -0
- package/dist/cjs/modules/word/encryption.js +282 -0
- package/dist/cjs/modules/word/errors.js +88 -0
- package/dist/cjs/modules/word/font-obfuscation.js +88 -0
- package/dist/cjs/modules/word/html-renderer.js +785 -0
- package/dist/cjs/modules/word/index.base.js +199 -0
- package/dist/cjs/modules/word/index.browser.js +20 -0
- package/dist/cjs/modules/word/index.js +20 -0
- package/dist/cjs/modules/word/internal-utils.js +59 -0
- package/dist/cjs/modules/word/relationships.js +60 -0
- package/dist/cjs/modules/word/types.js +11 -0
- package/dist/cjs/modules/word/units.js +135 -0
- package/dist/cjs/modules/word/writers/chart-writer.js +388 -0
- package/dist/cjs/modules/word/writers/checkbox-writer.js +45 -0
- package/dist/cjs/modules/word/writers/comment-writer.js +74 -0
- package/dist/cjs/modules/word/writers/document-writer.js +465 -0
- package/dist/cjs/modules/word/writers/footnote-writer.js +76 -0
- package/dist/cjs/modules/word/writers/header-footer-writer.js +134 -0
- package/dist/cjs/modules/word/writers/image-writer.js +188 -0
- package/dist/cjs/modules/word/writers/math-writer.js +431 -0
- package/dist/cjs/modules/word/writers/numbering-writer.js +128 -0
- package/dist/cjs/modules/word/writers/paragraph-writer.js +521 -0
- package/dist/cjs/modules/word/writers/parts-writer.js +671 -0
- package/dist/cjs/modules/word/writers/run-writer.js +655 -0
- package/dist/cjs/modules/word/writers/section-writer.js +241 -0
- package/dist/cjs/modules/word/writers/styles-writer.js +245 -0
- package/dist/cjs/modules/word/writers/table-writer.js +506 -0
- package/dist/cjs/modules/word/writers/textbox-writer.js +56 -0
- package/dist/cjs/modules/word/writers/toc-writer.js +82 -0
- package/dist/cjs/modules/xml/encode.js +158 -11
- package/dist/esm/index.browser.js +20 -2
- package/dist/esm/index.js +9 -1
- package/dist/esm/modules/excel/chart/cache-populator.js +1171 -0
- package/dist/esm/modules/excel/chart/chart-api.js +364 -0
- package/dist/esm/modules/excel/chart/chart-builder.js +2432 -0
- package/dist/esm/modules/excel/chart/chart-ex-builder.js +903 -0
- package/dist/esm/modules/excel/chart/chart-ex-parser.js +1205 -0
- package/dist/esm/modules/excel/chart/chart-ex-renderer.js +5352 -0
- package/dist/esm/modules/excel/chart/chart-ex-types.js +11 -0
- package/dist/esm/modules/excel/chart/chart-images.js +363 -0
- package/dist/esm/modules/excel/chart/chart-presets.js +179 -0
- package/dist/esm/modules/excel/chart/chart-renderer.js +6440 -0
- package/dist/esm/modules/excel/chart/chart-sidecar.js +427 -0
- package/dist/esm/modules/excel/chart/chart-utils.js +821 -0
- package/dist/esm/modules/excel/chart/chart.js +1320 -0
- package/dist/esm/modules/excel/chart/glyph-rasterizer.js +658 -0
- package/dist/esm/modules/excel/chart/index.js +46 -0
- package/dist/esm/modules/excel/chart/install.js +91 -0
- package/dist/esm/modules/excel/chart/shape-properties.js +1557 -0
- package/dist/esm/modules/excel/chart/stroke-font.js +1556 -0
- package/dist/esm/modules/excel/chart/topojson.js +236 -0
- package/dist/esm/modules/excel/chart/types.js +8 -0
- package/dist/esm/modules/excel/chart-host-registry.js +90 -0
- package/dist/esm/modules/excel/chartsheet.js +196 -0
- package/dist/esm/modules/excel/defined-names.js +44 -4
- package/dist/esm/modules/excel/errors.js +9 -0
- package/dist/esm/modules/excel/form-control.js +17 -0
- package/dist/esm/modules/excel/image.js +12 -2
- package/dist/esm/modules/excel/pivot-chart.js +53 -0
- package/dist/esm/modules/excel/pivot-table.js +35 -0
- package/dist/esm/modules/excel/range.js +5 -1
- package/dist/esm/modules/excel/sparkline/index.js +7 -0
- package/dist/esm/modules/excel/sparkline/sparkline.js +750 -0
- package/dist/esm/modules/excel/stream/worksheet-writer.js +3 -2
- package/dist/esm/modules/excel/table.js +42 -6
- package/dist/esm/modules/excel/utils/address.js +28 -0
- package/dist/esm/modules/excel/utils/drawing-utils.js +11 -6
- package/dist/esm/modules/excel/utils/guid.js +35 -0
- package/dist/esm/modules/excel/utils/ooxml-paths.js +206 -9
- package/dist/esm/modules/excel/utils/ooxml-validator/check-chart-sidecar.js +101 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/check-chart.js +2125 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/check-chartsheet.js +26 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/check-content-types.js +181 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/check-drawing.js +267 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/check-pivot.js +104 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/check-relationships.js +184 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/check-structure.js +56 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/check-styles.js +89 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/check-table.js +177 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/check-workbook.js +163 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/check-worksheet.js +569 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/context.js +191 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/index.js +102 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/path-utils.js +156 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/reporter.js +61 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/types.js +12 -0
- package/dist/esm/modules/excel/utils/ooxml-validator/xml-utils.js +100 -0
- package/dist/esm/modules/excel/workbook.browser.js +969 -34
- package/dist/esm/modules/excel/workbook.js +48 -0
- package/dist/esm/modules/excel/worksheet.js +394 -35
- package/dist/esm/modules/excel/xlsx/rel-type.js +41 -1
- package/dist/esm/modules/excel/xlsx/xform/book/defined-name-xform.js +11 -2
- package/dist/esm/modules/excel/xlsx/xform/book/external-link-xform.js +12 -10
- package/dist/esm/modules/excel/xlsx/xform/book/workbook-xform.js +96 -22
- package/dist/esm/modules/excel/xlsx/xform/chart/chart-space-xform.js +6000 -0
- package/dist/esm/modules/excel/xlsx/xform/comment/threaded-comments-xform.js +213 -0
- package/dist/esm/modules/excel/xlsx/xform/core/content-types-xform.js +150 -11
- package/dist/esm/modules/excel/xlsx/xform/drawing/absolute-anchor-xform.js +20 -1
- package/dist/esm/modules/excel/xlsx/xform/drawing/base-cell-anchor-xform.js +1 -1
- package/dist/esm/modules/excel/xlsx/xform/drawing/drawing-xform.js +109 -5
- package/dist/esm/modules/excel/xlsx/xform/drawing/graphic-frame-xform.js +225 -0
- package/dist/esm/modules/excel/xlsx/xform/drawing/one-cell-anchor-xform.js +18 -3
- package/dist/esm/modules/excel/xlsx/xform/drawing/two-cell-anchor-xform.js +294 -12
- package/dist/esm/modules/excel/xlsx/xform/pivot-table/pivot-table-xform.js +32 -6
- package/dist/esm/modules/excel/xlsx/xform/sheet/chartsheet-xform.js +441 -0
- package/dist/esm/modules/excel/xlsx/xform/sheet/ext-lst-xform.js +51 -2
- package/dist/esm/modules/excel/xlsx/xform/sheet/worksheet-xform.js +196 -20
- package/dist/esm/modules/excel/xlsx/xform/table/auto-filter-xform.js +16 -1
- package/dist/esm/modules/excel/xlsx/xform/table/table-column-xform.js +17 -2
- package/dist/esm/modules/excel/xlsx/xform/xsd-values.js +101 -0
- package/dist/esm/modules/excel/xlsx/xlsx.browser.js +4422 -78
- package/dist/esm/modules/pdf/builder/document-builder.js +507 -2
- package/dist/esm/modules/pdf/builder/pdf-editor.js +48 -3
- package/dist/esm/modules/pdf/excel-bridge.js +683 -12
- package/dist/esm/modules/pdf/font/font-manager.js +39 -0
- package/dist/esm/modules/pdf/index.js +3 -1
- package/dist/esm/modules/pdf/render/chart-surface.js +200 -0
- package/dist/esm/modules/pdf/render/layout-engine.js +436 -56
- package/dist/esm/modules/pdf/render/page-renderer.js +169 -28
- package/dist/esm/modules/pdf/render/pdf-exporter.js +117 -7
- package/dist/esm/modules/pdf/types.js +4 -0
- package/dist/esm/modules/pdf/word-bridge.js +304 -0
- package/dist/esm/modules/word/constants.js +231 -0
- package/dist/esm/modules/word/content-types.js +53 -0
- package/dist/esm/modules/word/digital-signatures.js +134 -0
- package/dist/esm/modules/word/document.js +1795 -0
- package/dist/esm/modules/word/docx-packager.js +822 -0
- package/dist/esm/modules/word/docx-reader.js +4929 -0
- package/dist/esm/modules/word/encryption.js +274 -0
- package/dist/esm/modules/word/errors.js +68 -0
- package/dist/esm/modules/word/font-obfuscation.js +83 -0
- package/dist/esm/modules/word/html-renderer.js +782 -0
- package/dist/esm/modules/word/index.base.js +51 -0
- package/dist/esm/modules/word/index.browser.js +4 -0
- package/dist/esm/modules/word/index.js +4 -0
- package/dist/esm/modules/word/internal-utils.js +54 -0
- package/dist/esm/modules/word/relationships.js +56 -0
- package/dist/esm/modules/word/types.js +10 -0
- package/dist/esm/modules/word/units.js +111 -0
- package/dist/esm/modules/word/writers/chart-writer.js +385 -0
- package/dist/esm/modules/word/writers/checkbox-writer.js +42 -0
- package/dist/esm/modules/word/writers/comment-writer.js +70 -0
- package/dist/esm/modules/word/writers/document-writer.js +461 -0
- package/dist/esm/modules/word/writers/footnote-writer.js +72 -0
- package/dist/esm/modules/word/writers/header-footer-writer.js +129 -0
- package/dist/esm/modules/word/writers/image-writer.js +185 -0
- package/dist/esm/modules/word/writers/math-writer.js +428 -0
- package/dist/esm/modules/word/writers/numbering-writer.js +125 -0
- package/dist/esm/modules/word/writers/paragraph-writer.js +516 -0
- package/dist/esm/modules/word/writers/parts-writer.js +660 -0
- package/dist/esm/modules/word/writers/run-writer.js +649 -0
- package/dist/esm/modules/word/writers/section-writer.js +238 -0
- package/dist/esm/modules/word/writers/styles-writer.js +242 -0
- package/dist/esm/modules/word/writers/table-writer.js +503 -0
- package/dist/esm/modules/word/writers/textbox-writer.js +53 -0
- package/dist/esm/modules/word/writers/toc-writer.js +79 -0
- package/dist/esm/modules/xml/encode.js +157 -11
- package/dist/iife/excelts.iife.js +11789 -687
- package/dist/iife/excelts.iife.js.map +1 -1
- package/dist/iife/excelts.iife.min.js +52 -44
- package/dist/types/index.browser.d.ts +8 -5
- package/dist/types/index.d.ts +4 -2
- package/dist/types/modules/excel/chart/cache-populator.d.ts +49 -0
- package/dist/types/modules/excel/chart/chart-api.d.ts +92 -0
- package/dist/types/modules/excel/chart/chart-builder.d.ts +48 -0
- package/dist/types/modules/excel/chart/chart-ex-builder.d.ts +36 -0
- package/dist/types/modules/excel/chart/chart-ex-parser.d.ts +8 -0
- package/dist/types/modules/excel/chart/chart-ex-renderer.d.ts +187 -0
- package/dist/types/modules/excel/chart/chart-ex-types.d.ts +531 -0
- package/dist/types/modules/excel/chart/chart-images.d.ts +78 -0
- package/dist/types/modules/excel/chart/chart-presets.d.ts +392 -0
- package/dist/types/modules/excel/chart/chart-renderer.d.ts +550 -0
- package/dist/types/modules/excel/chart/chart-sidecar.d.ts +21 -0
- package/dist/types/modules/excel/chart/chart-utils.d.ts +306 -0
- package/dist/types/modules/excel/chart/chart.d.ts +504 -0
- package/dist/types/modules/excel/chart/glyph-rasterizer.d.ts +62 -0
- package/dist/types/modules/excel/chart/index.d.ts +54 -0
- package/dist/types/modules/excel/chart/install.d.ts +44 -0
- package/dist/types/modules/excel/chart/shape-properties.d.ts +156 -0
- package/dist/types/modules/excel/chart/stroke-font.d.ts +36 -0
- package/dist/types/modules/excel/chart/topojson.d.ts +98 -0
- package/dist/types/modules/excel/chart/types.d.ts +2559 -0
- package/dist/types/modules/excel/chart-host-registry.d.ts +157 -0
- package/dist/types/modules/excel/chartsheet.d.ts +102 -0
- package/dist/types/modules/excel/defined-names.d.ts +35 -0
- package/dist/types/modules/excel/errors.d.ts +6 -0
- package/dist/types/modules/excel/form-control.d.ts +6 -0
- package/dist/types/modules/excel/pivot-chart.d.ts +7 -0
- package/dist/types/modules/excel/pivot-table.d.ts +55 -0
- package/dist/types/modules/excel/sparkline/index.d.ts +7 -0
- package/dist/types/modules/excel/sparkline/sparkline.d.ts +206 -0
- package/dist/types/modules/excel/types.d.ts +72 -0
- package/dist/types/modules/excel/utils/address.d.ts +18 -0
- package/dist/types/modules/excel/utils/guid.d.ts +15 -0
- package/dist/types/modules/excel/utils/ooxml-paths.d.ts +74 -0
- package/dist/types/modules/excel/utils/ooxml-validator/check-chart-sidecar.d.ts +35 -0
- package/dist/types/modules/excel/utils/ooxml-validator/check-chart.d.ts +32 -0
- package/dist/types/modules/excel/utils/ooxml-validator/check-chartsheet.d.ts +9 -0
- package/dist/types/modules/excel/utils/ooxml-validator/check-content-types.d.ts +16 -0
- package/dist/types/modules/excel/utils/ooxml-validator/check-drawing.d.ts +34 -0
- package/dist/types/modules/excel/utils/ooxml-validator/check-pivot.d.ts +14 -0
- package/dist/types/modules/excel/utils/ooxml-validator/check-relationships.d.ts +18 -0
- package/dist/types/modules/excel/utils/ooxml-validator/check-structure.d.ts +21 -0
- package/dist/types/modules/excel/utils/ooxml-validator/check-styles.d.ts +15 -0
- package/dist/types/modules/excel/utils/ooxml-validator/check-table.d.ts +31 -0
- package/dist/types/modules/excel/utils/ooxml-validator/check-workbook.d.ts +19 -0
- package/dist/types/modules/excel/utils/ooxml-validator/check-worksheet.d.ts +25 -0
- package/dist/types/modules/excel/utils/ooxml-validator/context.d.ts +85 -0
- package/dist/types/modules/excel/utils/ooxml-validator/index.d.ts +31 -0
- package/dist/types/modules/excel/utils/ooxml-validator/path-utils.d.ts +67 -0
- package/dist/types/modules/excel/utils/ooxml-validator/reporter.d.ts +41 -0
- package/dist/types/modules/excel/utils/ooxml-validator/types.d.ts +109 -0
- package/dist/types/modules/excel/utils/ooxml-validator/xml-utils.d.ts +38 -0
- package/dist/types/modules/excel/workbook.browser.d.ts +248 -30
- package/dist/types/modules/excel/workbook.d.ts +43 -0
- package/dist/types/modules/excel/worksheet.d.ts +157 -3
- package/dist/types/modules/excel/xlsx/rel-type.d.ts +40 -0
- package/dist/types/modules/excel/xlsx/xform/book/defined-name-xform.d.ts +1 -0
- package/dist/types/modules/excel/xlsx/xform/chart/chart-space-xform.d.ts +353 -0
- package/dist/types/modules/excel/xlsx/xform/comment/threaded-comments-xform.d.ts +60 -0
- package/dist/types/modules/excel/xlsx/xform/drawing/drawing-xform.d.ts +30 -0
- package/dist/types/modules/excel/xlsx/xform/drawing/graphic-frame-xform.d.ts +54 -0
- package/dist/types/modules/excel/xlsx/xform/drawing/one-cell-anchor-xform.d.ts +3 -1
- package/dist/types/modules/excel/xlsx/xform/drawing/two-cell-anchor-xform.d.ts +46 -0
- package/dist/types/modules/excel/xlsx/xform/pivot-table/pivot-table-xform.d.ts +13 -2
- package/dist/types/modules/excel/xlsx/xform/sheet/chartsheet-xform.d.ts +185 -0
- package/dist/types/modules/excel/xlsx/xform/sheet/ext-lst-xform.d.ts +1 -0
- package/dist/types/modules/excel/xlsx/xform/xsd-values.d.ts +63 -0
- package/dist/types/modules/excel/xlsx/xlsx.browser.d.ts +115 -21
- package/dist/types/modules/pdf/builder/document-builder.d.ts +74 -0
- package/dist/types/modules/pdf/excel-bridge.d.ts +69 -0
- package/dist/types/modules/pdf/font/font-manager.d.ts +25 -0
- package/dist/types/modules/pdf/index.d.ts +5 -2
- package/dist/types/modules/pdf/render/chart-surface.d.ts +33 -0
- package/dist/types/modules/pdf/render/layout-engine.d.ts +22 -1
- package/dist/types/modules/pdf/types.d.ts +227 -23
- package/dist/types/modules/pdf/word-bridge.d.ts +47 -0
- package/dist/types/modules/word/constants.d.ts +179 -0
- package/dist/types/modules/word/content-types.d.ts +27 -0
- package/dist/types/modules/word/digital-signatures.d.ts +87 -0
- package/dist/types/modules/word/document.d.ts +728 -0
- package/dist/types/modules/word/docx-packager.d.ts +14 -0
- package/dist/types/modules/word/docx-reader.d.ts +11 -0
- package/dist/types/modules/word/encryption.d.ts +102 -0
- package/dist/types/modules/word/errors.d.ts +49 -0
- package/dist/types/modules/word/font-obfuscation.d.ts +31 -0
- package/dist/types/modules/word/html-renderer.d.ts +38 -0
- package/dist/types/modules/word/index.base.d.ts +19 -0
- package/dist/types/modules/word/index.browser.d.ts +4 -0
- package/dist/types/modules/word/index.d.ts +4 -0
- package/dist/types/modules/word/internal-utils.d.ts +23 -0
- package/dist/types/modules/word/relationships.d.ts +31 -0
- package/dist/types/modules/word/types.d.ts +2325 -0
- package/dist/types/modules/word/units.d.ts +49 -0
- package/dist/types/modules/word/writers/chart-writer.d.ts +10 -0
- package/dist/types/modules/word/writers/checkbox-writer.d.ts +9 -0
- package/dist/types/modules/word/writers/comment-writer.d.ts +15 -0
- package/dist/types/modules/word/writers/document-writer.d.ts +16 -0
- package/dist/types/modules/word/writers/footnote-writer.d.ts +11 -0
- package/dist/types/modules/word/writers/header-footer-writer.d.ts +13 -0
- package/dist/types/modules/word/writers/image-writer.d.ts +10 -0
- package/dist/types/modules/word/writers/math-writer.d.ts +9 -0
- package/dist/types/modules/word/writers/numbering-writer.d.ts +10 -0
- package/dist/types/modules/word/writers/paragraph-writer.d.ts +13 -0
- package/dist/types/modules/word/writers/parts-writer.d.ts +26 -0
- package/dist/types/modules/word/writers/run-writer.d.ts +15 -0
- package/dist/types/modules/word/writers/section-writer.d.ts +10 -0
- package/dist/types/modules/word/writers/styles-writer.d.ts +10 -0
- package/dist/types/modules/word/writers/table-writer.d.ts +10 -0
- package/dist/types/modules/word/writers/textbox-writer.d.ts +9 -0
- package/dist/types/modules/word/writers/toc-writer.d.ts +9 -0
- package/dist/types/modules/xml/encode.d.ts +56 -7
- package/package.json +29 -11
- package/dist/browser/modules/excel/utils/ooxml-validator.d.ts +0 -48
- package/dist/browser/modules/excel/utils/ooxml-validator.js +0 -493
- package/dist/browser/modules/excel/utils/passthrough-manager.d.ts +0 -77
- package/dist/browser/modules/excel/utils/passthrough-manager.js +0 -129
- package/dist/cjs/modules/excel/utils/ooxml-validator.js +0 -499
- package/dist/cjs/modules/excel/utils/passthrough-manager.js +0 -133
- package/dist/esm/modules/excel/utils/ooxml-validator.js +0 -493
- package/dist/esm/modules/excel/utils/passthrough-manager.js +0 -129
- package/dist/types/modules/excel/utils/ooxml-validator.d.ts +0 -48
- package/dist/types/modules/excel/utils/passthrough-manager.d.ts +0 -77
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOCX Module - Unit Conversion Utilities
|
|
3
|
+
*
|
|
4
|
+
* Conversion functions between common measurement units used in OOXML.
|
|
5
|
+
*/
|
|
6
|
+
/** Convert inches to twips. */
|
|
7
|
+
export declare function inchesToTwips(inches: number): number;
|
|
8
|
+
/** Convert twips to inches. */
|
|
9
|
+
export declare function twipsToInches(twips: number): number;
|
|
10
|
+
/** Convert centimeters to twips. */
|
|
11
|
+
export declare function cmToTwips(cm: number): number;
|
|
12
|
+
/** Convert twips to centimeters. */
|
|
13
|
+
export declare function twipsToCm(twips: number): number;
|
|
14
|
+
/** Convert points to twips. */
|
|
15
|
+
export declare function ptToTwips(pt: number): number;
|
|
16
|
+
/** Convert twips to points. */
|
|
17
|
+
export declare function twipsToPt(twips: number): number;
|
|
18
|
+
/** Convert millimeters to twips. */
|
|
19
|
+
export declare function mmToTwips(mm: number): number;
|
|
20
|
+
/** Convert inches to EMU. */
|
|
21
|
+
export declare function inchesToEmu(inches: number): number;
|
|
22
|
+
/** Convert EMU to inches. */
|
|
23
|
+
export declare function emuToInches(emu: number): number;
|
|
24
|
+
/** Convert centimeters to EMU. */
|
|
25
|
+
export declare function cmToEmu(cm: number): number;
|
|
26
|
+
/** Convert EMU to centimeters. */
|
|
27
|
+
export declare function emuToCm(emu: number): number;
|
|
28
|
+
/** Convert points to EMU. */
|
|
29
|
+
export declare function ptToEmu(pt: number): number;
|
|
30
|
+
/** Convert pixels (at 96 DPI) to EMU. */
|
|
31
|
+
export declare function pxToEmu(px: number): number;
|
|
32
|
+
/** Convert EMU to pixels (at 96 DPI). */
|
|
33
|
+
export declare function emuToPx(emu: number): number;
|
|
34
|
+
/** Convert points to half-points (for w:sz). */
|
|
35
|
+
export declare function ptToHalfPoint(pt: number): number;
|
|
36
|
+
/** Convert half-points to points. */
|
|
37
|
+
export declare function halfPointToPt(hp: number): number;
|
|
38
|
+
/** Convert points to eighth-points (for border w:sz). */
|
|
39
|
+
export declare function ptToEighthPoint(pt: number): number;
|
|
40
|
+
/** Convert eighth-points to points. */
|
|
41
|
+
export declare function eighthPointToPt(ep: number): number;
|
|
42
|
+
/** Convert line multiplier to line spacing value (auto mode). */
|
|
43
|
+
export declare function lineMultiplierToSpacing(multiplier: number): number;
|
|
44
|
+
/** Convert line spacing value to multiplier (auto mode). */
|
|
45
|
+
export declare function spacingToLineMultiplier(spacing: number): number;
|
|
46
|
+
/** Convert percentage (0-100) to table width pct value. */
|
|
47
|
+
export declare function percentToTablePct(percent: number): number;
|
|
48
|
+
/** Convert table width pct value to percentage. */
|
|
49
|
+
export declare function tablePctToPercent(pct: number): number;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOCX Module - Chart Writer
|
|
3
|
+
*
|
|
4
|
+
* Generates DrawingML chart part XML (word/charts/chartN.xml) from
|
|
5
|
+
* high-level Chart definitions.
|
|
6
|
+
*/
|
|
7
|
+
import type { XmlSink } from "../../xml/types.js";
|
|
8
|
+
import type { Chart } from "../types.js";
|
|
9
|
+
/** Render a chart part (word/charts/chartN.xml). */
|
|
10
|
+
export declare function renderChartPart(xml: XmlSink, chart: Chart): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOCX Writers - CheckBox
|
|
3
|
+
*
|
|
4
|
+
* Renders checkbox as a structured document tag (SDT) with w14:checkbox.
|
|
5
|
+
*/
|
|
6
|
+
import type { XmlSink } from "../../xml/types.js";
|
|
7
|
+
import type { CheckBox } from "../types.js";
|
|
8
|
+
/** Render a checkbox as a paragraph with SDT. */
|
|
9
|
+
export declare function renderCheckBox(xml: XmlSink, cb: CheckBox): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOCX Writers - Comments
|
|
3
|
+
*
|
|
4
|
+
* Renders word/comments.xml and word/commentsExtended.xml parts.
|
|
5
|
+
*/
|
|
6
|
+
import type { XmlSink } from "../../xml/types.js";
|
|
7
|
+
import type { CommentDef } from "../types.js";
|
|
8
|
+
/** Render word/comments.xml. */
|
|
9
|
+
export declare function renderComments(xml: XmlSink, comments: readonly CommentDef[]): void;
|
|
10
|
+
/**
|
|
11
|
+
* Render word/commentsExtended.xml — extended comment metadata (done/parentId).
|
|
12
|
+
* Only includes comments that have either `done` or `parentId` set.
|
|
13
|
+
* @returns true if any extended comments were rendered.
|
|
14
|
+
*/
|
|
15
|
+
export declare function renderCommentsExtended(xml: XmlSink, comments: readonly CommentDef[]): boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOCX Writers - Document Body
|
|
3
|
+
*
|
|
4
|
+
* Renders the main word/document.xml part including all block-level
|
|
5
|
+
* content types: paragraphs, tables, floating images, TOC, math,
|
|
6
|
+
* text boxes, and structured document tags.
|
|
7
|
+
*/
|
|
8
|
+
import type { XmlSink } from "../../xml/types.js";
|
|
9
|
+
import type { DocxDocument } from "../types.js";
|
|
10
|
+
/** Render the complete word/document.xml. */
|
|
11
|
+
export declare function renderDocument(xml: XmlSink, doc: DocxDocument): void;
|
|
12
|
+
/**
|
|
13
|
+
* Registry mapping ChartContent → rId. Populated by packager before rendering.
|
|
14
|
+
* Uses a WeakMap so chart contents can be garbage collected.
|
|
15
|
+
*/
|
|
16
|
+
export declare const CHART_RID_REGISTRY: WeakMap<object, string>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOCX Writers - Footnotes & Endnotes
|
|
3
|
+
*
|
|
4
|
+
* Renders word/footnotes.xml and word/endnotes.xml parts.
|
|
5
|
+
*/
|
|
6
|
+
import type { XmlSink } from "../../xml/types.js";
|
|
7
|
+
import type { FootnoteDef, EndnoteDef } from "../types.js";
|
|
8
|
+
/** Render word/footnotes.xml. */
|
|
9
|
+
export declare function renderFootnotes(xml: XmlSink, footnotes: readonly FootnoteDef[]): void;
|
|
10
|
+
/** Render word/endnotes.xml. */
|
|
11
|
+
export declare function renderEndnotes(xml: XmlSink, endnotes: readonly EndnoteDef[]): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOCX Writers - Headers & Footers
|
|
3
|
+
*
|
|
4
|
+
* Renders word/header{N}.xml and word/footer{N}.xml parts.
|
|
5
|
+
*/
|
|
6
|
+
import type { XmlSink } from "../../xml/types.js";
|
|
7
|
+
import type { HeaderFooterContent, Watermark } from "../types.js";
|
|
8
|
+
/** Render a header part (word/header{N}.xml). */
|
|
9
|
+
export declare function renderHeader(xml: XmlSink, content: HeaderFooterContent): void;
|
|
10
|
+
/** Render a footer part (word/footer{N}.xml). */
|
|
11
|
+
export declare function renderFooter(xml: XmlSink, content: HeaderFooterContent): void;
|
|
12
|
+
/** Render a header part containing a watermark. */
|
|
13
|
+
export declare function renderWatermarkHeader(xml: XmlSink, watermark: Watermark, imageRId?: string): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOCX Writers - Floating Image
|
|
3
|
+
*
|
|
4
|
+
* Renders wp:anchor elements for floating (non-inline) images
|
|
5
|
+
* with full support for rotation, flip, lock anchor, outline, and wrap margins.
|
|
6
|
+
*/
|
|
7
|
+
import type { XmlSink } from "../../xml/types.js";
|
|
8
|
+
import type { FloatingImage } from "../types.js";
|
|
9
|
+
/** Render a floating image as a standalone paragraph with wp:anchor. */
|
|
10
|
+
export declare function renderFloatingImage(xml: XmlSink, img: FloatingImage): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOCX Writers - Math / Equations (OMML)
|
|
3
|
+
*
|
|
4
|
+
* Renders Office Math Markup Language elements (m:oMath).
|
|
5
|
+
*/
|
|
6
|
+
import type { XmlSink } from "../../xml/types.js";
|
|
7
|
+
import type { MathBlock } from "../types.js";
|
|
8
|
+
/** Render a math block (m:oMathPara > m:oMath). Body-level math. */
|
|
9
|
+
export declare function renderMathBlock(xml: XmlSink, math: MathBlock): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOCX Writers - Numbering
|
|
3
|
+
*
|
|
4
|
+
* Renders word/numbering.xml with abstract numbering definitions and instances.
|
|
5
|
+
* Supports suffix, legal numbering style, restart levels, and level overrides.
|
|
6
|
+
*/
|
|
7
|
+
import type { XmlSink } from "../../xml/types.js";
|
|
8
|
+
import type { AbstractNumbering, NumberingInstance, NumPicBullet } from "../types.js";
|
|
9
|
+
/** Render word/numbering.xml. */
|
|
10
|
+
export declare function renderNumbering(xml: XmlSink, abstractNums?: readonly AbstractNumbering[], instances?: readonly NumberingInstance[], numPicBullets?: readonly NumPicBullet[]): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOCX Writers - Paragraph Properties & Paragraph
|
|
3
|
+
*
|
|
4
|
+
* Renders w:pPr and w:p elements including numbering, tabs, borders, etc.
|
|
5
|
+
*/
|
|
6
|
+
import type { XmlSink } from "../../xml/types.js";
|
|
7
|
+
import type { ParagraphProperties, Paragraph, Border } from "../types.js";
|
|
8
|
+
/** Render a single border element. */
|
|
9
|
+
export declare function renderBorder(xml: XmlSink, tagName: string, border: Border): void;
|
|
10
|
+
/** Render w:pPr (paragraph properties). */
|
|
11
|
+
export declare function renderParagraphProperties(xml: XmlSink, pPr: ParagraphProperties, insidePropertyChange?: boolean): void;
|
|
12
|
+
/** Render a w:p element. */
|
|
13
|
+
export declare function renderParagraph(xml: XmlSink, para: Paragraph): void;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOCX Writers - Settings, Font Table, Core Properties, App Properties,
|
|
3
|
+
* Theme, Document Background, Custom Properties
|
|
4
|
+
*
|
|
5
|
+
* Renders various auxiliary parts of the DOCX package.
|
|
6
|
+
*/
|
|
7
|
+
import type { XmlSink } from "../../xml/types.js";
|
|
8
|
+
import type { DocumentSettings, CoreProperties, AppProperties, FontDef, DocumentBackground, CustomProperty, DocumentTheme, WebSettings, PersonInfo } from "../types.js";
|
|
9
|
+
/** Render word/settings.xml. */
|
|
10
|
+
export declare function renderSettings(xml: XmlSink, settings?: DocumentSettings): void;
|
|
11
|
+
/** Render word/fontTable.xml. */
|
|
12
|
+
export declare function renderFontTable(xml: XmlSink, fonts?: readonly FontDef[]): void;
|
|
13
|
+
/** Render docProps/core.xml. */
|
|
14
|
+
export declare function renderCoreProperties(xml: XmlSink, props?: CoreProperties): void;
|
|
15
|
+
/** Render docProps/app.xml. */
|
|
16
|
+
export declare function renderAppProperties(xml: XmlSink, props?: AppProperties): void;
|
|
17
|
+
/** Render document background element (w:background in document.xml). */
|
|
18
|
+
export declare function renderDocumentBackground(xml: XmlSink, bg: DocumentBackground): void;
|
|
19
|
+
/** Render docProps/custom.xml. */
|
|
20
|
+
export declare function renderCustomProperties(xml: XmlSink, properties: readonly CustomProperty[]): void;
|
|
21
|
+
/** Render word/theme/theme1.xml (minimal theme). */
|
|
22
|
+
export declare function renderTheme(xml: XmlSink, theme?: DocumentTheme): void;
|
|
23
|
+
/** Render word/webSettings.xml. */
|
|
24
|
+
export declare function renderWebSettings(xml: XmlSink, ws?: WebSettings): void;
|
|
25
|
+
/** Render word/people.xml. */
|
|
26
|
+
export declare function renderPeople(xml: XmlSink, people: readonly PersonInfo[]): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOCX Writers - Run Properties & Run Content
|
|
3
|
+
*
|
|
4
|
+
* Renders w:rPr and run-level content (w:t, w:br, w:tab, w:drawing, etc.)
|
|
5
|
+
*/
|
|
6
|
+
import type { XmlSink } from "../../xml/types.js";
|
|
7
|
+
import type { RunProperties, Run, Shading, Border } from "../types.js";
|
|
8
|
+
/** Render a single border element. */
|
|
9
|
+
export declare function renderBorderElement(xml: XmlSink, tagName: string, border: Border): void;
|
|
10
|
+
/** Render w:rPr (run properties). Element order follows ECMA-376 CT_RPr schema. */
|
|
11
|
+
export declare function renderRunProperties(xml: XmlSink, rPr: RunProperties, insidePropertyChange?: boolean): void;
|
|
12
|
+
/** Render w:shd element. */
|
|
13
|
+
export declare function renderShading(xml: XmlSink, shd: Shading): void;
|
|
14
|
+
/** Render a w:r element. */
|
|
15
|
+
export declare function renderRun(xml: XmlSink, run: Run): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOCX Writers - Section Properties
|
|
3
|
+
*
|
|
4
|
+
* Renders w:sectPr element including page size, margins, columns,
|
|
5
|
+
* headers/footers, page numbering, page borders, vertical alignment, etc.
|
|
6
|
+
*/
|
|
7
|
+
import type { XmlSink } from "../../xml/types.js";
|
|
8
|
+
import type { SectionProperties } from "../types.js";
|
|
9
|
+
/** Render w:sectPr element. */
|
|
10
|
+
export declare function renderSectionProperties(xml: XmlSink, sect: SectionProperties, insidePropertyChange?: boolean): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOCX Writers - Styles
|
|
3
|
+
*
|
|
4
|
+
* Renders word/styles.xml including document defaults, style definitions,
|
|
5
|
+
* and table style conditional formats.
|
|
6
|
+
*/
|
|
7
|
+
import type { XmlSink } from "../../xml/types.js";
|
|
8
|
+
import type { DocDefaults, StyleDef } from "../types.js";
|
|
9
|
+
/** Render word/styles.xml. */
|
|
10
|
+
export declare function renderStyles(xml: XmlSink, docDefaults?: DocDefaults, styles?: readonly StyleDef[]): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOCX Writers - Table
|
|
3
|
+
*
|
|
4
|
+
* Renders w:tbl, w:tr, w:tc elements with full property support
|
|
5
|
+
* including floating tables, table look, cell spacing, and revisions.
|
|
6
|
+
*/
|
|
7
|
+
import type { XmlSink } from "../../xml/types.js";
|
|
8
|
+
import type { Table } from "../types.js";
|
|
9
|
+
/** Render a w:tbl element. */
|
|
10
|
+
export declare function renderTable(xml: XmlSink, table: Table): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOCX Writers - TextBox
|
|
3
|
+
*
|
|
4
|
+
* Renders text boxes using VML (v:shape) with mc:AlternateContent.
|
|
5
|
+
*/
|
|
6
|
+
import type { XmlSink } from "../../xml/types.js";
|
|
7
|
+
import type { TextBox } from "../types.js";
|
|
8
|
+
/** Render a text box as a VML shape within a paragraph. */
|
|
9
|
+
export declare function renderTextBox(xml: XmlSink, textBox: TextBox): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DOCX Writers - Table of Contents
|
|
3
|
+
*
|
|
4
|
+
* Renders TOC as a structured document tag (SDT) with field codes.
|
|
5
|
+
*/
|
|
6
|
+
import type { XmlSink } from "../../xml/types.js";
|
|
7
|
+
import type { TableOfContents } from "../types.js";
|
|
8
|
+
/** Render a Table of Contents block. */
|
|
9
|
+
export declare function renderTableOfContents(xml: XmlSink, toc: TableOfContents): void;
|
|
@@ -9,8 +9,12 @@
|
|
|
9
9
|
* Handles named entities (`<`, `>`, `&`, `"`, `'`)
|
|
10
10
|
* and numeric character references (`{`, `{`).
|
|
11
11
|
*
|
|
12
|
-
* Security: validates numeric code points
|
|
13
|
-
*
|
|
12
|
+
* Security: validates numeric code points against the XML 1.0 `Char`
|
|
13
|
+
* production (rejects NUL, forbidden C0 controls, surrogates,
|
|
14
|
+
* noncharacters, and out-of-range code points). Malformed numeric
|
|
15
|
+
* refs are left untouched in the output so downstream layers (e.g. a
|
|
16
|
+
* re-encoder that strips them) can distinguish "author meant this" from
|
|
17
|
+
* "we couldn't decode this".
|
|
14
18
|
*
|
|
15
19
|
* Fast-path: returns the original string if no `&` is found.
|
|
16
20
|
*/
|
|
@@ -27,11 +31,23 @@ export declare function xmlDecode(text: string): string;
|
|
|
27
31
|
*/
|
|
28
32
|
export declare function xmlEncode(text: string): string;
|
|
29
33
|
/**
|
|
30
|
-
* Encode a value for use in
|
|
34
|
+
* Encode a value for use in a double-quoted XML attribute.
|
|
31
35
|
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
36
|
+
* Does everything {@link xmlEncode} does (escape `<>&"'`, strip invalid
|
|
37
|
+
* control chars and lone surrogates) PLUS encodes `\t`, `\n`, `\r` as
|
|
38
|
+
* numeric character references (`	`, `
`, `
`).
|
|
39
|
+
*
|
|
40
|
+
* The extra whitespace handling is required by XML 1.0 §3.3.3
|
|
41
|
+
* (attribute-value normalisation), which replaces every literal
|
|
42
|
+
* whitespace character inside an attribute value with a single space
|
|
43
|
+
* at parse time. Without the numeric-ref encoding, `"foo\nbar"` written
|
|
44
|
+
* into an attribute round-trips as `"foo bar"` — the newline is gone.
|
|
45
|
+
* Parsers / validators never collapse numeric character references, so
|
|
46
|
+
* `
` survives verbatim.
|
|
47
|
+
*
|
|
48
|
+
* Use this for every attribute value in XML output that needs to
|
|
49
|
+
* round-trip exactly (OOXML chart / sidecar / pivot content, relationship
|
|
50
|
+
* targets, anything later re-parsed by another tool).
|
|
35
51
|
*/
|
|
36
52
|
export declare function xmlEncodeAttr(value: string): string;
|
|
37
53
|
/**
|
|
@@ -47,12 +63,45 @@ export declare function xmlEncodeAttr(value: string): string;
|
|
|
47
63
|
*/
|
|
48
64
|
export declare function validateXmlName(name: string): void;
|
|
49
65
|
/**
|
|
50
|
-
* Encode text for a CDATA section,
|
|
66
|
+
* Encode text for a CDATA section, stripping XML 1.0-illegal
|
|
67
|
+
* characters first and then splitting on `]]>` to produce valid
|
|
68
|
+
* output.
|
|
69
|
+
*
|
|
70
|
+
* CDATA is not a magic passthrough: only the five structural entities
|
|
71
|
+
* are skipped, but every other XML Char production rule still applies.
|
|
72
|
+
* A user string that carries `\x08` or a lone surrogate half wraps
|
|
73
|
+
* into a CDATA section that every conformant parser rejects. Strip
|
|
74
|
+
* them first (same sanitisation as {@link xmlEncode} / the chart
|
|
75
|
+
* module's `escapeXml`) so CDATA output stays well-formed.
|
|
51
76
|
*
|
|
52
77
|
* The sequence `]]>` cannot appear inside CDATA, so each occurrence is split
|
|
53
78
|
* into adjacent CDATA sections: `<![CDATA[...]]]]><![CDATA[>...]]>`.
|
|
54
79
|
*/
|
|
55
80
|
export declare function encodeCData(text: string): string;
|
|
81
|
+
/**
|
|
82
|
+
* Strip characters that XML 1.0 forbids from text / attribute /
|
|
83
|
+
* CDATA content, plus DEL (0x7F) as a project-policy extension.
|
|
84
|
+
*
|
|
85
|
+
* The XML 1.0 Char production allows: `#x9 | #xA | #xD |
|
|
86
|
+
* [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]`. So the
|
|
87
|
+
* disallowed ranges are:
|
|
88
|
+
* - C0 controls other than `\t` `\n` `\r` (`0x00-0x08`, `0x0B`,
|
|
89
|
+
* `0x0C`, `0x0E-0x1F`),
|
|
90
|
+
* - lone UTF-16 surrogate halves (`0xD800-0xDFFF` not in a valid
|
|
91
|
+
* pair),
|
|
92
|
+
* - the noncharacters `0xFFFE` / `0xFFFF`.
|
|
93
|
+
*
|
|
94
|
+
* `0x7F` (DEL) is TECHNICALLY legal per the XML spec — it falls
|
|
95
|
+
* within the `[#x20-#xD7FF]` range — but some downstream consumers
|
|
96
|
+
* (older Excel versions, strict SAX libraries) choke on it. We strip
|
|
97
|
+
* it as a defence-in-depth measure; the comment that previously
|
|
98
|
+
* claimed "XML 1.0 forbids DEL" was incorrect.
|
|
99
|
+
*
|
|
100
|
+
* Exported so `chart-utils.ts` and any other module that needs the
|
|
101
|
+
* same sanitisation can share a single implementation instead of
|
|
102
|
+
* carrying a local copy that drifts on edge cases.
|
|
103
|
+
*/
|
|
104
|
+
export declare function stripXmlIllegalChars(text: string): string;
|
|
56
105
|
/**
|
|
57
106
|
* Validate that text is legal for an XML comment.
|
|
58
107
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cj-tech-master/excelts",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.5.0",
|
|
4
4
|
"description": "Zero-dependency TypeScript toolkit — Excel (XLSX), PDF, CSV, Markdown, XML, ZIP/TAR, and streaming.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"archive",
|
|
@@ -67,6 +67,9 @@
|
|
|
67
67
|
"formula": [
|
|
68
68
|
"dist/types/modules/formula/index.d.ts"
|
|
69
69
|
],
|
|
70
|
+
"chart": [
|
|
71
|
+
"dist/types/modules/excel/chart/index.d.ts"
|
|
72
|
+
],
|
|
70
73
|
"xml": [
|
|
71
74
|
"dist/types/modules/xml/index.d.ts"
|
|
72
75
|
],
|
|
@@ -178,6 +181,20 @@
|
|
|
178
181
|
"default": "./dist/cjs/modules/formula/index.js"
|
|
179
182
|
}
|
|
180
183
|
},
|
|
184
|
+
"./chart": {
|
|
185
|
+
"browser": {
|
|
186
|
+
"types": "./dist/browser/modules/excel/chart/index.d.ts",
|
|
187
|
+
"default": "./dist/browser/modules/excel/chart/index.js"
|
|
188
|
+
},
|
|
189
|
+
"import": {
|
|
190
|
+
"types": "./dist/types/modules/excel/chart/index.d.ts",
|
|
191
|
+
"default": "./dist/esm/modules/excel/chart/index.js"
|
|
192
|
+
},
|
|
193
|
+
"require": {
|
|
194
|
+
"types": "./dist/types/modules/excel/chart/index.d.ts",
|
|
195
|
+
"default": "./dist/cjs/modules/excel/chart/index.js"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
181
198
|
"./xml": {
|
|
182
199
|
"browser": {
|
|
183
200
|
"types": "./dist/browser/modules/xml/index.d.ts",
|
|
@@ -198,26 +215,26 @@
|
|
|
198
215
|
"access": "public"
|
|
199
216
|
},
|
|
200
217
|
"devDependencies": {
|
|
201
|
-
"@rspack/core": "^
|
|
218
|
+
"@rspack/core": "^2.0.1",
|
|
202
219
|
"@types/node": "^25.6.0",
|
|
203
|
-
"@typescript/native-preview": "^7.0.0-dev.
|
|
204
|
-
"@vitest/browser": "^4.1.
|
|
205
|
-
"@vitest/browser-playwright": "^4.1.
|
|
206
|
-
"@vitest/ui": "^4.1.
|
|
220
|
+
"@typescript/native-preview": "^7.0.0-dev.20260504.1",
|
|
221
|
+
"@vitest/browser": "^4.1.5",
|
|
222
|
+
"@vitest/browser-playwright": "^4.1.5",
|
|
223
|
+
"@vitest/ui": "^4.1.5",
|
|
207
224
|
"concurrently": "^9.2.1",
|
|
208
225
|
"cross-env": "^10.1.0",
|
|
209
226
|
"esbuild": "^0.28.0",
|
|
210
|
-
"fast-xml-parser": "^5.7.
|
|
227
|
+
"fast-xml-parser": "^5.7.3",
|
|
211
228
|
"husky": "^9.1.7",
|
|
212
|
-
"oxfmt": "^0.
|
|
213
|
-
"oxlint": "^1.
|
|
229
|
+
"oxfmt": "^0.47.0",
|
|
230
|
+
"oxlint": "^1.62.0",
|
|
214
231
|
"oxlint-tsgolint": "latest",
|
|
215
232
|
"playwright": "^1.59.1",
|
|
216
233
|
"rimraf": "^6.1.3",
|
|
217
|
-
"rolldown": "^1.0.0-rc.
|
|
234
|
+
"rolldown": "^1.0.0-rc.18",
|
|
218
235
|
"rollup-plugin-visualizer": "^7.0.1",
|
|
219
236
|
"typescript": "^6.0.3",
|
|
220
|
-
"vitest": "^4.1.
|
|
237
|
+
"vitest": "^4.1.5"
|
|
221
238
|
},
|
|
222
239
|
"browserslist": [
|
|
223
240
|
"chrome >= 89",
|
|
@@ -232,6 +249,7 @@
|
|
|
232
249
|
"scripts": {
|
|
233
250
|
"example": "node scripts/run-examples.ts",
|
|
234
251
|
"generate:csv-worker": "node scripts/generate-csv-worker-script.ts",
|
|
252
|
+
"compatibility:report": "node scripts/compatibility-report.ts",
|
|
235
253
|
"check": "concurrently --raw \"pnpm run type\" \"pnpm run lint\" \"pnpm run format\"",
|
|
236
254
|
"test": "vitest run && pnpm run test:browser --",
|
|
237
255
|
"test:browser": "pnpm run generate:csv-worker && rimraf dist && pnpm run build:browser:bundle && vitest run --config vitest.browser.config.ts",
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
export type OoxmlProblemKind = "missing-part" | "xml-malformed" | "content-types-missing" | "content-types-malformed" | "content-types-missing-default" | "content-types-missing-for-part" | "content-types-duplicate-override" | "root-rels-missing-officeDocument" | "rels-malformed" | "rels-missing-target" | "rels-duplicate-id" | "rels-empty-target" | "rels-invalid-target-path" | "rels-source-missing" | "workbook-sheet-missing-rel" | "workbook-sheet-wrong-rel-type" | "workbook-duplicate-sheetId" | "workbook-duplicate-sheet-rid" | "sheet-missing-rels" | "sheet-controls-missing-drawing" | "sheet-control-missing-rel" | "sheet-control-wrong-rel-type" | "sheet-legacyDrawing-missing-rel" | "sheet-legacyDrawing-wrong-rel-type" | "sheet-drawing-missing-rel" | "sheet-drawing-wrong-rel-type" | "sheet-comments-missing-rel" | "sheet-comments-wrong-rel-type" | "sheet-hyperlink-missing-rel" | "sheet-hyperlink-wrong-rel-type" | "sheet-tablePart-missing-rel" | "sheet-tablePart-wrong-rel-type";
|
|
2
|
-
export type OoxmlOrderingProblemKind = "sheet-legacyDrawing-after-controls";
|
|
3
|
-
export interface OoxmlValidationProblem {
|
|
4
|
-
kind: OoxmlProblemKind;
|
|
5
|
-
file?: string;
|
|
6
|
-
message: string;
|
|
7
|
-
}
|
|
8
|
-
export interface OoxmlOrderingValidationProblem {
|
|
9
|
-
kind: OoxmlOrderingProblemKind;
|
|
10
|
-
file?: string;
|
|
11
|
-
message: string;
|
|
12
|
-
}
|
|
13
|
-
export interface OoxmlValidationReport {
|
|
14
|
-
ok: boolean;
|
|
15
|
-
problems: Array<OoxmlValidationProblem | OoxmlOrderingValidationProblem>;
|
|
16
|
-
stats: {
|
|
17
|
-
entryCount: number;
|
|
18
|
-
xmlLikeCount: number;
|
|
19
|
-
relsCount: number;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export interface OoxmlValidateOptions {
|
|
23
|
-
/**
|
|
24
|
-
* Whether to check every XML-like entry (.xml, .rels, .vml) for well-formedness.
|
|
25
|
-
* Default: true.
|
|
26
|
-
*/
|
|
27
|
-
checkXmlWellFormed?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Whether to validate relationship targets exist (TargetMode=External ignored).
|
|
30
|
-
* Default: true.
|
|
31
|
-
*/
|
|
32
|
-
checkRelationshipTargets?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Whether to validate that every ContentTypes Override PartName exists.
|
|
35
|
-
* Default: true.
|
|
36
|
-
*/
|
|
37
|
-
checkContentTypesOverrides?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Whether to validate worksheet <controls>/<legacyDrawing> r:id wiring.
|
|
40
|
-
* Default: true.
|
|
41
|
-
*/
|
|
42
|
-
checkWorksheetControlWiring?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* If provided, stops after this many problems.
|
|
45
|
-
*/
|
|
46
|
-
maxProblems?: number;
|
|
47
|
-
}
|
|
48
|
-
export declare function validateXlsxBuffer(xlsxBuffer: Uint8Array, options?: OoxmlValidateOptions): Promise<OoxmlValidationReport>;
|